diff --git a/common/src/java/org/apache/hadoop/hive/common/HiveStatsUtils.java b/common/src/java/org/apache/hadoop/hive/common/HiveStatsUtils.java index 9193f80..7c9d72f 100644 --- a/common/src/java/org/apache/hadoop/hive/common/HiveStatsUtils.java +++ b/common/src/java/org/apache/hadoop/hive/common/HiveStatsUtils.java @@ -21,9 +21,13 @@ import java.util.ArrayList; import java.util.List; +import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.conf.HiveConf; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * HiveStatsUtils. @@ -32,6 +36,7 @@ */ public class HiveStatsUtils { + private static final Logger LOG = LoggerFactory.getLogger(HiveStatsUtils.class); /** * Get all file status from a root path and recursively go deep into certain levels. @@ -73,4 +78,58 @@ return fs.globStatus(pathPattern, FileUtils.HIDDEN_FILES_PATH_FILTER); } + public static int getNumBitVectorsForNDVEstimation(Configuration conf) throws Exception { + int numBitVectors; + float percentageError = HiveConf.getFloatVar(conf, HiveConf.ConfVars.HIVE_STATS_NDV_ERROR); + + if (percentageError < 0.0) { + throw new Exception("hive.stats.ndv.error can't be negative"); + } else if (percentageError <= 2.4) { + numBitVectors = 1024; + LOG.info("Lowest error achievable is 2.4% but error requested is " + percentageError + "%"); + LOG.info("Choosing 1024 bit vectors.."); + } else if (percentageError <= 3.4 ) { + numBitVectors = 1024; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 1024 bit vectors.."); + } else if (percentageError <= 4.8) { + numBitVectors = 512; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 512 bit vectors.."); + } else if (percentageError <= 6.8) { + numBitVectors = 256; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 256 bit vectors.."); + } else if (percentageError <= 9.7) { + numBitVectors = 128; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 128 bit vectors.."); + } else if (percentageError <= 13.8) { + numBitVectors = 64; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 64 bit vectors.."); + } else if (percentageError <= 19.6) { + numBitVectors = 32; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 32 bit vectors.."); + } else if (percentageError <= 28.2) { + numBitVectors = 16; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 16 bit vectors.."); + } else if (percentageError <= 40.9) { + numBitVectors = 8; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 8 bit vectors.."); + } else if (percentageError <= 61.0) { + numBitVectors = 4; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 4 bit vectors.."); + } else { + numBitVectors = 2; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 2 bit vectors.."); + } + return numBitVectors; + } + } diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index 591c0ab..e36516f 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -1396,6 +1396,8 @@ public void setSparkConfigUpdated(boolean isSparkConfigUpdated) { "A lower value for error indicates higher accuracy and a higher compute cost."), HIVE_METASTORE_STATS_NDV_DENSITY_FUNCTION("hive.metastore.stats.ndv.densityfunction", false, "Whether to use density function to estimate the NDV for the whole table based on the NDV of partitions"), + HIVE_METASTORE_BITVECTOR("hive.metastore.stats.bitvector", true, + "Whether to use bitvector to estimate the NDV for the whole table based on the NDV of partitions"), HIVE_STATS_KEY_PREFIX("hive.stats.key.prefix", "", "", true), // internal usage only // if length of variable length data type cannot be determined this length will be used. HIVE_STATS_MAX_VARIABLE_LENGTH("hive.stats.max.variable.length", 100, @@ -3648,4 +3650,5 @@ public static String generateMrDeprecationWarning() { + "Consider using a different execution engine (i.e. " + HiveConf.getNonMrEngines() + ") or using Hive 1.X releases."; } + } diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseSchemaTool.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseSchemaTool.java index 24bebb8..c80fa61 100644 --- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseSchemaTool.java +++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/hbase/TestHBaseSchemaTool.java @@ -436,12 +436,12 @@ public void oneMondoTest() throws Exception { ColumnStatisticsDesc tableStatsDesc = new ColumnStatisticsDesc(false, "db0", "tab0"); ColumnStatisticsData tcsd = new ColumnStatisticsData(); - LongColumnStatsData tlcsd = new LongColumnStatsData(1, 2); + LongColumnStatsData tlcsd = new LongColumnStatsData(1, 2, ""); tlcsd.setLowValue(-95); tlcsd.setHighValue(95); tcsd.setLongStats(tlcsd); ColumnStatisticsData tcsd2 = new ColumnStatisticsData(); - tcsd2.setStringStats(new StringColumnStatsData(97, 18.78, 29, 397)); + tcsd2.setStringStats(new StringColumnStatsData(97, 18.78, 29, 397, "")); List tcsos = Arrays.asList( new ColumnStatisticsObj("col1", "int", tcsd), new ColumnStatisticsObj("col2", "varchar(32)", tcsd2)); @@ -500,12 +500,12 @@ public void oneMondoTest() throws Exception { ColumnStatisticsDesc statsDesc = new ColumnStatisticsDesc(false, "db0", "tab1"); statsDesc.setPartName("pcol1=c/pcol2=d"); ColumnStatisticsData csd1 = new ColumnStatisticsData(); - LongColumnStatsData lcsd = new LongColumnStatsData(1, 2); + LongColumnStatsData lcsd = new LongColumnStatsData(1, 2, ""); lcsd.setLowValue(-95); lcsd.setHighValue(95); csd1.setLongStats(lcsd); ColumnStatisticsData csd2 = new ColumnStatisticsData(); - csd2.setStringStats(new StringColumnStatsData(97, 18.78, 29, 397)); + csd2.setStringStats(new StringColumnStatsData(97, 18.78, 29, 397, "")); List csos = Arrays.asList( new ColumnStatisticsObj("col1", "int", csd1), new ColumnStatisticsObj("col2", "varchar(32)", csd2)); diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index 56ec9aa..5ea1af1 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -325,34 +325,39 @@ struct Index { struct BooleanColumnStatsData { 1: required i64 numTrues, 2: required i64 numFalses, -3: required i64 numNulls +3: required i64 numNulls, +4: required string bitVectors } struct DoubleColumnStatsData { 1: optional double lowValue, 2: optional double highValue, 3: required i64 numNulls, -4: required i64 numDVs +4: required i64 numDVs, +5: required string bitVectors } struct LongColumnStatsData { 1: optional i64 lowValue, 2: optional i64 highValue, 3: required i64 numNulls, -4: required i64 numDVs +4: required i64 numDVs, +5: required string bitVectors } struct StringColumnStatsData { 1: required i64 maxColLen, 2: required double avgColLen, 3: required i64 numNulls, -4: required i64 numDVs +4: required i64 numDVs, +5: required string bitVectors } struct BinaryColumnStatsData { 1: required i64 maxColLen, 2: required double avgColLen, -3: required i64 numNulls +3: required i64 numNulls, +4: required string bitVectors } @@ -365,7 +370,8 @@ struct DecimalColumnStatsData { 1: optional Decimal lowValue, 2: optional Decimal highValue, 3: required i64 numNulls, -4: required i64 numDVs +4: required i64 numDVs, +5: required string bitVectors } struct Date { @@ -376,7 +382,8 @@ struct DateColumnStatsData { 1: optional Date lowValue, 2: optional Date highValue, 3: required i64 numNulls, -4: required i64 numDVs +4: required i64 numDVs, +5: required string bitVectors } union ColumnStatisticsData { diff --git a/metastore/pom.xml b/metastore/pom.xml index 8467e51..7c569a1 100644 --- a/metastore/pom.xml +++ b/metastore/pom.xml @@ -44,6 +44,11 @@ hive-shims ${project.version} + + javolution + javolution + ${javolution.version} + com.google.guava diff --git a/metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java b/metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java index 39a7278..3b2d7b5 100644 --- a/metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java +++ b/metastore/src/gen/protobuf/gen-java/org/apache/hadoop/hive/metastore/hbase/HbaseMetastoreProto.java @@ -3918,6 +3918,21 @@ public Builder clearMaxCacheEntryLife() { */ com.google.protobuf.ByteString getColumnNameBytes(); + + // optional string bit_vectors = 12; + /** + * optional string bit_vectors = 12; + */ + boolean hasBitVectors(); + /** + * optional string bit_vectors = 12; + */ + java.lang.String getBitVectors(); + /** + * optional string bit_vectors = 12; + */ + com.google.protobuf.ByteString + getBitVectorsBytes(); } /** * Protobuf type {@code org.apache.hadoop.hive.metastore.hbase.ColumnStats} @@ -4073,6 +4088,11 @@ private ColumnStats( columnName_ = input.readBytes(); break; } + case 98: { + bitField0_ |= 0x00000800; + bitVectors_ = input.readBytes(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7506,6 +7526,49 @@ public boolean hasColumnName() { } } + // optional string bit_vectors = 12; + public static final int BIT_VECTORS_FIELD_NUMBER = 12; + private java.lang.Object bitVectors_; + /** + * optional string bit_vectors = 12; + */ + public boolean hasBitVectors() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional string bit_vectors = 12; + */ + public java.lang.String getBitVectors() { + java.lang.Object ref = bitVectors_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + bitVectors_ = s; + } + return s; + } + } + /** + * optional string bit_vectors = 12; + */ + public com.google.protobuf.ByteString + getBitVectorsBytes() { + java.lang.Object ref = bitVectors_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bitVectors_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private void initFields() { lastAnalyzed_ = 0L; columnType_ = ""; @@ -7518,6 +7581,7 @@ private void initFields() { binaryStats_ = org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.ColumnStats.StringStats.getDefaultInstance(); decimalStats_ = org.apache.hadoop.hive.metastore.hbase.HbaseMetastoreProto.ColumnStats.DecimalStats.getDefaultInstance(); columnName_ = ""; + bitVectors_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -7574,6 +7638,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(11, getColumnNameBytes()); } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeBytes(12, getBitVectorsBytes()); + } getUnknownFields().writeTo(output); } @@ -7627,6 +7694,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getColumnNameBytes()); } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, getBitVectorsBytes()); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -7795,6 +7866,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000200); columnName_ = ""; bitField0_ = (bitField0_ & ~0x00000400); + bitVectors_ = ""; + bitField0_ = (bitField0_ & ~0x00000800); return this; } @@ -7891,6 +7964,10 @@ public Builder clone() { to_bitField0_ |= 0x00000400; } result.columnName_ = columnName_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + result.bitVectors_ = bitVectors_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -7944,6 +8021,11 @@ public Builder mergeFrom(org.apache.hadoop.hive.metastore.hbase.HbaseMetastorePr columnName_ = other.columnName_; onChanged(); } + if (other.hasBitVectors()) { + bitField0_ |= 0x00000800; + bitVectors_ = other.bitVectors_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -8930,6 +9012,80 @@ public Builder setColumnNameBytes( return this; } + // optional string bit_vectors = 12; + private java.lang.Object bitVectors_ = ""; + /** + * optional string bit_vectors = 12; + */ + public boolean hasBitVectors() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional string bit_vectors = 12; + */ + public java.lang.String getBitVectors() { + java.lang.Object ref = bitVectors_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + bitVectors_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string bit_vectors = 12; + */ + public com.google.protobuf.ByteString + getBitVectorsBytes() { + java.lang.Object ref = bitVectors_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bitVectors_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string bit_vectors = 12; + */ + public Builder setBitVectors( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + bitVectors_ = value; + onChanged(); + return this; + } + /** + * optional string bit_vectors = 12; + */ + public Builder clearBitVectors() { + bitField0_ = (bitField0_ & ~0x00000800); + bitVectors_ = getDefaultInstance().getBitVectors(); + onChanged(); + return this; + } + /** + * optional string bit_vectors = 12; + */ + public Builder setBitVectorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + bitVectors_ = value; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hive.metastore.hbase.ColumnStats) } @@ -34506,7 +34662,7 @@ public Builder removeRange(int index) { "grStatsInvalidatorFilter.Entry\022\021\n\trun_ev" + "ery\030\002 \002(\003\022\034\n\024max_cache_entry_life\030\003 \002(\003\032" + "?\n\005Entry\022\017\n\007db_name\030\001 \002(\014\022\022\n\ntable_name\030" + - "\002 \002(\014\022\021\n\tpart_name\030\003 \002(\014\"\335\010\n\013ColumnStats" + + "\002 \002(\014\022\021\n\tpart_name\030\003 \002(\014\"\362\010\n\013ColumnStats" + "\022\025\n\rlast_analyzed\030\001 \001(\003\022\023\n\013column_type\030\002" + " \002(\t\022\021\n\tnum_nulls\030\003 \001(\003\022\033\n\023num_distinct_" + "values\030\004 \001(\003\022T\n\nbool_stats\030\005 \001(\0132@.org.a", @@ -34522,132 +34678,133 @@ public Builder removeRange(int index) { "ve.metastore.hbase.ColumnStats.StringSta", "ts\022W\n\rdecimal_stats\030\n \001(\0132@.org.apache.h" + "adoop.hive.metastore.hbase.ColumnStats.D" + - "ecimalStats\022\023\n\013column_name\030\013 \001(\t\0325\n\014Bool" + - "eanStats\022\021\n\tnum_trues\030\001 \001(\003\022\022\n\nnum_false" + - "s\030\002 \001(\003\0322\n\tLongStats\022\021\n\tlow_value\030\001 \001(\022\022" + - "\022\n\nhigh_value\030\002 \001(\022\0324\n\013DoubleStats\022\021\n\tlo" + - "w_value\030\001 \001(\001\022\022\n\nhigh_value\030\002 \001(\001\032=\n\013Str" + - "ingStats\022\026\n\016max_col_length\030\001 \001(\003\022\026\n\016avg_" + - "col_length\030\002 \001(\001\032\365\001\n\014DecimalStats\022[\n\tlow" + - "_value\030\001 \001(\0132H.org.apache.hadoop.hive.me", - "tastore.hbase.ColumnStats.DecimalStats.D" + - "ecimal\022\\\n\nhigh_value\030\002 \001(\0132H.org.apache." + - "hadoop.hive.metastore.hbase.ColumnStats." + - "DecimalStats.Decimal\032*\n\007Decimal\022\020\n\010unsca" + - "led\030\001 \002(\014\022\r\n\005scale\030\002 \002(\005\"\246\002\n\010Database\022\023\n" + - "\013description\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022F\n\nparam" + - "eters\030\003 \001(\01322.org.apache.hadoop.hive.met" + - "astore.hbase.Parameters\022Q\n\nprivileges\030\004 " + - "\001(\0132=.org.apache.hadoop.hive.metastore.h" + - "base.PrincipalPrivilegeSet\022\022\n\nowner_name", - "\030\005 \001(\t\022I\n\nowner_type\030\006 \001(\01625.org.apache." + - "hadoop.hive.metastore.hbase.PrincipalTyp" + - "e\"$\n\017DelegationToken\022\021\n\ttoken_str\030\001 \002(\t\"" + - ":\n\013FieldSchema\022\014\n\004name\030\001 \002(\t\022\014\n\004type\030\002 \002" + - "(\t\022\017\n\007comment\030\003 \001(\t\"\206\004\n\010Function\022\022\n\nclas" + - "s_name\030\001 \001(\t\022\022\n\nowner_name\030\002 \001(\t\022I\n\nowne" + - "r_type\030\003 \001(\01625.org.apache.hadoop.hive.me" + - "tastore.hbase.PrincipalType\022\023\n\013create_ti" + - "me\030\004 \001(\022\022T\n\rfunction_type\030\005 \001(\0162=.org.ap" + - "ache.hadoop.hive.metastore.hbase.Functio", - "n.FunctionType\022S\n\rresource_uris\030\006 \003(\0132<." + - "org.apache.hadoop.hive.metastore.hbase.F" + - "unction.ResourceUri\032\254\001\n\013ResourceUri\022`\n\rr" + - "esource_type\030\001 \002(\0162I.org.apache.hadoop.h" + + "ecimalStats\022\023\n\013column_name\030\013 \001(\t\022\023\n\013bit_" + + "vectors\030\014 \001(\t\0325\n\014BooleanStats\022\021\n\tnum_tru" + + "es\030\001 \001(\003\022\022\n\nnum_falses\030\002 \001(\003\0322\n\tLongStat" + + "s\022\021\n\tlow_value\030\001 \001(\022\022\022\n\nhigh_value\030\002 \001(\022" + + "\0324\n\013DoubleStats\022\021\n\tlow_value\030\001 \001(\001\022\022\n\nhi" + + "gh_value\030\002 \001(\001\032=\n\013StringStats\022\026\n\016max_col" + + "_length\030\001 \001(\003\022\026\n\016avg_col_length\030\002 \001(\001\032\365\001" + + "\n\014DecimalStats\022[\n\tlow_value\030\001 \001(\0132H.org.", + "apache.hadoop.hive.metastore.hbase.Colum" + + "nStats.DecimalStats.Decimal\022\\\n\nhigh_valu" + + "e\030\002 \001(\0132H.org.apache.hadoop.hive.metasto" + + "re.hbase.ColumnStats.DecimalStats.Decima" + + "l\032*\n\007Decimal\022\020\n\010unscaled\030\001 \002(\014\022\r\n\005scale\030" + + "\002 \002(\005\"\246\002\n\010Database\022\023\n\013description\030\001 \001(\t\022" + + "\013\n\003uri\030\002 \001(\t\022F\n\nparameters\030\003 \001(\01322.org.a" + + "pache.hadoop.hive.metastore.hbase.Parame" + + "ters\022Q\n\nprivileges\030\004 \001(\0132=.org.apache.ha" + + "doop.hive.metastore.hbase.PrincipalPrivi", + "legeSet\022\022\n\nowner_name\030\005 \001(\t\022I\n\nowner_typ" + + "e\030\006 \001(\01625.org.apache.hadoop.hive.metasto" + + "re.hbase.PrincipalType\"$\n\017DelegationToke" + + "n\022\021\n\ttoken_str\030\001 \002(\t\":\n\013FieldSchema\022\014\n\004n" + + "ame\030\001 \002(\t\022\014\n\004type\030\002 \002(\t\022\017\n\007comment\030\003 \001(\t" + + "\"\206\004\n\010Function\022\022\n\nclass_name\030\001 \001(\t\022\022\n\nown" + + "er_name\030\002 \001(\t\022I\n\nowner_type\030\003 \001(\01625.org." + + "apache.hadoop.hive.metastore.hbase.Princ" + + "ipalType\022\023\n\013create_time\030\004 \001(\022\022T\n\rfunctio" + + "n_type\030\005 \001(\0162=.org.apache.hadoop.hive.me", + "tastore.hbase.Function.FunctionType\022S\n\rr" + + "esource_uris\030\006 \003(\0132<.org.apache.hadoop.h" + "ive.metastore.hbase.Function.ResourceUri" + - ".ResourceType\022\013\n\003uri\030\002 \002(\t\".\n\014ResourceTy" + - "pe\022\007\n\003JAR\020\001\022\010\n\004FILE\020\002\022\013\n\007ARCHIVE\020\003\"\030\n\014Fu" + - "nctionType\022\010\n\004JAVA\020\001\"\037\n\tMasterKey\022\022\n\nmas" + - "ter_key\030\001 \002(\t\",\n\016ParameterEntry\022\013\n\003key\030\001" + - " \002(\t\022\r\n\005value\030\002 \002(\t\"W\n\nParameters\022I\n\tpar", - "ameter\030\001 \003(\01326.org.apache.hadoop.hive.me" + - "tastore.hbase.ParameterEntry\"\360\001\n\tPartiti" + - "on\022\023\n\013create_time\030\001 \001(\003\022\030\n\020last_access_t" + - "ime\030\002 \001(\003\022\020\n\010location\030\003 \001(\t\022I\n\rsd_parame" + - "ters\030\004 \001(\01322.org.apache.hadoop.hive.meta" + - "store.hbase.Parameters\022\017\n\007sd_hash\030\005 \002(\014\022" + - "F\n\nparameters\030\006 \001(\01322.org.apache.hadoop." + - "hive.metastore.hbase.Parameters\"\204\001\n\032Prin" + - "cipalPrivilegeSetEntry\022\026\n\016principal_name" + - "\030\001 \002(\t\022N\n\nprivileges\030\002 \003(\0132:.org.apache.", - "hadoop.hive.metastore.hbase.PrivilegeGra" + - "ntInfo\"\275\001\n\025PrincipalPrivilegeSet\022Q\n\005user" + - "s\030\001 \003(\0132B.org.apache.hadoop.hive.metasto" + - "re.hbase.PrincipalPrivilegeSetEntry\022Q\n\005r" + - "oles\030\002 \003(\0132B.org.apache.hadoop.hive.meta" + - "store.hbase.PrincipalPrivilegeSetEntry\"\260" + - "\001\n\022PrivilegeGrantInfo\022\021\n\tprivilege\030\001 \001(\t" + - "\022\023\n\013create_time\030\002 \001(\003\022\017\n\007grantor\030\003 \001(\t\022K" + - "\n\014grantor_type\030\004 \001(\01625.org.apache.hadoop" + - ".hive.metastore.hbase.PrincipalType\022\024\n\014g", - "rant_option\030\005 \001(\010\"\374\001\n\rRoleGrantInfo\022\026\n\016p" + - "rincipal_name\030\001 \002(\t\022M\n\016principal_type\030\002 " + - "\002(\01625.org.apache.hadoop.hive.metastore.h" + - "base.PrincipalType\022\020\n\010add_time\030\003 \001(\003\022\017\n\007" + - "grantor\030\004 \001(\t\022K\n\014grantor_type\030\005 \001(\01625.or" + - "g.apache.hadoop.hive.metastore.hbase.Pri" + - "ncipalType\022\024\n\014grant_option\030\006 \001(\010\"^\n\021Role" + - "GrantInfoList\022I\n\ngrant_info\030\001 \003(\01325.org." + - "apache.hadoop.hive.metastore.hbase.RoleG" + - "rantInfo\"\030\n\010RoleList\022\014\n\004role\030\001 \003(\t\"/\n\004Ro", - "le\022\023\n\013create_time\030\001 \001(\003\022\022\n\nowner_name\030\002 " + - "\001(\t\"\254\010\n\021StorageDescriptor\022A\n\004cols\030\001 \003(\0132" + - "3.org.apache.hadoop.hive.metastore.hbase" + - ".FieldSchema\022\024\n\014input_format\030\002 \001(\t\022\025\n\rou" + - "tput_format\030\003 \001(\t\022\025\n\ris_compressed\030\004 \001(\010" + - "\022\023\n\013num_buckets\030\005 \001(\021\022W\n\nserde_info\030\006 \001(" + - "\0132C.org.apache.hadoop.hive.metastore.hba" + - "se.StorageDescriptor.SerDeInfo\022\023\n\013bucket" + - "_cols\030\007 \003(\t\022R\n\tsort_cols\030\010 \003(\0132?.org.apa" + - "che.hadoop.hive.metastore.hbase.StorageD", - "escriptor.Order\022Y\n\013skewed_info\030\t \001(\0132D.o" + - "rg.apache.hadoop.hive.metastore.hbase.St" + - "orageDescriptor.SkewedInfo\022!\n\031stored_as_" + - "sub_directories\030\n \001(\010\032.\n\005Order\022\023\n\013column" + - "_name\030\001 \002(\t\022\020\n\005order\030\002 \001(\021:\0011\032|\n\tSerDeIn" + - "fo\022\014\n\004name\030\001 \001(\t\022\031\n\021serialization_lib\030\002 " + - "\001(\t\022F\n\nparameters\030\003 \001(\01322.org.apache.had" + - "oop.hive.metastore.hbase.Parameters\032\214\003\n\n" + - "SkewedInfo\022\030\n\020skewed_col_names\030\001 \003(\t\022r\n\021" + - "skewed_col_values\030\002 \003(\0132W.org.apache.had", - "oop.hive.metastore.hbase.StorageDescript" + - "or.SkewedInfo.SkewedColValueList\022\206\001\n\036ske" + - "wed_col_value_location_maps\030\003 \003(\0132^.org." + - "apache.hadoop.hive.metastore.hbase.Stora" + - "geDescriptor.SkewedInfo.SkewedColValueLo" + - "cationMap\032.\n\022SkewedColValueList\022\030\n\020skewe" + - "d_col_value\030\001 \003(\t\0327\n\031SkewedColValueLocat" + - "ionMap\022\013\n\003key\030\001 \003(\t\022\r\n\005value\030\002 \002(\t\"\220\004\n\005T" + - "able\022\r\n\005owner\030\001 \001(\t\022\023\n\013create_time\030\002 \001(\003" + - "\022\030\n\020last_access_time\030\003 \001(\003\022\021\n\tretention\030", - "\004 \001(\003\022\020\n\010location\030\005 \001(\t\022I\n\rsd_parameters" + - "\030\006 \001(\01322.org.apache.hadoop.hive.metastor" + - "e.hbase.Parameters\022\017\n\007sd_hash\030\007 \002(\014\022K\n\016p" + - "artition_keys\030\010 \003(\01323.org.apache.hadoop." + - "hive.metastore.hbase.FieldSchema\022F\n\npara" + - "meters\030\t \001(\01322.org.apache.hadoop.hive.me" + - "tastore.hbase.Parameters\022\032\n\022view_origina" + - "l_text\030\n \001(\t\022\032\n\022view_expanded_text\030\013 \001(\t" + - "\022\022\n\ntable_type\030\014 \001(\t\022Q\n\nprivileges\030\r \001(\013" + - "2=.org.apache.hadoop.hive.metastore.hbas", - "e.PrincipalPrivilegeSet\022\024\n\014is_temporary\030" + - "\016 \001(\010\"\353\004\n\026PartitionKeyComparator\022\r\n\005name" + - "s\030\001 \002(\t\022\r\n\005types\030\002 \002(\t\022S\n\002op\030\003 \003(\0132G.org" + - ".apache.hadoop.hive.metastore.hbase.Part" + - "itionKeyComparator.Operator\022S\n\005range\030\004 \003" + - "(\0132D.org.apache.hadoop.hive.metastore.hb" + - "ase.PartitionKeyComparator.Range\032(\n\004Mark" + - "\022\r\n\005value\030\001 \002(\t\022\021\n\tinclusive\030\002 \002(\010\032\272\001\n\005R" + - "ange\022\013\n\003key\030\001 \002(\t\022R\n\005start\030\002 \001(\0132C.org.a" + - "pache.hadoop.hive.metastore.hbase.Partit", - "ionKeyComparator.Mark\022P\n\003end\030\003 \001(\0132C.org" + - ".apache.hadoop.hive.metastore.hbase.Part" + - "itionKeyComparator.Mark\032\241\001\n\010Operator\022Z\n\004" + - "type\030\001 \002(\0162L.org.apache.hadoop.hive.meta" + - "store.hbase.PartitionKeyComparator.Opera" + - "tor.Type\022\013\n\003key\030\002 \002(\t\022\013\n\003val\030\003 \002(\t\"\037\n\004Ty" + - "pe\022\010\n\004LIKE\020\000\022\r\n\tNOTEQUALS\020\001*#\n\rPrincipal" + - "Type\022\010\n\004USER\020\000\022\010\n\004ROLE\020\001" + "\032\254\001\n\013ResourceUri\022`\n\rresource_type\030\001 \002(\0162" + + "I.org.apache.hadoop.hive.metastore.hbase" + + ".Function.ResourceUri.ResourceType\022\013\n\003ur" + + "i\030\002 \002(\t\".\n\014ResourceType\022\007\n\003JAR\020\001\022\010\n\004FILE" + + "\020\002\022\013\n\007ARCHIVE\020\003\"\030\n\014FunctionType\022\010\n\004JAVA\020" + + "\001\"\037\n\tMasterKey\022\022\n\nmaster_key\030\001 \002(\t\",\n\016Pa" + + "rameterEntry\022\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \002(\t", + "\"W\n\nParameters\022I\n\tparameter\030\001 \003(\01326.org." + + "apache.hadoop.hive.metastore.hbase.Param" + + "eterEntry\"\360\001\n\tPartition\022\023\n\013create_time\030\001" + + " \001(\003\022\030\n\020last_access_time\030\002 \001(\003\022\020\n\010locati" + + "on\030\003 \001(\t\022I\n\rsd_parameters\030\004 \001(\01322.org.ap" + + "ache.hadoop.hive.metastore.hbase.Paramet" + + "ers\022\017\n\007sd_hash\030\005 \002(\014\022F\n\nparameters\030\006 \001(\013" + + "22.org.apache.hadoop.hive.metastore.hbas" + + "e.Parameters\"\204\001\n\032PrincipalPrivilegeSetEn" + + "try\022\026\n\016principal_name\030\001 \002(\t\022N\n\nprivilege", + "s\030\002 \003(\0132:.org.apache.hadoop.hive.metasto" + + "re.hbase.PrivilegeGrantInfo\"\275\001\n\025Principa" + + "lPrivilegeSet\022Q\n\005users\030\001 \003(\0132B.org.apach" + + "e.hadoop.hive.metastore.hbase.PrincipalP" + + "rivilegeSetEntry\022Q\n\005roles\030\002 \003(\0132B.org.ap" + + "ache.hadoop.hive.metastore.hbase.Princip" + + "alPrivilegeSetEntry\"\260\001\n\022PrivilegeGrantIn" + + "fo\022\021\n\tprivilege\030\001 \001(\t\022\023\n\013create_time\030\002 \001" + + "(\003\022\017\n\007grantor\030\003 \001(\t\022K\n\014grantor_type\030\004 \001(" + + "\01625.org.apache.hadoop.hive.metastore.hba", + "se.PrincipalType\022\024\n\014grant_option\030\005 \001(\010\"\374" + + "\001\n\rRoleGrantInfo\022\026\n\016principal_name\030\001 \002(\t" + + "\022M\n\016principal_type\030\002 \002(\01625.org.apache.ha" + + "doop.hive.metastore.hbase.PrincipalType\022" + + "\020\n\010add_time\030\003 \001(\003\022\017\n\007grantor\030\004 \001(\t\022K\n\014gr" + + "antor_type\030\005 \001(\01625.org.apache.hadoop.hiv" + + "e.metastore.hbase.PrincipalType\022\024\n\014grant" + + "_option\030\006 \001(\010\"^\n\021RoleGrantInfoList\022I\n\ngr" + + "ant_info\030\001 \003(\01325.org.apache.hadoop.hive." + + "metastore.hbase.RoleGrantInfo\"\030\n\010RoleLis", + "t\022\014\n\004role\030\001 \003(\t\"/\n\004Role\022\023\n\013create_time\030\001" + + " \001(\003\022\022\n\nowner_name\030\002 \001(\t\"\254\010\n\021StorageDesc" + + "riptor\022A\n\004cols\030\001 \003(\01323.org.apache.hadoop" + + ".hive.metastore.hbase.FieldSchema\022\024\n\014inp" + + "ut_format\030\002 \001(\t\022\025\n\routput_format\030\003 \001(\t\022\025" + + "\n\ris_compressed\030\004 \001(\010\022\023\n\013num_buckets\030\005 \001" + + "(\021\022W\n\nserde_info\030\006 \001(\0132C.org.apache.hado" + + "op.hive.metastore.hbase.StorageDescripto" + + "r.SerDeInfo\022\023\n\013bucket_cols\030\007 \003(\t\022R\n\tsort" + + "_cols\030\010 \003(\0132?.org.apache.hadoop.hive.met", + "astore.hbase.StorageDescriptor.Order\022Y\n\013" + + "skewed_info\030\t \001(\0132D.org.apache.hadoop.hi" + + "ve.metastore.hbase.StorageDescriptor.Ske" + + "wedInfo\022!\n\031stored_as_sub_directories\030\n \001" + + "(\010\032.\n\005Order\022\023\n\013column_name\030\001 \002(\t\022\020\n\005orde" + + "r\030\002 \001(\021:\0011\032|\n\tSerDeInfo\022\014\n\004name\030\001 \001(\t\022\031\n" + + "\021serialization_lib\030\002 \001(\t\022F\n\nparameters\030\003" + + " \001(\01322.org.apache.hadoop.hive.metastore." + + "hbase.Parameters\032\214\003\n\nSkewedInfo\022\030\n\020skewe" + + "d_col_names\030\001 \003(\t\022r\n\021skewed_col_values\030\002", + " \003(\0132W.org.apache.hadoop.hive.metastore." + + "hbase.StorageDescriptor.SkewedInfo.Skewe" + + "dColValueList\022\206\001\n\036skewed_col_value_locat" + + "ion_maps\030\003 \003(\0132^.org.apache.hadoop.hive." + + "metastore.hbase.StorageDescriptor.Skewed" + + "Info.SkewedColValueLocationMap\032.\n\022Skewed" + + "ColValueList\022\030\n\020skewed_col_value\030\001 \003(\t\0327" + + "\n\031SkewedColValueLocationMap\022\013\n\003key\030\001 \003(\t" + + "\022\r\n\005value\030\002 \002(\t\"\220\004\n\005Table\022\r\n\005owner\030\001 \001(\t" + + "\022\023\n\013create_time\030\002 \001(\003\022\030\n\020last_access_tim", + "e\030\003 \001(\003\022\021\n\tretention\030\004 \001(\003\022\020\n\010location\030\005" + + " \001(\t\022I\n\rsd_parameters\030\006 \001(\01322.org.apache" + + ".hadoop.hive.metastore.hbase.Parameters\022" + + "\017\n\007sd_hash\030\007 \002(\014\022K\n\016partition_keys\030\010 \003(\013" + + "23.org.apache.hadoop.hive.metastore.hbas" + + "e.FieldSchema\022F\n\nparameters\030\t \001(\01322.org." + + "apache.hadoop.hive.metastore.hbase.Param" + + "eters\022\032\n\022view_original_text\030\n \001(\t\022\032\n\022vie" + + "w_expanded_text\030\013 \001(\t\022\022\n\ntable_type\030\014 \001(" + + "\t\022Q\n\nprivileges\030\r \001(\0132=.org.apache.hadoo", + "p.hive.metastore.hbase.PrincipalPrivileg" + + "eSet\022\024\n\014is_temporary\030\016 \001(\010\"\353\004\n\026Partition" + + "KeyComparator\022\r\n\005names\030\001 \002(\t\022\r\n\005types\030\002 " + + "\002(\t\022S\n\002op\030\003 \003(\0132G.org.apache.hadoop.hive" + + ".metastore.hbase.PartitionKeyComparator." + + "Operator\022S\n\005range\030\004 \003(\0132D.org.apache.had" + + "oop.hive.metastore.hbase.PartitionKeyCom" + + "parator.Range\032(\n\004Mark\022\r\n\005value\030\001 \002(\t\022\021\n\t" + + "inclusive\030\002 \002(\010\032\272\001\n\005Range\022\013\n\003key\030\001 \002(\t\022R" + + "\n\005start\030\002 \001(\0132C.org.apache.hadoop.hive.m", + "etastore.hbase.PartitionKeyComparator.Ma" + + "rk\022P\n\003end\030\003 \001(\0132C.org.apache.hadoop.hive" + + ".metastore.hbase.PartitionKeyComparator." + + "Mark\032\241\001\n\010Operator\022Z\n\004type\030\001 \002(\0162L.org.ap" + + "ache.hadoop.hive.metastore.hbase.Partiti" + + "onKeyComparator.Operator.Type\022\013\n\003key\030\002 \002" + + "(\t\022\013\n\003val\030\003 \002(\t\"\037\n\004Type\022\010\n\004LIKE\020\000\022\r\n\tNOT" + + "EQUALS\020\001*#\n\rPrincipalType\022\010\n\004USER\020\000\022\010\n\004R" + + "OLE\020\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -34689,7 +34846,7 @@ public Builder removeRange(int index) { internal_static_org_apache_hadoop_hive_metastore_hbase_ColumnStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_apache_hadoop_hive_metastore_hbase_ColumnStats_descriptor, - new java.lang.String[] { "LastAnalyzed", "ColumnType", "NumNulls", "NumDistinctValues", "BoolStats", "LongStats", "DoubleStats", "StringStats", "BinaryStats", "DecimalStats", "ColumnName", }); + new java.lang.String[] { "LastAnalyzed", "ColumnType", "NumNulls", "NumDistinctValues", "BoolStats", "LongStats", "DoubleStats", "StringStats", "BinaryStats", "DecimalStats", "ColumnName", "BitVectors", }); internal_static_org_apache_hadoop_hive_metastore_hbase_ColumnStats_BooleanStats_descriptor = internal_static_org_apache_hadoop_hive_metastore_hbase_ColumnStats_descriptor.getNestedTypes().get(0); internal_static_org_apache_hadoop_hive_metastore_hbase_ColumnStats_BooleanStats_fieldAccessorTable = new diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 7c530b2..0380e30 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,14 +8,8 @@ namespace Apache { namespace Hadoop { namespace Hive { - -ThriftHiveMetastore_getMetaConf_args::~ThriftHiveMetastore_getMetaConf_args() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_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; @@ -56,7 +50,6 @@ uint32_t ThriftHiveMetastore_getMetaConf_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_getMetaConf_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_getMetaConf_args"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -68,14 +61,8 @@ uint32_t ThriftHiveMetastore_getMetaConf_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_getMetaConf_pargs::~ThriftHiveMetastore_getMetaConf_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_getMetaConf_pargs"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -87,14 +74,8 @@ uint32_t ThriftHiveMetastore_getMetaConf_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_getMetaConf_result::~ThriftHiveMetastore_getMetaConf_result() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_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; @@ -161,14 +142,8 @@ uint32_t ThriftHiveMetastore_getMetaConf_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_getMetaConf_presult::~ThriftHiveMetastore_getMetaConf_presult() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_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; @@ -215,14 +190,8 @@ uint32_t ThriftHiveMetastore_getMetaConf_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_setMetaConf_args::~ThriftHiveMetastore_setMetaConf_args() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_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; @@ -271,7 +240,6 @@ uint32_t ThriftHiveMetastore_setMetaConf_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_setMetaConf_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_setMetaConf_args"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -287,14 +255,8 @@ uint32_t ThriftHiveMetastore_setMetaConf_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_setMetaConf_pargs::~ThriftHiveMetastore_setMetaConf_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_setMetaConf_pargs"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -310,14 +272,8 @@ uint32_t ThriftHiveMetastore_setMetaConf_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_setMetaConf_result::~ThriftHiveMetastore_setMetaConf_result() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_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; @@ -372,14 +328,8 @@ uint32_t ThriftHiveMetastore_setMetaConf_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_setMetaConf_presult::~ThriftHiveMetastore_setMetaConf_presult() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_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; @@ -418,14 +368,8 @@ uint32_t ThriftHiveMetastore_setMetaConf_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_database_args::~ThriftHiveMetastore_create_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_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; @@ -466,7 +410,6 @@ uint32_t ThriftHiveMetastore_create_database_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_create_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_args"); xfer += oprot->writeFieldBegin("database", ::apache::thrift::protocol::T_STRUCT, 1); @@ -478,14 +421,8 @@ uint32_t ThriftHiveMetastore_create_database_args::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_create_database_pargs::~ThriftHiveMetastore_create_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_pargs"); xfer += oprot->writeFieldBegin("database", ::apache::thrift::protocol::T_STRUCT, 1); @@ -497,14 +434,8 @@ uint32_t ThriftHiveMetastore_create_database_pargs::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_create_database_result::~ThriftHiveMetastore_create_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_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; @@ -583,14 +514,8 @@ uint32_t ThriftHiveMetastore_create_database_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_create_database_presult::~ThriftHiveMetastore_create_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_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; @@ -645,14 +570,8 @@ uint32_t ThriftHiveMetastore_create_database_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_database_args::~ThriftHiveMetastore_get_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_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; @@ -693,7 +612,6 @@ uint32_t ThriftHiveMetastore_get_database_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -705,14 +623,8 @@ uint32_t ThriftHiveMetastore_get_database_args::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_database_pargs::~ThriftHiveMetastore_get_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -724,14 +636,8 @@ uint32_t ThriftHiveMetastore_get_database_pargs::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_database_result::~ThriftHiveMetastore_get_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_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; @@ -810,14 +716,8 @@ uint32_t ThriftHiveMetastore_get_database_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_database_presult::~ThriftHiveMetastore_get_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_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; @@ -872,14 +772,8 @@ uint32_t ThriftHiveMetastore_get_database_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_drop_database_args::~ThriftHiveMetastore_drop_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_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; @@ -936,7 +830,6 @@ uint32_t ThriftHiveMetastore_drop_database_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_drop_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -956,14 +849,8 @@ uint32_t ThriftHiveMetastore_drop_database_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_database_pargs::~ThriftHiveMetastore_drop_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -983,14 +870,8 @@ uint32_t ThriftHiveMetastore_drop_database_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_drop_database_result::~ThriftHiveMetastore_drop_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_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; @@ -1069,14 +950,8 @@ uint32_t ThriftHiveMetastore_drop_database_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_drop_database_presult::~ThriftHiveMetastore_drop_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_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; @@ -1131,14 +1006,8 @@ uint32_t ThriftHiveMetastore_drop_database_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_databases_args::~ThriftHiveMetastore_get_databases_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_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; @@ -1179,7 +1048,6 @@ uint32_t ThriftHiveMetastore_get_databases_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_databases_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_args"); xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 1); @@ -1191,14 +1059,8 @@ uint32_t ThriftHiveMetastore_get_databases_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_databases_pargs::~ThriftHiveMetastore_get_databases_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_pargs"); xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 1); @@ -1210,14 +1072,8 @@ uint32_t ThriftHiveMetastore_get_databases_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_databases_result::~ThriftHiveMetastore_get_databases_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_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; @@ -1240,14 +1096,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _etype724; - xfer += iprot->readListBegin(_etype724, _size721); - this->success.resize(_size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size479; + ::apache::thrift::protocol::TType _etype482; + xfer += iprot->readListBegin(_etype482, _size479); + this->success.resize(_size479); + uint32_t _i483; + for (_i483 = 0; _i483 < _size479; ++_i483) { - xfer += iprot->readString(this->success[_i725]); + xfer += iprot->readString(this->success[_i483]); } xfer += iprot->readListEnd(); } @@ -1286,10 +1142,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter726; - for (_iter726 = this->success.begin(); _iter726 != this->success.end(); ++_iter726) + std::vector ::const_iterator _iter484; + for (_iter484 = this->success.begin(); _iter484 != this->success.end(); ++_iter484) { - xfer += oprot->writeString((*_iter726)); + xfer += oprot->writeString((*_iter484)); } xfer += oprot->writeListEnd(); } @@ -1304,14 +1160,8 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_databases_presult::~ThriftHiveMetastore_get_databases_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_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; @@ -1334,14 +1184,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size727; - ::apache::thrift::protocol::TType _etype730; - xfer += iprot->readListBegin(_etype730, _size727); - (*(this->success)).resize(_size727); - uint32_t _i731; - for (_i731 = 0; _i731 < _size727; ++_i731) + uint32_t _size485; + ::apache::thrift::protocol::TType _etype488; + xfer += iprot->readListBegin(_etype488, _size485); + (*(this->success)).resize(_size485); + uint32_t _i489; + for (_i489 = 0; _i489 < _size485; ++_i489) { - xfer += iprot->readString((*(this->success))[_i731]); + xfer += iprot->readString((*(this->success))[_i489]); } xfer += iprot->readListEnd(); } @@ -1370,14 +1220,8 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_all_databases_args::~ThriftHiveMetastore_get_all_databases_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_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; @@ -1405,7 +1249,6 @@ uint32_t ThriftHiveMetastore_get_all_databases_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_all_databases_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_args"); xfer += oprot->writeFieldStop(); @@ -1413,14 +1256,8 @@ uint32_t ThriftHiveMetastore_get_all_databases_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_all_databases_pargs::~ThriftHiveMetastore_get_all_databases_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_pargs"); xfer += oprot->writeFieldStop(); @@ -1428,14 +1265,8 @@ uint32_t ThriftHiveMetastore_get_all_databases_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_all_databases_result::~ThriftHiveMetastore_get_all_databases_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_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; @@ -1458,14 +1289,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size732; - ::apache::thrift::protocol::TType _etype735; - xfer += iprot->readListBegin(_etype735, _size732); - this->success.resize(_size732); - uint32_t _i736; - for (_i736 = 0; _i736 < _size732; ++_i736) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->success.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += iprot->readString(this->success[_i736]); + xfer += iprot->readString(this->success[_i494]); } xfer += iprot->readListEnd(); } @@ -1504,10 +1335,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter737; - for (_iter737 = this->success.begin(); _iter737 != this->success.end(); ++_iter737) + std::vector ::const_iterator _iter495; + for (_iter495 = this->success.begin(); _iter495 != this->success.end(); ++_iter495) { - xfer += oprot->writeString((*_iter737)); + xfer += oprot->writeString((*_iter495)); } xfer += oprot->writeListEnd(); } @@ -1522,14 +1353,8 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_all_databases_presult::~ThriftHiveMetastore_get_all_databases_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_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; @@ -1552,14 +1377,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size738; - ::apache::thrift::protocol::TType _etype741; - xfer += iprot->readListBegin(_etype741, _size738); - (*(this->success)).resize(_size738); - uint32_t _i742; - for (_i742 = 0; _i742 < _size738; ++_i742) + uint32_t _size496; + ::apache::thrift::protocol::TType _etype499; + xfer += iprot->readListBegin(_etype499, _size496); + (*(this->success)).resize(_size496); + uint32_t _i500; + for (_i500 = 0; _i500 < _size496; ++_i500) { - xfer += iprot->readString((*(this->success))[_i742]); + xfer += iprot->readString((*(this->success))[_i500]); } xfer += iprot->readListEnd(); } @@ -1588,14 +1413,8 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_alter_database_args::~ThriftHiveMetastore_alter_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_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; @@ -1644,7 +1463,6 @@ uint32_t ThriftHiveMetastore_alter_database_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_alter_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_database_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -1660,14 +1478,8 @@ uint32_t ThriftHiveMetastore_alter_database_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_alter_database_pargs::~ThriftHiveMetastore_alter_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_database_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -1683,14 +1495,8 @@ uint32_t ThriftHiveMetastore_alter_database_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_alter_database_result::~ThriftHiveMetastore_alter_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_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; @@ -1757,14 +1563,8 @@ uint32_t ThriftHiveMetastore_alter_database_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_database_presult::~ThriftHiveMetastore_alter_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_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; @@ -1811,14 +1611,8 @@ uint32_t ThriftHiveMetastore_alter_database_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_type_args::~ThriftHiveMetastore_get_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_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; @@ -1859,7 +1653,6 @@ uint32_t ThriftHiveMetastore_get_type_args::read(::apache::thrift::protocol::TPr uint32_t ThriftHiveMetastore_get_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -1871,14 +1664,8 @@ uint32_t ThriftHiveMetastore_get_type_args::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_get_type_pargs::~ThriftHiveMetastore_get_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -1890,14 +1677,8 @@ uint32_t ThriftHiveMetastore_get_type_pargs::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_get_type_result::~ThriftHiveMetastore_get_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_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; @@ -1976,14 +1757,8 @@ uint32_t ThriftHiveMetastore_get_type_result::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_type_presult::~ThriftHiveMetastore_get_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_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; @@ -2038,14 +1813,8 @@ uint32_t ThriftHiveMetastore_get_type_presult::read(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_create_type_args::~ThriftHiveMetastore_create_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_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; @@ -2086,7 +1855,6 @@ uint32_t ThriftHiveMetastore_create_type_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_create_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_args"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2098,14 +1866,8 @@ uint32_t ThriftHiveMetastore_create_type_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_create_type_pargs::~ThriftHiveMetastore_create_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_pargs"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2117,14 +1879,8 @@ uint32_t ThriftHiveMetastore_create_type_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_create_type_result::~ThriftHiveMetastore_create_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_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; @@ -2215,14 +1971,8 @@ uint32_t ThriftHiveMetastore_create_type_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_type_presult::~ThriftHiveMetastore_create_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_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; @@ -2285,14 +2035,8 @@ uint32_t ThriftHiveMetastore_create_type_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_type_args::~ThriftHiveMetastore_drop_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_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; @@ -2333,7 +2077,6 @@ uint32_t ThriftHiveMetastore_drop_type_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_drop_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_args"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRING, 1); @@ -2345,14 +2088,8 @@ uint32_t ThriftHiveMetastore_drop_type_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_drop_type_pargs::~ThriftHiveMetastore_drop_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_pargs"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRING, 1); @@ -2364,14 +2101,8 @@ uint32_t ThriftHiveMetastore_drop_type_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_drop_type_result::~ThriftHiveMetastore_drop_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_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; @@ -2450,14 +2181,8 @@ uint32_t ThriftHiveMetastore_drop_type_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_drop_type_presult::~ThriftHiveMetastore_drop_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_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; @@ -2512,14 +2237,8 @@ uint32_t ThriftHiveMetastore_drop_type_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_type_all_args::~ThriftHiveMetastore_get_type_all_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_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; @@ -2560,7 +2279,6 @@ uint32_t ThriftHiveMetastore_get_type_all_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_type_all_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2572,14 +2290,8 @@ uint32_t ThriftHiveMetastore_get_type_all_args::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_type_all_pargs::~ThriftHiveMetastore_get_type_all_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2591,14 +2303,8 @@ uint32_t ThriftHiveMetastore_get_type_all_pargs::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_type_all_result::~ThriftHiveMetastore_get_type_all_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_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; @@ -2621,17 +2327,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size743; - ::apache::thrift::protocol::TType _ktype744; - ::apache::thrift::protocol::TType _vtype745; - xfer += iprot->readMapBegin(_ktype744, _vtype745, _size743); - uint32_t _i747; - for (_i747 = 0; _i747 < _size743; ++_i747) + uint32_t _size501; + ::apache::thrift::protocol::TType _ktype502; + ::apache::thrift::protocol::TType _vtype503; + xfer += iprot->readMapBegin(_ktype502, _vtype503, _size501); + uint32_t _i505; + for (_i505 = 0; _i505 < _size501; ++_i505) { - std::string _key748; - xfer += iprot->readString(_key748); - Type& _val749 = this->success[_key748]; - xfer += _val749.read(iprot); + std::string _key506; + xfer += iprot->readString(_key506); + Type& _val507 = this->success[_key506]; + xfer += _val507.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2670,11 +2376,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter750; - for (_iter750 = this->success.begin(); _iter750 != this->success.end(); ++_iter750) + std::map ::const_iterator _iter508; + for (_iter508 = this->success.begin(); _iter508 != this->success.end(); ++_iter508) { - xfer += oprot->writeString(_iter750->first); - xfer += _iter750->second.write(oprot); + xfer += oprot->writeString(_iter508->first); + xfer += _iter508->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2689,14 +2395,8 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_type_all_presult::~ThriftHiveMetastore_get_type_all_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_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; @@ -2719,17 +2419,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size751; - ::apache::thrift::protocol::TType _ktype752; - ::apache::thrift::protocol::TType _vtype753; - xfer += iprot->readMapBegin(_ktype752, _vtype753, _size751); - uint32_t _i755; - for (_i755 = 0; _i755 < _size751; ++_i755) + uint32_t _size509; + ::apache::thrift::protocol::TType _ktype510; + ::apache::thrift::protocol::TType _vtype511; + xfer += iprot->readMapBegin(_ktype510, _vtype511, _size509); + uint32_t _i513; + for (_i513 = 0; _i513 < _size509; ++_i513) { - std::string _key756; - xfer += iprot->readString(_key756); - Type& _val757 = (*(this->success))[_key756]; - xfer += _val757.read(iprot); + std::string _key514; + xfer += iprot->readString(_key514); + Type& _val515 = (*(this->success))[_key514]; + xfer += _val515.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2758,14 +2458,8 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_fields_args::~ThriftHiveMetastore_get_fields_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_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; @@ -2814,7 +2508,6 @@ uint32_t ThriftHiveMetastore_get_fields_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_fields_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2830,14 +2523,8 @@ uint32_t ThriftHiveMetastore_get_fields_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_fields_pargs::~ThriftHiveMetastore_get_fields_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2853,14 +2540,8 @@ uint32_t ThriftHiveMetastore_get_fields_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_fields_result::~ThriftHiveMetastore_get_fields_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_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; @@ -2883,14 +2564,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size758; - ::apache::thrift::protocol::TType _etype761; - xfer += iprot->readListBegin(_etype761, _size758); - this->success.resize(_size758); - uint32_t _i762; - for (_i762 = 0; _i762 < _size758; ++_i762) + uint32_t _size516; + ::apache::thrift::protocol::TType _etype519; + xfer += iprot->readListBegin(_etype519, _size516); + this->success.resize(_size516); + uint32_t _i520; + for (_i520 = 0; _i520 < _size516; ++_i520) { - xfer += this->success[_i762].read(iprot); + xfer += this->success[_i520].read(iprot); } xfer += iprot->readListEnd(); } @@ -2945,10 +2626,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter763; - for (_iter763 = this->success.begin(); _iter763 != this->success.end(); ++_iter763) + std::vector ::const_iterator _iter521; + for (_iter521 = this->success.begin(); _iter521 != this->success.end(); ++_iter521) { - xfer += (*_iter763).write(oprot); + xfer += (*_iter521).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2971,14 +2652,8 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_fields_presult::~ThriftHiveMetastore_get_fields_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_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; @@ -3001,14 +2676,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size764; - ::apache::thrift::protocol::TType _etype767; - xfer += iprot->readListBegin(_etype767, _size764); - (*(this->success)).resize(_size764); - uint32_t _i768; - for (_i768 = 0; _i768 < _size764; ++_i768) + uint32_t _size522; + ::apache::thrift::protocol::TType _etype525; + xfer += iprot->readListBegin(_etype525, _size522); + (*(this->success)).resize(_size522); + uint32_t _i526; + for (_i526 = 0; _i526 < _size522; ++_i526) { - xfer += (*(this->success))[_i768].read(iprot); + xfer += (*(this->success))[_i526].read(iprot); } xfer += iprot->readListEnd(); } @@ -3053,14 +2728,8 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_args::~ThriftHiveMetastore_get_fields_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_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; @@ -3117,7 +2786,6 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3137,14 +2805,8 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::write(::a return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_pargs::~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3164,14 +2826,8 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_pargs::write(:: return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_result::~ThriftHiveMetastore_get_fields_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_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; @@ -3194,14 +2850,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size769; - ::apache::thrift::protocol::TType _etype772; - xfer += iprot->readListBegin(_etype772, _size769); - this->success.resize(_size769); - uint32_t _i773; - for (_i773 = 0; _i773 < _size769; ++_i773) + uint32_t _size527; + ::apache::thrift::protocol::TType _etype530; + xfer += iprot->readListBegin(_etype530, _size527); + this->success.resize(_size527); + uint32_t _i531; + for (_i531 = 0; _i531 < _size527; ++_i531) { - xfer += this->success[_i773].read(iprot); + xfer += this->success[_i531].read(iprot); } xfer += iprot->readListEnd(); } @@ -3256,10 +2912,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter774; - for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) + std::vector ::const_iterator _iter532; + for (_iter532 = this->success.begin(); _iter532 != this->success.end(); ++_iter532) { - xfer += (*_iter774).write(oprot); + xfer += (*_iter532).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3282,14 +2938,8 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_presult::~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_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; @@ -3312,14 +2962,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _etype778; - xfer += iprot->readListBegin(_etype778, _size775); - (*(this->success)).resize(_size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size533; + ::apache::thrift::protocol::TType _etype536; + xfer += iprot->readListBegin(_etype536, _size533); + (*(this->success)).resize(_size533); + uint32_t _i537; + for (_i537 = 0; _i537 < _size533; ++_i537) { - xfer += (*(this->success))[_i779].read(iprot); + xfer += (*(this->success))[_i537].read(iprot); } xfer += iprot->readListEnd(); } @@ -3364,14 +3014,8 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_get_schema_args::~ThriftHiveMetastore_get_schema_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_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; @@ -3420,7 +3064,6 @@ uint32_t ThriftHiveMetastore_get_schema_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_schema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3436,14 +3079,8 @@ uint32_t ThriftHiveMetastore_get_schema_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_schema_pargs::~ThriftHiveMetastore_get_schema_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3459,14 +3096,8 @@ uint32_t ThriftHiveMetastore_get_schema_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_schema_result::~ThriftHiveMetastore_get_schema_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_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; @@ -3489,14 +3120,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size780; - ::apache::thrift::protocol::TType _etype783; - xfer += iprot->readListBegin(_etype783, _size780); - this->success.resize(_size780); - uint32_t _i784; - for (_i784 = 0; _i784 < _size780; ++_i784) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + this->success.resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += this->success[_i784].read(iprot); + xfer += this->success[_i542].read(iprot); } xfer += iprot->readListEnd(); } @@ -3551,10 +3182,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter785; - for (_iter785 = this->success.begin(); _iter785 != this->success.end(); ++_iter785) + std::vector ::const_iterator _iter543; + for (_iter543 = this->success.begin(); _iter543 != this->success.end(); ++_iter543) { - xfer += (*_iter785).write(oprot); + xfer += (*_iter543).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3577,14 +3208,8 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_schema_presult::~ThriftHiveMetastore_get_schema_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_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; @@ -3607,14 +3232,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size786; - ::apache::thrift::protocol::TType _etype789; - xfer += iprot->readListBegin(_etype789, _size786); - (*(this->success)).resize(_size786); - uint32_t _i790; - for (_i790 = 0; _i790 < _size786; ++_i790) + uint32_t _size544; + ::apache::thrift::protocol::TType _etype547; + xfer += iprot->readListBegin(_etype547, _size544); + (*(this->success)).resize(_size544); + uint32_t _i548; + for (_i548 = 0; _i548 < _size544; ++_i548) { - xfer += (*(this->success))[_i790].read(iprot); + xfer += (*(this->success))[_i548].read(iprot); } xfer += iprot->readListEnd(); } @@ -3659,14 +3284,8 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_args::~ThriftHiveMetastore_get_schema_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_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; @@ -3723,7 +3342,6 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3743,14 +3361,8 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::write(::a return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_pargs::~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3770,14 +3382,8 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_pargs::write(:: return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_result::~ThriftHiveMetastore_get_schema_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_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; @@ -3800,14 +3406,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size791; - ::apache::thrift::protocol::TType _etype794; - xfer += iprot->readListBegin(_etype794, _size791); - this->success.resize(_size791); - uint32_t _i795; - for (_i795 = 0; _i795 < _size791; ++_i795) + uint32_t _size549; + ::apache::thrift::protocol::TType _etype552; + xfer += iprot->readListBegin(_etype552, _size549); + this->success.resize(_size549); + uint32_t _i553; + for (_i553 = 0; _i553 < _size549; ++_i553) { - xfer += this->success[_i795].read(iprot); + xfer += this->success[_i553].read(iprot); } xfer += iprot->readListEnd(); } @@ -3862,10 +3468,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter796; - for (_iter796 = this->success.begin(); _iter796 != this->success.end(); ++_iter796) + std::vector ::const_iterator _iter554; + for (_iter554 = this->success.begin(); _iter554 != this->success.end(); ++_iter554) { - xfer += (*_iter796).write(oprot); + xfer += (*_iter554).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3888,14 +3494,8 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_presult::~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_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; @@ -3918,14 +3518,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size797; - ::apache::thrift::protocol::TType _etype800; - xfer += iprot->readListBegin(_etype800, _size797); - (*(this->success)).resize(_size797); - uint32_t _i801; - for (_i801 = 0; _i801 < _size797; ++_i801) + uint32_t _size555; + ::apache::thrift::protocol::TType _etype558; + xfer += iprot->readListBegin(_etype558, _size555); + (*(this->success)).resize(_size555); + uint32_t _i559; + for (_i559 = 0; _i559 < _size555; ++_i559) { - xfer += (*(this->success))[_i801].read(iprot); + xfer += (*(this->success))[_i559].read(iprot); } xfer += iprot->readListEnd(); } @@ -3970,14 +3570,8 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_create_table_args::~ThriftHiveMetastore_create_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_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; @@ -4018,7 +3612,6 @@ uint32_t ThriftHiveMetastore_create_table_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_create_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_args"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4030,14 +3623,8 @@ uint32_t ThriftHiveMetastore_create_table_args::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_create_table_pargs::~ThriftHiveMetastore_create_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_pargs"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4049,14 +3636,8 @@ uint32_t ThriftHiveMetastore_create_table_pargs::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_table_result::~ThriftHiveMetastore_create_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_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; @@ -4147,14 +3728,8 @@ uint32_t ThriftHiveMetastore_create_table_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_create_table_presult::~ThriftHiveMetastore_create_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_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; @@ -4217,14 +3792,8 @@ uint32_t ThriftHiveMetastore_create_table_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_args::~ThriftHiveMetastore_create_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_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; @@ -4273,7 +3842,6 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::read(:: uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4289,14 +3857,8 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::write(: return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_pargs::~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4312,14 +3874,8 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_pargs::write( return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_result::~ThriftHiveMetastore_create_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_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; @@ -4410,14 +3966,8 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_result::write return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_presult::~ThriftHiveMetastore_create_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_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; @@ -4480,14 +4030,8 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_presult::read return xfer; } - -ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_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; @@ -4544,7 +4088,6 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4564,14 +4107,8 @@ uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4591,14 +4128,8 @@ uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_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; @@ -4665,14 +4196,8 @@ uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_drop_table_presult::~ThriftHiveMetastore_drop_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_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; @@ -4719,14 +4244,8 @@ uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_args::~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_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; @@ -4791,7 +4310,6 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4815,14 +4333,8 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::a return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_pargs::~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4846,14 +4358,8 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(:: return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_result::~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_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; @@ -4920,14 +4426,8 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_presult::~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_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; @@ -4974,14 +4474,8 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_get_tables_args::~ThriftHiveMetastore_get_tables_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_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; @@ -5030,7 +4524,6 @@ uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5046,14 +4539,8 @@ uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_tables_pargs::~ThriftHiveMetastore_get_tables_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5069,14 +4556,8 @@ uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_tables_result::~ThriftHiveMetastore_get_tables_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_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; @@ -5099,14 +4580,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->success.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size560; + ::apache::thrift::protocol::TType _etype563; + xfer += iprot->readListBegin(_etype563, _size560); + this->success.resize(_size560); + uint32_t _i564; + for (_i564 = 0; _i564 < _size560; ++_i564) { - xfer += iprot->readString(this->success[_i806]); + xfer += iprot->readString(this->success[_i564]); } xfer += iprot->readListEnd(); } @@ -5145,10 +4626,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter807; - for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) + std::vector ::const_iterator _iter565; + for (_iter565 = this->success.begin(); _iter565 != this->success.end(); ++_iter565) { - xfer += oprot->writeString((*_iter807)); + xfer += oprot->writeString((*_iter565)); } xfer += oprot->writeListEnd(); } @@ -5163,14 +4644,8 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_tables_presult::~ThriftHiveMetastore_get_tables_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_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; @@ -5193,14 +4668,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size808; - ::apache::thrift::protocol::TType _etype811; - xfer += iprot->readListBegin(_etype811, _size808); - (*(this->success)).resize(_size808); - uint32_t _i812; - for (_i812 = 0; _i812 < _size808; ++_i812) + uint32_t _size566; + ::apache::thrift::protocol::TType _etype569; + xfer += iprot->readListBegin(_etype569, _size566); + (*(this->success)).resize(_size566); + uint32_t _i570; + for (_i570 = 0; _i570 < _size566; ++_i570) { - xfer += iprot->readString((*(this->success))[_i812]); + xfer += iprot->readString((*(this->success))[_i570]); } xfer += iprot->readListEnd(); } @@ -5229,14 +4704,8 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_table_meta_args::~ThriftHiveMetastore_get_table_meta_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_meta_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; @@ -5275,14 +4744,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_types.clear(); - uint32_t _size813; - ::apache::thrift::protocol::TType _etype816; - xfer += iprot->readListBegin(_etype816, _size813); - this->tbl_types.resize(_size813); - uint32_t _i817; - for (_i817 = 0; _i817 < _size813; ++_i817) + uint32_t _size571; + ::apache::thrift::protocol::TType _etype574; + xfer += iprot->readListBegin(_etype574, _size571); + this->tbl_types.resize(_size571); + uint32_t _i575; + for (_i575 = 0; _i575 < _size571; ++_i575) { - xfer += iprot->readString(this->tbl_types[_i817]); + xfer += iprot->readString(this->tbl_types[_i575]); } xfer += iprot->readListEnd(); } @@ -5305,7 +4774,6 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_args"); xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); @@ -5319,10 +4787,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter818; - for (_iter818 = this->tbl_types.begin(); _iter818 != this->tbl_types.end(); ++_iter818) + std::vector ::const_iterator _iter576; + for (_iter576 = this->tbl_types.begin(); _iter576 != this->tbl_types.end(); ++_iter576) { - xfer += oprot->writeString((*_iter818)); + xfer += oprot->writeString((*_iter576)); } xfer += oprot->writeListEnd(); } @@ -5333,14 +4801,8 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_table_meta_pargs::~ThriftHiveMetastore_get_table_meta_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_meta_pargs"); xfer += oprot->writeFieldBegin("db_patterns", ::apache::thrift::protocol::T_STRING, 1); @@ -5354,10 +4816,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter819; - for (_iter819 = (*(this->tbl_types)).begin(); _iter819 != (*(this->tbl_types)).end(); ++_iter819) + std::vector ::const_iterator _iter577; + for (_iter577 = (*(this->tbl_types)).begin(); _iter577 != (*(this->tbl_types)).end(); ++_iter577) { - xfer += oprot->writeString((*_iter819)); + xfer += oprot->writeString((*_iter577)); } xfer += oprot->writeListEnd(); } @@ -5368,14 +4830,8 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_table_meta_result::~ThriftHiveMetastore_get_table_meta_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_meta_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; @@ -5398,14 +4854,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readListBegin(_etype823, _size820); - this->success.resize(_size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size578; + ::apache::thrift::protocol::TType _etype581; + xfer += iprot->readListBegin(_etype581, _size578); + this->success.resize(_size578); + uint32_t _i582; + for (_i582 = 0; _i582 < _size578; ++_i582) { - xfer += this->success[_i824].read(iprot); + xfer += this->success[_i582].read(iprot); } xfer += iprot->readListEnd(); } @@ -5444,10 +4900,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter825; - for (_iter825 = this->success.begin(); _iter825 != this->success.end(); ++_iter825) + std::vector ::const_iterator _iter583; + for (_iter583 = this->success.begin(); _iter583 != this->success.end(); ++_iter583) { - xfer += (*_iter825).write(oprot); + xfer += (*_iter583).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5462,14 +4918,8 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_table_meta_presult::~ThriftHiveMetastore_get_table_meta_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_meta_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; @@ -5492,14 +4942,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size826; - ::apache::thrift::protocol::TType _etype829; - xfer += iprot->readListBegin(_etype829, _size826); - (*(this->success)).resize(_size826); - uint32_t _i830; - for (_i830 = 0; _i830 < _size826; ++_i830) + uint32_t _size584; + ::apache::thrift::protocol::TType _etype587; + xfer += iprot->readListBegin(_etype587, _size584); + (*(this->success)).resize(_size584); + uint32_t _i588; + for (_i588 = 0; _i588 < _size584; ++_i588) { - xfer += (*(this->success))[_i830].read(iprot); + xfer += (*(this->success))[_i588].read(iprot); } xfer += iprot->readListEnd(); } @@ -5528,14 +4978,8 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_all_tables_args::~ThriftHiveMetastore_get_all_tables_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_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; @@ -5576,7 +5020,6 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5588,14 +5031,8 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_all_tables_pargs::~ThriftHiveMetastore_get_all_tables_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5607,14 +5044,8 @@ uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_all_tables_result::~ThriftHiveMetastore_get_all_tables_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_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; @@ -5637,14 +5068,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size831; - ::apache::thrift::protocol::TType _etype834; - xfer += iprot->readListBegin(_etype834, _size831); - this->success.resize(_size831); - uint32_t _i835; - for (_i835 = 0; _i835 < _size831; ++_i835) + uint32_t _size589; + ::apache::thrift::protocol::TType _etype592; + xfer += iprot->readListBegin(_etype592, _size589); + this->success.resize(_size589); + uint32_t _i593; + for (_i593 = 0; _i593 < _size589; ++_i593) { - xfer += iprot->readString(this->success[_i835]); + xfer += iprot->readString(this->success[_i593]); } xfer += iprot->readListEnd(); } @@ -5683,10 +5114,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter836; - for (_iter836 = this->success.begin(); _iter836 != this->success.end(); ++_iter836) + std::vector ::const_iterator _iter594; + for (_iter594 = this->success.begin(); _iter594 != this->success.end(); ++_iter594) { - xfer += oprot->writeString((*_iter836)); + xfer += oprot->writeString((*_iter594)); } xfer += oprot->writeListEnd(); } @@ -5701,14 +5132,8 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_all_tables_presult::~ThriftHiveMetastore_get_all_tables_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_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; @@ -5731,14 +5156,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size837; - ::apache::thrift::protocol::TType _etype840; - xfer += iprot->readListBegin(_etype840, _size837); - (*(this->success)).resize(_size837); - uint32_t _i841; - for (_i841 = 0; _i841 < _size837; ++_i841) + uint32_t _size595; + ::apache::thrift::protocol::TType _etype598; + xfer += iprot->readListBegin(_etype598, _size595); + (*(this->success)).resize(_size595); + uint32_t _i599; + for (_i599 = 0; _i599 < _size595; ++_i599) { - xfer += iprot->readString((*(this->success))[_i841]); + xfer += iprot->readString((*(this->success))[_i599]); } xfer += iprot->readListEnd(); } @@ -5767,14 +5192,8 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_table_args::~ThriftHiveMetastore_get_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_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; @@ -5823,7 +5242,6 @@ uint32_t ThriftHiveMetastore_get_table_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_get_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5839,14 +5257,8 @@ uint32_t ThriftHiveMetastore_get_table_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_get_table_pargs::~ThriftHiveMetastore_get_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5862,14 +5274,8 @@ uint32_t ThriftHiveMetastore_get_table_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_table_result::~ThriftHiveMetastore_get_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_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; @@ -5948,14 +5354,8 @@ uint32_t ThriftHiveMetastore_get_table_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_table_presult::~ThriftHiveMetastore_get_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_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; @@ -6010,14 +5410,8 @@ uint32_t ThriftHiveMetastore_get_table_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_args::~ThriftHiveMetastore_get_table_objects_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_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; @@ -6048,14 +5442,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size842; - ::apache::thrift::protocol::TType _etype845; - xfer += iprot->readListBegin(_etype845, _size842); - this->tbl_names.resize(_size842); - uint32_t _i846; - for (_i846 = 0; _i846 < _size842; ++_i846) + uint32_t _size600; + ::apache::thrift::protocol::TType _etype603; + xfer += iprot->readListBegin(_etype603, _size600); + this->tbl_names.resize(_size600); + uint32_t _i604; + for (_i604 = 0; _i604 < _size600; ++_i604) { - xfer += iprot->readString(this->tbl_names[_i846]); + xfer += iprot->readString(this->tbl_names[_i604]); } xfer += iprot->readListEnd(); } @@ -6078,7 +5472,6 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_objects_by_name_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6088,10 +5481,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter847; - for (_iter847 = this->tbl_names.begin(); _iter847 != this->tbl_names.end(); ++_iter847) + std::vector ::const_iterator _iter605; + for (_iter605 = this->tbl_names.begin(); _iter605 != this->tbl_names.end(); ++_iter605) { - xfer += oprot->writeString((*_iter847)); + xfer += oprot->writeString((*_iter605)); } xfer += oprot->writeListEnd(); } @@ -6102,14 +5495,8 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_pargs::~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_objects_by_name_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6119,10 +5506,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter848; - for (_iter848 = (*(this->tbl_names)).begin(); _iter848 != (*(this->tbl_names)).end(); ++_iter848) + std::vector ::const_iterator _iter606; + for (_iter606 = (*(this->tbl_names)).begin(); _iter606 != (*(this->tbl_names)).end(); ++_iter606) { - xfer += oprot->writeString((*_iter848)); + xfer += oprot->writeString((*_iter606)); } xfer += oprot->writeListEnd(); } @@ -6133,14 +5520,8 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_result::~ThriftHiveMetastore_get_table_objects_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_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; @@ -6163,14 +5544,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size849; - ::apache::thrift::protocol::TType _etype852; - xfer += iprot->readListBegin(_etype852, _size849); - this->success.resize(_size849); - uint32_t _i853; - for (_i853 = 0; _i853 < _size849; ++_i853) + uint32_t _size607; + ::apache::thrift::protocol::TType _etype610; + xfer += iprot->readListBegin(_etype610, _size607); + this->success.resize(_size607); + uint32_t _i611; + for (_i611 = 0; _i611 < _size607; ++_i611) { - xfer += this->success[_i853].read(iprot); + xfer += this->success[_i611].read(iprot); } xfer += iprot->readListEnd(); } @@ -6225,10 +5606,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter854; - for (_iter854 = this->success.begin(); _iter854 != this->success.end(); ++_iter854) + std::vector
::const_iterator _iter612; + for (_iter612 = this->success.begin(); _iter612 != this->success.end(); ++_iter612) { - xfer += (*_iter854).write(oprot); + xfer += (*_iter612).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6251,14 +5632,8 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_presult::~ThriftHiveMetastore_get_table_objects_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_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; @@ -6281,14 +5656,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size855; - ::apache::thrift::protocol::TType _etype858; - xfer += iprot->readListBegin(_etype858, _size855); - (*(this->success)).resize(_size855); - uint32_t _i859; - for (_i859 = 0; _i859 < _size855; ++_i859) + uint32_t _size613; + ::apache::thrift::protocol::TType _etype616; + xfer += iprot->readListBegin(_etype616, _size613); + (*(this->success)).resize(_size613); + uint32_t _i617; + for (_i617 = 0; _i617 < _size613; ++_i617) { - xfer += (*(this->success))[_i859].read(iprot); + xfer += (*(this->success))[_i617].read(iprot); } xfer += iprot->readListEnd(); } @@ -6333,14 +5708,8 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_args::~ThriftHiveMetastore_get_table_names_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_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; @@ -6397,7 +5766,6 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::read(::apache::thri uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_names_by_filter_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6417,14 +5785,8 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_pargs::~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_names_by_filter_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6444,14 +5806,8 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_pargs::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_result::~ThriftHiveMetastore_get_table_names_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_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; @@ -6474,14 +5830,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size860; - ::apache::thrift::protocol::TType _etype863; - xfer += iprot->readListBegin(_etype863, _size860); - this->success.resize(_size860); - uint32_t _i864; - for (_i864 = 0; _i864 < _size860; ++_i864) + uint32_t _size618; + ::apache::thrift::protocol::TType _etype621; + xfer += iprot->readListBegin(_etype621, _size618); + this->success.resize(_size618); + uint32_t _i622; + for (_i622 = 0; _i622 < _size618; ++_i622) { - xfer += iprot->readString(this->success[_i864]); + xfer += iprot->readString(this->success[_i622]); } xfer += iprot->readListEnd(); } @@ -6536,10 +5892,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter865; - for (_iter865 = this->success.begin(); _iter865 != this->success.end(); ++_iter865) + std::vector ::const_iterator _iter623; + for (_iter623 = this->success.begin(); _iter623 != this->success.end(); ++_iter623) { - xfer += oprot->writeString((*_iter865)); + xfer += oprot->writeString((*_iter623)); } xfer += oprot->writeListEnd(); } @@ -6562,14 +5918,8 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_presult::~ThriftHiveMetastore_get_table_names_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_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; @@ -6592,14 +5942,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size866; - ::apache::thrift::protocol::TType _etype869; - xfer += iprot->readListBegin(_etype869, _size866); - (*(this->success)).resize(_size866); - uint32_t _i870; - for (_i870 = 0; _i870 < _size866; ++_i870) + uint32_t _size624; + ::apache::thrift::protocol::TType _etype627; + xfer += iprot->readListBegin(_etype627, _size624); + (*(this->success)).resize(_size624); + uint32_t _i628; + for (_i628 = 0; _i628 < _size624; ++_i628) { - xfer += iprot->readString((*(this->success))[_i870]); + xfer += iprot->readString((*(this->success))[_i628]); } xfer += iprot->readListEnd(); } @@ -6644,14 +5994,8 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_alter_table_args::~ThriftHiveMetastore_alter_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_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; @@ -6708,7 +6052,6 @@ uint32_t ThriftHiveMetastore_alter_table_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_alter_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6728,14 +6071,8 @@ uint32_t ThriftHiveMetastore_alter_table_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_alter_table_pargs::~ThriftHiveMetastore_alter_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6755,14 +6092,8 @@ uint32_t ThriftHiveMetastore_alter_table_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_alter_table_result::~ThriftHiveMetastore_alter_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_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; @@ -6829,14 +6160,8 @@ uint32_t ThriftHiveMetastore_alter_table_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_alter_table_presult::~ThriftHiveMetastore_alter_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_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; @@ -6883,14 +6208,8 @@ uint32_t ThriftHiveMetastore_alter_table_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_args::~ThriftHiveMetastore_alter_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_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; @@ -6955,7 +6274,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::read(::a uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6979,14 +6297,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::write(:: return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_pargs::~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -7010,14 +6322,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_pargs::write(: return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_result::~ThriftHiveMetastore_alter_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_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; @@ -7084,14 +6390,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_result::write( return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_presult::~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_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; @@ -7138,14 +6438,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_presult::read( return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_args::~ThriftHiveMetastore_alter_table_with_cascade_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_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; @@ -7210,7 +6504,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::read(::apache::thrif uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_cascade_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -7234,14 +6527,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_pargs::~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_cascade_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -7265,14 +6552,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_result::~ThriftHiveMetastore_alter_table_with_cascade_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_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; @@ -7339,14 +6620,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_presult::~ThriftHiveMetastore_alter_table_with_cascade_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_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; @@ -7393,14 +6668,8 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_add_partition_args::~ThriftHiveMetastore_add_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_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; @@ -7441,7 +6710,6 @@ uint32_t ThriftHiveMetastore_add_partition_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_add_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_args"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7453,14 +6721,8 @@ uint32_t ThriftHiveMetastore_add_partition_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_add_partition_pargs::~ThriftHiveMetastore_add_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_pargs"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7472,14 +6734,8 @@ uint32_t ThriftHiveMetastore_add_partition_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_add_partition_result::~ThriftHiveMetastore_add_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_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; @@ -7570,14 +6826,8 @@ uint32_t ThriftHiveMetastore_add_partition_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_add_partition_presult::~ThriftHiveMetastore_add_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_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; @@ -7640,14 +6890,8 @@ uint32_t ThriftHiveMetastore_add_partition_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_args::~ThriftHiveMetastore_add_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_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; @@ -7696,7 +6940,6 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::read(: uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7712,14 +6955,8 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::write( return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_pargs::~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7735,14 +6972,8 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_pargs::write return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_result::~ThriftHiveMetastore_add_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_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; @@ -7833,14 +7064,8 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_result::writ return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_presult::~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_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; @@ -7903,14 +7128,8 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_presult::rea return xfer; } - -ThriftHiveMetastore_add_partitions_args::~ThriftHiveMetastore_add_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_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; @@ -7933,14 +7152,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size871; - ::apache::thrift::protocol::TType _etype874; - xfer += iprot->readListBegin(_etype874, _size871); - this->new_parts.resize(_size871); - uint32_t _i875; - for (_i875 = 0; _i875 < _size871; ++_i875) + uint32_t _size629; + ::apache::thrift::protocol::TType _etype632; + xfer += iprot->readListBegin(_etype632, _size629); + this->new_parts.resize(_size629); + uint32_t _i633; + for (_i633 = 0; _i633 < _size629; ++_i633) { - xfer += this->new_parts[_i875].read(iprot); + xfer += this->new_parts[_i633].read(iprot); } xfer += iprot->readListEnd(); } @@ -7963,16 +7182,15 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_args"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter876; - for (_iter876 = this->new_parts.begin(); _iter876 != this->new_parts.end(); ++_iter876) + std::vector ::const_iterator _iter634; + for (_iter634 = this->new_parts.begin(); _iter634 != this->new_parts.end(); ++_iter634) { - xfer += (*_iter876).write(oprot); + xfer += (*_iter634).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7983,23 +7201,17 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_add_partitions_pargs::~ThriftHiveMetastore_add_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pargs"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter877; - for (_iter877 = (*(this->new_parts)).begin(); _iter877 != (*(this->new_parts)).end(); ++_iter877) + std::vector ::const_iterator _iter635; + for (_iter635 = (*(this->new_parts)).begin(); _iter635 != (*(this->new_parts)).end(); ++_iter635) { - xfer += (*_iter877).write(oprot); + xfer += (*_iter635).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8010,14 +7222,8 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_add_partitions_result::~ThriftHiveMetastore_add_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_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; @@ -8108,14 +7314,8 @@ uint32_t ThriftHiveMetastore_add_partitions_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_add_partitions_presult::~ThriftHiveMetastore_add_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_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; @@ -8178,14 +7378,8 @@ uint32_t ThriftHiveMetastore_add_partitions_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_args::~ThriftHiveMetastore_add_partitions_pspec_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_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; @@ -8208,14 +7402,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size878; - ::apache::thrift::protocol::TType _etype881; - xfer += iprot->readListBegin(_etype881, _size878); - this->new_parts.resize(_size878); - uint32_t _i882; - for (_i882 = 0; _i882 < _size878; ++_i882) + uint32_t _size636; + ::apache::thrift::protocol::TType _etype639; + xfer += iprot->readListBegin(_etype639, _size636); + this->new_parts.resize(_size636); + uint32_t _i640; + for (_i640 = 0; _i640 < _size636; ++_i640) { - xfer += this->new_parts[_i882].read(iprot); + xfer += this->new_parts[_i640].read(iprot); } xfer += iprot->readListEnd(); } @@ -8238,16 +7432,15 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pspec_args"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter883; - for (_iter883 = this->new_parts.begin(); _iter883 != this->new_parts.end(); ++_iter883) + std::vector ::const_iterator _iter641; + for (_iter641 = this->new_parts.begin(); _iter641 != this->new_parts.end(); ++_iter641) { - xfer += (*_iter883).write(oprot); + xfer += (*_iter641).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8258,23 +7451,17 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_pargs::~ThriftHiveMetastore_add_partitions_pspec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pspec_pargs"); xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter884; - for (_iter884 = (*(this->new_parts)).begin(); _iter884 != (*(this->new_parts)).end(); ++_iter884) + std::vector ::const_iterator _iter642; + for (_iter642 = (*(this->new_parts)).begin(); _iter642 != (*(this->new_parts)).end(); ++_iter642) { - xfer += (*_iter884).write(oprot); + xfer += (*_iter642).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8285,14 +7472,8 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_result::~ThriftHiveMetastore_add_partitions_pspec_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_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; @@ -8383,14 +7564,8 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_presult::~ThriftHiveMetastore_add_partitions_pspec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_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; @@ -8453,14 +7628,8 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_append_partition_args::~ThriftHiveMetastore_append_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_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; @@ -8499,14 +7668,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size885; - ::apache::thrift::protocol::TType _etype888; - xfer += iprot->readListBegin(_etype888, _size885); - this->part_vals.resize(_size885); - uint32_t _i889; - for (_i889 = 0; _i889 < _size885; ++_i889) + uint32_t _size643; + ::apache::thrift::protocol::TType _etype646; + xfer += iprot->readListBegin(_etype646, _size643); + this->part_vals.resize(_size643); + uint32_t _i647; + for (_i647 = 0; _i647 < _size643; ++_i647) { - xfer += iprot->readString(this->part_vals[_i889]); + xfer += iprot->readString(this->part_vals[_i647]); } xfer += iprot->readListEnd(); } @@ -8529,7 +7698,6 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8543,10 +7711,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter890; - for (_iter890 = this->part_vals.begin(); _iter890 != this->part_vals.end(); ++_iter890) + std::vector ::const_iterator _iter648; + for (_iter648 = this->part_vals.begin(); _iter648 != this->part_vals.end(); ++_iter648) { - xfer += oprot->writeString((*_iter890)); + xfer += oprot->writeString((*_iter648)); } xfer += oprot->writeListEnd(); } @@ -8557,14 +7725,8 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_append_partition_pargs::~ThriftHiveMetastore_append_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8578,10 +7740,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter891; - for (_iter891 = (*(this->part_vals)).begin(); _iter891 != (*(this->part_vals)).end(); ++_iter891) + std::vector ::const_iterator _iter649; + for (_iter649 = (*(this->part_vals)).begin(); _iter649 != (*(this->part_vals)).end(); ++_iter649) { - xfer += oprot->writeString((*_iter891)); + xfer += oprot->writeString((*_iter649)); } xfer += oprot->writeListEnd(); } @@ -8592,14 +7754,8 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_append_partition_result::~ThriftHiveMetastore_append_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_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; @@ -8690,14 +7846,8 @@ uint32_t ThriftHiveMetastore_append_partition_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_append_partition_presult::~ThriftHiveMetastore_append_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_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; @@ -8760,14 +7910,8 @@ uint32_t ThriftHiveMetastore_append_partition_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_add_partitions_req_args::~ThriftHiveMetastore_add_partitions_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_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; @@ -8808,7 +7952,6 @@ uint32_t ThriftHiveMetastore_add_partitions_req_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_add_partitions_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8820,14 +7963,8 @@ uint32_t ThriftHiveMetastore_add_partitions_req_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_add_partitions_req_pargs::~ThriftHiveMetastore_add_partitions_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8839,14 +7976,8 @@ uint32_t ThriftHiveMetastore_add_partitions_req_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_add_partitions_req_result::~ThriftHiveMetastore_add_partitions_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_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; @@ -8937,14 +8068,214 @@ uint32_t ThriftHiveMetastore_add_partitions_req_result::write(::apache::thrift:: return xfer; } +uint32_t ThriftHiveMetastore_add_partitions_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { -ThriftHiveMetastore_add_partitions_req_presult::~ThriftHiveMetastore_add_partitions_req_presult() throw() { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t ThriftHiveMetastore_add_partitions_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->part_vals.clear(); + uint32_t _size650; + ::apache::thrift::protocol::TType _etype653; + xfer += iprot->readListBegin(_etype653, _size650); + this->part_vals.resize(_size650); + uint32_t _i654; + for (_i654 = 0; _i654 < _size650; ++_i654) + { + xfer += iprot->readString(this->part_vals[_i654]); + } + xfer += iprot->readListEnd(); + } + this->__isset.part_vals = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->environment_context.read(iprot); + this->__isset.environment_context = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_args"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); + std::vector ::const_iterator _iter655; + for (_iter655 = this->part_vals.begin(); _iter655 != this->part_vals.end(); ++_iter655) + { + xfer += oprot->writeString((*_iter655)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->environment_context.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_pargs"); + + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); + std::vector ::const_iterator _iter656; + for (_iter656 = (*(this->part_vals)).begin(); _iter656 != (*(this->part_vals)).end(); ++_iter656) + { + xfer += oprot->writeString((*_iter656)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += (*(this->environment_context)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_with_environment_context_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; @@ -8965,232 +8296,7 @@ uint32_t ThriftHiveMetastore_add_partitions_req_presult::read(::apache::thrift:: { case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_append_partition_with_environment_context_args::~ThriftHiveMetastore_append_partition_with_environment_context_args() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_with_environment_context_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_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->part_vals.clear(); - uint32_t _size892; - ::apache::thrift::protocol::TType _etype895; - xfer += iprot->readListBegin(_etype895, _size892); - this->part_vals.resize(_size892); - uint32_t _i896; - for (_i896 = 0; _i896 < _size892; ++_i896) - { - xfer += iprot->readString(this->part_vals[_i896]); - } - xfer += iprot->readListEnd(); - } - this->__isset.part_vals = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->environment_context.read(iprot); - this->__isset.environment_context = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter897; - for (_iter897 = this->part_vals.begin(); _iter897 != this->part_vals.end(); ++_iter897) - { - xfer += oprot->writeString((*_iter897)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->environment_context.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_append_partition_with_environment_context_pargs::~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter898; - for (_iter898 = (*(this->part_vals)).begin(); _iter898 != (*(this->part_vals)).end(); ++_iter898) - { - xfer += oprot->writeString((*_iter898)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += (*(this->environment_context)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_append_partition_with_environment_context_result::~ThriftHiveMetastore_append_partition_with_environment_context_result() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_with_environment_context_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 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -9260,14 +8366,8 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_result::w return xfer; } - -ThriftHiveMetastore_append_partition_with_environment_context_presult::~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_with_environment_context_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; @@ -9330,14 +8430,8 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_presult:: return xfer; } - -ThriftHiveMetastore_append_partition_by_name_args::~ThriftHiveMetastore_append_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_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; @@ -9394,7 +8488,6 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_args::read(::apache::thrif uint32_t ThriftHiveMetastore_append_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9414,14 +8507,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_append_partition_by_name_pargs::~ThriftHiveMetastore_append_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9441,14 +8528,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_append_partition_by_name_result::~ThriftHiveMetastore_append_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_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; @@ -9539,14 +8620,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_append_partition_by_name_presult::~ThriftHiveMetastore_append_partition_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_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; @@ -9609,14 +8684,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_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; @@ -9681,7 +8750,6 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_a uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9705,14 +8773,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_a return xfer; } - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9736,14 +8798,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_p return xfer; } - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_result::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_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; @@ -9834,14 +8890,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_r return xfer; } - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_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; @@ -9904,14 +8954,8 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_p return xfer; } - -ThriftHiveMetastore_drop_partition_args::~ThriftHiveMetastore_drop_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_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; @@ -9950,14 +8994,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size899; - ::apache::thrift::protocol::TType _etype902; - xfer += iprot->readListBegin(_etype902, _size899); - this->part_vals.resize(_size899); - uint32_t _i903; - for (_i903 = 0; _i903 < _size899; ++_i903) + uint32_t _size657; + ::apache::thrift::protocol::TType _etype660; + xfer += iprot->readListBegin(_etype660, _size657); + this->part_vals.resize(_size657); + uint32_t _i661; + for (_i661 = 0; _i661 < _size657; ++_i661) { - xfer += iprot->readString(this->part_vals[_i903]); + xfer += iprot->readString(this->part_vals[_i661]); } xfer += iprot->readListEnd(); } @@ -9988,7 +9032,6 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10002,10 +9045,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter904; - for (_iter904 = this->part_vals.begin(); _iter904 != this->part_vals.end(); ++_iter904) + std::vector ::const_iterator _iter662; + for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) { - xfer += oprot->writeString((*_iter904)); + xfer += oprot->writeString((*_iter662)); } xfer += oprot->writeListEnd(); } @@ -10020,14 +9063,8 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_drop_partition_pargs::~ThriftHiveMetastore_drop_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10041,10 +9078,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter905; - for (_iter905 = (*(this->part_vals)).begin(); _iter905 != (*(this->part_vals)).end(); ++_iter905) + std::vector ::const_iterator _iter663; + for (_iter663 = (*(this->part_vals)).begin(); _iter663 != (*(this->part_vals)).end(); ++_iter663) { - xfer += oprot->writeString((*_iter905)); + xfer += oprot->writeString((*_iter663)); } xfer += oprot->writeListEnd(); } @@ -10059,14 +9096,8 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_drop_partition_result::~ThriftHiveMetastore_drop_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_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; @@ -10145,14 +9176,8 @@ uint32_t ThriftHiveMetastore_drop_partition_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_drop_partition_presult::~ThriftHiveMetastore_drop_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_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; @@ -10207,14 +9232,8 @@ uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_args::~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_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; @@ -10253,14 +9272,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size906; - ::apache::thrift::protocol::TType _etype909; - xfer += iprot->readListBegin(_etype909, _size906); - this->part_vals.resize(_size906); - uint32_t _i910; - for (_i910 = 0; _i910 < _size906; ++_i910) + uint32_t _size664; + ::apache::thrift::protocol::TType _etype667; + xfer += iprot->readListBegin(_etype667, _size664); + this->part_vals.resize(_size664); + uint32_t _i668; + for (_i668 = 0; _i668 < _size664; ++_i668) { - xfer += iprot->readString(this->part_vals[_i910]); + xfer += iprot->readString(this->part_vals[_i668]); } xfer += iprot->readListEnd(); } @@ -10299,7 +9318,6 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10313,10 +9331,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter911; - for (_iter911 = this->part_vals.begin(); _iter911 != this->part_vals.end(); ++_iter911) + std::vector ::const_iterator _iter669; + for (_iter669 = this->part_vals.begin(); _iter669 != this->part_vals.end(); ++_iter669) { - xfer += oprot->writeString((*_iter911)); + xfer += oprot->writeString((*_iter669)); } xfer += oprot->writeListEnd(); } @@ -10335,14 +9353,8 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_pargs::~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10356,10 +9368,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter912; - for (_iter912 = (*(this->part_vals)).begin(); _iter912 != (*(this->part_vals)).end(); ++_iter912) + std::vector ::const_iterator _iter670; + for (_iter670 = (*(this->part_vals)).begin(); _iter670 != (*(this->part_vals)).end(); ++_iter670) { - xfer += oprot->writeString((*_iter912)); + xfer += oprot->writeString((*_iter670)); } xfer += oprot->writeListEnd(); } @@ -10378,14 +9390,8 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_result::~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_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; @@ -10464,14 +9470,8 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::wri return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_presult::~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_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; @@ -10526,14 +9526,8 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_presult::re return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_args::~ThriftHiveMetastore_drop_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_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; @@ -10598,7 +9592,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_drop_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10622,14 +9615,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_pargs::~ThriftHiveMetastore_drop_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10653,14 +9640,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_result::~ThriftHiveMetastore_drop_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_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; @@ -10739,14 +9720,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_presult::~ThriftHiveMetastore_drop_partition_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_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; @@ -10801,14 +9776,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_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; @@ -10881,7 +9850,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_arg uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10909,14 +9877,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_arg return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10944,14 +9906,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_par return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_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; @@ -11030,14 +9986,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_res return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_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; @@ -11092,14 +10042,8 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pre return xfer; } - -ThriftHiveMetastore_drop_partitions_req_args::~ThriftHiveMetastore_drop_partitions_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_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; @@ -11140,7 +10084,6 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_drop_partitions_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_req_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -11152,14 +10095,8 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_drop_partitions_req_pargs::~ThriftHiveMetastore_drop_partitions_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_req_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -11171,14 +10108,8 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_drop_partitions_req_result::~ThriftHiveMetastore_drop_partitions_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_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; @@ -11257,14 +10188,8 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_drop_partitions_req_presult::~ThriftHiveMetastore_drop_partitions_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_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; @@ -11319,14 +10244,8 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_args::~ThriftHiveMetastore_get_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_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; @@ -11365,14 +10284,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size913; - ::apache::thrift::protocol::TType _etype916; - xfer += iprot->readListBegin(_etype916, _size913); - this->part_vals.resize(_size913); - uint32_t _i917; - for (_i917 = 0; _i917 < _size913; ++_i917) + uint32_t _size671; + ::apache::thrift::protocol::TType _etype674; + xfer += iprot->readListBegin(_etype674, _size671); + this->part_vals.resize(_size671); + uint32_t _i675; + for (_i675 = 0; _i675 < _size671; ++_i675) { - xfer += iprot->readString(this->part_vals[_i917]); + xfer += iprot->readString(this->part_vals[_i675]); } xfer += iprot->readListEnd(); } @@ -11395,7 +10314,6 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11409,10 +10327,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter918; - for (_iter918 = this->part_vals.begin(); _iter918 != this->part_vals.end(); ++_iter918) + std::vector ::const_iterator _iter676; + for (_iter676 = this->part_vals.begin(); _iter676 != this->part_vals.end(); ++_iter676) { - xfer += oprot->writeString((*_iter918)); + xfer += oprot->writeString((*_iter676)); } xfer += oprot->writeListEnd(); } @@ -11423,14 +10341,8 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_partition_pargs::~ThriftHiveMetastore_get_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11444,10 +10356,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter919; - for (_iter919 = (*(this->part_vals)).begin(); _iter919 != (*(this->part_vals)).end(); ++_iter919) + std::vector ::const_iterator _iter677; + for (_iter677 = (*(this->part_vals)).begin(); _iter677 != (*(this->part_vals)).end(); ++_iter677) { - xfer += oprot->writeString((*_iter919)); + xfer += oprot->writeString((*_iter677)); } xfer += oprot->writeListEnd(); } @@ -11458,14 +10370,8 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_partition_result::~ThriftHiveMetastore_get_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_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; @@ -11544,14 +10450,8 @@ uint32_t ThriftHiveMetastore_get_partition_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_partition_presult::~ThriftHiveMetastore_get_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_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; @@ -11606,14 +10506,8 @@ uint32_t ThriftHiveMetastore_get_partition_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_exchange_partition_args::~ThriftHiveMetastore_exchange_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_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; @@ -11636,17 +10530,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size920; - ::apache::thrift::protocol::TType _ktype921; - ::apache::thrift::protocol::TType _vtype922; - xfer += iprot->readMapBegin(_ktype921, _vtype922, _size920); - uint32_t _i924; - for (_i924 = 0; _i924 < _size920; ++_i924) + uint32_t _size678; + ::apache::thrift::protocol::TType _ktype679; + ::apache::thrift::protocol::TType _vtype680; + xfer += iprot->readMapBegin(_ktype679, _vtype680, _size678); + uint32_t _i682; + for (_i682 = 0; _i682 < _size678; ++_i682) { - std::string _key925; - xfer += iprot->readString(_key925); - std::string& _val926 = this->partitionSpecs[_key925]; - xfer += iprot->readString(_val926); + std::string _key683; + xfer += iprot->readString(_key683); + std::string& _val684 = this->partitionSpecs[_key683]; + xfer += iprot->readString(_val684); } xfer += iprot->readMapEnd(); } @@ -11701,17 +10595,16 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partition_args"); xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter927; - for (_iter927 = this->partitionSpecs.begin(); _iter927 != this->partitionSpecs.end(); ++_iter927) + std::map ::const_iterator _iter685; + for (_iter685 = this->partitionSpecs.begin(); _iter685 != this->partitionSpecs.end(); ++_iter685) { - xfer += oprot->writeString(_iter927->first); - xfer += oprot->writeString(_iter927->second); + xfer += oprot->writeString(_iter685->first); + xfer += oprot->writeString(_iter685->second); } xfer += oprot->writeMapEnd(); } @@ -11738,24 +10631,18 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_exchange_partition_pargs::~ThriftHiveMetastore_exchange_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partition_pargs"); xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter928; - for (_iter928 = (*(this->partitionSpecs)).begin(); _iter928 != (*(this->partitionSpecs)).end(); ++_iter928) + std::map ::const_iterator _iter686; + for (_iter686 = (*(this->partitionSpecs)).begin(); _iter686 != (*(this->partitionSpecs)).end(); ++_iter686) { - xfer += oprot->writeString(_iter928->first); - xfer += oprot->writeString(_iter928->second); + xfer += oprot->writeString(_iter686->first); + xfer += oprot->writeString(_iter686->second); } xfer += oprot->writeMapEnd(); } @@ -11782,14 +10669,8 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_exchange_partition_result::~ThriftHiveMetastore_exchange_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_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; @@ -11892,14 +10773,8 @@ uint32_t ThriftHiveMetastore_exchange_partition_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_exchange_partition_presult::~ThriftHiveMetastore_exchange_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_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; @@ -11970,14 +10845,8 @@ uint32_t ThriftHiveMetastore_exchange_partition_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_exchange_partitions_args::~ThriftHiveMetastore_exchange_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partitions_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; @@ -12000,17 +10869,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size929; - ::apache::thrift::protocol::TType _ktype930; - ::apache::thrift::protocol::TType _vtype931; - xfer += iprot->readMapBegin(_ktype930, _vtype931, _size929); - uint32_t _i933; - for (_i933 = 0; _i933 < _size929; ++_i933) + uint32_t _size687; + ::apache::thrift::protocol::TType _ktype688; + ::apache::thrift::protocol::TType _vtype689; + xfer += iprot->readMapBegin(_ktype688, _vtype689, _size687); + uint32_t _i691; + for (_i691 = 0; _i691 < _size687; ++_i691) { - std::string _key934; - xfer += iprot->readString(_key934); - std::string& _val935 = this->partitionSpecs[_key934]; - xfer += iprot->readString(_val935); + std::string _key692; + xfer += iprot->readString(_key692); + std::string& _val693 = this->partitionSpecs[_key692]; + xfer += iprot->readString(_val693); } xfer += iprot->readMapEnd(); } @@ -12065,17 +10934,16 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partitions_args"); xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter936; - for (_iter936 = this->partitionSpecs.begin(); _iter936 != this->partitionSpecs.end(); ++_iter936) + std::map ::const_iterator _iter694; + for (_iter694 = this->partitionSpecs.begin(); _iter694 != this->partitionSpecs.end(); ++_iter694) { - xfer += oprot->writeString(_iter936->first); - xfer += oprot->writeString(_iter936->second); + xfer += oprot->writeString(_iter694->first); + xfer += oprot->writeString(_iter694->second); } xfer += oprot->writeMapEnd(); } @@ -12102,24 +10970,18 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_exchange_partitions_pargs::~ThriftHiveMetastore_exchange_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partitions_pargs"); xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter937; - for (_iter937 = (*(this->partitionSpecs)).begin(); _iter937 != (*(this->partitionSpecs)).end(); ++_iter937) + std::map ::const_iterator _iter695; + for (_iter695 = (*(this->partitionSpecs)).begin(); _iter695 != (*(this->partitionSpecs)).end(); ++_iter695) { - xfer += oprot->writeString(_iter937->first); - xfer += oprot->writeString(_iter937->second); + xfer += oprot->writeString(_iter695->first); + xfer += oprot->writeString(_iter695->second); } xfer += oprot->writeMapEnd(); } @@ -12146,14 +11008,8 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_exchange_partitions_result::~ThriftHiveMetastore_exchange_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partitions_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; @@ -12176,14 +11032,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size938; - ::apache::thrift::protocol::TType _etype941; - xfer += iprot->readListBegin(_etype941, _size938); - this->success.resize(_size938); - uint32_t _i942; - for (_i942 = 0; _i942 < _size938; ++_i942) + uint32_t _size696; + ::apache::thrift::protocol::TType _etype699; + xfer += iprot->readListBegin(_etype699, _size696); + this->success.resize(_size696); + uint32_t _i700; + for (_i700 = 0; _i700 < _size696; ++_i700) { - xfer += this->success[_i942].read(iprot); + xfer += this->success[_i700].read(iprot); } xfer += iprot->readListEnd(); } @@ -12246,10 +11102,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter943; - for (_iter943 = this->success.begin(); _iter943 != this->success.end(); ++_iter943) + std::vector ::const_iterator _iter701; + for (_iter701 = this->success.begin(); _iter701 != this->success.end(); ++_iter701) { - xfer += (*_iter943).write(oprot); + xfer += (*_iter701).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12276,14 +11132,8 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_exchange_partitions_presult::~ThriftHiveMetastore_exchange_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partitions_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; @@ -12306,14 +11156,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size944; - ::apache::thrift::protocol::TType _etype947; - xfer += iprot->readListBegin(_etype947, _size944); - (*(this->success)).resize(_size944); - uint32_t _i948; - for (_i948 = 0; _i948 < _size944; ++_i948) + uint32_t _size702; + ::apache::thrift::protocol::TType _etype705; + xfer += iprot->readListBegin(_etype705, _size702); + (*(this->success)).resize(_size702); + uint32_t _i706; + for (_i706 = 0; _i706 < _size702; ++_i706) { - xfer += (*(this->success))[_i948].read(iprot); + xfer += (*(this->success))[_i706].read(iprot); } xfer += iprot->readListEnd(); } @@ -12366,14 +11216,8 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_args::~ThriftHiveMetastore_get_partition_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_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; @@ -12412,14 +11256,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size949; - ::apache::thrift::protocol::TType _etype952; - xfer += iprot->readListBegin(_etype952, _size949); - this->part_vals.resize(_size949); - uint32_t _i953; - for (_i953 = 0; _i953 < _size949; ++_i953) + uint32_t _size707; + ::apache::thrift::protocol::TType _etype710; + xfer += iprot->readListBegin(_etype710, _size707); + this->part_vals.resize(_size707); + uint32_t _i711; + for (_i711 = 0; _i711 < _size707; ++_i711) { - xfer += iprot->readString(this->part_vals[_i953]); + xfer += iprot->readString(this->part_vals[_i711]); } xfer += iprot->readListEnd(); } @@ -12440,14 +11284,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size954; - ::apache::thrift::protocol::TType _etype957; - xfer += iprot->readListBegin(_etype957, _size954); - this->group_names.resize(_size954); - uint32_t _i958; - for (_i958 = 0; _i958 < _size954; ++_i958) + uint32_t _size712; + ::apache::thrift::protocol::TType _etype715; + xfer += iprot->readListBegin(_etype715, _size712); + this->group_names.resize(_size712); + uint32_t _i716; + for (_i716 = 0; _i716 < _size712; ++_i716) { - xfer += iprot->readString(this->group_names[_i958]); + xfer += iprot->readString(this->group_names[_i716]); } xfer += iprot->readListEnd(); } @@ -12470,7 +11314,6 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12484,10 +11327,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter959; - for (_iter959 = this->part_vals.begin(); _iter959 != this->part_vals.end(); ++_iter959) + std::vector ::const_iterator _iter717; + for (_iter717 = this->part_vals.begin(); _iter717 != this->part_vals.end(); ++_iter717) { - xfer += oprot->writeString((*_iter959)); + xfer += oprot->writeString((*_iter717)); } xfer += oprot->writeListEnd(); } @@ -12500,10 +11343,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter960; - for (_iter960 = this->group_names.begin(); _iter960 != this->group_names.end(); ++_iter960) + std::vector ::const_iterator _iter718; + for (_iter718 = this->group_names.begin(); _iter718 != this->group_names.end(); ++_iter718) { - xfer += oprot->writeString((*_iter960)); + xfer += oprot->writeString((*_iter718)); } xfer += oprot->writeListEnd(); } @@ -12514,14 +11357,8 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_pargs::~ThriftHiveMetastore_get_partition_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12535,10 +11372,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter961; - for (_iter961 = (*(this->part_vals)).begin(); _iter961 != (*(this->part_vals)).end(); ++_iter961) + std::vector ::const_iterator _iter719; + for (_iter719 = (*(this->part_vals)).begin(); _iter719 != (*(this->part_vals)).end(); ++_iter719) { - xfer += oprot->writeString((*_iter961)); + xfer += oprot->writeString((*_iter719)); } xfer += oprot->writeListEnd(); } @@ -12551,10 +11388,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter962; - for (_iter962 = (*(this->group_names)).begin(); _iter962 != (*(this->group_names)).end(); ++_iter962) + std::vector ::const_iterator _iter720; + for (_iter720 = (*(this->group_names)).begin(); _iter720 != (*(this->group_names)).end(); ++_iter720) { - xfer += oprot->writeString((*_iter962)); + xfer += oprot->writeString((*_iter720)); } xfer += oprot->writeListEnd(); } @@ -12565,14 +11402,8 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_result::~ThriftHiveMetastore_get_partition_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_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; @@ -12651,14 +11482,8 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_presult::~ThriftHiveMetastore_get_partition_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_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; @@ -12713,14 +11538,8 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partition_by_name_args::~ThriftHiveMetastore_get_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_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; @@ -12777,7 +11596,6 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12797,14 +11615,8 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_by_name_pargs::~ThriftHiveMetastore_get_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12824,14 +11636,8 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partition_by_name_result::~ThriftHiveMetastore_get_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_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; @@ -12910,14 +11716,8 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_result::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partition_by_name_presult::~ThriftHiveMetastore_get_partition_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_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; @@ -12972,14 +11772,8 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partitions_args::~ThriftHiveMetastore_get_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_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; @@ -13036,7 +11830,6 @@ uint32_t ThriftHiveMetastore_get_partitions_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13056,14 +11849,8 @@ uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_partitions_pargs::~ThriftHiveMetastore_get_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13083,14 +11870,8 @@ uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_partitions_result::~ThriftHiveMetastore_get_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_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; @@ -13113,14 +11894,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size963; - ::apache::thrift::protocol::TType _etype966; - xfer += iprot->readListBegin(_etype966, _size963); - this->success.resize(_size963); - uint32_t _i967; - for (_i967 = 0; _i967 < _size963; ++_i967) + uint32_t _size721; + ::apache::thrift::protocol::TType _etype724; + xfer += iprot->readListBegin(_etype724, _size721); + this->success.resize(_size721); + uint32_t _i725; + for (_i725 = 0; _i725 < _size721; ++_i725) { - xfer += this->success[_i967].read(iprot); + xfer += this->success[_i725].read(iprot); } xfer += iprot->readListEnd(); } @@ -13167,10 +11948,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter968; - for (_iter968 = this->success.begin(); _iter968 != this->success.end(); ++_iter968) + std::vector ::const_iterator _iter726; + for (_iter726 = this->success.begin(); _iter726 != this->success.end(); ++_iter726) { - xfer += (*_iter968).write(oprot); + xfer += (*_iter726).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13189,14 +11970,8 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_partitions_presult::~ThriftHiveMetastore_get_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_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; @@ -13219,14 +11994,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size969; - ::apache::thrift::protocol::TType _etype972; - xfer += iprot->readListBegin(_etype972, _size969); - (*(this->success)).resize(_size969); - uint32_t _i973; - for (_i973 = 0; _i973 < _size969; ++_i973) + uint32_t _size727; + ::apache::thrift::protocol::TType _etype730; + xfer += iprot->readListBegin(_etype730, _size727); + (*(this->success)).resize(_size727); + uint32_t _i731; + for (_i731 = 0; _i731 < _size727; ++_i731) { - xfer += (*(this->success))[_i973].read(iprot); + xfer += (*(this->success))[_i731].read(iprot); } xfer += iprot->readListEnd(); } @@ -13263,14 +12038,8 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_args::~ThriftHiveMetastore_get_partitions_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_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; @@ -13325,14 +12094,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size974; - ::apache::thrift::protocol::TType _etype977; - xfer += iprot->readListBegin(_etype977, _size974); - this->group_names.resize(_size974); - uint32_t _i978; - for (_i978 = 0; _i978 < _size974; ++_i978) + uint32_t _size732; + ::apache::thrift::protocol::TType _etype735; + xfer += iprot->readListBegin(_etype735, _size732); + this->group_names.resize(_size732); + uint32_t _i736; + for (_i736 = 0; _i736 < _size732; ++_i736) { - xfer += iprot->readString(this->group_names[_i978]); + xfer += iprot->readString(this->group_names[_i736]); } xfer += iprot->readListEnd(); } @@ -13355,7 +12124,6 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13377,10 +12145,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter979; - for (_iter979 = this->group_names.begin(); _iter979 != this->group_names.end(); ++_iter979) + std::vector ::const_iterator _iter737; + for (_iter737 = this->group_names.begin(); _iter737 != this->group_names.end(); ++_iter737) { - xfer += oprot->writeString((*_iter979)); + xfer += oprot->writeString((*_iter737)); } xfer += oprot->writeListEnd(); } @@ -13391,14 +12159,8 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_pargs::~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13420,10 +12182,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter980; - for (_iter980 = (*(this->group_names)).begin(); _iter980 != (*(this->group_names)).end(); ++_iter980) + std::vector ::const_iterator _iter738; + for (_iter738 = (*(this->group_names)).begin(); _iter738 != (*(this->group_names)).end(); ++_iter738) { - xfer += oprot->writeString((*_iter980)); + xfer += oprot->writeString((*_iter738)); } xfer += oprot->writeListEnd(); } @@ -13434,14 +12196,8 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_result::~ThriftHiveMetastore_get_partitions_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_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; @@ -13464,14 +12220,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size981; - ::apache::thrift::protocol::TType _etype984; - xfer += iprot->readListBegin(_etype984, _size981); - this->success.resize(_size981); - uint32_t _i985; - for (_i985 = 0; _i985 < _size981; ++_i985) + uint32_t _size739; + ::apache::thrift::protocol::TType _etype742; + xfer += iprot->readListBegin(_etype742, _size739); + this->success.resize(_size739); + uint32_t _i743; + for (_i743 = 0; _i743 < _size739; ++_i743) { - xfer += this->success[_i985].read(iprot); + xfer += this->success[_i743].read(iprot); } xfer += iprot->readListEnd(); } @@ -13518,10 +12274,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter986; - for (_iter986 = this->success.begin(); _iter986 != this->success.end(); ++_iter986) + std::vector ::const_iterator _iter744; + for (_iter744 = this->success.begin(); _iter744 != this->success.end(); ++_iter744) { - xfer += (*_iter986).write(oprot); + xfer += (*_iter744).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13540,14 +12296,8 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_presult::~ThriftHiveMetastore_get_partitions_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_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; @@ -13570,14 +12320,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size987; - ::apache::thrift::protocol::TType _etype990; - xfer += iprot->readListBegin(_etype990, _size987); - (*(this->success)).resize(_size987); - uint32_t _i991; - for (_i991 = 0; _i991 < _size987; ++_i991) + uint32_t _size745; + ::apache::thrift::protocol::TType _etype748; + xfer += iprot->readListBegin(_etype748, _size745); + (*(this->success)).resize(_size745); + uint32_t _i749; + for (_i749 = 0; _i749 < _size745; ++_i749) { - xfer += (*(this->success))[_i991].read(iprot); + xfer += (*(this->success))[_i749].read(iprot); } xfer += iprot->readListEnd(); } @@ -13614,14 +12364,8 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_args::~ThriftHiveMetastore_get_partitions_pspec_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_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; @@ -13678,7 +12422,6 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_get_partitions_pspec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pspec_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13698,14 +12441,8 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_args::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_pargs::~ThriftHiveMetastore_get_partitions_pspec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pspec_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13725,14 +12462,8 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_pargs::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_result::~ThriftHiveMetastore_get_partitions_pspec_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_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; @@ -13755,14 +12486,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size992; - ::apache::thrift::protocol::TType _etype995; - xfer += iprot->readListBegin(_etype995, _size992); - this->success.resize(_size992); - uint32_t _i996; - for (_i996 = 0; _i996 < _size992; ++_i996) + uint32_t _size750; + ::apache::thrift::protocol::TType _etype753; + xfer += iprot->readListBegin(_etype753, _size750); + this->success.resize(_size750); + uint32_t _i754; + for (_i754 = 0; _i754 < _size750; ++_i754) { - xfer += this->success[_i996].read(iprot); + xfer += this->success[_i754].read(iprot); } xfer += iprot->readListEnd(); } @@ -13809,10 +12540,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter997; - for (_iter997 = this->success.begin(); _iter997 != this->success.end(); ++_iter997) + std::vector ::const_iterator _iter755; + for (_iter755 = this->success.begin(); _iter755 != this->success.end(); ++_iter755) { - xfer += (*_iter997).write(oprot); + xfer += (*_iter755).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13831,14 +12562,8 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_presult::~ThriftHiveMetastore_get_partitions_pspec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_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; @@ -13861,14 +12586,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size998; - ::apache::thrift::protocol::TType _etype1001; - xfer += iprot->readListBegin(_etype1001, _size998); - (*(this->success)).resize(_size998); - uint32_t _i1002; - for (_i1002 = 0; _i1002 < _size998; ++_i1002) + uint32_t _size756; + ::apache::thrift::protocol::TType _etype759; + xfer += iprot->readListBegin(_etype759, _size756); + (*(this->success)).resize(_size756); + uint32_t _i760; + for (_i760 = 0; _i760 < _size756; ++_i760) { - xfer += (*(this->success))[_i1002].read(iprot); + xfer += (*(this->success))[_i760].read(iprot); } xfer += iprot->readListEnd(); } @@ -13905,14 +12630,8 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partition_names_args::~ThriftHiveMetastore_get_partition_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_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; @@ -13969,7 +12688,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13989,14 +12707,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_partition_names_pargs::~ThriftHiveMetastore_get_partition_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14016,14 +12728,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_partition_names_result::~ThriftHiveMetastore_get_partition_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_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; @@ -14046,14 +12752,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1003; - ::apache::thrift::protocol::TType _etype1006; - xfer += iprot->readListBegin(_etype1006, _size1003); - this->success.resize(_size1003); - uint32_t _i1007; - for (_i1007 = 0; _i1007 < _size1003; ++_i1007) + uint32_t _size761; + ::apache::thrift::protocol::TType _etype764; + xfer += iprot->readListBegin(_etype764, _size761); + this->success.resize(_size761); + uint32_t _i765; + for (_i765 = 0; _i765 < _size761; ++_i765) { - xfer += iprot->readString(this->success[_i1007]); + xfer += iprot->readString(this->success[_i765]); } xfer += iprot->readListEnd(); } @@ -14092,10 +12798,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1008; - for (_iter1008 = this->success.begin(); _iter1008 != this->success.end(); ++_iter1008) + std::vector ::const_iterator _iter766; + for (_iter766 = this->success.begin(); _iter766 != this->success.end(); ++_iter766) { - xfer += oprot->writeString((*_iter1008)); + xfer += oprot->writeString((*_iter766)); } xfer += oprot->writeListEnd(); } @@ -14110,14 +12816,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_names_presult::~ThriftHiveMetastore_get_partition_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_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; @@ -14140,14 +12840,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1009; - ::apache::thrift::protocol::TType _etype1012; - xfer += iprot->readListBegin(_etype1012, _size1009); - (*(this->success)).resize(_size1009); - uint32_t _i1013; - for (_i1013 = 0; _i1013 < _size1009; ++_i1013) + uint32_t _size767; + ::apache::thrift::protocol::TType _etype770; + xfer += iprot->readListBegin(_etype770, _size767); + (*(this->success)).resize(_size767); + uint32_t _i771; + for (_i771 = 0; _i771 < _size767; ++_i771) { - xfer += iprot->readString((*(this->success))[_i1013]); + xfer += iprot->readString((*(this->success))[_i771]); } xfer += iprot->readListEnd(); } @@ -14176,14 +12876,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partitions_ps_args::~ThriftHiveMetastore_get_partitions_ps_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_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; @@ -14222,14 +12916,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1014; - ::apache::thrift::protocol::TType _etype1017; - xfer += iprot->readListBegin(_etype1017, _size1014); - this->part_vals.resize(_size1014); - uint32_t _i1018; - for (_i1018 = 0; _i1018 < _size1014; ++_i1018) + uint32_t _size772; + ::apache::thrift::protocol::TType _etype775; + xfer += iprot->readListBegin(_etype775, _size772); + this->part_vals.resize(_size772); + uint32_t _i776; + for (_i776 = 0; _i776 < _size772; ++_i776) { - xfer += iprot->readString(this->part_vals[_i1018]); + xfer += iprot->readString(this->part_vals[_i776]); } xfer += iprot->readListEnd(); } @@ -14260,7 +12954,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14274,10 +12967,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1019; - for (_iter1019 = this->part_vals.begin(); _iter1019 != this->part_vals.end(); ++_iter1019) + std::vector ::const_iterator _iter777; + for (_iter777 = this->part_vals.begin(); _iter777 != this->part_vals.end(); ++_iter777) { - xfer += oprot->writeString((*_iter1019)); + xfer += oprot->writeString((*_iter777)); } xfer += oprot->writeListEnd(); } @@ -14292,14 +12985,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_partitions_ps_pargs::~ThriftHiveMetastore_get_partitions_ps_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14313,10 +13000,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1020; - for (_iter1020 = (*(this->part_vals)).begin(); _iter1020 != (*(this->part_vals)).end(); ++_iter1020) + std::vector ::const_iterator _iter778; + for (_iter778 = (*(this->part_vals)).begin(); _iter778 != (*(this->part_vals)).end(); ++_iter778) { - xfer += oprot->writeString((*_iter1020)); + xfer += oprot->writeString((*_iter778)); } xfer += oprot->writeListEnd(); } @@ -14331,14 +13018,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_partitions_ps_result::~ThriftHiveMetastore_get_partitions_ps_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_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; @@ -14361,14 +13042,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->success.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size779; + ::apache::thrift::protocol::TType _etype782; + xfer += iprot->readListBegin(_etype782, _size779); + this->success.resize(_size779); + uint32_t _i783; + for (_i783 = 0; _i783 < _size779; ++_i783) { - xfer += this->success[_i1025].read(iprot); + xfer += this->success[_i783].read(iprot); } xfer += iprot->readListEnd(); } @@ -14415,10 +13096,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1026; - for (_iter1026 = this->success.begin(); _iter1026 != this->success.end(); ++_iter1026) + std::vector ::const_iterator _iter784; + for (_iter784 = this->success.begin(); _iter784 != this->success.end(); ++_iter784) { - xfer += (*_iter1026).write(oprot); + xfer += (*_iter784).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14437,14 +13118,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_partitions_ps_presult::~ThriftHiveMetastore_get_partitions_ps_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_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; @@ -14467,14 +13142,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1027; - ::apache::thrift::protocol::TType _etype1030; - xfer += iprot->readListBegin(_etype1030, _size1027); - (*(this->success)).resize(_size1027); - uint32_t _i1031; - for (_i1031 = 0; _i1031 < _size1027; ++_i1031) + uint32_t _size785; + ::apache::thrift::protocol::TType _etype788; + xfer += iprot->readListBegin(_etype788, _size785); + (*(this->success)).resize(_size785); + uint32_t _i789; + for (_i789 = 0; _i789 < _size785; ++_i789) { - xfer += (*(this->success))[_i1031].read(iprot); + xfer += (*(this->success))[_i789].read(iprot); } xfer += iprot->readListEnd(); } @@ -14511,14 +13186,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_args::~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_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; @@ -14557,14 +13226,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1032; - ::apache::thrift::protocol::TType _etype1035; - xfer += iprot->readListBegin(_etype1035, _size1032); - this->part_vals.resize(_size1032); - uint32_t _i1036; - for (_i1036 = 0; _i1036 < _size1032; ++_i1036) + uint32_t _size790; + ::apache::thrift::protocol::TType _etype793; + xfer += iprot->readListBegin(_etype793, _size790); + this->part_vals.resize(_size790); + uint32_t _i794; + for (_i794 = 0; _i794 < _size790; ++_i794) { - xfer += iprot->readString(this->part_vals[_i1036]); + xfer += iprot->readString(this->part_vals[_i794]); } xfer += iprot->readListEnd(); } @@ -14593,14 +13262,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1037; - ::apache::thrift::protocol::TType _etype1040; - xfer += iprot->readListBegin(_etype1040, _size1037); - this->group_names.resize(_size1037); - uint32_t _i1041; - for (_i1041 = 0; _i1041 < _size1037; ++_i1041) + uint32_t _size795; + ::apache::thrift::protocol::TType _etype798; + xfer += iprot->readListBegin(_etype798, _size795); + this->group_names.resize(_size795); + uint32_t _i799; + for (_i799 = 0; _i799 < _size795; ++_i799) { - xfer += iprot->readString(this->group_names[_i1041]); + xfer += iprot->readString(this->group_names[_i799]); } xfer += iprot->readListEnd(); } @@ -14623,7 +13292,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14637,10 +13305,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1042; - for (_iter1042 = this->part_vals.begin(); _iter1042 != this->part_vals.end(); ++_iter1042) + std::vector ::const_iterator _iter800; + for (_iter800 = this->part_vals.begin(); _iter800 != this->part_vals.end(); ++_iter800) { - xfer += oprot->writeString((*_iter1042)); + xfer += oprot->writeString((*_iter800)); } xfer += oprot->writeListEnd(); } @@ -14657,10 +13325,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1043; - for (_iter1043 = this->group_names.begin(); _iter1043 != this->group_names.end(); ++_iter1043) + std::vector ::const_iterator _iter801; + for (_iter801 = this->group_names.begin(); _iter801 != this->group_names.end(); ++_iter801) { - xfer += oprot->writeString((*_iter1043)); + xfer += oprot->writeString((*_iter801)); } xfer += oprot->writeListEnd(); } @@ -14671,14 +13339,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14692,10 +13354,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1044; - for (_iter1044 = (*(this->part_vals)).begin(); _iter1044 != (*(this->part_vals)).end(); ++_iter1044) + std::vector ::const_iterator _iter802; + for (_iter802 = (*(this->part_vals)).begin(); _iter802 != (*(this->part_vals)).end(); ++_iter802) { - xfer += oprot->writeString((*_iter1044)); + xfer += oprot->writeString((*_iter802)); } xfer += oprot->writeListEnd(); } @@ -14712,10 +13374,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1045; - for (_iter1045 = (*(this->group_names)).begin(); _iter1045 != (*(this->group_names)).end(); ++_iter1045) + std::vector ::const_iterator _iter803; + for (_iter803 = (*(this->group_names)).begin(); _iter803 != (*(this->group_names)).end(); ++_iter803) { - xfer += oprot->writeString((*_iter1045)); + xfer += oprot->writeString((*_iter803)); } xfer += oprot->writeListEnd(); } @@ -14726,14 +13388,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_result::~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_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; @@ -14756,14 +13412,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1046; - ::apache::thrift::protocol::TType _etype1049; - xfer += iprot->readListBegin(_etype1049, _size1046); - this->success.resize(_size1046); - uint32_t _i1050; - for (_i1050 = 0; _i1050 < _size1046; ++_i1050) + uint32_t _size804; + ::apache::thrift::protocol::TType _etype807; + xfer += iprot->readListBegin(_etype807, _size804); + this->success.resize(_size804); + uint32_t _i808; + for (_i808 = 0; _i808 < _size804; ++_i808) { - xfer += this->success[_i1050].read(iprot); + xfer += this->success[_i808].read(iprot); } xfer += iprot->readListEnd(); } @@ -14810,10 +13466,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1051; - for (_iter1051 = this->success.begin(); _iter1051 != this->success.end(); ++_iter1051) + std::vector ::const_iterator _iter809; + for (_iter809 = this->success.begin(); _iter809 != this->success.end(); ++_iter809) { - xfer += (*_iter1051).write(oprot); + xfer += (*_iter809).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14832,14 +13488,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_presult::~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_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; @@ -14862,14 +13512,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1052; - ::apache::thrift::protocol::TType _etype1055; - xfer += iprot->readListBegin(_etype1055, _size1052); - (*(this->success)).resize(_size1052); - uint32_t _i1056; - for (_i1056 = 0; _i1056 < _size1052; ++_i1056) + uint32_t _size810; + ::apache::thrift::protocol::TType _etype813; + xfer += iprot->readListBegin(_etype813, _size810); + (*(this->success)).resize(_size810); + uint32_t _i814; + for (_i814 = 0; _i814 < _size810; ++_i814) { - xfer += (*(this->success))[_i1056].read(iprot); + xfer += (*(this->success))[_i814].read(iprot); } xfer += iprot->readListEnd(); } @@ -14906,14 +13556,8 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_args::~ThriftHiveMetastore_get_partition_names_ps_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_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; @@ -14952,14 +13596,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1057; - ::apache::thrift::protocol::TType _etype1060; - xfer += iprot->readListBegin(_etype1060, _size1057); - this->part_vals.resize(_size1057); - uint32_t _i1061; - for (_i1061 = 0; _i1061 < _size1057; ++_i1061) + uint32_t _size815; + ::apache::thrift::protocol::TType _etype818; + xfer += iprot->readListBegin(_etype818, _size815); + this->part_vals.resize(_size815); + uint32_t _i819; + for (_i819 = 0; _i819 < _size815; ++_i819) { - xfer += iprot->readString(this->part_vals[_i1061]); + xfer += iprot->readString(this->part_vals[_i819]); } xfer += iprot->readListEnd(); } @@ -14990,7 +13634,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15004,10 +13647,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1062; - for (_iter1062 = this->part_vals.begin(); _iter1062 != this->part_vals.end(); ++_iter1062) + std::vector ::const_iterator _iter820; + for (_iter820 = this->part_vals.begin(); _iter820 != this->part_vals.end(); ++_iter820) { - xfer += oprot->writeString((*_iter1062)); + xfer += oprot->writeString((*_iter820)); } xfer += oprot->writeListEnd(); } @@ -15022,14 +13665,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_pargs::~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15043,10 +13680,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1063; - for (_iter1063 = (*(this->part_vals)).begin(); _iter1063 != (*(this->part_vals)).end(); ++_iter1063) + std::vector ::const_iterator _iter821; + for (_iter821 = (*(this->part_vals)).begin(); _iter821 != (*(this->part_vals)).end(); ++_iter821) { - xfer += oprot->writeString((*_iter1063)); + xfer += oprot->writeString((*_iter821)); } xfer += oprot->writeListEnd(); } @@ -15061,14 +13698,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_result::~ThriftHiveMetastore_get_partition_names_ps_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_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; @@ -15091,14 +13722,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1064; - ::apache::thrift::protocol::TType _etype1067; - xfer += iprot->readListBegin(_etype1067, _size1064); - this->success.resize(_size1064); - uint32_t _i1068; - for (_i1068 = 0; _i1068 < _size1064; ++_i1068) + uint32_t _size822; + ::apache::thrift::protocol::TType _etype825; + xfer += iprot->readListBegin(_etype825, _size822); + this->success.resize(_size822); + uint32_t _i826; + for (_i826 = 0; _i826 < _size822; ++_i826) { - xfer += iprot->readString(this->success[_i1068]); + xfer += iprot->readString(this->success[_i826]); } xfer += iprot->readListEnd(); } @@ -15145,10 +13776,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1069; - for (_iter1069 = this->success.begin(); _iter1069 != this->success.end(); ++_iter1069) + std::vector ::const_iterator _iter827; + for (_iter827 = this->success.begin(); _iter827 != this->success.end(); ++_iter827) { - xfer += oprot->writeString((*_iter1069)); + xfer += oprot->writeString((*_iter827)); } xfer += oprot->writeListEnd(); } @@ -15167,14 +13798,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_presult::~ThriftHiveMetastore_get_partition_names_ps_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_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; @@ -15197,14 +13822,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1070; - ::apache::thrift::protocol::TType _etype1073; - xfer += iprot->readListBegin(_etype1073, _size1070); - (*(this->success)).resize(_size1070); - uint32_t _i1074; - for (_i1074 = 0; _i1074 < _size1070; ++_i1074) + uint32_t _size828; + ::apache::thrift::protocol::TType _etype831; + xfer += iprot->readListBegin(_etype831, _size828); + (*(this->success)).resize(_size828); + uint32_t _i832; + for (_i832 = 0; _i832 < _size828; ++_i832) { - xfer += iprot->readString((*(this->success))[_i1074]); + xfer += iprot->readString((*(this->success))[_i832]); } xfer += iprot->readListEnd(); } @@ -15241,14 +13866,8 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_args::~ThriftHiveMetastore_get_partitions_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_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; @@ -15313,7 +13932,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15337,14 +13955,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_pargs::~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15368,14 +13980,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_result::~ThriftHiveMetastore_get_partitions_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_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; @@ -15398,14 +14004,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1075; - ::apache::thrift::protocol::TType _etype1078; - xfer += iprot->readListBegin(_etype1078, _size1075); - this->success.resize(_size1075); - uint32_t _i1079; - for (_i1079 = 0; _i1079 < _size1075; ++_i1079) + uint32_t _size833; + ::apache::thrift::protocol::TType _etype836; + xfer += iprot->readListBegin(_etype836, _size833); + this->success.resize(_size833); + uint32_t _i837; + for (_i837 = 0; _i837 < _size833; ++_i837) { - xfer += this->success[_i1079].read(iprot); + xfer += this->success[_i837].read(iprot); } xfer += iprot->readListEnd(); } @@ -15452,10 +14058,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1080; - for (_iter1080 = this->success.begin(); _iter1080 != this->success.end(); ++_iter1080) + std::vector ::const_iterator _iter838; + for (_iter838 = this->success.begin(); _iter838 != this->success.end(); ++_iter838) { - xfer += (*_iter1080).write(oprot); + xfer += (*_iter838).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15474,14 +14080,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_presult::~ThriftHiveMetastore_get_partitions_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_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; @@ -15504,14 +14104,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1081; - ::apache::thrift::protocol::TType _etype1084; - xfer += iprot->readListBegin(_etype1084, _size1081); - (*(this->success)).resize(_size1081); - uint32_t _i1085; - for (_i1085 = 0; _i1085 < _size1081; ++_i1085) + uint32_t _size839; + ::apache::thrift::protocol::TType _etype842; + xfer += iprot->readListBegin(_etype842, _size839); + (*(this->success)).resize(_size839); + uint32_t _i843; + for (_i843 = 0; _i843 < _size839; ++_i843) { - xfer += (*(this->success))[_i1085].read(iprot); + xfer += (*(this->success))[_i843].read(iprot); } xfer += iprot->readListEnd(); } @@ -15548,14 +14148,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_args::~ThriftHiveMetastore_get_part_specs_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_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; @@ -15620,7 +14214,6 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_part_specs_by_filter_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15644,14 +14237,8 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_pargs::~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_part_specs_by_filter_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15675,14 +14262,8 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_result::~ThriftHiveMetastore_get_part_specs_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_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; @@ -15705,14 +14286,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1086; - ::apache::thrift::protocol::TType _etype1089; - xfer += iprot->readListBegin(_etype1089, _size1086); - this->success.resize(_size1086); - uint32_t _i1090; - for (_i1090 = 0; _i1090 < _size1086; ++_i1090) + uint32_t _size844; + ::apache::thrift::protocol::TType _etype847; + xfer += iprot->readListBegin(_etype847, _size844); + this->success.resize(_size844); + uint32_t _i848; + for (_i848 = 0; _i848 < _size844; ++_i848) { - xfer += this->success[_i1090].read(iprot); + xfer += this->success[_i848].read(iprot); } xfer += iprot->readListEnd(); } @@ -15759,10 +14340,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1091; - for (_iter1091 = this->success.begin(); _iter1091 != this->success.end(); ++_iter1091) + std::vector ::const_iterator _iter849; + for (_iter849 = this->success.begin(); _iter849 != this->success.end(); ++_iter849) { - xfer += (*_iter1091).write(oprot); + xfer += (*_iter849).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15781,14 +14362,8 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_presult::~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_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; @@ -15811,14 +14386,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1092; - ::apache::thrift::protocol::TType _etype1095; - xfer += iprot->readListBegin(_etype1095, _size1092); - (*(this->success)).resize(_size1092); - uint32_t _i1096; - for (_i1096 = 0; _i1096 < _size1092; ++_i1096) + uint32_t _size850; + ::apache::thrift::protocol::TType _etype853; + xfer += iprot->readListBegin(_etype853, _size850); + (*(this->success)).resize(_size850); + uint32_t _i854; + for (_i854 = 0; _i854 < _size850; ++_i854) { - xfer += (*(this->success))[_i1096].read(iprot); + xfer += (*(this->success))[_i854].read(iprot); } xfer += iprot->readListEnd(); } @@ -15855,14 +14430,8 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_args::~ThriftHiveMetastore_get_partitions_by_expr_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_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; @@ -15903,7 +14472,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_expr_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15915,14 +14483,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_pargs::~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_expr_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15934,14 +14496,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_result::~ThriftHiveMetastore_get_partitions_by_expr_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_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; @@ -16020,14 +14576,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_presult::~ThriftHiveMetastore_get_partitions_by_expr_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_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; @@ -16082,14 +14632,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_num_partitions_by_filter_args::~ThriftHiveMetastore_get_num_partitions_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_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; @@ -16146,7 +14690,6 @@ uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_args::read(::apache::t uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_num_partitions_by_filter_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16166,14 +14709,8 @@ uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_args::write(::apache:: return xfer; } - -ThriftHiveMetastore_get_num_partitions_by_filter_pargs::~ThriftHiveMetastore_get_num_partitions_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_num_partitions_by_filter_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16193,14 +14730,8 @@ uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_pargs::write(::apache: return xfer; } - -ThriftHiveMetastore_get_num_partitions_by_filter_result::~ThriftHiveMetastore_get_num_partitions_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_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; @@ -16279,14 +14810,8 @@ uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_result::write(::apache return xfer; } - -ThriftHiveMetastore_get_num_partitions_by_filter_presult::~ThriftHiveMetastore_get_num_partitions_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_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; @@ -16341,14 +14866,8 @@ uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_presult::read(::apache return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_args::~ThriftHiveMetastore_get_partitions_by_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_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; @@ -16387,14 +14906,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - this->names.resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size855; + ::apache::thrift::protocol::TType _etype858; + xfer += iprot->readListBegin(_etype858, _size855); + this->names.resize(_size855); + uint32_t _i859; + for (_i859 = 0; _i859 < _size855; ++_i859) { - xfer += iprot->readString(this->names[_i1101]); + xfer += iprot->readString(this->names[_i859]); } xfer += iprot->readListEnd(); } @@ -16417,7 +14936,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16431,10 +14949,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter1102; - for (_iter1102 = this->names.begin(); _iter1102 != this->names.end(); ++_iter1102) + std::vector ::const_iterator _iter860; + for (_iter860 = this->names.begin(); _iter860 != this->names.end(); ++_iter860) { - xfer += oprot->writeString((*_iter1102)); + xfer += oprot->writeString((*_iter860)); } xfer += oprot->writeListEnd(); } @@ -16445,14 +14963,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_pargs::~ThriftHiveMetastore_get_partitions_by_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16466,10 +14978,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter1103; - for (_iter1103 = (*(this->names)).begin(); _iter1103 != (*(this->names)).end(); ++_iter1103) + std::vector ::const_iterator _iter861; + for (_iter861 = (*(this->names)).begin(); _iter861 != (*(this->names)).end(); ++_iter861) { - xfer += oprot->writeString((*_iter1103)); + xfer += oprot->writeString((*_iter861)); } xfer += oprot->writeListEnd(); } @@ -16480,14 +14992,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_result::~ThriftHiveMetastore_get_partitions_by_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_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; @@ -16510,14 +15016,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1104; - ::apache::thrift::protocol::TType _etype1107; - xfer += iprot->readListBegin(_etype1107, _size1104); - this->success.resize(_size1104); - uint32_t _i1108; - for (_i1108 = 0; _i1108 < _size1104; ++_i1108) + uint32_t _size862; + ::apache::thrift::protocol::TType _etype865; + xfer += iprot->readListBegin(_etype865, _size862); + this->success.resize(_size862); + uint32_t _i866; + for (_i866 = 0; _i866 < _size862; ++_i866) { - xfer += this->success[_i1108].read(iprot); + xfer += this->success[_i866].read(iprot); } xfer += iprot->readListEnd(); } @@ -16564,10 +15070,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1109; - for (_iter1109 = this->success.begin(); _iter1109 != this->success.end(); ++_iter1109) + std::vector ::const_iterator _iter867; + for (_iter867 = this->success.begin(); _iter867 != this->success.end(); ++_iter867) { - xfer += (*_iter1109).write(oprot); + xfer += (*_iter867).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16586,14 +15092,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_presult::~ThriftHiveMetastore_get_partitions_by_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_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; @@ -16616,14 +15116,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1110; - ::apache::thrift::protocol::TType _etype1113; - xfer += iprot->readListBegin(_etype1113, _size1110); - (*(this->success)).resize(_size1110); - uint32_t _i1114; - for (_i1114 = 0; _i1114 < _size1110; ++_i1114) + uint32_t _size868; + ::apache::thrift::protocol::TType _etype871; + xfer += iprot->readListBegin(_etype871, _size868); + (*(this->success)).resize(_size868); + uint32_t _i872; + for (_i872 = 0; _i872 < _size868; ++_i872) { - xfer += (*(this->success))[_i1114].read(iprot); + xfer += (*(this->success))[_i872].read(iprot); } xfer += iprot->readListEnd(); } @@ -16660,14 +15160,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_alter_partition_args::~ThriftHiveMetastore_alter_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_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; @@ -16724,7 +15218,6 @@ uint32_t ThriftHiveMetastore_alter_partition_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16744,14 +15237,8 @@ uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_alter_partition_pargs::~ThriftHiveMetastore_alter_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16771,14 +15258,8 @@ uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_partition_result::~ThriftHiveMetastore_alter_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_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; @@ -16845,14 +15326,8 @@ uint32_t ThriftHiveMetastore_alter_partition_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_alter_partition_presult::~ThriftHiveMetastore_alter_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_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; @@ -16899,14 +15374,8 @@ uint32_t ThriftHiveMetastore_alter_partition_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_alter_partitions_args::~ThriftHiveMetastore_alter_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_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; @@ -16945,14 +15414,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1115; - ::apache::thrift::protocol::TType _etype1118; - xfer += iprot->readListBegin(_etype1118, _size1115); - this->new_parts.resize(_size1115); - uint32_t _i1119; - for (_i1119 = 0; _i1119 < _size1115; ++_i1119) + uint32_t _size873; + ::apache::thrift::protocol::TType _etype876; + xfer += iprot->readListBegin(_etype876, _size873); + this->new_parts.resize(_size873); + uint32_t _i877; + for (_i877 = 0; _i877 < _size873; ++_i877) { - xfer += this->new_parts[_i1119].read(iprot); + xfer += this->new_parts[_i877].read(iprot); } xfer += iprot->readListEnd(); } @@ -16975,7 +15444,6 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partitions_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16989,10 +15457,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1120; - for (_iter1120 = this->new_parts.begin(); _iter1120 != this->new_parts.end(); ++_iter1120) + std::vector ::const_iterator _iter878; + for (_iter878 = this->new_parts.begin(); _iter878 != this->new_parts.end(); ++_iter878) { - xfer += (*_iter1120).write(oprot); + xfer += (*_iter878).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17003,14 +15471,8 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_partitions_pargs::~ThriftHiveMetastore_alter_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partitions_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17024,10 +15486,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1121; - for (_iter1121 = (*(this->new_parts)).begin(); _iter1121 != (*(this->new_parts)).end(); ++_iter1121) + std::vector ::const_iterator _iter879; + for (_iter879 = (*(this->new_parts)).begin(); _iter879 != (*(this->new_parts)).end(); ++_iter879) { - xfer += (*_iter1121).write(oprot); + xfer += (*_iter879).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17038,14 +15500,8 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_alter_partitions_result::~ThriftHiveMetastore_alter_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_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; @@ -17112,14 +15568,8 @@ uint32_t ThriftHiveMetastore_alter_partitions_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_alter_partitions_presult::~ThriftHiveMetastore_alter_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_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; @@ -17166,14 +15616,8 @@ uint32_t ThriftHiveMetastore_alter_partitions_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_args::~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_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; @@ -17238,7 +15682,6 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::read uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17262,14 +15705,8 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::writ return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_pargs::~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17293,14 +15730,8 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_pargs::wri return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_result::~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_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; @@ -17367,14 +15798,8 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_result::wr return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_presult::~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_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; @@ -17421,14 +15846,8 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_presult::r return xfer; } - -ThriftHiveMetastore_rename_partition_args::~ThriftHiveMetastore_rename_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_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; @@ -17467,14 +15886,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1122; - ::apache::thrift::protocol::TType _etype1125; - xfer += iprot->readListBegin(_etype1125, _size1122); - this->part_vals.resize(_size1122); - uint32_t _i1126; - for (_i1126 = 0; _i1126 < _size1122; ++_i1126) + uint32_t _size880; + ::apache::thrift::protocol::TType _etype883; + xfer += iprot->readListBegin(_etype883, _size880); + this->part_vals.resize(_size880); + uint32_t _i884; + for (_i884 = 0; _i884 < _size880; ++_i884) { - xfer += iprot->readString(this->part_vals[_i1126]); + xfer += iprot->readString(this->part_vals[_i884]); } xfer += iprot->readListEnd(); } @@ -17505,7 +15924,6 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_rename_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17519,10 +15937,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1127; - for (_iter1127 = this->part_vals.begin(); _iter1127 != this->part_vals.end(); ++_iter1127) + std::vector ::const_iterator _iter885; + for (_iter885 = this->part_vals.begin(); _iter885 != this->part_vals.end(); ++_iter885) { - xfer += oprot->writeString((*_iter1127)); + xfer += oprot->writeString((*_iter885)); } xfer += oprot->writeListEnd(); } @@ -17537,14 +15955,8 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_rename_partition_pargs::~ThriftHiveMetastore_rename_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_rename_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17558,10 +15970,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1128; - for (_iter1128 = (*(this->part_vals)).begin(); _iter1128 != (*(this->part_vals)).end(); ++_iter1128) + std::vector ::const_iterator _iter886; + for (_iter886 = (*(this->part_vals)).begin(); _iter886 != (*(this->part_vals)).end(); ++_iter886) { - xfer += oprot->writeString((*_iter1128)); + xfer += oprot->writeString((*_iter886)); } xfer += oprot->writeListEnd(); } @@ -17576,14 +15988,8 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_rename_partition_result::~ThriftHiveMetastore_rename_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_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; @@ -17650,14 +16056,8 @@ uint32_t ThriftHiveMetastore_rename_partition_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_rename_partition_presult::~ThriftHiveMetastore_rename_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_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; @@ -17704,14 +16104,8 @@ uint32_t ThriftHiveMetastore_rename_partition_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_args::~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_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; @@ -17734,14 +16128,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1129; - ::apache::thrift::protocol::TType _etype1132; - xfer += iprot->readListBegin(_etype1132, _size1129); - this->part_vals.resize(_size1129); - uint32_t _i1133; - for (_i1133 = 0; _i1133 < _size1129; ++_i1133) + uint32_t _size887; + ::apache::thrift::protocol::TType _etype890; + xfer += iprot->readListBegin(_etype890, _size887); + this->part_vals.resize(_size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - xfer += iprot->readString(this->part_vals[_i1133]); + xfer += iprot->readString(this->part_vals[_i891]); } xfer += iprot->readListEnd(); } @@ -17772,16 +16166,15 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_args"); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1134; - for (_iter1134 = this->part_vals.begin(); _iter1134 != this->part_vals.end(); ++_iter1134) + std::vector ::const_iterator _iter892; + for (_iter892 = this->part_vals.begin(); _iter892 != this->part_vals.end(); ++_iter892) { - xfer += oprot->writeString((*_iter1134)); + xfer += oprot->writeString((*_iter892)); } xfer += oprot->writeListEnd(); } @@ -17796,23 +16189,17 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_pargs::~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_pargs"); xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1135; - for (_iter1135 = (*(this->part_vals)).begin(); _iter1135 != (*(this->part_vals)).end(); ++_iter1135) + std::vector ::const_iterator _iter893; + for (_iter893 = (*(this->part_vals)).begin(); _iter893 != (*(this->part_vals)).end(); ++_iter893) { - xfer += oprot->writeString((*_iter1135)); + xfer += oprot->writeString((*_iter893)); } xfer += oprot->writeListEnd(); } @@ -17827,14 +16214,76 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: return xfer; } +uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); -ThriftHiveMetastore_partition_name_has_valid_characters_result::~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw() { + return xfer; } +uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::write(::apache::thrift::protocol::TProtocol* oprot) const { -uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::read(::apache::thrift::protocol::TProtocol* iprot) { + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_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; @@ -17855,7 +16304,7 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::read(:: { case 0: if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -17881,88 +16330,8 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::read(:: return xfer; } -uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_partition_name_has_valid_characters_presult::~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_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 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_get_config_value_args::~ThriftHiveMetastore_get_config_value_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_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; @@ -18011,7 +16380,6 @@ uint32_t ThriftHiveMetastore_get_config_value_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -18027,14 +16395,8 @@ uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_config_value_pargs::~ThriftHiveMetastore_get_config_value_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -18050,14 +16412,8 @@ uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_config_value_result::~ThriftHiveMetastore_get_config_value_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_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; @@ -18124,14 +16480,8 @@ uint32_t ThriftHiveMetastore_get_config_value_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_config_value_presult::~ThriftHiveMetastore_get_config_value_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_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; @@ -18178,14 +16528,8 @@ uint32_t ThriftHiveMetastore_get_config_value_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_args::~ThriftHiveMetastore_partition_name_to_vals_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_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; @@ -18226,7 +16570,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_args"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18238,14 +16581,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_pargs::~ThriftHiveMetastore_partition_name_to_vals_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_pargs"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18257,14 +16594,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_result::~ThriftHiveMetastore_partition_name_to_vals_result() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_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; @@ -18287,14 +16618,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1136; - ::apache::thrift::protocol::TType _etype1139; - xfer += iprot->readListBegin(_etype1139, _size1136); - this->success.resize(_size1136); - uint32_t _i1140; - for (_i1140 = 0; _i1140 < _size1136; ++_i1140) + uint32_t _size894; + ::apache::thrift::protocol::TType _etype897; + xfer += iprot->readListBegin(_etype897, _size894); + this->success.resize(_size894); + uint32_t _i898; + for (_i898 = 0; _i898 < _size894; ++_i898) { - xfer += iprot->readString(this->success[_i1140]); + xfer += iprot->readString(this->success[_i898]); } xfer += iprot->readListEnd(); } @@ -18333,10 +16664,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1141; - for (_iter1141 = this->success.begin(); _iter1141 != this->success.end(); ++_iter1141) + std::vector ::const_iterator _iter899; + for (_iter899 = this->success.begin(); _iter899 != this->success.end(); ++_iter899) { - xfer += oprot->writeString((*_iter1141)); + xfer += oprot->writeString((*_iter899)); } xfer += oprot->writeListEnd(); } @@ -18351,14 +16682,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_presult::~ThriftHiveMetastore_partition_name_to_vals_presult() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_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; @@ -18381,14 +16706,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1142; - ::apache::thrift::protocol::TType _etype1145; - xfer += iprot->readListBegin(_etype1145, _size1142); - (*(this->success)).resize(_size1142); - uint32_t _i1146; - for (_i1146 = 0; _i1146 < _size1142; ++_i1146) + uint32_t _size900; + ::apache::thrift::protocol::TType _etype903; + xfer += iprot->readListBegin(_etype903, _size900); + (*(this->success)).resize(_size900); + uint32_t _i904; + for (_i904 = 0; _i904 < _size900; ++_i904) { - xfer += iprot->readString((*(this->success))[_i1146]); + xfer += iprot->readString((*(this->success))[_i904]); } xfer += iprot->readListEnd(); } @@ -18417,14 +16742,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_args::~ThriftHiveMetastore_partition_name_to_spec_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_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; @@ -18465,7 +16784,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_args"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18477,14 +16795,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_pargs::~ThriftHiveMetastore_partition_name_to_spec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_pargs"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18496,14 +16808,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_result::~ThriftHiveMetastore_partition_name_to_spec_result() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_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; @@ -18526,17 +16832,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1147; - ::apache::thrift::protocol::TType _ktype1148; - ::apache::thrift::protocol::TType _vtype1149; - xfer += iprot->readMapBegin(_ktype1148, _vtype1149, _size1147); - uint32_t _i1151; - for (_i1151 = 0; _i1151 < _size1147; ++_i1151) + uint32_t _size905; + ::apache::thrift::protocol::TType _ktype906; + ::apache::thrift::protocol::TType _vtype907; + xfer += iprot->readMapBegin(_ktype906, _vtype907, _size905); + uint32_t _i909; + for (_i909 = 0; _i909 < _size905; ++_i909) { - std::string _key1152; - xfer += iprot->readString(_key1152); - std::string& _val1153 = this->success[_key1152]; - xfer += iprot->readString(_val1153); + std::string _key910; + xfer += iprot->readString(_key910); + std::string& _val911 = this->success[_key910]; + xfer += iprot->readString(_val911); } xfer += iprot->readMapEnd(); } @@ -18575,11 +16881,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter1154; - for (_iter1154 = this->success.begin(); _iter1154 != this->success.end(); ++_iter1154) + std::map ::const_iterator _iter912; + for (_iter912 = this->success.begin(); _iter912 != this->success.end(); ++_iter912) { - xfer += oprot->writeString(_iter1154->first); - xfer += oprot->writeString(_iter1154->second); + xfer += oprot->writeString(_iter912->first); + xfer += oprot->writeString(_iter912->second); } xfer += oprot->writeMapEnd(); } @@ -18594,14 +16900,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_presult::~ThriftHiveMetastore_partition_name_to_spec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_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; @@ -18624,17 +16924,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1155; - ::apache::thrift::protocol::TType _ktype1156; - ::apache::thrift::protocol::TType _vtype1157; - xfer += iprot->readMapBegin(_ktype1156, _vtype1157, _size1155); - uint32_t _i1159; - for (_i1159 = 0; _i1159 < _size1155; ++_i1159) + uint32_t _size913; + ::apache::thrift::protocol::TType _ktype914; + ::apache::thrift::protocol::TType _vtype915; + xfer += iprot->readMapBegin(_ktype914, _vtype915, _size913); + uint32_t _i917; + for (_i917 = 0; _i917 < _size913; ++_i917) { - std::string _key1160; - xfer += iprot->readString(_key1160); - std::string& _val1161 = (*(this->success))[_key1160]; - xfer += iprot->readString(_val1161); + std::string _key918; + xfer += iprot->readString(_key918); + std::string& _val919 = (*(this->success))[_key918]; + xfer += iprot->readString(_val919); } xfer += iprot->readMapEnd(); } @@ -18663,14 +16963,8 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_args::~ThriftHiveMetastore_markPartitionForEvent_args() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_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; @@ -18709,17 +17003,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1162; - ::apache::thrift::protocol::TType _ktype1163; - ::apache::thrift::protocol::TType _vtype1164; - xfer += iprot->readMapBegin(_ktype1163, _vtype1164, _size1162); - uint32_t _i1166; - for (_i1166 = 0; _i1166 < _size1162; ++_i1166) + uint32_t _size920; + ::apache::thrift::protocol::TType _ktype921; + ::apache::thrift::protocol::TType _vtype922; + xfer += iprot->readMapBegin(_ktype921, _vtype922, _size920); + uint32_t _i924; + for (_i924 = 0; _i924 < _size920; ++_i924) { - std::string _key1167; - xfer += iprot->readString(_key1167); - std::string& _val1168 = this->part_vals[_key1167]; - xfer += iprot->readString(_val1168); + std::string _key925; + xfer += iprot->readString(_key925); + std::string& _val926 = this->part_vals[_key925]; + xfer += iprot->readString(_val926); } xfer += iprot->readMapEnd(); } @@ -18730,9 +17024,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1169; - xfer += iprot->readI32(ecast1169); - this->eventType = (PartitionEventType::type)ecast1169; + int32_t ecast927; + xfer += iprot->readI32(ecast927); + this->eventType = (PartitionEventType::type)ecast927; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -18752,7 +17046,6 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_markPartitionForEvent_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18766,11 +17059,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1170; - for (_iter1170 = this->part_vals.begin(); _iter1170 != this->part_vals.end(); ++_iter1170) + std::map ::const_iterator _iter928; + for (_iter928 = this->part_vals.begin(); _iter928 != this->part_vals.end(); ++_iter928) { - xfer += oprot->writeString(_iter1170->first); - xfer += oprot->writeString(_iter1170->second); + xfer += oprot->writeString(_iter928->first); + xfer += oprot->writeString(_iter928->second); } xfer += oprot->writeMapEnd(); } @@ -18785,14 +17078,8 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_pargs::~ThriftHiveMetastore_markPartitionForEvent_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_markPartitionForEvent_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18806,11 +17093,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1171; - for (_iter1171 = (*(this->part_vals)).begin(); _iter1171 != (*(this->part_vals)).end(); ++_iter1171) + std::map ::const_iterator _iter929; + for (_iter929 = (*(this->part_vals)).begin(); _iter929 != (*(this->part_vals)).end(); ++_iter929) { - xfer += oprot->writeString(_iter1171->first); - xfer += oprot->writeString(_iter1171->second); + xfer += oprot->writeString(_iter929->first); + xfer += oprot->writeString(_iter929->second); } xfer += oprot->writeMapEnd(); } @@ -18825,14 +17112,8 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_result::~ThriftHiveMetastore_markPartitionForEvent_result() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_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; @@ -18947,14 +17228,8 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_result::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_presult::~ThriftHiveMetastore_markPartitionForEvent_presult() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_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; @@ -19033,14 +17308,8 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_presult::read(::apache::thrif return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_args::~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_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; @@ -19079,17 +17348,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1172; - ::apache::thrift::protocol::TType _ktype1173; - ::apache::thrift::protocol::TType _vtype1174; - xfer += iprot->readMapBegin(_ktype1173, _vtype1174, _size1172); - uint32_t _i1176; - for (_i1176 = 0; _i1176 < _size1172; ++_i1176) + uint32_t _size930; + ::apache::thrift::protocol::TType _ktype931; + ::apache::thrift::protocol::TType _vtype932; + xfer += iprot->readMapBegin(_ktype931, _vtype932, _size930); + uint32_t _i934; + for (_i934 = 0; _i934 < _size930; ++_i934) { - std::string _key1177; - xfer += iprot->readString(_key1177); - std::string& _val1178 = this->part_vals[_key1177]; - xfer += iprot->readString(_val1178); + std::string _key935; + xfer += iprot->readString(_key935); + std::string& _val936 = this->part_vals[_key935]; + xfer += iprot->readString(_val936); } xfer += iprot->readMapEnd(); } @@ -19100,9 +17369,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1179; - xfer += iprot->readI32(ecast1179); - this->eventType = (PartitionEventType::type)ecast1179; + int32_t ecast937; + xfer += iprot->readI32(ecast937); + this->eventType = (PartitionEventType::type)ecast937; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -19122,7 +17391,6 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_isPartitionMarkedForEvent_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19136,11 +17404,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter1180; - for (_iter1180 = this->part_vals.begin(); _iter1180 != this->part_vals.end(); ++_iter1180) + std::map ::const_iterator _iter938; + for (_iter938 = this->part_vals.begin(); _iter938 != this->part_vals.end(); ++_iter938) { - xfer += oprot->writeString(_iter1180->first); - xfer += oprot->writeString(_iter1180->second); + xfer += oprot->writeString(_iter938->first); + xfer += oprot->writeString(_iter938->second); } xfer += oprot->writeMapEnd(); } @@ -19155,14 +17423,8 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_isPartitionMarkedForEvent_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19176,11 +17438,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter1181; - for (_iter1181 = (*(this->part_vals)).begin(); _iter1181 != (*(this->part_vals)).end(); ++_iter1181) + std::map ::const_iterator _iter939; + for (_iter939 = (*(this->part_vals)).begin(); _iter939 != (*(this->part_vals)).end(); ++_iter939) { - xfer += oprot->writeString(_iter1181->first); - xfer += oprot->writeString(_iter1181->second); + xfer += oprot->writeString(_iter939->first); + xfer += oprot->writeString(_iter939->second); } xfer += oprot->writeMapEnd(); } @@ -19195,14 +17457,8 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_result::~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_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; @@ -19329,14 +17585,8 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_presult::~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_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; @@ -19423,14 +17673,8 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_add_index_args::~ThriftHiveMetastore_add_index_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_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; @@ -19479,7 +17723,6 @@ uint32_t ThriftHiveMetastore_add_index_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_args"); xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1); @@ -19495,14 +17738,8 @@ uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_add_index_pargs::~ThriftHiveMetastore_add_index_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_pargs"); xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1); @@ -19518,14 +17755,8 @@ uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_add_index_result::~ThriftHiveMetastore_add_index_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_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; @@ -19616,14 +17847,8 @@ uint32_t ThriftHiveMetastore_add_index_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_add_index_presult::~ThriftHiveMetastore_add_index_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_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; @@ -19686,14 +17911,8 @@ uint32_t ThriftHiveMetastore_add_index_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_alter_index_args::~ThriftHiveMetastore_alter_index_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_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; @@ -19758,7 +17977,6 @@ uint32_t ThriftHiveMetastore_alter_index_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -19782,14 +18000,8 @@ uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_alter_index_pargs::~ThriftHiveMetastore_alter_index_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -19813,14 +18025,76 @@ uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol return xfer; } +uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } -ThriftHiveMetastore_alter_index_result::~ThriftHiveMetastore_alter_index_result() throw() { + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_alter_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; -uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_result"); + + if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_alter_index_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; @@ -19867,88 +18141,8 @@ uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_alter_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_result"); - - if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_alter_index_presult::~ThriftHiveMetastore_alter_index_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_alter_index_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; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_drop_index_by_name_args::~ThriftHiveMetastore_drop_index_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_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; @@ -20013,7 +18207,6 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20037,14 +18230,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_drop_index_by_name_pargs::~ThriftHiveMetastore_drop_index_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20068,14 +18255,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_drop_index_by_name_result::~ThriftHiveMetastore_drop_index_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_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; @@ -20154,14 +18335,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_drop_index_by_name_presult::~ThriftHiveMetastore_drop_index_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_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; @@ -20216,14 +18391,8 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_index_by_name_args::~ThriftHiveMetastore_get_index_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_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; @@ -20280,7 +18449,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20300,14 +18468,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_index_by_name_pargs::~ThriftHiveMetastore_get_index_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20327,14 +18489,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_index_by_name_result::~ThriftHiveMetastore_get_index_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_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; @@ -20413,14 +18569,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_index_by_name_presult::~ThriftHiveMetastore_get_index_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_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; @@ -20475,14 +18625,8 @@ uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_indexes_args::~ThriftHiveMetastore_get_indexes_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_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; @@ -20539,7 +18683,6 @@ uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20559,14 +18702,8 @@ uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_indexes_pargs::~ThriftHiveMetastore_get_indexes_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20586,14 +18723,8 @@ uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_indexes_result::~ThriftHiveMetastore_get_indexes_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_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; @@ -20616,14 +18747,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1182; - ::apache::thrift::protocol::TType _etype1185; - xfer += iprot->readListBegin(_etype1185, _size1182); - this->success.resize(_size1182); - uint32_t _i1186; - for (_i1186 = 0; _i1186 < _size1182; ++_i1186) + uint32_t _size940; + ::apache::thrift::protocol::TType _etype943; + xfer += iprot->readListBegin(_etype943, _size940); + this->success.resize(_size940); + uint32_t _i944; + for (_i944 = 0; _i944 < _size940; ++_i944) { - xfer += this->success[_i1186].read(iprot); + xfer += this->success[_i944].read(iprot); } xfer += iprot->readListEnd(); } @@ -20670,10 +18801,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1187; - for (_iter1187 = this->success.begin(); _iter1187 != this->success.end(); ++_iter1187) + std::vector ::const_iterator _iter945; + for (_iter945 = this->success.begin(); _iter945 != this->success.end(); ++_iter945) { - xfer += (*_iter1187).write(oprot); + xfer += (*_iter945).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20692,14 +18823,8 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_indexes_presult::~ThriftHiveMetastore_get_indexes_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_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; @@ -20722,14 +18847,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1188; - ::apache::thrift::protocol::TType _etype1191; - xfer += iprot->readListBegin(_etype1191, _size1188); - (*(this->success)).resize(_size1188); - uint32_t _i1192; - for (_i1192 = 0; _i1192 < _size1188; ++_i1192) + uint32_t _size946; + ::apache::thrift::protocol::TType _etype949; + xfer += iprot->readListBegin(_etype949, _size946); + (*(this->success)).resize(_size946); + uint32_t _i950; + for (_i950 = 0; _i950 < _size946; ++_i950) { - xfer += (*(this->success))[_i1192].read(iprot); + xfer += (*(this->success))[_i950].read(iprot); } xfer += iprot->readListEnd(); } @@ -20766,14 +18891,8 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_index_names_args::~ThriftHiveMetastore_get_index_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_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; @@ -20830,7 +18949,6 @@ uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20850,14 +18968,8 @@ uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_index_names_pargs::~ThriftHiveMetastore_get_index_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20877,14 +18989,8 @@ uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_index_names_result::~ThriftHiveMetastore_get_index_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_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; @@ -20907,14 +19013,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1193; - ::apache::thrift::protocol::TType _etype1196; - xfer += iprot->readListBegin(_etype1196, _size1193); - this->success.resize(_size1193); - uint32_t _i1197; - for (_i1197 = 0; _i1197 < _size1193; ++_i1197) + uint32_t _size951; + ::apache::thrift::protocol::TType _etype954; + xfer += iprot->readListBegin(_etype954, _size951); + this->success.resize(_size951); + uint32_t _i955; + for (_i955 = 0; _i955 < _size951; ++_i955) { - xfer += iprot->readString(this->success[_i1197]); + xfer += iprot->readString(this->success[_i955]); } xfer += iprot->readListEnd(); } @@ -20953,10 +19059,10 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1198; - for (_iter1198 = this->success.begin(); _iter1198 != this->success.end(); ++_iter1198) + std::vector ::const_iterator _iter956; + for (_iter956 = this->success.begin(); _iter956 != this->success.end(); ++_iter956) { - xfer += oprot->writeString((*_iter1198)); + xfer += oprot->writeString((*_iter956)); } xfer += oprot->writeListEnd(); } @@ -20971,14 +19077,8 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_index_names_presult::~ThriftHiveMetastore_get_index_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_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; @@ -21001,14 +19101,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1199; - ::apache::thrift::protocol::TType _etype1202; - xfer += iprot->readListBegin(_etype1202, _size1199); - (*(this->success)).resize(_size1199); - uint32_t _i1203; - for (_i1203 = 0; _i1203 < _size1199; ++_i1203) + uint32_t _size957; + ::apache::thrift::protocol::TType _etype960; + xfer += iprot->readListBegin(_etype960, _size957); + (*(this->success)).resize(_size957); + uint32_t _i961; + for (_i961 = 0; _i961 < _size957; ++_i961) { - xfer += iprot->readString((*(this->success))[_i1203]); + xfer += iprot->readString((*(this->success))[_i961]); } xfer += iprot->readListEnd(); } @@ -21037,14 +19137,8 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_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; @@ -21085,7 +19179,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21097,14 +19190,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21116,14 +19203,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apach return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_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; @@ -21226,14 +19307,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_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; @@ -21304,14 +19379,8 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_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; @@ -21352,7 +19421,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apa uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21364,14 +19432,8 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::ap return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21383,14 +19445,8 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::a return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_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; @@ -21493,14 +19549,8 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(:: return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_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; @@ -21571,14 +19621,8 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_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; @@ -21635,7 +19679,6 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -21655,14 +19698,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -21682,14 +19719,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache:: return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_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; @@ -21792,14 +19823,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache: return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_presult::~ThriftHiveMetastore_get_table_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_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; @@ -21870,14 +19895,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache: return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_args::~ThriftHiveMetastore_get_partition_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_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; @@ -21942,7 +19961,6 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -21966,14 +19984,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apach return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -21997,14 +20009,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apac return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_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; @@ -22107,14 +20113,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apa return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_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; @@ -22185,14 +20185,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apa return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_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; @@ -22233,7 +20227,6 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22245,14 +20238,8 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_pargs::~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22264,14 +20251,8 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_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; @@ -22350,14 +20331,8 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_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; @@ -22412,14 +20387,8 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_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; @@ -22460,7 +20429,6 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache:: uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22472,14 +20440,8 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache: return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22491,14 +20453,8 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_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; @@ -22577,14 +20533,8 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apach return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_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; @@ -22639,14 +20589,8 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apach return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_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; @@ -22687,7 +20631,6 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22699,14 +20642,8 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22718,14 +20655,8 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_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; @@ -22804,14 +20735,8 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_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; @@ -22866,14 +20791,8 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_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; @@ -22914,7 +20833,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22926,14 +20844,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22945,14 +20857,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_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; @@ -23055,14 +20961,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_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; @@ -23133,14 +21033,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_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; @@ -23205,7 +21099,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -23229,14 +21122,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::ap return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -23260,14 +21147,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::a return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_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; @@ -23370,14 +21251,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(:: return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_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; @@ -23448,14 +21323,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_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; @@ -23512,7 +21381,6 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -23532,14 +21400,8 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -23559,14 +21421,8 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apach return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_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; @@ -23669,14 +21525,8 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apac return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_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; @@ -23747,14 +21597,8 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apac return xfer; } - -ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_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; @@ -23795,7 +21639,6 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_args"); xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23807,14 +21650,8 @@ uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_pargs"); xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23826,14 +21663,8 @@ uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_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; @@ -23924,14 +21755,8 @@ uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_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; @@ -23994,14 +21819,8 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_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; @@ -24050,7 +21869,6 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24066,14 +21884,8 @@ uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24089,14 +21901,8 @@ uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_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; @@ -24163,14 +21969,8 @@ uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_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; @@ -24217,14 +22017,8 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_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; @@ -24281,7 +22075,6 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24301,14 +22094,8 @@ uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24328,14 +22115,8 @@ uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_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; @@ -24402,14 +22183,8 @@ uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_function_presult::~ThriftHiveMetastore_alter_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_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; @@ -24456,14 +22231,8 @@ uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_functions_args::~ThriftHiveMetastore_get_functions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_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; @@ -24512,7 +22281,6 @@ uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24528,14 +22296,8 @@ uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_functions_pargs::~ThriftHiveMetastore_get_functions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24551,14 +22313,8 @@ uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_functions_result::~ThriftHiveMetastore_get_functions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_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; @@ -24581,14 +22337,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1204; - ::apache::thrift::protocol::TType _etype1207; - xfer += iprot->readListBegin(_etype1207, _size1204); - this->success.resize(_size1204); - uint32_t _i1208; - for (_i1208 = 0; _i1208 < _size1204; ++_i1208) + uint32_t _size962; + ::apache::thrift::protocol::TType _etype965; + xfer += iprot->readListBegin(_etype965, _size962); + this->success.resize(_size962); + uint32_t _i966; + for (_i966 = 0; _i966 < _size962; ++_i966) { - xfer += iprot->readString(this->success[_i1208]); + xfer += iprot->readString(this->success[_i966]); } xfer += iprot->readListEnd(); } @@ -24627,10 +22383,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1209; - for (_iter1209 = this->success.begin(); _iter1209 != this->success.end(); ++_iter1209) + std::vector ::const_iterator _iter967; + for (_iter967 = this->success.begin(); _iter967 != this->success.end(); ++_iter967) { - xfer += oprot->writeString((*_iter1209)); + xfer += oprot->writeString((*_iter967)); } xfer += oprot->writeListEnd(); } @@ -24645,14 +22401,8 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_functions_presult::~ThriftHiveMetastore_get_functions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_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; @@ -24675,14 +22425,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1210; - ::apache::thrift::protocol::TType _etype1213; - xfer += iprot->readListBegin(_etype1213, _size1210); - (*(this->success)).resize(_size1210); - uint32_t _i1214; - for (_i1214 = 0; _i1214 < _size1210; ++_i1214) + uint32_t _size968; + ::apache::thrift::protocol::TType _etype971; + xfer += iprot->readListBegin(_etype971, _size968); + (*(this->success)).resize(_size968); + uint32_t _i972; + for (_i972 = 0; _i972 < _size968; ++_i972) { - xfer += iprot->readString((*(this->success))[_i1214]); + xfer += iprot->readString((*(this->success))[_i972]); } xfer += iprot->readListEnd(); } @@ -24711,14 +22461,8 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_function_args::~ThriftHiveMetastore_get_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_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; @@ -24767,7 +22511,6 @@ uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24783,14 +22526,8 @@ uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_function_pargs::~ThriftHiveMetastore_get_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -24806,14 +22543,8 @@ uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_function_result::~ThriftHiveMetastore_get_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_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; @@ -24892,14 +22623,8 @@ uint32_t ThriftHiveMetastore_get_function_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_function_presult::~ThriftHiveMetastore_get_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_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; @@ -24954,14 +22679,8 @@ uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_all_functions_args::~ThriftHiveMetastore_get_all_functions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_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; @@ -24989,7 +22708,6 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_args"); xfer += oprot->writeFieldStop(); @@ -24997,14 +22715,8 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_all_functions_pargs::~ThriftHiveMetastore_get_all_functions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_pargs"); xfer += oprot->writeFieldStop(); @@ -25012,14 +22724,8 @@ uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_all_functions_result::~ThriftHiveMetastore_get_all_functions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_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; @@ -25086,14 +22792,8 @@ uint32_t ThriftHiveMetastore_get_all_functions_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_all_functions_presult::~ThriftHiveMetastore_get_all_functions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_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; @@ -25140,14 +22840,8 @@ uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_create_role_args::~ThriftHiveMetastore_create_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_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; @@ -25188,7 +22882,6 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args"); xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25200,14 +22893,8 @@ uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_create_role_pargs::~ThriftHiveMetastore_create_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs"); xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25219,14 +22906,8 @@ uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_create_role_result::~ThriftHiveMetastore_create_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_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; @@ -25293,14 +22974,122 @@ uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protoco return xfer; } +uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { -ThriftHiveMetastore_create_role_presult::~ThriftHiveMetastore_create_role_presult() throw() { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->role_name); + this->__isset.role_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args"); + + xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->role_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs"); + + xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->role_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_role_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; @@ -25321,140 +23110,7 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco { case 0: if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_drop_role_args::~ThriftHiveMetastore_drop_role_args() throw() { -} - - -uint32_t ThriftHiveMetastore_drop_role_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_STRING) { - xfer += iprot->readString(this->role_name); - this->__isset.role_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args"); - - xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->role_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_drop_role_pargs::~ThriftHiveMetastore_drop_role_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs"); - - xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->role_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_drop_role_result::~ThriftHiveMetastore_drop_role_result() throw() { -} - - -uint32_t ThriftHiveMetastore_drop_role_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 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25500,14 +23156,8 @@ uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_drop_role_presult::~ThriftHiveMetastore_drop_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_role_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; @@ -25554,14 +23204,8 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_role_names_args::~ThriftHiveMetastore_get_role_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_names_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; @@ -25589,7 +23233,6 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args"); xfer += oprot->writeFieldStop(); @@ -25597,14 +23240,8 @@ uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_role_names_pargs::~ThriftHiveMetastore_get_role_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs"); xfer += oprot->writeFieldStop(); @@ -25612,14 +23249,8 @@ uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_role_names_result::~ThriftHiveMetastore_get_role_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_names_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; @@ -25642,14 +23273,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1215; - ::apache::thrift::protocol::TType _etype1218; - xfer += iprot->readListBegin(_etype1218, _size1215); - this->success.resize(_size1215); - uint32_t _i1219; - for (_i1219 = 0; _i1219 < _size1215; ++_i1219) + uint32_t _size973; + ::apache::thrift::protocol::TType _etype976; + xfer += iprot->readListBegin(_etype976, _size973); + this->success.resize(_size973); + uint32_t _i977; + for (_i977 = 0; _i977 < _size973; ++_i977) { - xfer += iprot->readString(this->success[_i1219]); + xfer += iprot->readString(this->success[_i977]); } xfer += iprot->readListEnd(); } @@ -25688,10 +23319,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1220; - for (_iter1220 = this->success.begin(); _iter1220 != this->success.end(); ++_iter1220) + std::vector ::const_iterator _iter978; + for (_iter978 = this->success.begin(); _iter978 != this->success.end(); ++_iter978) { - xfer += oprot->writeString((*_iter1220)); + xfer += oprot->writeString((*_iter978)); } xfer += oprot->writeListEnd(); } @@ -25706,14 +23337,8 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_role_names_presult::~ThriftHiveMetastore_get_role_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_names_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; @@ -25736,14 +23361,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1221; - ::apache::thrift::protocol::TType _etype1224; - xfer += iprot->readListBegin(_etype1224, _size1221); - (*(this->success)).resize(_size1221); - uint32_t _i1225; - for (_i1225 = 0; _i1225 < _size1221; ++_i1225) + uint32_t _size979; + ::apache::thrift::protocol::TType _etype982; + xfer += iprot->readListBegin(_etype982, _size979); + (*(this->success)).resize(_size979); + uint32_t _i983; + for (_i983 = 0; _i983 < _size979; ++_i983) { - xfer += iprot->readString((*(this->success))[_i1225]); + xfer += iprot->readString((*(this->success))[_i983]); } xfer += iprot->readListEnd(); } @@ -25772,14 +23397,8 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_grant_role_args::~ThriftHiveMetastore_grant_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_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; @@ -25816,9 +23435,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1226; - xfer += iprot->readI32(ecast1226); - this->principal_type = (PrincipalType::type)ecast1226; + int32_t ecast984; + xfer += iprot->readI32(ecast984); + this->principal_type = (PrincipalType::type)ecast984; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25834,9 +23453,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1227; - xfer += iprot->readI32(ecast1227); - this->grantorType = (PrincipalType::type)ecast1227; + int32_t ecast985; + xfer += iprot->readI32(ecast985); + this->grantorType = (PrincipalType::type)ecast985; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -25864,7 +23483,6 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_args"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25896,14 +23514,8 @@ uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_grant_role_pargs::~ThriftHiveMetastore_grant_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_pargs"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25935,14 +23547,8 @@ uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_grant_role_result::~ThriftHiveMetastore_grant_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_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; @@ -26009,14 +23615,8 @@ uint32_t ThriftHiveMetastore_grant_role_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_grant_role_presult::~ThriftHiveMetastore_grant_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_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; @@ -26063,14 +23663,8 @@ uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_revoke_role_args::~ThriftHiveMetastore_revoke_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_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; @@ -26107,9 +23701,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1228; - xfer += iprot->readI32(ecast1228); - this->principal_type = (PrincipalType::type)ecast1228; + int32_t ecast986; + xfer += iprot->readI32(ecast986); + this->principal_type = (PrincipalType::type)ecast986; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26129,7 +23723,6 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_args"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26149,14 +23742,8 @@ uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_revoke_role_pargs::~ThriftHiveMetastore_revoke_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_pargs"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26176,14 +23763,8 @@ uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_revoke_role_result::~ThriftHiveMetastore_revoke_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_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; @@ -26250,14 +23831,8 @@ uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_revoke_role_presult::~ThriftHiveMetastore_revoke_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_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; @@ -26304,14 +23879,8 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_list_roles_args::~ThriftHiveMetastore_list_roles_args() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_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; @@ -26340,9 +23909,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1229; - xfer += iprot->readI32(ecast1229); - this->principal_type = (PrincipalType::type)ecast1229; + int32_t ecast987; + xfer += iprot->readI32(ecast987); + this->principal_type = (PrincipalType::type)ecast987; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26362,7 +23931,6 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_args"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26378,14 +23946,8 @@ uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_list_roles_pargs::~ThriftHiveMetastore_list_roles_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_pargs"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26401,14 +23963,8 @@ uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_list_roles_result::~ThriftHiveMetastore_list_roles_result() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_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; @@ -26431,14 +23987,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1230; - ::apache::thrift::protocol::TType _etype1233; - xfer += iprot->readListBegin(_etype1233, _size1230); - this->success.resize(_size1230); - uint32_t _i1234; - for (_i1234 = 0; _i1234 < _size1230; ++_i1234) + uint32_t _size988; + ::apache::thrift::protocol::TType _etype991; + xfer += iprot->readListBegin(_etype991, _size988); + this->success.resize(_size988); + uint32_t _i992; + for (_i992 = 0; _i992 < _size988; ++_i992) { - xfer += this->success[_i1234].read(iprot); + xfer += this->success[_i992].read(iprot); } xfer += iprot->readListEnd(); } @@ -26477,10 +24033,10 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1235; - for (_iter1235 = this->success.begin(); _iter1235 != this->success.end(); ++_iter1235) + std::vector ::const_iterator _iter993; + for (_iter993 = this->success.begin(); _iter993 != this->success.end(); ++_iter993) { - xfer += (*_iter1235).write(oprot); + xfer += (*_iter993).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26495,14 +24051,8 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_list_roles_presult::~ThriftHiveMetastore_list_roles_presult() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_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; @@ -26525,14 +24075,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1236; - ::apache::thrift::protocol::TType _etype1239; - xfer += iprot->readListBegin(_etype1239, _size1236); - (*(this->success)).resize(_size1236); - uint32_t _i1240; - for (_i1240 = 0; _i1240 < _size1236; ++_i1240) + uint32_t _size994; + ::apache::thrift::protocol::TType _etype997; + xfer += iprot->readListBegin(_etype997, _size994); + (*(this->success)).resize(_size994); + uint32_t _i998; + for (_i998 = 0; _i998 < _size994; ++_i998) { - xfer += (*(this->success))[_i1240].read(iprot); + xfer += (*(this->success))[_i998].read(iprot); } xfer += iprot->readListEnd(); } @@ -26561,14 +24111,8 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_grant_revoke_role_args::~ThriftHiveMetastore_grant_revoke_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_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; @@ -26609,7 +24153,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_grant_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_role_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26621,14 +24164,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_grant_revoke_role_pargs::~ThriftHiveMetastore_grant_revoke_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_role_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26640,14 +24177,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_grant_revoke_role_result::~ThriftHiveMetastore_grant_revoke_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_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; @@ -26714,14 +24245,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_grant_revoke_role_presult::~ThriftHiveMetastore_grant_revoke_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_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; @@ -26768,14 +24293,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_principals_in_role_args::~ThriftHiveMetastore_get_principals_in_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_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; @@ -26816,7 +24335,6 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26828,14 +24346,8 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_principals_in_role_pargs::~ThriftHiveMetastore_get_principals_in_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26847,14 +24359,8 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_principals_in_role_result::~ThriftHiveMetastore_get_principals_in_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_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; @@ -26921,14 +24427,8 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_principals_in_role_presult::~ThriftHiveMetastore_get_principals_in_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_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; @@ -26975,14 +24475,8 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_args::~ThriftHiveMetastore_get_role_grants_for_principal_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_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; @@ -27023,7 +24517,6 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::read(::apache:: uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27035,14 +24528,8 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::write(::apache: return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_pargs::~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27054,14 +24541,8 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_pargs::write(::apache return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_result::~ThriftHiveMetastore_get_role_grants_for_principal_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_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; @@ -27128,14 +24609,8 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_result::write(::apach return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_presult::~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_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; @@ -27182,14 +24657,8 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_presult::read(::apach return xfer; } - -ThriftHiveMetastore_get_privilege_set_args::~ThriftHiveMetastore_get_privilege_set_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_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; @@ -27228,14 +24697,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1241; - ::apache::thrift::protocol::TType _etype1244; - xfer += iprot->readListBegin(_etype1244, _size1241); - this->group_names.resize(_size1241); - uint32_t _i1245; - for (_i1245 = 0; _i1245 < _size1241; ++_i1245) + uint32_t _size999; + ::apache::thrift::protocol::TType _etype1002; + xfer += iprot->readListBegin(_etype1002, _size999); + this->group_names.resize(_size999); + uint32_t _i1003; + for (_i1003 = 0; _i1003 < _size999; ++_i1003) { - xfer += iprot->readString(this->group_names[_i1245]); + xfer += iprot->readString(this->group_names[_i1003]); } xfer += iprot->readListEnd(); } @@ -27258,7 +24727,6 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_args"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27272,10 +24740,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1246; - for (_iter1246 = this->group_names.begin(); _iter1246 != this->group_names.end(); ++_iter1246) + std::vector ::const_iterator _iter1004; + for (_iter1004 = this->group_names.begin(); _iter1004 != this->group_names.end(); ++_iter1004) { - xfer += oprot->writeString((*_iter1246)); + xfer += oprot->writeString((*_iter1004)); } xfer += oprot->writeListEnd(); } @@ -27286,14 +24754,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_privilege_set_pargs::~ThriftHiveMetastore_get_privilege_set_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_pargs"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27307,10 +24769,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1247; - for (_iter1247 = (*(this->group_names)).begin(); _iter1247 != (*(this->group_names)).end(); ++_iter1247) + std::vector ::const_iterator _iter1005; + for (_iter1005 = (*(this->group_names)).begin(); _iter1005 != (*(this->group_names)).end(); ++_iter1005) { - xfer += oprot->writeString((*_iter1247)); + xfer += oprot->writeString((*_iter1005)); } xfer += oprot->writeListEnd(); } @@ -27321,14 +24783,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_privilege_set_result::~ThriftHiveMetastore_get_privilege_set_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_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; @@ -27395,14 +24851,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_privilege_set_presult::~ThriftHiveMetastore_get_privilege_set_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_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; @@ -27449,14 +24899,8 @@ uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_list_privileges_args::~ThriftHiveMetastore_list_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_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; @@ -27485,9 +24929,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1248; - xfer += iprot->readI32(ecast1248); - this->principal_type = (PrincipalType::type)ecast1248; + int32_t ecast1006; + xfer += iprot->readI32(ecast1006); + this->principal_type = (PrincipalType::type)ecast1006; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27515,7 +24959,6 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_args"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -27535,14 +24978,8 @@ uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_list_privileges_pargs::~ThriftHiveMetastore_list_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_pargs"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -27562,14 +24999,8 @@ uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_list_privileges_result::~ThriftHiveMetastore_list_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_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; @@ -27592,14 +25023,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1249; - ::apache::thrift::protocol::TType _etype1252; - xfer += iprot->readListBegin(_etype1252, _size1249); - this->success.resize(_size1249); - uint32_t _i1253; - for (_i1253 = 0; _i1253 < _size1249; ++_i1253) + uint32_t _size1007; + ::apache::thrift::protocol::TType _etype1010; + xfer += iprot->readListBegin(_etype1010, _size1007); + this->success.resize(_size1007); + uint32_t _i1011; + for (_i1011 = 0; _i1011 < _size1007; ++_i1011) { - xfer += this->success[_i1253].read(iprot); + xfer += this->success[_i1011].read(iprot); } xfer += iprot->readListEnd(); } @@ -27638,10 +25069,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1254; - for (_iter1254 = this->success.begin(); _iter1254 != this->success.end(); ++_iter1254) + std::vector ::const_iterator _iter1012; + for (_iter1012 = this->success.begin(); _iter1012 != this->success.end(); ++_iter1012) { - xfer += (*_iter1254).write(oprot); + xfer += (*_iter1012).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27656,14 +25087,8 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_list_privileges_presult::~ThriftHiveMetastore_list_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_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; @@ -27686,14 +25111,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1255; - ::apache::thrift::protocol::TType _etype1258; - xfer += iprot->readListBegin(_etype1258, _size1255); - (*(this->success)).resize(_size1255); - uint32_t _i1259; - for (_i1259 = 0; _i1259 < _size1255; ++_i1259) + uint32_t _size1013; + ::apache::thrift::protocol::TType _etype1016; + xfer += iprot->readListBegin(_etype1016, _size1013); + (*(this->success)).resize(_size1013); + uint32_t _i1017; + for (_i1017 = 0; _i1017 < _size1013; ++_i1017) { - xfer += (*(this->success))[_i1259].read(iprot); + xfer += (*(this->success))[_i1017].read(iprot); } xfer += iprot->readListEnd(); } @@ -27722,14 +25147,8 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_grant_privileges_args::~ThriftHiveMetastore_grant_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_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; @@ -27770,7 +25189,6 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_args"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27782,14 +25200,8 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_grant_privileges_pargs::~ThriftHiveMetastore_grant_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_pargs"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27801,14 +25213,8 @@ uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_grant_privileges_result::~ThriftHiveMetastore_grant_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_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; @@ -27875,14 +25281,8 @@ uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_grant_privileges_presult::~ThriftHiveMetastore_grant_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_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; @@ -27929,14 +25329,8 @@ uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_revoke_privileges_args::~ThriftHiveMetastore_revoke_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_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; @@ -27977,7 +25371,6 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_args"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27989,14 +25382,8 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_revoke_privileges_pargs::~ThriftHiveMetastore_revoke_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_pargs"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28008,14 +25395,8 @@ uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_revoke_privileges_result::~ThriftHiveMetastore_revoke_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_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; @@ -28082,14 +25463,8 @@ uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_revoke_privileges_presult::~ThriftHiveMetastore_revoke_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_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; @@ -28136,14 +25511,8 @@ uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_args::~ThriftHiveMetastore_grant_revoke_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_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; @@ -28184,7 +25553,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::read(::apache::thrift uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_privileges_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28196,14 +25564,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_pargs::~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_privileges_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28215,14 +25577,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_pargs::write(::apache::thri return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_result::~ThriftHiveMetastore_grant_revoke_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_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; @@ -28289,14 +25645,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_presult::~ThriftHiveMetastore_grant_revoke_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_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; @@ -28343,14 +25693,8 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_set_ugi_args::~ThriftHiveMetastore_set_ugi_args() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_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; @@ -28381,14 +25725,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1260; - ::apache::thrift::protocol::TType _etype1263; - xfer += iprot->readListBegin(_etype1263, _size1260); - this->group_names.resize(_size1260); - uint32_t _i1264; - for (_i1264 = 0; _i1264 < _size1260; ++_i1264) + uint32_t _size1018; + ::apache::thrift::protocol::TType _etype1021; + xfer += iprot->readListBegin(_etype1021, _size1018); + this->group_names.resize(_size1018); + uint32_t _i1022; + for (_i1022 = 0; _i1022 < _size1018; ++_i1022) { - xfer += iprot->readString(this->group_names[_i1264]); + xfer += iprot->readString(this->group_names[_i1022]); } xfer += iprot->readListEnd(); } @@ -28411,7 +25755,6 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_args"); xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1); @@ -28421,10 +25764,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1265; - for (_iter1265 = this->group_names.begin(); _iter1265 != this->group_names.end(); ++_iter1265) + std::vector ::const_iterator _iter1023; + for (_iter1023 = this->group_names.begin(); _iter1023 != this->group_names.end(); ++_iter1023) { - xfer += oprot->writeString((*_iter1265)); + xfer += oprot->writeString((*_iter1023)); } xfer += oprot->writeListEnd(); } @@ -28435,14 +25778,8 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr return xfer; } - -ThriftHiveMetastore_set_ugi_pargs::~ThriftHiveMetastore_set_ugi_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_pargs"); xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1); @@ -28452,10 +25789,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1266; - for (_iter1266 = (*(this->group_names)).begin(); _iter1266 != (*(this->group_names)).end(); ++_iter1266) + std::vector ::const_iterator _iter1024; + for (_iter1024 = (*(this->group_names)).begin(); _iter1024 != (*(this->group_names)).end(); ++_iter1024) { - xfer += oprot->writeString((*_iter1266)); + xfer += oprot->writeString((*_iter1024)); } xfer += oprot->writeListEnd(); } @@ -28466,14 +25803,8 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_set_ugi_result::~ThriftHiveMetastore_set_ugi_result() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_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; @@ -28496,14 +25827,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1267; - ::apache::thrift::protocol::TType _etype1270; - xfer += iprot->readListBegin(_etype1270, _size1267); - this->success.resize(_size1267); - uint32_t _i1271; - for (_i1271 = 0; _i1271 < _size1267; ++_i1271) + uint32_t _size1025; + ::apache::thrift::protocol::TType _etype1028; + xfer += iprot->readListBegin(_etype1028, _size1025); + this->success.resize(_size1025); + uint32_t _i1029; + for (_i1029 = 0; _i1029 < _size1025; ++_i1029) { - xfer += iprot->readString(this->success[_i1271]); + xfer += iprot->readString(this->success[_i1029]); } xfer += iprot->readListEnd(); } @@ -28542,10 +25873,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1272; - for (_iter1272 = this->success.begin(); _iter1272 != this->success.end(); ++_iter1272) + std::vector ::const_iterator _iter1030; + for (_iter1030 = this->success.begin(); _iter1030 != this->success.end(); ++_iter1030) { - xfer += oprot->writeString((*_iter1272)); + xfer += oprot->writeString((*_iter1030)); } xfer += oprot->writeListEnd(); } @@ -28560,14 +25891,8 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_set_ugi_presult::~ThriftHiveMetastore_set_ugi_presult() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_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; @@ -28590,14 +25915,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1273; - ::apache::thrift::protocol::TType _etype1276; - xfer += iprot->readListBegin(_etype1276, _size1273); - (*(this->success)).resize(_size1273); - uint32_t _i1277; - for (_i1277 = 0; _i1277 < _size1273; ++_i1277) + uint32_t _size1031; + ::apache::thrift::protocol::TType _etype1034; + xfer += iprot->readListBegin(_etype1034, _size1031); + (*(this->success)).resize(_size1031); + uint32_t _i1035; + for (_i1035 = 0; _i1035 < _size1031; ++_i1035) { - xfer += iprot->readString((*(this->success))[_i1277]); + xfer += iprot->readString((*(this->success))[_i1035]); } xfer += iprot->readListEnd(); } @@ -28626,14 +25951,8 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_get_delegation_token_args::~ThriftHiveMetastore_get_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_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; @@ -28682,7 +26001,6 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_args"); xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1); @@ -28698,14 +26016,8 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_delegation_token_pargs::~ThriftHiveMetastore_get_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1); @@ -28721,14 +26033,8 @@ uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_delegation_token_result::~ThriftHiveMetastore_get_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_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; @@ -28795,14 +26101,8 @@ uint32_t ThriftHiveMetastore_get_delegation_token_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_delegation_token_presult::~ThriftHiveMetastore_get_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_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; @@ -28849,14 +26149,8 @@ uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_renew_delegation_token_args::~ThriftHiveMetastore_renew_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_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; @@ -28897,7 +26191,6 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_args"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -28909,14 +26202,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_renew_delegation_token_pargs::~ThriftHiveMetastore_renew_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -28928,14 +26215,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_renew_delegation_token_result::~ThriftHiveMetastore_renew_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_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; @@ -29002,14 +26283,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_renew_delegation_token_presult::~ThriftHiveMetastore_renew_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_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; @@ -29056,14 +26331,8 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_args::~ThriftHiveMetastore_cancel_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_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; @@ -29104,7 +26373,6 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_args"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -29116,14 +26384,8 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_pargs::~ThriftHiveMetastore_cancel_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -29135,14 +26397,8 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thri return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_result::~ThriftHiveMetastore_cancel_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_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; @@ -29197,14 +26453,8 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_presult::~ThriftHiveMetastore_cancel_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_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; @@ -29243,14 +26493,8 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_get_open_txns_args::~ThriftHiveMetastore_get_open_txns_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_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; @@ -29278,7 +26522,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_args"); xfer += oprot->writeFieldStop(); @@ -29286,14 +26529,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_args::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_open_txns_pargs::~ThriftHiveMetastore_get_open_txns_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_pargs"); xfer += oprot->writeFieldStop(); @@ -29301,14 +26538,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_pargs::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_open_txns_result::~ThriftHiveMetastore_get_open_txns_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_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; @@ -29363,14 +26594,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_open_txns_presult::~ThriftHiveMetastore_get_open_txns_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_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; @@ -29409,14 +26634,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_open_txns_info_args::~ThriftHiveMetastore_get_open_txns_info_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_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; @@ -29444,7 +26663,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_get_open_txns_info_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_args"); xfer += oprot->writeFieldStop(); @@ -29452,14 +26670,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_args::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_open_txns_info_pargs::~ThriftHiveMetastore_get_open_txns_info_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_pargs"); xfer += oprot->writeFieldStop(); @@ -29467,14 +26679,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_pargs::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_open_txns_info_result::~ThriftHiveMetastore_get_open_txns_info_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_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; @@ -29529,14 +26735,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_open_txns_info_presult::~ThriftHiveMetastore_get_open_txns_info_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_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; @@ -29575,14 +26775,8 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_open_txns_args::~ThriftHiveMetastore_open_txns_args() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_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; @@ -29623,7 +26817,6 @@ uint32_t ThriftHiveMetastore_open_txns_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29635,14 +26828,8 @@ uint32_t ThriftHiveMetastore_open_txns_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_open_txns_pargs::~ThriftHiveMetastore_open_txns_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29654,14 +26841,8 @@ uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_open_txns_result::~ThriftHiveMetastore_open_txns_result() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_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; @@ -29716,14 +26897,8 @@ uint32_t ThriftHiveMetastore_open_txns_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_open_txns_presult::~ThriftHiveMetastore_open_txns_presult() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_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; @@ -29762,14 +26937,8 @@ uint32_t ThriftHiveMetastore_open_txns_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_abort_txn_args::~ThriftHiveMetastore_abort_txn_args() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_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; @@ -29810,7 +26979,6 @@ uint32_t ThriftHiveMetastore_abort_txn_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_abort_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29822,14 +26990,8 @@ uint32_t ThriftHiveMetastore_abort_txn_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_abort_txn_pargs::~ThriftHiveMetastore_abort_txn_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29841,14 +27003,8 @@ uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_abort_txn_result::~ThriftHiveMetastore_abort_txn_result() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_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; @@ -29903,14 +27059,8 @@ uint32_t ThriftHiveMetastore_abort_txn_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_abort_txn_presult::~ThriftHiveMetastore_abort_txn_presult() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_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; @@ -29949,14 +27099,8 @@ uint32_t ThriftHiveMetastore_abort_txn_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_commit_txn_args::~ThriftHiveMetastore_commit_txn_args() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_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; @@ -29997,7 +27141,6 @@ uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30009,14 +27152,8 @@ uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_commit_txn_pargs::~ThriftHiveMetastore_commit_txn_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30028,14 +27165,8 @@ uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_commit_txn_result::~ThriftHiveMetastore_commit_txn_result() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_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; @@ -30102,14 +27233,8 @@ uint32_t ThriftHiveMetastore_commit_txn_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_commit_txn_presult::~ThriftHiveMetastore_commit_txn_presult() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_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; @@ -30156,14 +27281,8 @@ uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_lock_args::~ThriftHiveMetastore_lock_args() throw() { -} - - uint32_t ThriftHiveMetastore_lock_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; @@ -30204,7 +27323,6 @@ uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtoc uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30216,14 +27334,8 @@ uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProto return xfer; } - -ThriftHiveMetastore_lock_pargs::~ThriftHiveMetastore_lock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30235,14 +27347,8 @@ uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProt return xfer; } - -ThriftHiveMetastore_lock_result::~ThriftHiveMetastore_lock_result() throw() { -} - - uint32_t ThriftHiveMetastore_lock_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; @@ -30321,14 +27427,8 @@ uint32_t ThriftHiveMetastore_lock_result::write(::apache::thrift::protocol::TPro return xfer; } - -ThriftHiveMetastore_lock_presult::~ThriftHiveMetastore_lock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_lock_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; @@ -30383,14 +27483,8 @@ uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TPro return xfer; } - -ThriftHiveMetastore_check_lock_args::~ThriftHiveMetastore_check_lock_args() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_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; @@ -30431,7 +27525,6 @@ uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30443,14 +27536,8 @@ uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_check_lock_pargs::~ThriftHiveMetastore_check_lock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30462,14 +27549,8 @@ uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_check_lock_result::~ThriftHiveMetastore_check_lock_result() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_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; @@ -30560,14 +27641,8 @@ uint32_t ThriftHiveMetastore_check_lock_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_check_lock_presult::~ThriftHiveMetastore_check_lock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_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; @@ -30630,14 +27705,8 @@ uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_unlock_args::~ThriftHiveMetastore_unlock_args() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_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; @@ -30678,7 +27747,6 @@ uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProt uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30690,14 +27758,8 @@ uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TPro return xfer; } - -ThriftHiveMetastore_unlock_pargs::~ThriftHiveMetastore_unlock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30709,14 +27771,8 @@ uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TPr return xfer; } - -ThriftHiveMetastore_unlock_result::~ThriftHiveMetastore_unlock_result() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_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; @@ -30783,14 +27839,8 @@ uint32_t ThriftHiveMetastore_unlock_result::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_unlock_presult::~ThriftHiveMetastore_unlock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_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; @@ -30837,14 +27887,8 @@ uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_show_locks_args::~ThriftHiveMetastore_show_locks_args() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_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; @@ -30885,7 +27929,6 @@ uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30897,14 +27940,8 @@ uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_show_locks_pargs::~ThriftHiveMetastore_show_locks_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30916,14 +27953,8 @@ uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_show_locks_result::~ThriftHiveMetastore_show_locks_result() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_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; @@ -30978,14 +28009,8 @@ uint32_t ThriftHiveMetastore_show_locks_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_show_locks_presult::~ThriftHiveMetastore_show_locks_presult() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_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; @@ -31024,14 +28049,8 @@ uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_heartbeat_args::~ThriftHiveMetastore_heartbeat_args() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_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; @@ -31072,7 +28091,6 @@ uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_args"); xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31084,14 +28102,8 @@ uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_heartbeat_pargs::~ThriftHiveMetastore_heartbeat_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_pargs"); xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31103,14 +28115,8 @@ uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_heartbeat_result::~ThriftHiveMetastore_heartbeat_result() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_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; @@ -31189,14 +28195,8 @@ uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_heartbeat_presult::~ThriftHiveMetastore_heartbeat_presult() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_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; @@ -31251,14 +28251,8 @@ uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_args::~ThriftHiveMetastore_heartbeat_txn_range_args() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_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; @@ -31299,7 +28293,6 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_args"); xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31311,14 +28304,8 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_pargs::~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_pargs"); xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31330,14 +28317,8 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_result::~ThriftHiveMetastore_heartbeat_txn_range_result() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_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; @@ -31392,14 +28373,8 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_presult::~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_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; @@ -31438,14 +28413,8 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_compact_args::~ThriftHiveMetastore_compact_args() throw() { -} - - uint32_t ThriftHiveMetastore_compact_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; @@ -31486,7 +28455,6 @@ uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31498,14 +28466,8 @@ uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TPr return xfer; } - -ThriftHiveMetastore_compact_pargs::~ThriftHiveMetastore_compact_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31517,14 +28479,8 @@ uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_compact_result::~ThriftHiveMetastore_compact_result() throw() { -} - - uint32_t ThriftHiveMetastore_compact_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; @@ -31561,14 +28517,8 @@ uint32_t ThriftHiveMetastore_compact_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_compact_presult::~ThriftHiveMetastore_compact_presult() throw() { -} - - uint32_t ThriftHiveMetastore_compact_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; @@ -31594,14 +28544,8 @@ uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_show_compact_args::~ThriftHiveMetastore_show_compact_args() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_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; @@ -31642,7 +28586,6 @@ uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31654,14 +28597,8 @@ uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31673,14 +28610,8 @@ uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_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; @@ -31735,14 +28666,8 @@ uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_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; @@ -31781,14 +28706,8 @@ uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_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; @@ -31829,7 +28748,6 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31841,14 +28759,8 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31860,14 +28772,8 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_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; @@ -31934,14 +28840,8 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_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; @@ -31988,14 +28888,8 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_next_notification_args::~ThriftHiveMetastore_get_next_notification_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_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; @@ -32036,7 +28930,6 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32048,14 +28941,8 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_next_notification_pargs::~ThriftHiveMetastore_get_next_notification_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32067,14 +28954,8 @@ uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_next_notification_result::~ThriftHiveMetastore_get_next_notification_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_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; @@ -32129,14 +29010,8 @@ uint32_t ThriftHiveMetastore_get_next_notification_result::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_next_notification_presult::~ThriftHiveMetastore_get_next_notification_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_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; @@ -32175,14 +29050,8 @@ uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_current_notificationEventId_args::~ThriftHiveMetastore_get_current_notificationEventId_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_current_notificationEventId_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; @@ -32210,7 +29079,6 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_args"); xfer += oprot->writeFieldStop(); @@ -32218,14 +29086,8 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apach return xfer; } - -ThriftHiveMetastore_get_current_notificationEventId_pargs::~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_pargs"); xfer += oprot->writeFieldStop(); @@ -32233,14 +29095,8 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apac return xfer; } - -ThriftHiveMetastore_get_current_notificationEventId_result::~ThriftHiveMetastore_get_current_notificationEventId_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_current_notificationEventId_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; @@ -32295,14 +29151,8 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apa return xfer; } - -ThriftHiveMetastore_get_current_notificationEventId_presult::~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_current_notificationEventId_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; @@ -32341,14 +29191,8 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apa return xfer; } - -ThriftHiveMetastore_fire_listener_event_args::~ThriftHiveMetastore_fire_listener_event_args() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_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; @@ -32389,7 +29233,6 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32401,14 +29244,8 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_fire_listener_event_pargs::~ThriftHiveMetastore_fire_listener_event_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32420,14 +29257,8 @@ uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_fire_listener_event_result::~ThriftHiveMetastore_fire_listener_event_result() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_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; @@ -32482,14 +29313,8 @@ uint32_t ThriftHiveMetastore_fire_listener_event_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_fire_listener_event_presult::~ThriftHiveMetastore_fire_listener_event_presult() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_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; @@ -32528,14 +29353,8 @@ uint32_t ThriftHiveMetastore_fire_listener_event_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_flushCache_args::~ThriftHiveMetastore_flushCache_args() throw() { -} - - uint32_t ThriftHiveMetastore_flushCache_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; @@ -32563,7 +29382,6 @@ uint32_t ThriftHiveMetastore_flushCache_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_flushCache_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_args"); xfer += oprot->writeFieldStop(); @@ -32571,14 +29389,8 @@ uint32_t ThriftHiveMetastore_flushCache_args::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_flushCache_pargs::~ThriftHiveMetastore_flushCache_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_flushCache_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_flushCache_pargs"); xfer += oprot->writeFieldStop(); @@ -32586,14 +29398,8 @@ uint32_t ThriftHiveMetastore_flushCache_pargs::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_flushCache_result::~ThriftHiveMetastore_flushCache_result() throw() { -} - - uint32_t ThriftHiveMetastore_flushCache_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; @@ -32630,14 +29436,8 @@ uint32_t ThriftHiveMetastore_flushCache_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_flushCache_presult::~ThriftHiveMetastore_flushCache_presult() throw() { -} - - uint32_t ThriftHiveMetastore_flushCache_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; @@ -32663,14 +29463,8 @@ uint32_t ThriftHiveMetastore_flushCache_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_file_metadata_by_expr_args::~ThriftHiveMetastore_get_file_metadata_by_expr_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_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; @@ -32711,7 +29505,6 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::read(::apache::thri uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32723,14 +29516,8 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_args::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_file_metadata_by_expr_pargs::~ThriftHiveMetastore_get_file_metadata_by_expr_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_by_expr_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -32742,14 +29529,8 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_pargs::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_file_metadata_by_expr_result::~ThriftHiveMetastore_get_file_metadata_by_expr_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_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; @@ -32804,139 +29585,114 @@ uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_result::write(::apache::t return xfer; } +uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_file_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->req.read(iprot); + this->__isset.req = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_args"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->req.write(oprot); + xfer += oprot->writeFieldEnd(); -ThriftHiveMetastore_get_file_metadata_by_expr_presult::~ThriftHiveMetastore_get_file_metadata_by_expr_presult() throw() { + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } +uint32_t ThriftHiveMetastore_get_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_pargs"); -uint32_t ThriftHiveMetastore_get_file_metadata_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->req)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_file_metadata_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 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_get_file_metadata_args::~ThriftHiveMetastore_get_file_metadata_args() throw() { -} - - -uint32_t ThriftHiveMetastore_get_file_metadata_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->req.read(iprot); - this->__isset.req = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_get_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_args"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->req.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_file_metadata_pargs::~ThriftHiveMetastore_get_file_metadata_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_get_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_file_metadata_pargs"); - - xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->req)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_file_metadata_result::~ThriftHiveMetastore_get_file_metadata_result() throw() { -} - - -uint32_t ThriftHiveMetastore_get_file_metadata_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; @@ -32991,14 +29747,8 @@ uint32_t ThriftHiveMetastore_get_file_metadata_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_file_metadata_presult::~ThriftHiveMetastore_get_file_metadata_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_file_metadata_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; @@ -33037,14 +29787,8 @@ uint32_t ThriftHiveMetastore_get_file_metadata_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_put_file_metadata_args::~ThriftHiveMetastore_put_file_metadata_args() throw() { -} - - uint32_t ThriftHiveMetastore_put_file_metadata_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; @@ -33085,7 +29829,6 @@ uint32_t ThriftHiveMetastore_put_file_metadata_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_put_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33097,14 +29840,8 @@ uint32_t ThriftHiveMetastore_put_file_metadata_args::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_put_file_metadata_pargs::~ThriftHiveMetastore_put_file_metadata_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_put_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_put_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33116,14 +29853,8 @@ uint32_t ThriftHiveMetastore_put_file_metadata_pargs::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_put_file_metadata_result::~ThriftHiveMetastore_put_file_metadata_result() throw() { -} - - uint32_t ThriftHiveMetastore_put_file_metadata_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; @@ -33178,14 +29909,8 @@ uint32_t ThriftHiveMetastore_put_file_metadata_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_put_file_metadata_presult::~ThriftHiveMetastore_put_file_metadata_presult() throw() { -} - - uint32_t ThriftHiveMetastore_put_file_metadata_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; @@ -33224,14 +29949,8 @@ uint32_t ThriftHiveMetastore_put_file_metadata_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_clear_file_metadata_args::~ThriftHiveMetastore_clear_file_metadata_args() throw() { -} - - uint32_t ThriftHiveMetastore_clear_file_metadata_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; @@ -33272,7 +29991,6 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_clear_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33284,14 +30002,8 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_clear_file_metadata_pargs::~ThriftHiveMetastore_clear_file_metadata_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_clear_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_clear_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33303,14 +30015,8 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_clear_file_metadata_result::~ThriftHiveMetastore_clear_file_metadata_result() throw() { -} - - uint32_t ThriftHiveMetastore_clear_file_metadata_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; @@ -33365,14 +30071,8 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_clear_file_metadata_presult::~ThriftHiveMetastore_clear_file_metadata_presult() throw() { -} - - uint32_t ThriftHiveMetastore_clear_file_metadata_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; @@ -33411,14 +30111,8 @@ uint32_t ThriftHiveMetastore_clear_file_metadata_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_cache_file_metadata_args::~ThriftHiveMetastore_cache_file_metadata_args() throw() { -} - - uint32_t ThriftHiveMetastore_cache_file_metadata_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; @@ -33459,7 +30153,6 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_cache_file_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33471,14 +30164,8 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_args::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_cache_file_metadata_pargs::~ThriftHiveMetastore_cache_file_metadata_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_cache_file_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cache_file_metadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -33490,14 +30177,8 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_pargs::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_cache_file_metadata_result::~ThriftHiveMetastore_cache_file_metadata_result() throw() { -} - - uint32_t ThriftHiveMetastore_cache_file_metadata_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; @@ -33552,14 +30233,8 @@ uint32_t ThriftHiveMetastore_cache_file_metadata_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_cache_file_metadata_presult::~ThriftHiveMetastore_cache_file_metadata_presult() throw() { -} - - uint32_t ThriftHiveMetastore_cache_file_metadata_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; @@ -50010,12174 +46685,5 @@ void ThriftHiveMetastoreProcessor::process_cache_file_metadata(int32_t seqid, :: ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new ThriftHiveMetastoreProcessor(handler)); return processor; } - -void ThriftHiveMetastoreConcurrentClient::getMetaConf(std::string& _return, const std::string& key) -{ - int32_t seqid = send_getMetaConf(key); - recv_getMetaConf(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_getMetaConf(const std::string& key) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("getMetaConf", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_getMetaConf_pargs args; - args.key = &key; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_getMetaConf(std::string& _return, 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_, 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("getMetaConf") != 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_getMetaConf_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getMetaConf failed: unknown result"); - } - // 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::setMetaConf(const std::string& key, const std::string& value) -{ - int32_t seqid = send_setMetaConf(key, value); - recv_setMetaConf(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_setMetaConf(const std::string& key, const std::string& value) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("setMetaConf", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_setMetaConf_pargs args; - args.key = &key; - args.value = &value; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_setMetaConf(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_, 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("setMetaConf") != 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_setMetaConf_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::create_database(const Database& database) -{ - int32_t seqid = send_create_database(database); - recv_create_database(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_database(const Database& database) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_database", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_database_pargs args; - args.database = &database; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_create_database(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_, 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("create_database") != 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_create_database_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::get_database(Database& _return, const std::string& name) -{ - int32_t seqid = send_get_database(name); - recv_get_database(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_database(const std::string& name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_database_pargs args; - args.name = &name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, 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_, 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("get_database") != 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_get_database_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result"); - } - // 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::drop_database(const std::string& name, const bool deleteData, const bool cascade) -{ - int32_t seqid = send_drop_database(name, deleteData, cascade); - recv_drop_database(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_database_pargs args; - args.name = &name; - args.deleteData = &deleteData; - args.cascade = &cascade; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_database(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_, 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("drop_database") != 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_drop_database_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::get_databases(std::vector & _return, const std::string& pattern) -{ - int32_t seqid = send_get_databases(pattern); - recv_get_databases(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::string& pattern) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_databases_pargs args; - args.pattern = &pattern; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return, 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_, 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("get_databases") != 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_get_databases_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result"); - } - // 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::get_all_databases(std::vector & _return) -{ - int32_t seqid = send_get_all_databases(); - recv_get_all_databases(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_all_databases_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, 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_, 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("get_all_databases") != 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_get_all_databases_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result"); - } - // 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::alter_database(const std::string& dbname, const Database& db) -{ - int32_t seqid = send_alter_database(dbname, db); - recv_alter_database(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::string& dbname, const Database& db) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_database_pargs args; - args.dbname = &dbname; - args.db = &db; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_database(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_, 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("alter_database") != 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_alter_database_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::get_type(Type& _return, const std::string& name) -{ - int32_t seqid = send_get_type(name); - recv_get_type(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_type_pargs args; - args.name = &name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, 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_, 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("get_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_get_type_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::create_type(const Type& type) -{ - int32_t seqid = send_create_type(type); - return recv_create_type(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_type_pargs args; - args.type = &type; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_create_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_, 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("create_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); - } - bool _return; - ThriftHiveMetastore_create_type_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) -{ - int32_t seqid = send_drop_type(type); - return recv_drop_type(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_type_pargs args; - args.type = &type; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_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_, 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("drop_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); - } - bool _return; - ThriftHiveMetastore_drop_type_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); - } - // 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::get_type_all(std::map & _return, const std::string& name) -{ - int32_t seqid = send_get_type_all(name); - recv_get_type_all(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_type_all_pargs args; - args.name = &name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, 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_, 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("get_type_all") != 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_get_type_all_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result"); - } - // 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::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) -{ - int32_t seqid = send_get_fields(db_name, table_name); - recv_get_fields(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_fields_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, 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_, 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("get_fields") != 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_get_fields_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result"); - } - // 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::get_fields_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_get_fields_with_environment_context(db_name, table_name, environment_context); - recv_get_fields_with_environment_context(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_fields_with_environment_context_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, 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_, 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("get_fields_with_environment_context") != 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_get_fields_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields_with_environment_context failed: unknown result"); - } - // 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::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) -{ - int32_t seqid = send_get_schema(db_name, table_name); - recv_get_schema(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_schema_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, 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_, 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("get_schema") != 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_get_schema_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result"); - } - // 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::get_schema_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_get_schema_with_environment_context(db_name, table_name, environment_context); - recv_get_schema_with_environment_context(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_schema_with_environment_context_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_context(std::vector & _return, 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_, 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("get_schema_with_environment_context") != 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_get_schema_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); - } - // 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::create_table(const Table& tbl) -{ - int32_t seqid = send_create_table(tbl); - recv_create_table(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_table_pargs args; - args.tbl = &tbl; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_create_table(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_, 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("create_table") != 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_create_table_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - 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::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); - recv_create_table_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_table_with_environment_context_pargs args; - args.tbl = &tbl; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_context(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_, 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("create_table_with_environment_context") != 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_create_table_with_environment_context_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - 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::drop_table(const std::string& dbname, const std::string& name, const bool deleteData) -{ - int32_t seqid = send_drop_table(dbname, name, deleteData); - recv_drop_table(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_table_pargs args; - args.dbname = &dbname; - args.name = &name; - args.deleteData = &deleteData; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_table(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_, 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("drop_table") != 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_drop_table_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_drop_table_with_environment_context(dbname, name, deleteData, environment_context); - recv_drop_table_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_table_with_environment_context_pargs args; - args.dbname = &dbname; - args.name = &name; - args.deleteData = &deleteData; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_table_with_environment_context(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_, 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("drop_table_with_environment_context") != 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_drop_table_with_environment_context_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) -{ - int32_t seqid = send_get_tables(db_name, pattern); - recv_get_tables(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_tables(const std::string& db_name, const std::string& pattern) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_tables_pargs args; - args.db_name = &db_name; - args.pattern = &pattern; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_tables(std::vector & _return, 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_, 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("get_tables") != 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_get_tables_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result"); - } - // 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::get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) -{ - int32_t seqid = send_get_table_meta(db_patterns, tbl_patterns, tbl_types); - recv_get_table_meta(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table_meta", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_meta_pargs args; - args.db_patterns = &db_patterns; - args.tbl_patterns = &tbl_patterns; - args.tbl_types = &tbl_types; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table_meta(std::vector & _return, 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_, 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("get_table_meta") != 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_get_table_meta_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_meta failed: unknown result"); - } - // 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::get_all_tables(std::vector & _return, const std::string& db_name) -{ - int32_t seqid = send_get_all_tables(db_name); - recv_get_all_tables(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_tables(const std::string& db_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_all_tables_pargs args; - args.db_name = &db_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_all_tables(std::vector & _return, 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_, 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("get_all_tables") != 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_get_all_tables_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result"); - } - // 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::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) -{ - int32_t seqid = send_get_table(dbname, tbl_name); - recv_get_table(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table(const std::string& dbname, const std::string& tbl_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_pargs args; - args.dbname = &dbname; - args.tbl_name = &tbl_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table(Table& _return, 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_, 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("get_table") != 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_get_table_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result"); - } - // 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::get_table_objects_by_name(std::vector
& _return, const std::string& dbname, const std::vector & tbl_names) -{ - int32_t seqid = send_get_table_objects_by_name(dbname, tbl_names); - recv_get_table_objects_by_name(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_objects_by_name(const std::string& dbname, const std::vector & tbl_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table_objects_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_objects_by_name_pargs args; - args.dbname = &dbname; - args.tbl_names = &tbl_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table_objects_by_name(std::vector
& _return, 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_, 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("get_table_objects_by_name") != 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_get_table_objects_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); - } - // 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::get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables) -{ - int32_t seqid = send_get_table_names_by_filter(dbname, filter, max_tables); - recv_get_table_names_by_filter(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_names_by_filter(const std::string& dbname, const std::string& filter, const int16_t max_tables) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table_names_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_names_by_filter_pargs args; - args.dbname = &dbname; - args.filter = &filter; - args.max_tables = &max_tables; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table_names_by_filter(std::vector & _return, 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_, 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("get_table_names_by_filter") != 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_get_table_names_by_filter_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_names_by_filter failed: unknown result"); - } - // 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::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) -{ - int32_t seqid = send_alter_table(dbname, tbl_name, new_tbl); - recv_alter_table(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_table_pargs args; - args.dbname = &dbname; - args.tbl_name = &tbl_name; - args.new_tbl = &new_tbl; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_table(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_, 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("alter_table") != 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_alter_table_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_alter_table_with_environment_context(dbname, tbl_name, new_tbl, environment_context); - recv_alter_table_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_table_with_environment_context_pargs args; - args.dbname = &dbname; - args.tbl_name = &tbl_name; - args.new_tbl = &new_tbl; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_table_with_environment_context(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_, 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("alter_table_with_environment_context") != 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_alter_table_with_environment_context_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::alter_table_with_cascade(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const bool cascade) -{ - int32_t seqid = send_alter_table_with_cascade(dbname, tbl_name, new_tbl, cascade); - recv_alter_table_with_cascade(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_table_with_cascade(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const bool cascade) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_table_with_cascade", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_table_with_cascade_pargs args; - args.dbname = &dbname; - args.tbl_name = &tbl_name; - args.new_tbl = &new_tbl; - args.cascade = &cascade; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_table_with_cascade(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_, 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("alter_table_with_cascade") != 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_alter_table_with_cascade_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::add_partition(Partition& _return, const Partition& new_part) -{ - int32_t seqid = send_add_partition(new_part); - recv_add_partition(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_partition(const Partition& new_part) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_partition_pargs args; - args.new_part = &new_part; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_add_partition(Partition& _return, 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_, 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("add_partition") != 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_add_partition_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition failed: unknown result"); - } - // 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::add_partition_with_environment_context(Partition& _return, const Partition& new_part, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_add_partition_with_environment_context(new_part, environment_context); - recv_add_partition_with_environment_context(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_partition_with_environment_context(const Partition& new_part, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_partition_with_environment_context_pargs args; - args.new_part = &new_part; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_add_partition_with_environment_context(Partition& _return, 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_, 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("add_partition_with_environment_context") != 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_add_partition_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition_with_environment_context failed: unknown result"); - } - // 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) -} - -int32_t ThriftHiveMetastoreConcurrentClient::add_partitions(const std::vector & new_parts) -{ - int32_t seqid = send_add_partitions(new_parts); - return recv_add_partitions(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_partitions(const std::vector & new_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_partitions_pargs args; - args.new_parts = &new_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -int32_t ThriftHiveMetastoreConcurrentClient::recv_add_partitions(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_, 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("add_partitions") != 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); - } - int32_t _return; - ThriftHiveMetastore_add_partitions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partitions failed: unknown result"); - } - // 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) -} - -int32_t ThriftHiveMetastoreConcurrentClient::add_partitions_pspec(const std::vector & new_parts) -{ - int32_t seqid = send_add_partitions_pspec(new_parts); - return recv_add_partitions_pspec(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_partitions_pspec(const std::vector & new_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_partitions_pspec", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_partitions_pspec_pargs args; - args.new_parts = &new_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -int32_t ThriftHiveMetastoreConcurrentClient::recv_add_partitions_pspec(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_, 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("add_partitions_pspec") != 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); - } - int32_t _return; - ThriftHiveMetastore_add_partitions_pspec_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partitions_pspec failed: unknown result"); - } - // 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::append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) -{ - int32_t seqid = send_append_partition(db_name, tbl_name, part_vals); - recv_append_partition(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_append_partition_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_append_partition(Partition& _return, 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_, 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("append_partition") != 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_append_partition_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition failed: unknown result"); - } - // 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::add_partitions_req(AddPartitionsResult& _return, const AddPartitionsRequest& request) -{ - int32_t seqid = send_add_partitions_req(request); - recv_add_partitions_req(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_partitions_req(const AddPartitionsRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_partitions_req", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_partitions_req_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_add_partitions_req(AddPartitionsResult& _return, 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_, 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("add_partitions_req") != 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_add_partitions_req_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partitions_req failed: unknown result"); - } - // 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::append_partition_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_append_partition_with_environment_context(db_name, tbl_name, part_vals, environment_context); - recv_append_partition_with_environment_context(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_append_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("append_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_append_partition_with_environment_context_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_append_partition_with_environment_context(Partition& _return, 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_, 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("append_partition_with_environment_context") != 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_append_partition_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_with_environment_context failed: unknown result"); - } - // 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::append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) -{ - int32_t seqid = send_append_partition_by_name(db_name, tbl_name, part_name); - recv_append_partition_by_name(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_append_partition_by_name_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_append_partition_by_name(Partition& _return, 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_, 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("append_partition_by_name") != 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_append_partition_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name failed: unknown result"); - } - // 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::append_partition_by_name_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_append_partition_by_name_with_environment_context(db_name, tbl_name, part_name, environment_context); - recv_append_partition_by_name_with_environment_context(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_append_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("append_partition_by_name_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_append_partition_by_name_with_environment_context(Partition& _return, 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_, 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("append_partition_by_name_with_environment_context") != 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_append_partition_by_name_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) -{ - int32_t seqid = send_drop_partition(db_name, tbl_name, part_vals, deleteData); - return recv_drop_partition(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_partition_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.deleteData = &deleteData; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_partition(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_, 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("drop_partition") != 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); - } - bool _return; - ThriftHiveMetastore_drop_partition_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); - return recv_drop_partition_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_partition_with_environment_context_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.deleteData = &deleteData; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_partition_with_environment_context(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_, 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("drop_partition_with_environment_context") != 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); - } - bool _return; - ThriftHiveMetastore_drop_partition_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) -{ - int32_t seqid = send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData); - return recv_drop_partition_by_name(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_partition_by_name_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.deleteData = &deleteData; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_partition_by_name(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_, 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("drop_partition_by_name") != 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); - } - bool _return; - ThriftHiveMetastore_drop_partition_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_drop_partition_by_name_with_environment_context(db_name, tbl_name, part_name, deleteData, environment_context); - return recv_drop_partition_by_name_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_partition_by_name_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.deleteData = &deleteData; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_partition_by_name_with_environment_context(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_, 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("drop_partition_by_name_with_environment_context") != 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); - } - bool _return; - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result"); - } - // 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::drop_partitions_req(DropPartitionsResult& _return, const DropPartitionsRequest& req) -{ - int32_t seqid = send_drop_partitions_req(req); - recv_drop_partitions_req(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_partitions_req(const DropPartitionsRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_partitions_req", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_partitions_req_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_partitions_req(DropPartitionsResult& _return, 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_, 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("drop_partitions_req") != 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_drop_partitions_req_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partitions_req failed: unknown result"); - } - // 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::get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) -{ - int32_t seqid = send_get_partition(db_name, tbl_name, part_vals); - recv_get_partition(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition(Partition& _return, 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_, 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("get_partition") != 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_get_partition_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition failed: unknown result"); - } - // 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::exchange_partition(Partition& _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) -{ - int32_t seqid = send_exchange_partition(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); - recv_exchange_partition(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_exchange_partition(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("exchange_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_exchange_partition_pargs args; - args.partitionSpecs = &partitionSpecs; - args.source_db = &source_db; - args.source_table_name = &source_table_name; - args.dest_db = &dest_db; - args.dest_table_name = &dest_table_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_exchange_partition(Partition& _return, 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_, 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("exchange_partition") != 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_exchange_partition_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "exchange_partition failed: unknown result"); - } - // 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::exchange_partitions(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) -{ - int32_t seqid = send_exchange_partitions(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); - recv_exchange_partitions(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_exchange_partitions(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("exchange_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_exchange_partitions_pargs args; - args.partitionSpecs = &partitionSpecs; - args.source_db = &source_db; - args.source_table_name = &source_table_name; - args.dest_db = &dest_db; - args.dest_table_name = &dest_table_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_exchange_partitions(std::vector & _return, 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_, 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("exchange_partitions") != 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_exchange_partitions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "exchange_partitions failed: unknown result"); - } - // 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::get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) -{ - int32_t seqid = send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names); - recv_get_partition_with_auth(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_with_auth_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.user_name = &user_name; - args.group_names = &group_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition_with_auth(Partition& _return, 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_, 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("get_partition_with_auth") != 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_get_partition_with_auth_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_with_auth failed: unknown result"); - } - // 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::get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) -{ - int32_t seqid = send_get_partition_by_name(db_name, tbl_name, part_name); - recv_get_partition_by_name(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_by_name_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition_by_name(Partition& _return, 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_, 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("get_partition_by_name") != 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_get_partition_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_by_name failed: unknown result"); - } - // 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::get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) -{ - int32_t seqid = send_get_partitions(db_name, tbl_name, max_parts); - recv_get_partitions(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions(std::vector & _return, 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_, 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("get_partitions") != 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_get_partitions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions failed: unknown result"); - } - // 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::get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) -{ - int32_t seqid = send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names); - recv_get_partitions_with_auth(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_with_auth(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_with_auth_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_parts = &max_parts; - args.user_name = &user_name; - args.group_names = &group_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_with_auth(std::vector & _return, 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_, 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("get_partitions_with_auth") != 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_get_partitions_with_auth_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_with_auth failed: unknown result"); - } - // 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::get_partitions_pspec(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int32_t max_parts) -{ - int32_t seqid = send_get_partitions_pspec(db_name, tbl_name, max_parts); - recv_get_partitions_pspec(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_pspec(const std::string& db_name, const std::string& tbl_name, const int32_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_pspec", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_pspec_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_pspec(std::vector & _return, 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_, 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("get_partitions_pspec") != 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_get_partitions_pspec_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_pspec failed: unknown result"); - } - // 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::get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) -{ - int32_t seqid = send_get_partition_names(db_name, tbl_name, max_parts); - recv_get_partition_names(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_names_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition_names(std::vector & _return, 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_, 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("get_partition_names") != 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_get_partition_names_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names failed: unknown result"); - } - // 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::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) -{ - int32_t seqid = send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); - recv_get_partitions_ps(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_ps_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_ps(std::vector & _return, 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_, 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("get_partitions_ps") != 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_get_partitions_ps_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps failed: unknown result"); - } - // 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::get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) -{ - int32_t seqid = send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names); - recv_get_partitions_ps_with_auth(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_ps_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_ps_with_auth_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.max_parts = &max_parts; - args.user_name = &user_name; - args.group_names = &group_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_ps_with_auth(std::vector & _return, 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_, 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("get_partitions_ps_with_auth") != 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_get_partitions_ps_with_auth_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); - } - // 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::get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) -{ - int32_t seqid = send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts); - recv_get_partition_names_ps(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_names_ps_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition_names_ps(std::vector & _return, 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_, 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("get_partition_names_ps") != 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_get_partition_names_ps_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names_ps failed: unknown result"); - } - // 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::get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) -{ - int32_t seqid = send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts); - recv_get_partitions_by_filter(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_by_filter_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.filter = &filter; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_by_filter(std::vector & _return, 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_, 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("get_partitions_by_filter") != 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_get_partitions_by_filter_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_filter failed: unknown result"); - } - // 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::get_part_specs_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int32_t max_parts) -{ - int32_t seqid = send_get_part_specs_by_filter(db_name, tbl_name, filter, max_parts); - recv_get_part_specs_by_filter(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_part_specs_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int32_t max_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_part_specs_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_part_specs_by_filter_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.filter = &filter; - args.max_parts = &max_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_part_specs_by_filter(std::vector & _return, 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_, 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("get_part_specs_by_filter") != 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_get_part_specs_by_filter_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_part_specs_by_filter failed: unknown result"); - } - // 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::get_partitions_by_expr(PartitionsByExprResult& _return, const PartitionsByExprRequest& req) -{ - int32_t seqid = send_get_partitions_by_expr(req); - recv_get_partitions_by_expr(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_by_expr(const PartitionsByExprRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_by_expr", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_by_expr_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_by_expr(PartitionsByExprResult& _return, 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_, 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("get_partitions_by_expr") != 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_get_partitions_by_expr_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_expr failed: unknown result"); - } - // 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) -} - -int32_t ThriftHiveMetastoreConcurrentClient::get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter) -{ - int32_t seqid = send_get_num_partitions_by_filter(db_name, tbl_name, filter); - return recv_get_num_partitions_by_filter(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_num_partitions_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_num_partitions_by_filter_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.filter = &filter; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -int32_t ThriftHiveMetastoreConcurrentClient::recv_get_num_partitions_by_filter(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_, 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("get_num_partitions_by_filter") != 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); - } - int32_t _return; - ThriftHiveMetastore_get_num_partitions_by_filter_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result"); - } - // 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::get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) -{ - int32_t seqid = send_get_partitions_by_names(db_name, tbl_name, names); - recv_get_partitions_by_names(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_by_names(const std::string& db_name, const std::string& tbl_name, const std::vector & names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_by_names", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_by_names_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.names = &names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_by_names(std::vector & _return, 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_, 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("get_partitions_by_names") != 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_get_partitions_by_names_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_names failed: unknown result"); - } - // 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::alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) -{ - int32_t seqid = send_alter_partition(db_name, tbl_name, new_part); - recv_alter_partition(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_partition_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.new_part = &new_part; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_partition(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_, 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("alter_partition") != 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_alter_partition_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::alter_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & new_parts) -{ - int32_t seqid = send_alter_partitions(db_name, tbl_name, new_parts); - recv_alter_partitions(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & new_parts) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_partitions_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.new_parts = &new_parts; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_partitions(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_, 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("alter_partitions") != 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_alter_partitions_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::alter_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const Partition& new_part, const EnvironmentContext& environment_context) -{ - int32_t seqid = send_alter_partition_with_environment_context(db_name, tbl_name, new_part, environment_context); - recv_alter_partition_with_environment_context(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const Partition& new_part, const EnvironmentContext& environment_context) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_partition_with_environment_context_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.new_part = &new_part; - args.environment_context = &environment_context; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_partition_with_environment_context(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_, 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("alter_partition_with_environment_context") != 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_alter_partition_with_environment_context_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::rename_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const Partition& new_part) -{ - int32_t seqid = send_rename_partition(db_name, tbl_name, part_vals, new_part); - recv_rename_partition(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_rename_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const Partition& new_part) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("rename_partition", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_rename_partition_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.new_part = &new_part; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_rename_partition(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_, 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("rename_partition") != 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_rename_partition_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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) -} - -bool ThriftHiveMetastoreConcurrentClient::partition_name_has_valid_characters(const std::vector & part_vals, const bool throw_exception) -{ - int32_t seqid = send_partition_name_has_valid_characters(part_vals, throw_exception); - return recv_partition_name_has_valid_characters(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_partition_name_has_valid_characters(const std::vector & part_vals, const bool throw_exception) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("partition_name_has_valid_characters", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_partition_name_has_valid_characters_pargs args; - args.part_vals = &part_vals; - args.throw_exception = &throw_exception; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_partition_name_has_valid_characters(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_, 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("partition_name_has_valid_characters") != 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); - } - bool _return; - ThriftHiveMetastore_partition_name_has_valid_characters_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result"); - } - // 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::get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue) -{ - int32_t seqid = send_get_config_value(name, defaultValue); - recv_get_config_value(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_config_value(const std::string& name, const std::string& defaultValue) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_config_value_pargs args; - args.name = &name; - args.defaultValue = &defaultValue; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_config_value(std::string& _return, 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_, 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("get_config_value") != 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_get_config_value_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_config_value failed: unknown result"); - } - // 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::partition_name_to_vals(std::vector & _return, const std::string& part_name) -{ - int32_t seqid = send_partition_name_to_vals(part_name); - recv_partition_name_to_vals(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_partition_name_to_vals(const std::string& part_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_partition_name_to_vals_pargs args; - args.part_name = &part_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_partition_name_to_vals(std::vector & _return, 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_, 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("partition_name_to_vals") != 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_partition_name_to_vals_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_vals failed: unknown result"); - } - // 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::partition_name_to_spec(std::map & _return, const std::string& part_name) -{ - int32_t seqid = send_partition_name_to_spec(part_name); - recv_partition_name_to_spec(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_partition_name_to_spec(const std::string& part_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_partition_name_to_spec_pargs args; - args.part_name = &part_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_partition_name_to_spec(std::map & _return, 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_, 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("partition_name_to_spec") != 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_partition_name_to_spec_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_spec failed: unknown result"); - } - // 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::markPartitionForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) -{ - int32_t seqid = send_markPartitionForEvent(db_name, tbl_name, part_vals, eventType); - recv_markPartitionForEvent(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_markPartitionForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("markPartitionForEvent", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_markPartitionForEvent_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.eventType = &eventType; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_markPartitionForEvent(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_, 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("markPartitionForEvent") != 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_markPartitionForEvent_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - if (result.__isset.o5) { - sentry.commit(); - throw result.o5; - } - if (result.__isset.o6) { - sentry.commit(); - throw result.o6; - } - 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) -} - -bool ThriftHiveMetastoreConcurrentClient::isPartitionMarkedForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) -{ - int32_t seqid = send_isPartitionMarkedForEvent(db_name, tbl_name, part_vals, eventType); - return recv_isPartitionMarkedForEvent(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_isPartitionMarkedForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("isPartitionMarkedForEvent", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_isPartitionMarkedForEvent_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_vals = &part_vals; - args.eventType = &eventType; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_isPartitionMarkedForEvent(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_, 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("isPartitionMarkedForEvent") != 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); - } - bool _return; - ThriftHiveMetastore_isPartitionMarkedForEvent_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - if (result.__isset.o5) { - sentry.commit(); - throw result.o5; - } - if (result.__isset.o6) { - sentry.commit(); - throw result.o6; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result"); - } - // 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::add_index(Index& _return, const Index& new_index, const Table& index_table) -{ - int32_t seqid = send_add_index(new_index, index_table); - recv_add_index(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_index(const Index& new_index, const Table& index_table) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_index", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_index_pargs args; - args.new_index = &new_index; - args.index_table = &index_table; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_add_index(Index& _return, 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_, 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("add_index") != 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_add_index_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_index failed: unknown result"); - } - // 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::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) -{ - int32_t seqid = send_alter_index(dbname, base_tbl_name, idx_name, new_idx); - recv_alter_index(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_index_pargs args; - args.dbname = &dbname; - args.base_tbl_name = &base_tbl_name; - args.idx_name = &idx_name; - args.new_idx = &new_idx; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_index(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_, 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("alter_index") != 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_alter_index_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) -{ - int32_t seqid = send_drop_index_by_name(db_name, tbl_name, index_name, deleteData); - return recv_drop_index_by_name(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_index_by_name_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.index_name = &index_name; - args.deleteData = &deleteData; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_index_by_name(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_, 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("drop_index_by_name") != 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); - } - bool _return; - ThriftHiveMetastore_drop_index_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result"); - } - // 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::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) -{ - int32_t seqid = send_get_index_by_name(db_name, tbl_name, index_name); - recv_get_index_by_name(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_index_by_name_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.index_name = &index_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_index_by_name(Index& _return, 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_, 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("get_index_by_name") != 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_get_index_by_name_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result"); - } - // 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::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) -{ - int32_t seqid = send_get_indexes(db_name, tbl_name, max_indexes); - recv_get_indexes(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_indexes_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_indexes = &max_indexes; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_indexes(std::vector & _return, 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_, 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("get_indexes") != 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_get_indexes_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result"); - } - // 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::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) -{ - int32_t seqid = send_get_index_names(db_name, tbl_name, max_indexes); - recv_get_index_names(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_index_names_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.max_indexes = &max_indexes; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vector & _return, 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_, 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("get_index_names") != 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_get_index_names_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_names failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::update_table_column_statistics(const ColumnStatistics& stats_obj) -{ - int32_t seqid = send_update_table_column_statistics(stats_obj); - return recv_update_table_column_statistics(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_update_table_column_statistics(const ColumnStatistics& stats_obj) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("update_table_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_update_table_column_statistics_pargs args; - args.stats_obj = &stats_obj; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_update_table_column_statistics(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_, 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("update_table_column_statistics") != 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); - } - bool _return; - ThriftHiveMetastore_update_table_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "update_table_column_statistics failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::update_partition_column_statistics(const ColumnStatistics& stats_obj) -{ - int32_t seqid = send_update_partition_column_statistics(stats_obj); - return recv_update_partition_column_statistics(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_update_partition_column_statistics(const ColumnStatistics& stats_obj) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("update_partition_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_update_partition_column_statistics_pargs args; - args.stats_obj = &stats_obj; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_update_partition_column_statistics(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_, 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("update_partition_column_statistics") != 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); - } - bool _return; - ThriftHiveMetastore_update_partition_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "update_partition_column_statistics failed: unknown result"); - } - // 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::get_table_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& col_name) -{ - int32_t seqid = send_get_table_column_statistics(db_name, tbl_name, col_name); - recv_get_table_column_statistics(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_column_statistics_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.col_name = &col_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table_column_statistics(ColumnStatistics& _return, 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_, 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("get_table_column_statistics") != 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_get_table_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_column_statistics failed: unknown result"); - } - // 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::get_partition_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) -{ - int32_t seqid = send_get_partition_column_statistics(db_name, tbl_name, part_name, col_name); - recv_get_partition_column_statistics(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partition_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partition_column_statistics_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.col_name = &col_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partition_column_statistics(ColumnStatistics& _return, 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_, 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("get_partition_column_statistics") != 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_get_partition_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_column_statistics failed: unknown result"); - } - // 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::get_table_statistics_req(TableStatsResult& _return, const TableStatsRequest& request) -{ - int32_t seqid = send_get_table_statistics_req(request); - recv_get_table_statistics_req(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_table_statistics_req(const TableStatsRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_table_statistics_req", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_table_statistics_req_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_table_statistics_req(TableStatsResult& _return, 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_, 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("get_table_statistics_req") != 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_get_table_statistics_req_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table_statistics_req failed: unknown result"); - } - // 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::get_partitions_statistics_req(PartitionsStatsResult& _return, const PartitionsStatsRequest& request) -{ - int32_t seqid = send_get_partitions_statistics_req(request); - recv_get_partitions_statistics_req(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_partitions_statistics_req(const PartitionsStatsRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_partitions_statistics_req", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_partitions_statistics_req_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_partitions_statistics_req(PartitionsStatsResult& _return, 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_, 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("get_partitions_statistics_req") != 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_get_partitions_statistics_req_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_statistics_req failed: unknown result"); - } - // 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::get_aggr_stats_for(AggrStats& _return, const PartitionsStatsRequest& request) -{ - int32_t seqid = send_get_aggr_stats_for(request); - recv_get_aggr_stats_for(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_aggr_stats_for(const PartitionsStatsRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_aggr_stats_for", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_aggr_stats_for_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_aggr_stats_for(AggrStats& _return, 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_, 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("get_aggr_stats_for") != 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_get_aggr_stats_for_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_aggr_stats_for failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::set_aggr_stats_for(const SetPartitionsStatsRequest& request) -{ - int32_t seqid = send_set_aggr_stats_for(request); - return recv_set_aggr_stats_for(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_set_aggr_stats_for(const SetPartitionsStatsRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("set_aggr_stats_for", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_set_aggr_stats_for_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_set_aggr_stats_for(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_, 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_aggr_stats_for") != 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); - } - bool _return; - ThriftHiveMetastore_set_aggr_stats_for_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "set_aggr_stats_for failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) -{ - int32_t seqid = send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name); - return recv_delete_partition_column_statistics(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("delete_partition_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_delete_partition_column_statistics_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.part_name = &part_name; - args.col_name = &col_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_delete_partition_column_statistics(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_, 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("delete_partition_column_statistics") != 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); - } - bool _return; - ThriftHiveMetastore_delete_partition_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "delete_partition_column_statistics failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name) -{ - int32_t seqid = send_delete_table_column_statistics(db_name, tbl_name, col_name); - return recv_delete_table_column_statistics(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("delete_table_column_statistics", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_delete_table_column_statistics_pargs args; - args.db_name = &db_name; - args.tbl_name = &tbl_name; - args.col_name = &col_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_delete_table_column_statistics(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_, 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("delete_table_column_statistics") != 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); - } - bool _return; - ThriftHiveMetastore_delete_table_column_statistics_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "delete_table_column_statistics failed: unknown result"); - } - // 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::create_function(const Function& func) -{ - int32_t seqid = send_create_function(func); - recv_create_function(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_function(const Function& func) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_function", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_function_pargs args; - args.func = &func; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_create_function(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_, 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("create_function") != 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_create_function_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } - 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::drop_function(const std::string& dbName, const std::string& funcName) -{ - int32_t seqid = send_drop_function(dbName, funcName); - recv_drop_function(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_function(const std::string& dbName, const std::string& funcName) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_function", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_function_pargs args; - args.dbName = &dbName; - args.funcName = &funcName; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_drop_function(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_, 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("drop_function") != 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_drop_function_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::alter_function(const std::string& dbName, const std::string& funcName, const Function& newFunc) -{ - int32_t seqid = send_alter_function(dbName, funcName, newFunc); - recv_alter_function(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_alter_function(const std::string& dbName, const std::string& funcName, const Function& newFunc) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_function", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_alter_function_pargs args; - args.dbName = &dbName; - args.funcName = &funcName; - args.newFunc = &newFunc; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_alter_function(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_, 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("alter_function") != 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_alter_function_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::get_functions(std::vector & _return, const std::string& dbName, const std::string& pattern) -{ - int32_t seqid = send_get_functions(dbName, pattern); - recv_get_functions(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_functions(const std::string& dbName, const std::string& pattern) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_functions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_functions_pargs args; - args.dbName = &dbName; - args.pattern = &pattern; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_functions(std::vector & _return, 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_, 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("get_functions") != 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_get_functions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_functions failed: unknown result"); - } - // 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::get_function(Function& _return, const std::string& dbName, const std::string& funcName) -{ - int32_t seqid = send_get_function(dbName, funcName); - recv_get_function(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_function(const std::string& dbName, const std::string& funcName) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_function", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_function_pargs args; - args.dbName = &dbName; - args.funcName = &funcName; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_function(Function& _return, 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_, 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("get_function") != 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_get_function_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_function failed: unknown result"); - } - // 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::get_all_functions(GetAllFunctionsResponse& _return) -{ - int32_t seqid = send_get_all_functions(); - recv_get_all_functions(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_functions() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_functions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_all_functions_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_all_functions(GetAllFunctionsResponse& _return, 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_, 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("get_all_functions") != 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_get_all_functions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_functions failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::create_role(const Role& role) -{ - int32_t seqid = send_create_role(role); - return recv_create_role(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_create_role(const Role& role) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_create_role_pargs args; - args.role = &role; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_create_role(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_, 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("create_role") != 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); - } - bool _return; - ThriftHiveMetastore_create_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_role failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::drop_role(const std::string& role_name) -{ - int32_t seqid = send_drop_role(role_name); - return recv_drop_role(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_role(const std::string& role_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_drop_role_pargs args; - args.role_name = &role_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_drop_role(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_, 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("drop_role") != 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); - } - bool _return; - ThriftHiveMetastore_drop_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_role failed: unknown result"); - } - // 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::get_role_names(std::vector & _return) -{ - int32_t seqid = send_get_role_names(); - recv_get_role_names(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_role_names() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_role_names", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_role_names_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_role_names(std::vector & _return, 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_, 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("get_role_names") != 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_get_role_names_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_role_names failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option) -{ - int32_t seqid = send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option); - return recv_grant_role(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_grant_role_pargs args; - args.role_name = &role_name; - args.principal_name = &principal_name; - args.principal_type = &principal_type; - args.grantor = &grantor; - args.grantorType = &grantorType; - args.grant_option = &grant_option; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_grant_role(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_, 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("grant_role") != 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); - } - bool _return; - ThriftHiveMetastore_grant_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_role failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type) -{ - int32_t seqid = send_revoke_role(role_name, principal_name, principal_type); - return recv_revoke_role(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_revoke_role_pargs args; - args.role_name = &role_name; - args.principal_name = &principal_name; - args.principal_type = &principal_type; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_revoke_role(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_, 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("revoke_role") != 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); - } - bool _return; - ThriftHiveMetastore_revoke_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_role failed: unknown result"); - } - // 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::list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type) -{ - int32_t seqid = send_list_roles(principal_name, principal_type); - recv_list_roles(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_list_roles(const std::string& principal_name, const PrincipalType::type principal_type) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_list_roles_pargs args; - args.principal_name = &principal_name; - args.principal_type = &principal_type; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_list_roles(std::vector & _return, 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_, 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("list_roles") != 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_list_roles_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_roles failed: unknown result"); - } - // 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::grant_revoke_role(GrantRevokeRoleResponse& _return, const GrantRevokeRoleRequest& request) -{ - int32_t seqid = send_grant_revoke_role(request); - recv_grant_revoke_role(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_revoke_role(const GrantRevokeRoleRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_revoke_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_grant_revoke_role_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_grant_revoke_role(GrantRevokeRoleResponse& _return, 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_, 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("grant_revoke_role") != 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_grant_revoke_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_revoke_role failed: unknown result"); - } - // 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::get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request) -{ - int32_t seqid = send_get_principals_in_role(request); - recv_get_principals_in_role(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_principals_in_role(const GetPrincipalsInRoleRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_principals_in_role", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_principals_in_role_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_principals_in_role(GetPrincipalsInRoleResponse& _return, 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_, 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("get_principals_in_role") != 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_get_principals_in_role_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_principals_in_role failed: unknown result"); - } - // 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::get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) -{ - int32_t seqid = send_get_role_grants_for_principal(request); - recv_get_role_grants_for_principal(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_role_grants_for_principal_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, 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_, 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("get_role_grants_for_principal") != 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_get_role_grants_for_principal_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); - } - // 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::get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) -{ - int32_t seqid = send_get_privilege_set(hiveObject, user_name, group_names); - recv_get_privilege_set(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_privilege_set_pargs args; - args.hiveObject = &hiveObject; - args.user_name = &user_name; - args.group_names = &group_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return, 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_, 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("get_privilege_set") != 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_get_privilege_set_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_privilege_set failed: unknown result"); - } - // 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::list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) -{ - int32_t seqid = send_list_privileges(principal_name, principal_type, hiveObject); - recv_list_privileges(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_list_privileges(const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_list_privileges_pargs args; - args.principal_name = &principal_name; - args.principal_type = &principal_type; - args.hiveObject = &hiveObject; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_list_privileges(std::vector & _return, 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_, 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("list_privileges") != 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_list_privileges_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_privileges failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::grant_privileges(const PrivilegeBag& privileges) -{ - int32_t seqid = send_grant_privileges(privileges); - return recv_grant_privileges(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_privileges(const PrivilegeBag& privileges) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_grant_privileges_pargs args; - args.privileges = &privileges; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_grant_privileges(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_, 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("grant_privileges") != 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); - } - bool _return; - ThriftHiveMetastore_grant_privileges_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_privileges failed: unknown result"); - } - // 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) -} - -bool ThriftHiveMetastoreConcurrentClient::revoke_privileges(const PrivilegeBag& privileges) -{ - int32_t seqid = send_revoke_privileges(privileges); - return recv_revoke_privileges(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_revoke_privileges(const PrivilegeBag& privileges) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_revoke_privileges_pargs args; - args.privileges = &privileges; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -bool ThriftHiveMetastoreConcurrentClient::recv_revoke_privileges(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_, 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("revoke_privileges") != 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); - } - bool _return; - ThriftHiveMetastore_revoke_privileges_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_privileges failed: unknown result"); - } - // 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::grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request) -{ - int32_t seqid = send_grant_revoke_privileges(request); - recv_grant_revoke_privileges(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_grant_revoke_privileges(const GrantRevokePrivilegeRequest& request) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("grant_revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_grant_revoke_privileges_pargs args; - args.request = &request; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, 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_, 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("grant_revoke_privileges") != 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_grant_revoke_privileges_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_revoke_privileges failed: unknown result"); - } - // 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::set_ugi(std::vector & _return, const std::string& user_name, const std::vector & group_names) -{ - int32_t seqid = send_set_ugi(user_name, group_names); - recv_set_ugi(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_set_ugi(const std::string& user_name, const std::vector & group_names) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("set_ugi", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_set_ugi_pargs args; - args.user_name = &user_name; - args.group_names = &group_names; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_set_ugi(std::vector & _return, 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_, 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_ugi") != 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_ugi_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "set_ugi failed: unknown result"); - } - // 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::get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name) -{ - int32_t seqid = send_get_delegation_token(token_owner, renewer_kerberos_principal_name); - recv_get_delegation_token(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_delegation_token(const std::string& token_owner, const std::string& renewer_kerberos_principal_name) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_delegation_token_pargs args; - args.token_owner = &token_owner; - args.renewer_kerberos_principal_name = &renewer_kerberos_principal_name; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_delegation_token(std::string& _return, 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_, 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("get_delegation_token") != 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_get_delegation_token_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_delegation_token failed: unknown result"); - } - // 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) -} - -int64_t ThriftHiveMetastoreConcurrentClient::renew_delegation_token(const std::string& token_str_form) -{ - int32_t seqid = send_renew_delegation_token(token_str_form); - return recv_renew_delegation_token(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_renew_delegation_token(const std::string& token_str_form) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("renew_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_renew_delegation_token_pargs args; - args.token_str_form = &token_str_form; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -int64_t ThriftHiveMetastoreConcurrentClient::recv_renew_delegation_token(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_, 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("renew_delegation_token") != 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); - } - int64_t _return; - ThriftHiveMetastore_renew_delegation_token_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "renew_delegation_token failed: unknown result"); - } - // 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::cancel_delegation_token(const std::string& token_str_form) -{ - int32_t seqid = send_cancel_delegation_token(token_str_form); - recv_cancel_delegation_token(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_cancel_delegation_token(const std::string& token_str_form) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("cancel_delegation_token", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_cancel_delegation_token_pargs args; - args.token_str_form = &token_str_form; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_cancel_delegation_token(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_, 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("cancel_delegation_token") != 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_cancel_delegation_token_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::get_open_txns(GetOpenTxnsResponse& _return) -{ - int32_t seqid = send_get_open_txns(); - recv_get_open_txns(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_open_txns", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_open_txns_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns(GetOpenTxnsResponse& _return, 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_, 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("get_open_txns") != 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_get_open_txns_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns failed: unknown result"); - } - // 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::get_open_txns_info(GetOpenTxnsInfoResponse& _return) -{ - int32_t seqid = send_get_open_txns_info(); - recv_get_open_txns_info(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_open_txns_info() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_open_txns_info", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_open_txns_info_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_open_txns_info(GetOpenTxnsInfoResponse& _return, 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_, 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("get_open_txns_info") != 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_get_open_txns_info_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_open_txns_info failed: unknown result"); - } - // 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::open_txns(OpenTxnsResponse& _return, const OpenTxnRequest& rqst) -{ - int32_t seqid = send_open_txns(rqst); - recv_open_txns(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_open_txns(const OpenTxnRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("open_txns", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_open_txns_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_open_txns(OpenTxnsResponse& _return, 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_, 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("open_txns") != 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_open_txns_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "open_txns failed: unknown result"); - } - // 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::abort_txn(const AbortTxnRequest& rqst) -{ - int32_t seqid = send_abort_txn(rqst); - recv_abort_txn(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_abort_txn(const AbortTxnRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("abort_txn", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_abort_txn_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_abort_txn(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_, 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("abort_txn") != 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_abort_txn_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::commit_txn(const CommitTxnRequest& rqst) -{ - int32_t seqid = send_commit_txn(rqst); - recv_commit_txn(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_commit_txn(const CommitTxnRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("commit_txn", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_commit_txn_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_commit_txn(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_, 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("commit_txn") != 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_commit_txn_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::lock(LockResponse& _return, const LockRequest& rqst) -{ - int32_t seqid = send_lock(rqst); - recv_lock(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_lock(const LockRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("lock", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_lock_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_lock(LockResponse& _return, 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_, 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("lock") != 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_lock_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "lock failed: unknown result"); - } - // 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::check_lock(LockResponse& _return, const CheckLockRequest& rqst) -{ - int32_t seqid = send_check_lock(rqst); - recv_check_lock(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_check_lock(const CheckLockRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("check_lock", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_check_lock_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_check_lock(LockResponse& _return, 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_, 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("check_lock") != 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_check_lock_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "check_lock failed: unknown result"); - } - // 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::unlock(const UnlockRequest& rqst) -{ - int32_t seqid = send_unlock(rqst); - recv_unlock(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_unlock(const UnlockRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("unlock", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_unlock_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_unlock(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_, 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("unlock") != 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_unlock_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::show_locks(ShowLocksResponse& _return, const ShowLocksRequest& rqst) -{ - int32_t seqid = send_show_locks(rqst); - recv_show_locks(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_show_locks(const ShowLocksRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("show_locks", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_show_locks_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_show_locks(ShowLocksResponse& _return, 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_, 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("show_locks") != 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_show_locks_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_locks failed: unknown result"); - } - // 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::heartbeat(const HeartbeatRequest& ids) -{ - int32_t seqid = send_heartbeat(ids); - recv_heartbeat(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat(const HeartbeatRequest& ids) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("heartbeat", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_heartbeat_pargs args; - args.ids = &ids; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_heartbeat(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_, 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("heartbeat") != 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_heartbeat_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - 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::heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const HeartbeatTxnRangeRequest& txns) -{ - int32_t seqid = send_heartbeat_txn_range(txns); - recv_heartbeat_txn_range(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_heartbeat_txn_range(const HeartbeatTxnRangeRequest& txns) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("heartbeat_txn_range", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_heartbeat_txn_range_pargs args; - args.txns = &txns; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, 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_, 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("heartbeat_txn_range") != 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_heartbeat_txn_range_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "heartbeat_txn_range failed: unknown result"); - } - // 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::compact(const CompactionRequest& rqst) -{ - int32_t seqid = send_compact(rqst); - recv_compact(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_compact(const CompactionRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("compact", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_compact_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_compact(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_, 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("compact") != 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_compact_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - 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::show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst) -{ - int32_t seqid = send_show_compact(rqst); - recv_show_compact(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_show_compact(const ShowCompactRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("show_compact", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_show_compact_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_show_compact(ShowCompactResponse& _return, 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_, 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("show_compact") != 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_show_compact_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "show_compact failed: unknown result"); - } - // 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::add_dynamic_partitions(const AddDynamicPartitions& rqst) -{ - int32_t seqid = send_add_dynamic_partitions(rqst); - recv_add_dynamic_partitions(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_add_dynamic_partitions(const AddDynamicPartitions& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("add_dynamic_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_add_dynamic_partitions_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_add_dynamic_partitions(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_, 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("add_dynamic_partitions") != 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_add_dynamic_partitions_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } - 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::get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst) -{ - int32_t seqid = send_get_next_notification(rqst); - recv_get_next_notification(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_next_notification(const NotificationEventRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_next_notification", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_next_notification_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_next_notification(NotificationEventResponse& _return, 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_, 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("get_next_notification") != 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_get_next_notification_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_next_notification failed: unknown result"); - } - // 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::get_current_notificationEventId(CurrentNotificationEventId& _return) -{ - int32_t seqid = send_get_current_notificationEventId(); - recv_get_current_notificationEventId(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_current_notificationEventId() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_current_notificationEventId", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_current_notificationEventId_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_current_notificationEventId(CurrentNotificationEventId& _return, 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_, 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("get_current_notificationEventId") != 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_get_current_notificationEventId_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); - } - // 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::fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst) -{ - int32_t seqid = send_fire_listener_event(rqst); - recv_fire_listener_event(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_fire_listener_event(const FireEventRequest& rqst) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("fire_listener_event", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_fire_listener_event_pargs args; - args.rqst = &rqst; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_fire_listener_event(FireEventResponse& _return, 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_, 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("fire_listener_event") != 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_fire_listener_event_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fire_listener_event failed: unknown result"); - } - // 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::flushCache() -{ - int32_t seqid = send_flushCache(); - recv_flushCache(seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_flushCache() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("flushCache", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_flushCache_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_flushCache(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_, 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("flushCache") != 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_flushCache_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - 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::get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const GetFileMetadataByExprRequest& req) -{ - int32_t seqid = send_get_file_metadata_by_expr(req); - recv_get_file_metadata_by_expr(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata_by_expr(const GetFileMetadataByExprRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_file_metadata_by_expr", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_file_metadata_by_expr_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, 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_, 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("get_file_metadata_by_expr") != 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_get_file_metadata_by_expr_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result"); - } - // 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::get_file_metadata(GetFileMetadataResult& _return, const GetFileMetadataRequest& req) -{ - int32_t seqid = send_get_file_metadata(req); - recv_get_file_metadata(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_get_file_metadata(const GetFileMetadataRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_get_file_metadata_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_get_file_metadata(GetFileMetadataResult& _return, 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_, 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("get_file_metadata") != 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_get_file_metadata_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_file_metadata failed: unknown result"); - } - // 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::put_file_metadata(PutFileMetadataResult& _return, const PutFileMetadataRequest& req) -{ - int32_t seqid = send_put_file_metadata(req); - recv_put_file_metadata(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_put_file_metadata(const PutFileMetadataRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("put_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_put_file_metadata_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_put_file_metadata(PutFileMetadataResult& _return, 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_, 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("put_file_metadata") != 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_put_file_metadata_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "put_file_metadata failed: unknown result"); - } - // 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::clear_file_metadata(ClearFileMetadataResult& _return, const ClearFileMetadataRequest& req) -{ - int32_t seqid = send_clear_file_metadata(req); - recv_clear_file_metadata(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_clear_file_metadata(const ClearFileMetadataRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("clear_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_clear_file_metadata_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_clear_file_metadata(ClearFileMetadataResult& _return, 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_, 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("clear_file_metadata") != 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_clear_file_metadata_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "clear_file_metadata failed: unknown result"); - } - // 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::cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req) -{ - int32_t seqid = send_cache_file_metadata(req); - recv_cache_file_metadata(_return, seqid); -} - -int32_t ThriftHiveMetastoreConcurrentClient::send_cache_file_metadata(const CacheFileMetadataRequest& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("cache_file_metadata", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHiveMetastore_cache_file_metadata_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveMetastoreConcurrentClient::recv_cache_file_metadata(CacheFileMetadataResult& _return, 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_, 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("cache_file_metadata") != 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_cache_file_metadata_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "cache_file_metadata failed: unknown result"); - } - // 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) -} - }}} // namespace diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 01b332e..a3cc11b 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,17 +8,11 @@ #define ThriftHiveMetastore_H #include -#include #include "hive_metastore_types.h" #include "FacebookService.h" namespace Apache { namespace Hadoop { namespace Hive { -#ifdef _WIN32 - #pragma warning( push ) - #pragma warning (disable : 4250 ) //inheriting methods via dominance -#endif - class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookServiceIf { public: virtual ~ThriftHiveMetastoreIf() {} @@ -611,23 +605,24 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p typedef struct _ThriftHiveMetastore_getMetaConf_args__isset { _ThriftHiveMetastore_getMetaConf_args__isset() : key(false) {} - bool key :1; + bool key; } _ThriftHiveMetastore_getMetaConf_args__isset; class ThriftHiveMetastore_getMetaConf_args { public: - ThriftHiveMetastore_getMetaConf_args(const ThriftHiveMetastore_getMetaConf_args&); - ThriftHiveMetastore_getMetaConf_args& operator=(const ThriftHiveMetastore_getMetaConf_args&); ThriftHiveMetastore_getMetaConf_args() : key() { } - virtual ~ThriftHiveMetastore_getMetaConf_args() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_args() throw() {} + std::string key; _ThriftHiveMetastore_getMetaConf_args__isset __isset; - void __set_key(const std::string& val); + void __set_key(const std::string& val) { + key = val; + } bool operator == (const ThriftHiveMetastore_getMetaConf_args & rhs) const { @@ -651,7 +646,8 @@ class ThriftHiveMetastore_getMetaConf_pargs { public: - virtual ~ThriftHiveMetastore_getMetaConf_pargs() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_pargs() throw() {} + const std::string* key; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -660,27 +656,30 @@ class ThriftHiveMetastore_getMetaConf_pargs { typedef struct _ThriftHiveMetastore_getMetaConf_result__isset { _ThriftHiveMetastore_getMetaConf_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_getMetaConf_result__isset; class ThriftHiveMetastore_getMetaConf_result { public: - ThriftHiveMetastore_getMetaConf_result(const ThriftHiveMetastore_getMetaConf_result&); - ThriftHiveMetastore_getMetaConf_result& operator=(const ThriftHiveMetastore_getMetaConf_result&); ThriftHiveMetastore_getMetaConf_result() : success() { } - virtual ~ThriftHiveMetastore_getMetaConf_result() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_result() throw() {} + std::string success; MetaException o1; _ThriftHiveMetastore_getMetaConf_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_getMetaConf_result & rhs) const { @@ -703,15 +702,16 @@ class ThriftHiveMetastore_getMetaConf_result { typedef struct _ThriftHiveMetastore_getMetaConf_presult__isset { _ThriftHiveMetastore_getMetaConf_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_getMetaConf_presult__isset; class ThriftHiveMetastore_getMetaConf_presult { public: - virtual ~ThriftHiveMetastore_getMetaConf_presult() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_presult() throw() {} + std::string* success; MetaException o1; @@ -723,27 +723,30 @@ class ThriftHiveMetastore_getMetaConf_presult { typedef struct _ThriftHiveMetastore_setMetaConf_args__isset { _ThriftHiveMetastore_setMetaConf_args__isset() : key(false), value(false) {} - bool key :1; - bool value :1; + bool key; + bool value; } _ThriftHiveMetastore_setMetaConf_args__isset; class ThriftHiveMetastore_setMetaConf_args { public: - ThriftHiveMetastore_setMetaConf_args(const ThriftHiveMetastore_setMetaConf_args&); - ThriftHiveMetastore_setMetaConf_args& operator=(const ThriftHiveMetastore_setMetaConf_args&); ThriftHiveMetastore_setMetaConf_args() : key(), value() { } - virtual ~ThriftHiveMetastore_setMetaConf_args() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_args() throw() {} + std::string key; std::string value; _ThriftHiveMetastore_setMetaConf_args__isset __isset; - void __set_key(const std::string& val); + void __set_key(const std::string& val) { + key = val; + } - void __set_value(const std::string& val); + void __set_value(const std::string& val) { + value = val; + } bool operator == (const ThriftHiveMetastore_setMetaConf_args & rhs) const { @@ -769,7 +772,8 @@ class ThriftHiveMetastore_setMetaConf_pargs { public: - virtual ~ThriftHiveMetastore_setMetaConf_pargs() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_pargs() throw() {} + const std::string* key; const std::string* value; @@ -779,23 +783,24 @@ class ThriftHiveMetastore_setMetaConf_pargs { typedef struct _ThriftHiveMetastore_setMetaConf_result__isset { _ThriftHiveMetastore_setMetaConf_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_setMetaConf_result__isset; class ThriftHiveMetastore_setMetaConf_result { public: - ThriftHiveMetastore_setMetaConf_result(const ThriftHiveMetastore_setMetaConf_result&); - ThriftHiveMetastore_setMetaConf_result& operator=(const ThriftHiveMetastore_setMetaConf_result&); ThriftHiveMetastore_setMetaConf_result() { } - virtual ~ThriftHiveMetastore_setMetaConf_result() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_result() throw() {} + MetaException o1; _ThriftHiveMetastore_setMetaConf_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_setMetaConf_result & rhs) const { @@ -816,14 +821,15 @@ class ThriftHiveMetastore_setMetaConf_result { typedef struct _ThriftHiveMetastore_setMetaConf_presult__isset { _ThriftHiveMetastore_setMetaConf_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_setMetaConf_presult__isset; class ThriftHiveMetastore_setMetaConf_presult { public: - virtual ~ThriftHiveMetastore_setMetaConf_presult() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_presult() throw() {} + MetaException o1; _ThriftHiveMetastore_setMetaConf_presult__isset __isset; @@ -834,23 +840,24 @@ class ThriftHiveMetastore_setMetaConf_presult { typedef struct _ThriftHiveMetastore_create_database_args__isset { _ThriftHiveMetastore_create_database_args__isset() : database(false) {} - bool database :1; + bool database; } _ThriftHiveMetastore_create_database_args__isset; class ThriftHiveMetastore_create_database_args { public: - ThriftHiveMetastore_create_database_args(const ThriftHiveMetastore_create_database_args&); - ThriftHiveMetastore_create_database_args& operator=(const ThriftHiveMetastore_create_database_args&); ThriftHiveMetastore_create_database_args() { } - virtual ~ThriftHiveMetastore_create_database_args() throw(); + virtual ~ThriftHiveMetastore_create_database_args() throw() {} + Database database; _ThriftHiveMetastore_create_database_args__isset __isset; - void __set_database(const Database& val); + void __set_database(const Database& val) { + database = val; + } bool operator == (const ThriftHiveMetastore_create_database_args & rhs) const { @@ -874,7 +881,8 @@ class ThriftHiveMetastore_create_database_pargs { public: - virtual ~ThriftHiveMetastore_create_database_pargs() throw(); + virtual ~ThriftHiveMetastore_create_database_pargs() throw() {} + const Database* database; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -883,31 +891,36 @@ class ThriftHiveMetastore_create_database_pargs { typedef struct _ThriftHiveMetastore_create_database_result__isset { _ThriftHiveMetastore_create_database_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_database_result__isset; class ThriftHiveMetastore_create_database_result { public: - ThriftHiveMetastore_create_database_result(const ThriftHiveMetastore_create_database_result&); - ThriftHiveMetastore_create_database_result& operator=(const ThriftHiveMetastore_create_database_result&); ThriftHiveMetastore_create_database_result() { } - virtual ~ThriftHiveMetastore_create_database_result() throw(); + virtual ~ThriftHiveMetastore_create_database_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; _ThriftHiveMetastore_create_database_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_create_database_result & rhs) const { @@ -932,16 +945,17 @@ class ThriftHiveMetastore_create_database_result { typedef struct _ThriftHiveMetastore_create_database_presult__isset { _ThriftHiveMetastore_create_database_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_database_presult__isset; class ThriftHiveMetastore_create_database_presult { public: - virtual ~ThriftHiveMetastore_create_database_presult() throw(); + virtual ~ThriftHiveMetastore_create_database_presult() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -954,23 +968,24 @@ class ThriftHiveMetastore_create_database_presult { typedef struct _ThriftHiveMetastore_get_database_args__isset { _ThriftHiveMetastore_get_database_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_database_args__isset; class ThriftHiveMetastore_get_database_args { public: - ThriftHiveMetastore_get_database_args(const ThriftHiveMetastore_get_database_args&); - ThriftHiveMetastore_get_database_args& operator=(const ThriftHiveMetastore_get_database_args&); ThriftHiveMetastore_get_database_args() : name() { } - virtual ~ThriftHiveMetastore_get_database_args() throw(); + virtual ~ThriftHiveMetastore_get_database_args() throw() {} + std::string name; _ThriftHiveMetastore_get_database_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_database_args & rhs) const { @@ -994,7 +1009,8 @@ class ThriftHiveMetastore_get_database_pargs { public: - virtual ~ThriftHiveMetastore_get_database_pargs() throw(); + virtual ~ThriftHiveMetastore_get_database_pargs() throw() {} + const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1003,31 +1019,36 @@ class ThriftHiveMetastore_get_database_pargs { typedef struct _ThriftHiveMetastore_get_database_result__isset { _ThriftHiveMetastore_get_database_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_database_result__isset; class ThriftHiveMetastore_get_database_result { public: - ThriftHiveMetastore_get_database_result(const ThriftHiveMetastore_get_database_result&); - ThriftHiveMetastore_get_database_result& operator=(const ThriftHiveMetastore_get_database_result&); ThriftHiveMetastore_get_database_result() { } - virtual ~ThriftHiveMetastore_get_database_result() throw(); + virtual ~ThriftHiveMetastore_get_database_result() throw() {} + Database success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_database_result__isset __isset; - void __set_success(const Database& val); + void __set_success(const Database& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_database_result & rhs) const { @@ -1052,16 +1073,17 @@ class ThriftHiveMetastore_get_database_result { typedef struct _ThriftHiveMetastore_get_database_presult__isset { _ThriftHiveMetastore_get_database_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_database_presult__isset; class ThriftHiveMetastore_get_database_presult { public: - virtual ~ThriftHiveMetastore_get_database_presult() throw(); + virtual ~ThriftHiveMetastore_get_database_presult() throw() {} + Database* success; NoSuchObjectException o1; MetaException o2; @@ -1074,31 +1096,36 @@ class ThriftHiveMetastore_get_database_presult { typedef struct _ThriftHiveMetastore_drop_database_args__isset { _ThriftHiveMetastore_drop_database_args__isset() : name(false), deleteData(false), cascade(false) {} - bool name :1; - bool deleteData :1; - bool cascade :1; + bool name; + bool deleteData; + bool cascade; } _ThriftHiveMetastore_drop_database_args__isset; class ThriftHiveMetastore_drop_database_args { public: - ThriftHiveMetastore_drop_database_args(const ThriftHiveMetastore_drop_database_args&); - ThriftHiveMetastore_drop_database_args& operator=(const ThriftHiveMetastore_drop_database_args&); ThriftHiveMetastore_drop_database_args() : name(), deleteData(0), cascade(0) { } - virtual ~ThriftHiveMetastore_drop_database_args() throw(); + virtual ~ThriftHiveMetastore_drop_database_args() throw() {} + std::string name; bool deleteData; bool cascade; _ThriftHiveMetastore_drop_database_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_cascade(const bool val); + void __set_cascade(const bool val) { + cascade = val; + } bool operator == (const ThriftHiveMetastore_drop_database_args & rhs) const { @@ -1126,7 +1153,8 @@ class ThriftHiveMetastore_drop_database_pargs { public: - virtual ~ThriftHiveMetastore_drop_database_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_database_pargs() throw() {} + const std::string* name; const bool* deleteData; const bool* cascade; @@ -1137,31 +1165,36 @@ class ThriftHiveMetastore_drop_database_pargs { typedef struct _ThriftHiveMetastore_drop_database_result__isset { _ThriftHiveMetastore_drop_database_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_drop_database_result__isset; class ThriftHiveMetastore_drop_database_result { public: - ThriftHiveMetastore_drop_database_result(const ThriftHiveMetastore_drop_database_result&); - ThriftHiveMetastore_drop_database_result& operator=(const ThriftHiveMetastore_drop_database_result&); ThriftHiveMetastore_drop_database_result() { } - virtual ~ThriftHiveMetastore_drop_database_result() throw(); + virtual ~ThriftHiveMetastore_drop_database_result() throw() {} + NoSuchObjectException o1; InvalidOperationException o2; MetaException o3; _ThriftHiveMetastore_drop_database_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_database_result & rhs) const { @@ -1186,16 +1219,17 @@ class ThriftHiveMetastore_drop_database_result { typedef struct _ThriftHiveMetastore_drop_database_presult__isset { _ThriftHiveMetastore_drop_database_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_drop_database_presult__isset; class ThriftHiveMetastore_drop_database_presult { public: - virtual ~ThriftHiveMetastore_drop_database_presult() throw(); + virtual ~ThriftHiveMetastore_drop_database_presult() throw() {} + NoSuchObjectException o1; InvalidOperationException o2; MetaException o3; @@ -1208,23 +1242,24 @@ class ThriftHiveMetastore_drop_database_presult { typedef struct _ThriftHiveMetastore_get_databases_args__isset { _ThriftHiveMetastore_get_databases_args__isset() : pattern(false) {} - bool pattern :1; + bool pattern; } _ThriftHiveMetastore_get_databases_args__isset; class ThriftHiveMetastore_get_databases_args { public: - ThriftHiveMetastore_get_databases_args(const ThriftHiveMetastore_get_databases_args&); - ThriftHiveMetastore_get_databases_args& operator=(const ThriftHiveMetastore_get_databases_args&); ThriftHiveMetastore_get_databases_args() : pattern() { } - virtual ~ThriftHiveMetastore_get_databases_args() throw(); + virtual ~ThriftHiveMetastore_get_databases_args() throw() {} + std::string pattern; _ThriftHiveMetastore_get_databases_args__isset __isset; - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_databases_args & rhs) const { @@ -1248,7 +1283,8 @@ class ThriftHiveMetastore_get_databases_pargs { public: - virtual ~ThriftHiveMetastore_get_databases_pargs() throw(); + virtual ~ThriftHiveMetastore_get_databases_pargs() throw() {} + const std::string* pattern; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1257,27 +1293,30 @@ class ThriftHiveMetastore_get_databases_pargs { typedef struct _ThriftHiveMetastore_get_databases_result__isset { _ThriftHiveMetastore_get_databases_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_databases_result__isset; class ThriftHiveMetastore_get_databases_result { public: - ThriftHiveMetastore_get_databases_result(const ThriftHiveMetastore_get_databases_result&); - ThriftHiveMetastore_get_databases_result& operator=(const ThriftHiveMetastore_get_databases_result&); ThriftHiveMetastore_get_databases_result() { } - virtual ~ThriftHiveMetastore_get_databases_result() throw(); + virtual ~ThriftHiveMetastore_get_databases_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_databases_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_databases_result & rhs) const { @@ -1300,15 +1339,16 @@ class ThriftHiveMetastore_get_databases_result { typedef struct _ThriftHiveMetastore_get_databases_presult__isset { _ThriftHiveMetastore_get_databases_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_databases_presult__isset; class ThriftHiveMetastore_get_databases_presult { public: - virtual ~ThriftHiveMetastore_get_databases_presult() throw(); + virtual ~ThriftHiveMetastore_get_databases_presult() throw() {} + std::vector * success; MetaException o1; @@ -1322,12 +1362,11 @@ class ThriftHiveMetastore_get_databases_presult { class ThriftHiveMetastore_get_all_databases_args { public: - ThriftHiveMetastore_get_all_databases_args(const ThriftHiveMetastore_get_all_databases_args&); - ThriftHiveMetastore_get_all_databases_args& operator=(const ThriftHiveMetastore_get_all_databases_args&); ThriftHiveMetastore_get_all_databases_args() { } - virtual ~ThriftHiveMetastore_get_all_databases_args() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_all_databases_args & /* rhs */) const { @@ -1349,7 +1388,8 @@ class ThriftHiveMetastore_get_all_databases_pargs { public: - virtual ~ThriftHiveMetastore_get_all_databases_pargs() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1357,27 +1397,30 @@ class ThriftHiveMetastore_get_all_databases_pargs { typedef struct _ThriftHiveMetastore_get_all_databases_result__isset { _ThriftHiveMetastore_get_all_databases_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_databases_result__isset; class ThriftHiveMetastore_get_all_databases_result { public: - ThriftHiveMetastore_get_all_databases_result(const ThriftHiveMetastore_get_all_databases_result&); - ThriftHiveMetastore_get_all_databases_result& operator=(const ThriftHiveMetastore_get_all_databases_result&); ThriftHiveMetastore_get_all_databases_result() { } - virtual ~ThriftHiveMetastore_get_all_databases_result() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_all_databases_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_databases_result & rhs) const { @@ -1400,15 +1443,16 @@ class ThriftHiveMetastore_get_all_databases_result { typedef struct _ThriftHiveMetastore_get_all_databases_presult__isset { _ThriftHiveMetastore_get_all_databases_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_databases_presult__isset; class ThriftHiveMetastore_get_all_databases_presult { public: - virtual ~ThriftHiveMetastore_get_all_databases_presult() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_presult() throw() {} + std::vector * success; MetaException o1; @@ -1420,27 +1464,30 @@ class ThriftHiveMetastore_get_all_databases_presult { typedef struct _ThriftHiveMetastore_alter_database_args__isset { _ThriftHiveMetastore_alter_database_args__isset() : dbname(false), db(false) {} - bool dbname :1; - bool db :1; + bool dbname; + bool db; } _ThriftHiveMetastore_alter_database_args__isset; class ThriftHiveMetastore_alter_database_args { public: - ThriftHiveMetastore_alter_database_args(const ThriftHiveMetastore_alter_database_args&); - ThriftHiveMetastore_alter_database_args& operator=(const ThriftHiveMetastore_alter_database_args&); ThriftHiveMetastore_alter_database_args() : dbname() { } - virtual ~ThriftHiveMetastore_alter_database_args() throw(); + virtual ~ThriftHiveMetastore_alter_database_args() throw() {} + std::string dbname; Database db; _ThriftHiveMetastore_alter_database_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_db(const Database& val); + void __set_db(const Database& val) { + db = val; + } bool operator == (const ThriftHiveMetastore_alter_database_args & rhs) const { @@ -1466,7 +1513,8 @@ class ThriftHiveMetastore_alter_database_pargs { public: - virtual ~ThriftHiveMetastore_alter_database_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_database_pargs() throw() {} + const std::string* dbname; const Database* db; @@ -1476,27 +1524,30 @@ class ThriftHiveMetastore_alter_database_pargs { typedef struct _ThriftHiveMetastore_alter_database_result__isset { _ThriftHiveMetastore_alter_database_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_database_result__isset; class ThriftHiveMetastore_alter_database_result { public: - ThriftHiveMetastore_alter_database_result(const ThriftHiveMetastore_alter_database_result&); - ThriftHiveMetastore_alter_database_result& operator=(const ThriftHiveMetastore_alter_database_result&); ThriftHiveMetastore_alter_database_result() { } - virtual ~ThriftHiveMetastore_alter_database_result() throw(); + virtual ~ThriftHiveMetastore_alter_database_result() throw() {} + MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_alter_database_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_database_result & rhs) const { @@ -1519,15 +1570,16 @@ class ThriftHiveMetastore_alter_database_result { typedef struct _ThriftHiveMetastore_alter_database_presult__isset { _ThriftHiveMetastore_alter_database_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_database_presult__isset; class ThriftHiveMetastore_alter_database_presult { public: - virtual ~ThriftHiveMetastore_alter_database_presult() throw(); + virtual ~ThriftHiveMetastore_alter_database_presult() throw() {} + MetaException o1; NoSuchObjectException o2; @@ -1539,23 +1591,24 @@ class ThriftHiveMetastore_alter_database_presult { typedef struct _ThriftHiveMetastore_get_type_args__isset { _ThriftHiveMetastore_get_type_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_type_args__isset; class ThriftHiveMetastore_get_type_args { public: - ThriftHiveMetastore_get_type_args(const ThriftHiveMetastore_get_type_args&); - ThriftHiveMetastore_get_type_args& operator=(const ThriftHiveMetastore_get_type_args&); ThriftHiveMetastore_get_type_args() : name() { } - virtual ~ThriftHiveMetastore_get_type_args() throw(); + virtual ~ThriftHiveMetastore_get_type_args() throw() {} + std::string name; _ThriftHiveMetastore_get_type_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_type_args & rhs) const { @@ -1579,7 +1632,8 @@ class ThriftHiveMetastore_get_type_pargs { public: - virtual ~ThriftHiveMetastore_get_type_pargs() throw(); + virtual ~ThriftHiveMetastore_get_type_pargs() throw() {} + const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1588,31 +1642,36 @@ class ThriftHiveMetastore_get_type_pargs { typedef struct _ThriftHiveMetastore_get_type_result__isset { _ThriftHiveMetastore_get_type_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_type_result__isset; class ThriftHiveMetastore_get_type_result { public: - ThriftHiveMetastore_get_type_result(const ThriftHiveMetastore_get_type_result&); - ThriftHiveMetastore_get_type_result& operator=(const ThriftHiveMetastore_get_type_result&); ThriftHiveMetastore_get_type_result() { } - virtual ~ThriftHiveMetastore_get_type_result() throw(); + virtual ~ThriftHiveMetastore_get_type_result() throw() {} + Type success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_type_result__isset __isset; - void __set_success(const Type& val); + void __set_success(const Type& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_type_result & rhs) const { @@ -1637,16 +1696,17 @@ class ThriftHiveMetastore_get_type_result { typedef struct _ThriftHiveMetastore_get_type_presult__isset { _ThriftHiveMetastore_get_type_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_type_presult__isset; class ThriftHiveMetastore_get_type_presult { public: - virtual ~ThriftHiveMetastore_get_type_presult() throw(); + virtual ~ThriftHiveMetastore_get_type_presult() throw() {} + Type* success; MetaException o1; NoSuchObjectException o2; @@ -1659,23 +1719,24 @@ class ThriftHiveMetastore_get_type_presult { typedef struct _ThriftHiveMetastore_create_type_args__isset { _ThriftHiveMetastore_create_type_args__isset() : type(false) {} - bool type :1; + bool type; } _ThriftHiveMetastore_create_type_args__isset; class ThriftHiveMetastore_create_type_args { public: - ThriftHiveMetastore_create_type_args(const ThriftHiveMetastore_create_type_args&); - ThriftHiveMetastore_create_type_args& operator=(const ThriftHiveMetastore_create_type_args&); ThriftHiveMetastore_create_type_args() { } - virtual ~ThriftHiveMetastore_create_type_args() throw(); + virtual ~ThriftHiveMetastore_create_type_args() throw() {} + Type type; _ThriftHiveMetastore_create_type_args__isset __isset; - void __set_type(const Type& val); + void __set_type(const Type& val) { + type = val; + } bool operator == (const ThriftHiveMetastore_create_type_args & rhs) const { @@ -1699,7 +1760,8 @@ class ThriftHiveMetastore_create_type_pargs { public: - virtual ~ThriftHiveMetastore_create_type_pargs() throw(); + virtual ~ThriftHiveMetastore_create_type_pargs() throw() {} + const Type* type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1708,21 +1770,20 @@ class ThriftHiveMetastore_create_type_pargs { typedef struct _ThriftHiveMetastore_create_type_result__isset { _ThriftHiveMetastore_create_type_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_type_result__isset; class ThriftHiveMetastore_create_type_result { public: - ThriftHiveMetastore_create_type_result(const ThriftHiveMetastore_create_type_result&); - ThriftHiveMetastore_create_type_result& operator=(const ThriftHiveMetastore_create_type_result&); ThriftHiveMetastore_create_type_result() : success(0) { } - virtual ~ThriftHiveMetastore_create_type_result() throw(); + virtual ~ThriftHiveMetastore_create_type_result() throw() {} + bool success; AlreadyExistsException o1; InvalidObjectException o2; @@ -1730,13 +1791,21 @@ class ThriftHiveMetastore_create_type_result { _ThriftHiveMetastore_create_type_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_create_type_result & rhs) const { @@ -1763,17 +1832,18 @@ class ThriftHiveMetastore_create_type_result { typedef struct _ThriftHiveMetastore_create_type_presult__isset { _ThriftHiveMetastore_create_type_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_type_presult__isset; class ThriftHiveMetastore_create_type_presult { public: - virtual ~ThriftHiveMetastore_create_type_presult() throw(); + virtual ~ThriftHiveMetastore_create_type_presult() throw() {} + bool* success; AlreadyExistsException o1; InvalidObjectException o2; @@ -1787,23 +1857,24 @@ class ThriftHiveMetastore_create_type_presult { typedef struct _ThriftHiveMetastore_drop_type_args__isset { _ThriftHiveMetastore_drop_type_args__isset() : type(false) {} - bool type :1; + bool type; } _ThriftHiveMetastore_drop_type_args__isset; class ThriftHiveMetastore_drop_type_args { public: - ThriftHiveMetastore_drop_type_args(const ThriftHiveMetastore_drop_type_args&); - ThriftHiveMetastore_drop_type_args& operator=(const ThriftHiveMetastore_drop_type_args&); ThriftHiveMetastore_drop_type_args() : type() { } - virtual ~ThriftHiveMetastore_drop_type_args() throw(); + virtual ~ThriftHiveMetastore_drop_type_args() throw() {} + std::string type; _ThriftHiveMetastore_drop_type_args__isset __isset; - void __set_type(const std::string& val); + void __set_type(const std::string& val) { + type = val; + } bool operator == (const ThriftHiveMetastore_drop_type_args & rhs) const { @@ -1827,7 +1898,8 @@ class ThriftHiveMetastore_drop_type_pargs { public: - virtual ~ThriftHiveMetastore_drop_type_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_type_pargs() throw() {} + const std::string* type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1836,31 +1908,36 @@ class ThriftHiveMetastore_drop_type_pargs { typedef struct _ThriftHiveMetastore_drop_type_result__isset { _ThriftHiveMetastore_drop_type_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_type_result__isset; class ThriftHiveMetastore_drop_type_result { public: - ThriftHiveMetastore_drop_type_result(const ThriftHiveMetastore_drop_type_result&); - ThriftHiveMetastore_drop_type_result& operator=(const ThriftHiveMetastore_drop_type_result&); ThriftHiveMetastore_drop_type_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_type_result() throw(); + virtual ~ThriftHiveMetastore_drop_type_result() throw() {} + bool success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_drop_type_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_type_result & rhs) const { @@ -1885,16 +1962,17 @@ class ThriftHiveMetastore_drop_type_result { typedef struct _ThriftHiveMetastore_drop_type_presult__isset { _ThriftHiveMetastore_drop_type_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_type_presult__isset; class ThriftHiveMetastore_drop_type_presult { public: - virtual ~ThriftHiveMetastore_drop_type_presult() throw(); + virtual ~ThriftHiveMetastore_drop_type_presult() throw() {} + bool* success; MetaException o1; NoSuchObjectException o2; @@ -1907,23 +1985,24 @@ class ThriftHiveMetastore_drop_type_presult { typedef struct _ThriftHiveMetastore_get_type_all_args__isset { _ThriftHiveMetastore_get_type_all_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_type_all_args__isset; class ThriftHiveMetastore_get_type_all_args { public: - ThriftHiveMetastore_get_type_all_args(const ThriftHiveMetastore_get_type_all_args&); - ThriftHiveMetastore_get_type_all_args& operator=(const ThriftHiveMetastore_get_type_all_args&); ThriftHiveMetastore_get_type_all_args() : name() { } - virtual ~ThriftHiveMetastore_get_type_all_args() throw(); + virtual ~ThriftHiveMetastore_get_type_all_args() throw() {} + std::string name; _ThriftHiveMetastore_get_type_all_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_type_all_args & rhs) const { @@ -1947,7 +2026,8 @@ class ThriftHiveMetastore_get_type_all_pargs { public: - virtual ~ThriftHiveMetastore_get_type_all_pargs() throw(); + virtual ~ThriftHiveMetastore_get_type_all_pargs() throw() {} + const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1956,27 +2036,30 @@ class ThriftHiveMetastore_get_type_all_pargs { typedef struct _ThriftHiveMetastore_get_type_all_result__isset { _ThriftHiveMetastore_get_type_all_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_type_all_result__isset; class ThriftHiveMetastore_get_type_all_result { public: - ThriftHiveMetastore_get_type_all_result(const ThriftHiveMetastore_get_type_all_result&); - ThriftHiveMetastore_get_type_all_result& operator=(const ThriftHiveMetastore_get_type_all_result&); ThriftHiveMetastore_get_type_all_result() { } - virtual ~ThriftHiveMetastore_get_type_all_result() throw(); + virtual ~ThriftHiveMetastore_get_type_all_result() throw() {} + std::map success; MetaException o2; _ThriftHiveMetastore_get_type_all_result__isset __isset; - void __set_success(const std::map & val); + void __set_success(const std::map & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_type_all_result & rhs) const { @@ -1999,15 +2082,16 @@ class ThriftHiveMetastore_get_type_all_result { typedef struct _ThriftHiveMetastore_get_type_all_presult__isset { _ThriftHiveMetastore_get_type_all_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_type_all_presult__isset; class ThriftHiveMetastore_get_type_all_presult { public: - virtual ~ThriftHiveMetastore_get_type_all_presult() throw(); + virtual ~ThriftHiveMetastore_get_type_all_presult() throw() {} + std::map * success; MetaException o2; @@ -2019,27 +2103,30 @@ class ThriftHiveMetastore_get_type_all_presult { typedef struct _ThriftHiveMetastore_get_fields_args__isset { _ThriftHiveMetastore_get_fields_args__isset() : db_name(false), table_name(false) {} - bool db_name :1; - bool table_name :1; + bool db_name; + bool table_name; } _ThriftHiveMetastore_get_fields_args__isset; class ThriftHiveMetastore_get_fields_args { public: - ThriftHiveMetastore_get_fields_args(const ThriftHiveMetastore_get_fields_args&); - ThriftHiveMetastore_get_fields_args& operator=(const ThriftHiveMetastore_get_fields_args&); ThriftHiveMetastore_get_fields_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_fields_args() throw(); + virtual ~ThriftHiveMetastore_get_fields_args() throw() {} + std::string db_name; std::string table_name; _ThriftHiveMetastore_get_fields_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } bool operator == (const ThriftHiveMetastore_get_fields_args & rhs) const { @@ -2065,7 +2152,8 @@ class ThriftHiveMetastore_get_fields_pargs { public: - virtual ~ThriftHiveMetastore_get_fields_pargs() throw(); + virtual ~ThriftHiveMetastore_get_fields_pargs() throw() {} + const std::string* db_name; const std::string* table_name; @@ -2075,21 +2163,20 @@ class ThriftHiveMetastore_get_fields_pargs { typedef struct _ThriftHiveMetastore_get_fields_result__isset { _ThriftHiveMetastore_get_fields_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_result__isset; class ThriftHiveMetastore_get_fields_result { public: - ThriftHiveMetastore_get_fields_result(const ThriftHiveMetastore_get_fields_result&); - ThriftHiveMetastore_get_fields_result& operator=(const ThriftHiveMetastore_get_fields_result&); ThriftHiveMetastore_get_fields_result() { } - virtual ~ThriftHiveMetastore_get_fields_result() throw(); + virtual ~ThriftHiveMetastore_get_fields_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2097,13 +2184,21 @@ class ThriftHiveMetastore_get_fields_result { _ThriftHiveMetastore_get_fields_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_fields_result & rhs) const { @@ -2130,17 +2225,18 @@ class ThriftHiveMetastore_get_fields_result { typedef struct _ThriftHiveMetastore_get_fields_presult__isset { _ThriftHiveMetastore_get_fields_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_presult__isset; class ThriftHiveMetastore_get_fields_presult { public: - virtual ~ThriftHiveMetastore_get_fields_presult() throw(); + virtual ~ThriftHiveMetastore_get_fields_presult() throw() {} + std::vector * success; MetaException o1; UnknownTableException o2; @@ -2154,31 +2250,36 @@ class ThriftHiveMetastore_get_fields_presult { typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_args__isset { _ThriftHiveMetastore_get_fields_with_environment_context_args__isset() : db_name(false), table_name(false), environment_context(false) {} - bool db_name :1; - bool table_name :1; - bool environment_context :1; + bool db_name; + bool table_name; + bool environment_context; } _ThriftHiveMetastore_get_fields_with_environment_context_args__isset; class ThriftHiveMetastore_get_fields_with_environment_context_args { public: - ThriftHiveMetastore_get_fields_with_environment_context_args(const ThriftHiveMetastore_get_fields_with_environment_context_args&); - ThriftHiveMetastore_get_fields_with_environment_context_args& operator=(const ThriftHiveMetastore_get_fields_with_environment_context_args&); ThriftHiveMetastore_get_fields_with_environment_context_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_args() throw() {} + std::string db_name; std::string table_name; EnvironmentContext environment_context; _ThriftHiveMetastore_get_fields_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_get_fields_with_environment_context_args & rhs) const { @@ -2206,7 +2307,8 @@ class ThriftHiveMetastore_get_fields_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* table_name; const EnvironmentContext* environment_context; @@ -2217,21 +2319,20 @@ class ThriftHiveMetastore_get_fields_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_result__isset { _ThriftHiveMetastore_get_fields_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_with_environment_context_result__isset; class ThriftHiveMetastore_get_fields_with_environment_context_result { public: - ThriftHiveMetastore_get_fields_with_environment_context_result(const ThriftHiveMetastore_get_fields_with_environment_context_result&); - ThriftHiveMetastore_get_fields_with_environment_context_result& operator=(const ThriftHiveMetastore_get_fields_with_environment_context_result&); ThriftHiveMetastore_get_fields_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2239,13 +2340,21 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { _ThriftHiveMetastore_get_fields_with_environment_context_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_fields_with_environment_context_result & rhs) const { @@ -2272,17 +2381,18 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset { _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset; class ThriftHiveMetastore_get_fields_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw() {} + std::vector * success; MetaException o1; UnknownTableException o2; @@ -2296,27 +2406,30 @@ class ThriftHiveMetastore_get_fields_with_environment_context_presult { typedef struct _ThriftHiveMetastore_get_schema_args__isset { _ThriftHiveMetastore_get_schema_args__isset() : db_name(false), table_name(false) {} - bool db_name :1; - bool table_name :1; + bool db_name; + bool table_name; } _ThriftHiveMetastore_get_schema_args__isset; class ThriftHiveMetastore_get_schema_args { public: - ThriftHiveMetastore_get_schema_args(const ThriftHiveMetastore_get_schema_args&); - ThriftHiveMetastore_get_schema_args& operator=(const ThriftHiveMetastore_get_schema_args&); ThriftHiveMetastore_get_schema_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_schema_args() throw(); + virtual ~ThriftHiveMetastore_get_schema_args() throw() {} + std::string db_name; std::string table_name; _ThriftHiveMetastore_get_schema_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } bool operator == (const ThriftHiveMetastore_get_schema_args & rhs) const { @@ -2342,7 +2455,8 @@ class ThriftHiveMetastore_get_schema_pargs { public: - virtual ~ThriftHiveMetastore_get_schema_pargs() throw(); + virtual ~ThriftHiveMetastore_get_schema_pargs() throw() {} + const std::string* db_name; const std::string* table_name; @@ -2352,21 +2466,20 @@ class ThriftHiveMetastore_get_schema_pargs { typedef struct _ThriftHiveMetastore_get_schema_result__isset { _ThriftHiveMetastore_get_schema_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_result__isset; class ThriftHiveMetastore_get_schema_result { public: - ThriftHiveMetastore_get_schema_result(const ThriftHiveMetastore_get_schema_result&); - ThriftHiveMetastore_get_schema_result& operator=(const ThriftHiveMetastore_get_schema_result&); ThriftHiveMetastore_get_schema_result() { } - virtual ~ThriftHiveMetastore_get_schema_result() throw(); + virtual ~ThriftHiveMetastore_get_schema_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2374,13 +2487,21 @@ class ThriftHiveMetastore_get_schema_result { _ThriftHiveMetastore_get_schema_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_schema_result & rhs) const { @@ -2407,17 +2528,18 @@ class ThriftHiveMetastore_get_schema_result { typedef struct _ThriftHiveMetastore_get_schema_presult__isset { _ThriftHiveMetastore_get_schema_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_presult__isset; class ThriftHiveMetastore_get_schema_presult { public: - virtual ~ThriftHiveMetastore_get_schema_presult() throw(); + virtual ~ThriftHiveMetastore_get_schema_presult() throw() {} + std::vector * success; MetaException o1; UnknownTableException o2; @@ -2431,31 +2553,36 @@ class ThriftHiveMetastore_get_schema_presult { typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_args__isset { _ThriftHiveMetastore_get_schema_with_environment_context_args__isset() : db_name(false), table_name(false), environment_context(false) {} - bool db_name :1; - bool table_name :1; - bool environment_context :1; + bool db_name; + bool table_name; + bool environment_context; } _ThriftHiveMetastore_get_schema_with_environment_context_args__isset; class ThriftHiveMetastore_get_schema_with_environment_context_args { public: - ThriftHiveMetastore_get_schema_with_environment_context_args(const ThriftHiveMetastore_get_schema_with_environment_context_args&); - ThriftHiveMetastore_get_schema_with_environment_context_args& operator=(const ThriftHiveMetastore_get_schema_with_environment_context_args&); ThriftHiveMetastore_get_schema_with_environment_context_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_args() throw() {} + std::string db_name; std::string table_name; EnvironmentContext environment_context; _ThriftHiveMetastore_get_schema_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_get_schema_with_environment_context_args & rhs) const { @@ -2483,7 +2610,8 @@ class ThriftHiveMetastore_get_schema_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* table_name; const EnvironmentContext* environment_context; @@ -2494,21 +2622,20 @@ class ThriftHiveMetastore_get_schema_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_result__isset { _ThriftHiveMetastore_get_schema_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_with_environment_context_result__isset; class ThriftHiveMetastore_get_schema_with_environment_context_result { public: - ThriftHiveMetastore_get_schema_with_environment_context_result(const ThriftHiveMetastore_get_schema_with_environment_context_result&); - ThriftHiveMetastore_get_schema_with_environment_context_result& operator=(const ThriftHiveMetastore_get_schema_with_environment_context_result&); ThriftHiveMetastore_get_schema_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2516,13 +2643,21 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { _ThriftHiveMetastore_get_schema_with_environment_context_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_schema_with_environment_context_result & rhs) const { @@ -2549,17 +2684,18 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset { _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset; class ThriftHiveMetastore_get_schema_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw() {} + std::vector * success; MetaException o1; UnknownTableException o2; @@ -2573,23 +2709,24 @@ class ThriftHiveMetastore_get_schema_with_environment_context_presult { typedef struct _ThriftHiveMetastore_create_table_args__isset { _ThriftHiveMetastore_create_table_args__isset() : tbl(false) {} - bool tbl :1; + bool tbl; } _ThriftHiveMetastore_create_table_args__isset; class ThriftHiveMetastore_create_table_args { public: - ThriftHiveMetastore_create_table_args(const ThriftHiveMetastore_create_table_args&); - ThriftHiveMetastore_create_table_args& operator=(const ThriftHiveMetastore_create_table_args&); ThriftHiveMetastore_create_table_args() { } - virtual ~ThriftHiveMetastore_create_table_args() throw(); + virtual ~ThriftHiveMetastore_create_table_args() throw() {} + Table tbl; _ThriftHiveMetastore_create_table_args__isset __isset; - void __set_tbl(const Table& val); + void __set_tbl(const Table& val) { + tbl = val; + } bool operator == (const ThriftHiveMetastore_create_table_args & rhs) const { @@ -2613,7 +2750,8 @@ class ThriftHiveMetastore_create_table_pargs { public: - virtual ~ThriftHiveMetastore_create_table_pargs() throw(); + virtual ~ThriftHiveMetastore_create_table_pargs() throw() {} + const Table* tbl; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -2622,21 +2760,20 @@ class ThriftHiveMetastore_create_table_pargs { typedef struct _ThriftHiveMetastore_create_table_result__isset { _ThriftHiveMetastore_create_table_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_result__isset; class ThriftHiveMetastore_create_table_result { public: - ThriftHiveMetastore_create_table_result(const ThriftHiveMetastore_create_table_result&); - ThriftHiveMetastore_create_table_result& operator=(const ThriftHiveMetastore_create_table_result&); ThriftHiveMetastore_create_table_result() { } - virtual ~ThriftHiveMetastore_create_table_result() throw(); + virtual ~ThriftHiveMetastore_create_table_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2644,13 +2781,21 @@ class ThriftHiveMetastore_create_table_result { _ThriftHiveMetastore_create_table_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_table_result & rhs) const { @@ -2677,17 +2822,18 @@ class ThriftHiveMetastore_create_table_result { typedef struct _ThriftHiveMetastore_create_table_presult__isset { _ThriftHiveMetastore_create_table_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_presult__isset; class ThriftHiveMetastore_create_table_presult { public: - virtual ~ThriftHiveMetastore_create_table_presult() throw(); + virtual ~ThriftHiveMetastore_create_table_presult() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2701,27 +2847,30 @@ class ThriftHiveMetastore_create_table_presult { typedef struct _ThriftHiveMetastore_create_table_with_environment_context_args__isset { _ThriftHiveMetastore_create_table_with_environment_context_args__isset() : tbl(false), environment_context(false) {} - bool tbl :1; - bool environment_context :1; + bool tbl; + bool environment_context; } _ThriftHiveMetastore_create_table_with_environment_context_args__isset; class ThriftHiveMetastore_create_table_with_environment_context_args { public: - ThriftHiveMetastore_create_table_with_environment_context_args(const ThriftHiveMetastore_create_table_with_environment_context_args&); - ThriftHiveMetastore_create_table_with_environment_context_args& operator=(const ThriftHiveMetastore_create_table_with_environment_context_args&); ThriftHiveMetastore_create_table_with_environment_context_args() { } - virtual ~ThriftHiveMetastore_create_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_args() throw() {} + Table tbl; EnvironmentContext environment_context; _ThriftHiveMetastore_create_table_with_environment_context_args__isset __isset; - void __set_tbl(const Table& val); + void __set_tbl(const Table& val) { + tbl = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_create_table_with_environment_context_args & rhs) const { @@ -2747,7 +2896,8 @@ class ThriftHiveMetastore_create_table_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw() {} + const Table* tbl; const EnvironmentContext* environment_context; @@ -2757,21 +2907,20 @@ class ThriftHiveMetastore_create_table_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_create_table_with_environment_context_result__isset { _ThriftHiveMetastore_create_table_with_environment_context_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_with_environment_context_result__isset; class ThriftHiveMetastore_create_table_with_environment_context_result { public: - ThriftHiveMetastore_create_table_with_environment_context_result(const ThriftHiveMetastore_create_table_with_environment_context_result&); - ThriftHiveMetastore_create_table_with_environment_context_result& operator=(const ThriftHiveMetastore_create_table_with_environment_context_result&); ThriftHiveMetastore_create_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_create_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2779,13 +2928,21 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { _ThriftHiveMetastore_create_table_with_environment_context_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_table_with_environment_context_result & rhs) const { @@ -2812,17 +2969,18 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { typedef struct _ThriftHiveMetastore_create_table_with_environment_context_presult__isset { _ThriftHiveMetastore_create_table_with_environment_context_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_with_environment_context_presult__isset; class ThriftHiveMetastore_create_table_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_create_table_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_presult() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2836,31 +2994,36 @@ class ThriftHiveMetastore_create_table_with_environment_context_presult { typedef struct _ThriftHiveMetastore_drop_table_args__isset { _ThriftHiveMetastore_drop_table_args__isset() : dbname(false), name(false), deleteData(false) {} - bool dbname :1; - bool name :1; - bool deleteData :1; + bool dbname; + bool name; + bool deleteData; } _ThriftHiveMetastore_drop_table_args__isset; class ThriftHiveMetastore_drop_table_args { public: - ThriftHiveMetastore_drop_table_args(const ThriftHiveMetastore_drop_table_args&); - ThriftHiveMetastore_drop_table_args& operator=(const ThriftHiveMetastore_drop_table_args&); ThriftHiveMetastore_drop_table_args() : dbname(), name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_table_args() throw(); + virtual ~ThriftHiveMetastore_drop_table_args() throw() {} + std::string dbname; std::string name; bool deleteData; _ThriftHiveMetastore_drop_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_table_args & rhs) const { @@ -2888,7 +3051,8 @@ class ThriftHiveMetastore_drop_table_pargs { public: - virtual ~ThriftHiveMetastore_drop_table_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_table_pargs() throw() {} + const std::string* dbname; const std::string* name; const bool* deleteData; @@ -2899,27 +3063,30 @@ class ThriftHiveMetastore_drop_table_pargs { typedef struct _ThriftHiveMetastore_drop_table_result__isset { _ThriftHiveMetastore_drop_table_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_result__isset; class ThriftHiveMetastore_drop_table_result { public: - ThriftHiveMetastore_drop_table_result(const ThriftHiveMetastore_drop_table_result&); - ThriftHiveMetastore_drop_table_result& operator=(const ThriftHiveMetastore_drop_table_result&); ThriftHiveMetastore_drop_table_result() { } - virtual ~ThriftHiveMetastore_drop_table_result() throw(); + virtual ~ThriftHiveMetastore_drop_table_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_table_result & rhs) const { @@ -2942,15 +3109,16 @@ class ThriftHiveMetastore_drop_table_result { typedef struct _ThriftHiveMetastore_drop_table_presult__isset { _ThriftHiveMetastore_drop_table_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_presult__isset; class ThriftHiveMetastore_drop_table_presult { public: - virtual ~ThriftHiveMetastore_drop_table_presult() throw(); + virtual ~ThriftHiveMetastore_drop_table_presult() throw() {} + NoSuchObjectException o1; MetaException o3; @@ -2962,21 +3130,20 @@ class ThriftHiveMetastore_drop_table_presult { typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_args__isset { _ThriftHiveMetastore_drop_table_with_environment_context_args__isset() : dbname(false), name(false), deleteData(false), environment_context(false) {} - bool dbname :1; - bool name :1; - bool deleteData :1; - bool environment_context :1; + bool dbname; + bool name; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_table_with_environment_context_args__isset; class ThriftHiveMetastore_drop_table_with_environment_context_args { public: - ThriftHiveMetastore_drop_table_with_environment_context_args(const ThriftHiveMetastore_drop_table_with_environment_context_args&); - ThriftHiveMetastore_drop_table_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_table_with_environment_context_args&); ThriftHiveMetastore_drop_table_with_environment_context_args() : dbname(), name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() {} + std::string dbname; std::string name; bool deleteData; @@ -2984,13 +3151,21 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { _ThriftHiveMetastore_drop_table_with_environment_context_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_table_with_environment_context_args & rhs) const { @@ -3020,7 +3195,8 @@ class ThriftHiveMetastore_drop_table_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() {} + const std::string* dbname; const std::string* name; const bool* deleteData; @@ -3032,27 +3208,30 @@ class ThriftHiveMetastore_drop_table_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_result__isset { _ThriftHiveMetastore_drop_table_with_environment_context_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_result__isset; class ThriftHiveMetastore_drop_table_with_environment_context_result { public: - ThriftHiveMetastore_drop_table_with_environment_context_result(const ThriftHiveMetastore_drop_table_with_environment_context_result&); - ThriftHiveMetastore_drop_table_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_table_with_environment_context_result&); ThriftHiveMetastore_drop_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_with_environment_context_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_table_with_environment_context_result & rhs) const { @@ -3075,15 +3254,16 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_table_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() {} + NoSuchObjectException o1; MetaException o3; @@ -3095,27 +3275,30 @@ class ThriftHiveMetastore_drop_table_with_environment_context_presult { typedef struct _ThriftHiveMetastore_get_tables_args__isset { _ThriftHiveMetastore_get_tables_args__isset() : db_name(false), pattern(false) {} - bool db_name :1; - bool pattern :1; + bool db_name; + bool pattern; } _ThriftHiveMetastore_get_tables_args__isset; class ThriftHiveMetastore_get_tables_args { public: - ThriftHiveMetastore_get_tables_args(const ThriftHiveMetastore_get_tables_args&); - ThriftHiveMetastore_get_tables_args& operator=(const ThriftHiveMetastore_get_tables_args&); ThriftHiveMetastore_get_tables_args() : db_name(), pattern() { } - virtual ~ThriftHiveMetastore_get_tables_args() throw(); + virtual ~ThriftHiveMetastore_get_tables_args() throw() {} + std::string db_name; std::string pattern; _ThriftHiveMetastore_get_tables_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_tables_args & rhs) const { @@ -3141,7 +3324,8 @@ class ThriftHiveMetastore_get_tables_pargs { public: - virtual ~ThriftHiveMetastore_get_tables_pargs() throw(); + virtual ~ThriftHiveMetastore_get_tables_pargs() throw() {} + const std::string* db_name; const std::string* pattern; @@ -3151,27 +3335,30 @@ class ThriftHiveMetastore_get_tables_pargs { typedef struct _ThriftHiveMetastore_get_tables_result__isset { _ThriftHiveMetastore_get_tables_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_tables_result__isset; class ThriftHiveMetastore_get_tables_result { public: - ThriftHiveMetastore_get_tables_result(const ThriftHiveMetastore_get_tables_result&); - ThriftHiveMetastore_get_tables_result& operator=(const ThriftHiveMetastore_get_tables_result&); ThriftHiveMetastore_get_tables_result() { } - virtual ~ThriftHiveMetastore_get_tables_result() throw(); + virtual ~ThriftHiveMetastore_get_tables_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_tables_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_tables_result & rhs) const { @@ -3194,15 +3381,16 @@ class ThriftHiveMetastore_get_tables_result { typedef struct _ThriftHiveMetastore_get_tables_presult__isset { _ThriftHiveMetastore_get_tables_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_tables_presult__isset; class ThriftHiveMetastore_get_tables_presult { public: - virtual ~ThriftHiveMetastore_get_tables_presult() throw(); + virtual ~ThriftHiveMetastore_get_tables_presult() throw() {} + std::vector * success; MetaException o1; @@ -3214,31 +3402,36 @@ class ThriftHiveMetastore_get_tables_presult { typedef struct _ThriftHiveMetastore_get_table_meta_args__isset { _ThriftHiveMetastore_get_table_meta_args__isset() : db_patterns(false), tbl_patterns(false), tbl_types(false) {} - bool db_patterns :1; - bool tbl_patterns :1; - bool tbl_types :1; + bool db_patterns; + bool tbl_patterns; + bool tbl_types; } _ThriftHiveMetastore_get_table_meta_args__isset; class ThriftHiveMetastore_get_table_meta_args { public: - ThriftHiveMetastore_get_table_meta_args(const ThriftHiveMetastore_get_table_meta_args&); - ThriftHiveMetastore_get_table_meta_args& operator=(const ThriftHiveMetastore_get_table_meta_args&); ThriftHiveMetastore_get_table_meta_args() : db_patterns(), tbl_patterns() { } - virtual ~ThriftHiveMetastore_get_table_meta_args() throw(); + virtual ~ThriftHiveMetastore_get_table_meta_args() throw() {} + std::string db_patterns; std::string tbl_patterns; std::vector tbl_types; _ThriftHiveMetastore_get_table_meta_args__isset __isset; - void __set_db_patterns(const std::string& val); + void __set_db_patterns(const std::string& val) { + db_patterns = val; + } - void __set_tbl_patterns(const std::string& val); + void __set_tbl_patterns(const std::string& val) { + tbl_patterns = val; + } - void __set_tbl_types(const std::vector & val); + void __set_tbl_types(const std::vector & val) { + tbl_types = val; + } bool operator == (const ThriftHiveMetastore_get_table_meta_args & rhs) const { @@ -3266,7 +3459,8 @@ class ThriftHiveMetastore_get_table_meta_pargs { public: - virtual ~ThriftHiveMetastore_get_table_meta_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_meta_pargs() throw() {} + const std::string* db_patterns; const std::string* tbl_patterns; const std::vector * tbl_types; @@ -3277,27 +3471,30 @@ class ThriftHiveMetastore_get_table_meta_pargs { typedef struct _ThriftHiveMetastore_get_table_meta_result__isset { _ThriftHiveMetastore_get_table_meta_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_table_meta_result__isset; class ThriftHiveMetastore_get_table_meta_result { public: - ThriftHiveMetastore_get_table_meta_result(const ThriftHiveMetastore_get_table_meta_result&); - ThriftHiveMetastore_get_table_meta_result& operator=(const ThriftHiveMetastore_get_table_meta_result&); ThriftHiveMetastore_get_table_meta_result() { } - virtual ~ThriftHiveMetastore_get_table_meta_result() throw(); + virtual ~ThriftHiveMetastore_get_table_meta_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_table_meta_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_table_meta_result & rhs) const { @@ -3320,15 +3517,16 @@ class ThriftHiveMetastore_get_table_meta_result { typedef struct _ThriftHiveMetastore_get_table_meta_presult__isset { _ThriftHiveMetastore_get_table_meta_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_table_meta_presult__isset; class ThriftHiveMetastore_get_table_meta_presult { public: - virtual ~ThriftHiveMetastore_get_table_meta_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_meta_presult() throw() {} + std::vector * success; MetaException o1; @@ -3340,23 +3538,24 @@ class ThriftHiveMetastore_get_table_meta_presult { typedef struct _ThriftHiveMetastore_get_all_tables_args__isset { _ThriftHiveMetastore_get_all_tables_args__isset() : db_name(false) {} - bool db_name :1; + bool db_name; } _ThriftHiveMetastore_get_all_tables_args__isset; class ThriftHiveMetastore_get_all_tables_args { public: - ThriftHiveMetastore_get_all_tables_args(const ThriftHiveMetastore_get_all_tables_args&); - ThriftHiveMetastore_get_all_tables_args& operator=(const ThriftHiveMetastore_get_all_tables_args&); ThriftHiveMetastore_get_all_tables_args() : db_name() { } - virtual ~ThriftHiveMetastore_get_all_tables_args() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_args() throw() {} + std::string db_name; _ThriftHiveMetastore_get_all_tables_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } bool operator == (const ThriftHiveMetastore_get_all_tables_args & rhs) const { @@ -3380,7 +3579,8 @@ class ThriftHiveMetastore_get_all_tables_pargs { public: - virtual ~ThriftHiveMetastore_get_all_tables_pargs() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_pargs() throw() {} + const std::string* db_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3389,27 +3589,30 @@ class ThriftHiveMetastore_get_all_tables_pargs { typedef struct _ThriftHiveMetastore_get_all_tables_result__isset { _ThriftHiveMetastore_get_all_tables_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_tables_result__isset; class ThriftHiveMetastore_get_all_tables_result { public: - ThriftHiveMetastore_get_all_tables_result(const ThriftHiveMetastore_get_all_tables_result&); - ThriftHiveMetastore_get_all_tables_result& operator=(const ThriftHiveMetastore_get_all_tables_result&); ThriftHiveMetastore_get_all_tables_result() { } - virtual ~ThriftHiveMetastore_get_all_tables_result() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_all_tables_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_tables_result & rhs) const { @@ -3432,15 +3635,16 @@ class ThriftHiveMetastore_get_all_tables_result { typedef struct _ThriftHiveMetastore_get_all_tables_presult__isset { _ThriftHiveMetastore_get_all_tables_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_tables_presult__isset; class ThriftHiveMetastore_get_all_tables_presult { public: - virtual ~ThriftHiveMetastore_get_all_tables_presult() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_presult() throw() {} + std::vector * success; MetaException o1; @@ -3452,27 +3656,30 @@ class ThriftHiveMetastore_get_all_tables_presult { typedef struct _ThriftHiveMetastore_get_table_args__isset { _ThriftHiveMetastore_get_table_args__isset() : dbname(false), tbl_name(false) {} - bool dbname :1; - bool tbl_name :1; + bool dbname; + bool tbl_name; } _ThriftHiveMetastore_get_table_args__isset; class ThriftHiveMetastore_get_table_args { public: - ThriftHiveMetastore_get_table_args(const ThriftHiveMetastore_get_table_args&); - ThriftHiveMetastore_get_table_args& operator=(const ThriftHiveMetastore_get_table_args&); ThriftHiveMetastore_get_table_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_table_args() throw(); + virtual ~ThriftHiveMetastore_get_table_args() throw() {} + std::string dbname; std::string tbl_name; _ThriftHiveMetastore_get_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } bool operator == (const ThriftHiveMetastore_get_table_args & rhs) const { @@ -3498,7 +3705,8 @@ class ThriftHiveMetastore_get_table_pargs { public: - virtual ~ThriftHiveMetastore_get_table_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_pargs() throw() {} + const std::string* dbname; const std::string* tbl_name; @@ -3508,31 +3716,36 @@ class ThriftHiveMetastore_get_table_pargs { typedef struct _ThriftHiveMetastore_get_table_result__isset { _ThriftHiveMetastore_get_table_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_result__isset; class ThriftHiveMetastore_get_table_result { public: - ThriftHiveMetastore_get_table_result(const ThriftHiveMetastore_get_table_result&); - ThriftHiveMetastore_get_table_result& operator=(const ThriftHiveMetastore_get_table_result&); ThriftHiveMetastore_get_table_result() { } - virtual ~ThriftHiveMetastore_get_table_result() throw(); + virtual ~ThriftHiveMetastore_get_table_result() throw() {} + Table success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_table_result__isset __isset; - void __set_success(const Table& val); + void __set_success(const Table& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_table_result & rhs) const { @@ -3557,16 +3770,17 @@ class ThriftHiveMetastore_get_table_result { typedef struct _ThriftHiveMetastore_get_table_presult__isset { _ThriftHiveMetastore_get_table_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_presult__isset; class ThriftHiveMetastore_get_table_presult { public: - virtual ~ThriftHiveMetastore_get_table_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_presult() throw() {} + Table* success; MetaException o1; NoSuchObjectException o2; @@ -3579,27 +3793,30 @@ class ThriftHiveMetastore_get_table_presult { typedef struct _ThriftHiveMetastore_get_table_objects_by_name_args__isset { _ThriftHiveMetastore_get_table_objects_by_name_args__isset() : dbname(false), tbl_names(false) {} - bool dbname :1; - bool tbl_names :1; + bool dbname; + bool tbl_names; } _ThriftHiveMetastore_get_table_objects_by_name_args__isset; class ThriftHiveMetastore_get_table_objects_by_name_args { public: - ThriftHiveMetastore_get_table_objects_by_name_args(const ThriftHiveMetastore_get_table_objects_by_name_args&); - ThriftHiveMetastore_get_table_objects_by_name_args& operator=(const ThriftHiveMetastore_get_table_objects_by_name_args&); ThriftHiveMetastore_get_table_objects_by_name_args() : dbname() { } - virtual ~ThriftHiveMetastore_get_table_objects_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_args() throw() {} + std::string dbname; std::vector tbl_names; _ThriftHiveMetastore_get_table_objects_by_name_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_names(const std::vector & val); + void __set_tbl_names(const std::vector & val) { + tbl_names = val; + } bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_args & rhs) const { @@ -3625,7 +3842,8 @@ class ThriftHiveMetastore_get_table_objects_by_name_pargs { public: - virtual ~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw() {} + const std::string* dbname; const std::vector * tbl_names; @@ -3635,21 +3853,20 @@ class ThriftHiveMetastore_get_table_objects_by_name_pargs { typedef struct _ThriftHiveMetastore_get_table_objects_by_name_result__isset { _ThriftHiveMetastore_get_table_objects_by_name_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_objects_by_name_result__isset; class ThriftHiveMetastore_get_table_objects_by_name_result { public: - ThriftHiveMetastore_get_table_objects_by_name_result(const ThriftHiveMetastore_get_table_objects_by_name_result&); - ThriftHiveMetastore_get_table_objects_by_name_result& operator=(const ThriftHiveMetastore_get_table_objects_by_name_result&); ThriftHiveMetastore_get_table_objects_by_name_result() { } - virtual ~ThriftHiveMetastore_get_table_objects_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_result() throw() {} + std::vector
success; MetaException o1; InvalidOperationException o2; @@ -3657,13 +3874,21 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { _ThriftHiveMetastore_get_table_objects_by_name_result__isset __isset; - void __set_success(const std::vector
& val); + void __set_success(const std::vector
& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_result & rhs) const { @@ -3690,17 +3915,18 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { typedef struct _ThriftHiveMetastore_get_table_objects_by_name_presult__isset { _ThriftHiveMetastore_get_table_objects_by_name_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_objects_by_name_presult__isset; class ThriftHiveMetastore_get_table_objects_by_name_presult { public: - virtual ~ThriftHiveMetastore_get_table_objects_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_presult() throw() {} + std::vector
* success; MetaException o1; InvalidOperationException o2; @@ -3714,31 +3940,36 @@ class ThriftHiveMetastore_get_table_objects_by_name_presult { typedef struct _ThriftHiveMetastore_get_table_names_by_filter_args__isset { _ThriftHiveMetastore_get_table_names_by_filter_args__isset() : dbname(false), filter(false), max_tables(true) {} - bool dbname :1; - bool filter :1; - bool max_tables :1; + bool dbname; + bool filter; + bool max_tables; } _ThriftHiveMetastore_get_table_names_by_filter_args__isset; class ThriftHiveMetastore_get_table_names_by_filter_args { public: - ThriftHiveMetastore_get_table_names_by_filter_args(const ThriftHiveMetastore_get_table_names_by_filter_args&); - ThriftHiveMetastore_get_table_names_by_filter_args& operator=(const ThriftHiveMetastore_get_table_names_by_filter_args&); ThriftHiveMetastore_get_table_names_by_filter_args() : dbname(), filter(), max_tables(-1) { } - virtual ~ThriftHiveMetastore_get_table_names_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_args() throw() {} + std::string dbname; std::string filter; int16_t max_tables; _ThriftHiveMetastore_get_table_names_by_filter_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_tables(const int16_t val); + void __set_max_tables(const int16_t val) { + max_tables = val; + } bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_args & rhs) const { @@ -3766,7 +3997,8 @@ class ThriftHiveMetastore_get_table_names_by_filter_pargs { public: - virtual ~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw() {} + const std::string* dbname; const std::string* filter; const int16_t* max_tables; @@ -3777,21 +4009,20 @@ class ThriftHiveMetastore_get_table_names_by_filter_pargs { typedef struct _ThriftHiveMetastore_get_table_names_by_filter_result__isset { _ThriftHiveMetastore_get_table_names_by_filter_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_names_by_filter_result__isset; class ThriftHiveMetastore_get_table_names_by_filter_result { public: - ThriftHiveMetastore_get_table_names_by_filter_result(const ThriftHiveMetastore_get_table_names_by_filter_result&); - ThriftHiveMetastore_get_table_names_by_filter_result& operator=(const ThriftHiveMetastore_get_table_names_by_filter_result&); ThriftHiveMetastore_get_table_names_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_table_names_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_result() throw() {} + std::vector success; MetaException o1; InvalidOperationException o2; @@ -3799,13 +4030,21 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { _ThriftHiveMetastore_get_table_names_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_result & rhs) const { @@ -3832,17 +4071,18 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { typedef struct _ThriftHiveMetastore_get_table_names_by_filter_presult__isset { _ThriftHiveMetastore_get_table_names_by_filter_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_names_by_filter_presult__isset; class ThriftHiveMetastore_get_table_names_by_filter_presult { public: - virtual ~ThriftHiveMetastore_get_table_names_by_filter_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_presult() throw() {} + std::vector * success; MetaException o1; InvalidOperationException o2; @@ -3856,31 +4096,36 @@ class ThriftHiveMetastore_get_table_names_by_filter_presult { typedef struct _ThriftHiveMetastore_alter_table_args__isset { _ThriftHiveMetastore_alter_table_args__isset() : dbname(false), tbl_name(false), new_tbl(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; + bool dbname; + bool tbl_name; + bool new_tbl; } _ThriftHiveMetastore_alter_table_args__isset; class ThriftHiveMetastore_alter_table_args { public: - ThriftHiveMetastore_alter_table_args(const ThriftHiveMetastore_alter_table_args&); - ThriftHiveMetastore_alter_table_args& operator=(const ThriftHiveMetastore_alter_table_args&); ThriftHiveMetastore_alter_table_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_table_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; _ThriftHiveMetastore_alter_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } bool operator == (const ThriftHiveMetastore_alter_table_args & rhs) const { @@ -3908,7 +4153,8 @@ class ThriftHiveMetastore_alter_table_pargs { public: - virtual ~ThriftHiveMetastore_alter_table_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_table_pargs() throw() {} + const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; @@ -3919,27 +4165,30 @@ class ThriftHiveMetastore_alter_table_pargs { typedef struct _ThriftHiveMetastore_alter_table_result__isset { _ThriftHiveMetastore_alter_table_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_result__isset; class ThriftHiveMetastore_alter_table_result { public: - ThriftHiveMetastore_alter_table_result(const ThriftHiveMetastore_alter_table_result&); - ThriftHiveMetastore_alter_table_result& operator=(const ThriftHiveMetastore_alter_table_result&); ThriftHiveMetastore_alter_table_result() { } - virtual ~ThriftHiveMetastore_alter_table_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_result & rhs) const { @@ -3962,15 +4211,16 @@ class ThriftHiveMetastore_alter_table_result { typedef struct _ThriftHiveMetastore_alter_table_presult__isset { _ThriftHiveMetastore_alter_table_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_presult__isset; class ThriftHiveMetastore_alter_table_presult { public: - virtual ~ThriftHiveMetastore_alter_table_presult() throw(); + virtual ~ThriftHiveMetastore_alter_table_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -3982,21 +4232,20 @@ class ThriftHiveMetastore_alter_table_presult { typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_args__isset { _ThriftHiveMetastore_alter_table_with_environment_context_args__isset() : dbname(false), tbl_name(false), new_tbl(false), environment_context(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; - bool environment_context :1; + bool dbname; + bool tbl_name; + bool new_tbl; + bool environment_context; } _ThriftHiveMetastore_alter_table_with_environment_context_args__isset; class ThriftHiveMetastore_alter_table_with_environment_context_args { public: - ThriftHiveMetastore_alter_table_with_environment_context_args(const ThriftHiveMetastore_alter_table_with_environment_context_args&); - ThriftHiveMetastore_alter_table_with_environment_context_args& operator=(const ThriftHiveMetastore_alter_table_with_environment_context_args&); ThriftHiveMetastore_alter_table_with_environment_context_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; @@ -4004,13 +4253,21 @@ class ThriftHiveMetastore_alter_table_with_environment_context_args { _ThriftHiveMetastore_alter_table_with_environment_context_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_environment_context_args & rhs) const { @@ -4040,7 +4297,8 @@ class ThriftHiveMetastore_alter_table_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw() {} + const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; @@ -4052,27 +4310,30 @@ class ThriftHiveMetastore_alter_table_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_result__isset { _ThriftHiveMetastore_alter_table_with_environment_context_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_environment_context_result__isset; class ThriftHiveMetastore_alter_table_with_environment_context_result { public: - ThriftHiveMetastore_alter_table_with_environment_context_result(const ThriftHiveMetastore_alter_table_with_environment_context_result&); - ThriftHiveMetastore_alter_table_with_environment_context_result& operator=(const ThriftHiveMetastore_alter_table_with_environment_context_result&); ThriftHiveMetastore_alter_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_with_environment_context_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_environment_context_result & rhs) const { @@ -4095,15 +4356,16 @@ class ThriftHiveMetastore_alter_table_with_environment_context_result { typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset { _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset; class ThriftHiveMetastore_alter_table_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -4115,21 +4377,20 @@ class ThriftHiveMetastore_alter_table_with_environment_context_presult { typedef struct _ThriftHiveMetastore_alter_table_with_cascade_args__isset { _ThriftHiveMetastore_alter_table_with_cascade_args__isset() : dbname(false), tbl_name(false), new_tbl(false), cascade(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; - bool cascade :1; + bool dbname; + bool tbl_name; + bool new_tbl; + bool cascade; } _ThriftHiveMetastore_alter_table_with_cascade_args__isset; class ThriftHiveMetastore_alter_table_with_cascade_args { public: - ThriftHiveMetastore_alter_table_with_cascade_args(const ThriftHiveMetastore_alter_table_with_cascade_args&); - ThriftHiveMetastore_alter_table_with_cascade_args& operator=(const ThriftHiveMetastore_alter_table_with_cascade_args&); ThriftHiveMetastore_alter_table_with_cascade_args() : dbname(), tbl_name(), cascade(0) { } - virtual ~ThriftHiveMetastore_alter_table_with_cascade_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; @@ -4137,13 +4398,21 @@ class ThriftHiveMetastore_alter_table_with_cascade_args { _ThriftHiveMetastore_alter_table_with_cascade_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } - void __set_cascade(const bool val); + void __set_cascade(const bool val) { + cascade = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_cascade_args & rhs) const { @@ -4173,7 +4442,8 @@ class ThriftHiveMetastore_alter_table_with_cascade_pargs { public: - virtual ~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw() {} + const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; @@ -4185,27 +4455,30 @@ class ThriftHiveMetastore_alter_table_with_cascade_pargs { typedef struct _ThriftHiveMetastore_alter_table_with_cascade_result__isset { _ThriftHiveMetastore_alter_table_with_cascade_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_cascade_result__isset; class ThriftHiveMetastore_alter_table_with_cascade_result { public: - ThriftHiveMetastore_alter_table_with_cascade_result(const ThriftHiveMetastore_alter_table_with_cascade_result&); - ThriftHiveMetastore_alter_table_with_cascade_result& operator=(const ThriftHiveMetastore_alter_table_with_cascade_result&); ThriftHiveMetastore_alter_table_with_cascade_result() { } - virtual ~ThriftHiveMetastore_alter_table_with_cascade_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_with_cascade_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_cascade_result & rhs) const { @@ -4228,15 +4501,16 @@ class ThriftHiveMetastore_alter_table_with_cascade_result { typedef struct _ThriftHiveMetastore_alter_table_with_cascade_presult__isset { _ThriftHiveMetastore_alter_table_with_cascade_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_cascade_presult__isset; class ThriftHiveMetastore_alter_table_with_cascade_presult { public: - virtual ~ThriftHiveMetastore_alter_table_with_cascade_presult() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -4248,23 +4522,24 @@ class ThriftHiveMetastore_alter_table_with_cascade_presult { typedef struct _ThriftHiveMetastore_add_partition_args__isset { _ThriftHiveMetastore_add_partition_args__isset() : new_part(false) {} - bool new_part :1; + bool new_part; } _ThriftHiveMetastore_add_partition_args__isset; class ThriftHiveMetastore_add_partition_args { public: - ThriftHiveMetastore_add_partition_args(const ThriftHiveMetastore_add_partition_args&); - ThriftHiveMetastore_add_partition_args& operator=(const ThriftHiveMetastore_add_partition_args&); ThriftHiveMetastore_add_partition_args() { } - virtual ~ThriftHiveMetastore_add_partition_args() throw(); + virtual ~ThriftHiveMetastore_add_partition_args() throw() {} + Partition new_part; _ThriftHiveMetastore_add_partition_args__isset __isset; - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_add_partition_args & rhs) const { @@ -4288,7 +4563,8 @@ class ThriftHiveMetastore_add_partition_pargs { public: - virtual ~ThriftHiveMetastore_add_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_add_partition_pargs() throw() {} + const Partition* new_part; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -4297,21 +4573,20 @@ class ThriftHiveMetastore_add_partition_pargs { typedef struct _ThriftHiveMetastore_add_partition_result__isset { _ThriftHiveMetastore_add_partition_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_result__isset; class ThriftHiveMetastore_add_partition_result { public: - ThriftHiveMetastore_add_partition_result(const ThriftHiveMetastore_add_partition_result&); - ThriftHiveMetastore_add_partition_result& operator=(const ThriftHiveMetastore_add_partition_result&); ThriftHiveMetastore_add_partition_result() { } - virtual ~ThriftHiveMetastore_add_partition_result() throw(); + virtual ~ThriftHiveMetastore_add_partition_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4319,13 +4594,21 @@ class ThriftHiveMetastore_add_partition_result { _ThriftHiveMetastore_add_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partition_result & rhs) const { @@ -4352,17 +4635,18 @@ class ThriftHiveMetastore_add_partition_result { typedef struct _ThriftHiveMetastore_add_partition_presult__isset { _ThriftHiveMetastore_add_partition_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_presult__isset; class ThriftHiveMetastore_add_partition_presult { public: - virtual ~ThriftHiveMetastore_add_partition_presult() throw(); + virtual ~ThriftHiveMetastore_add_partition_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4376,27 +4660,30 @@ class ThriftHiveMetastore_add_partition_presult { typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_args__isset { _ThriftHiveMetastore_add_partition_with_environment_context_args__isset() : new_part(false), environment_context(false) {} - bool new_part :1; - bool environment_context :1; + bool new_part; + bool environment_context; } _ThriftHiveMetastore_add_partition_with_environment_context_args__isset; class ThriftHiveMetastore_add_partition_with_environment_context_args { public: - ThriftHiveMetastore_add_partition_with_environment_context_args(const ThriftHiveMetastore_add_partition_with_environment_context_args&); - ThriftHiveMetastore_add_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_add_partition_with_environment_context_args&); ThriftHiveMetastore_add_partition_with_environment_context_args() { } - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_args() throw() {} + Partition new_part; EnvironmentContext environment_context; _ThriftHiveMetastore_add_partition_with_environment_context_args__isset __isset; - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_add_partition_with_environment_context_args & rhs) const { @@ -4422,7 +4709,8 @@ class ThriftHiveMetastore_add_partition_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw() {} + const Partition* new_part; const EnvironmentContext* environment_context; @@ -4432,21 +4720,20 @@ class ThriftHiveMetastore_add_partition_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_result__isset { _ThriftHiveMetastore_add_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_with_environment_context_result__isset; class ThriftHiveMetastore_add_partition_with_environment_context_result { public: - ThriftHiveMetastore_add_partition_with_environment_context_result(const ThriftHiveMetastore_add_partition_with_environment_context_result&); - ThriftHiveMetastore_add_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_add_partition_with_environment_context_result&); ThriftHiveMetastore_add_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4454,13 +4741,21 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { _ThriftHiveMetastore_add_partition_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partition_with_environment_context_result & rhs) const { @@ -4487,17 +4782,18 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_add_partition_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4511,23 +4807,24 @@ class ThriftHiveMetastore_add_partition_with_environment_context_presult { typedef struct _ThriftHiveMetastore_add_partitions_args__isset { _ThriftHiveMetastore_add_partitions_args__isset() : new_parts(false) {} - bool new_parts :1; + bool new_parts; } _ThriftHiveMetastore_add_partitions_args__isset; class ThriftHiveMetastore_add_partitions_args { public: - ThriftHiveMetastore_add_partitions_args(const ThriftHiveMetastore_add_partitions_args&); - ThriftHiveMetastore_add_partitions_args& operator=(const ThriftHiveMetastore_add_partitions_args&); ThriftHiveMetastore_add_partitions_args() { } - virtual ~ThriftHiveMetastore_add_partitions_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_args() throw() {} + std::vector new_parts; _ThriftHiveMetastore_add_partitions_args__isset __isset; - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_args & rhs) const { @@ -4551,7 +4848,8 @@ class ThriftHiveMetastore_add_partitions_pargs { public: - virtual ~ThriftHiveMetastore_add_partitions_pargs() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pargs() throw() {} + const std::vector * new_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -4560,21 +4858,20 @@ class ThriftHiveMetastore_add_partitions_pargs { typedef struct _ThriftHiveMetastore_add_partitions_result__isset { _ThriftHiveMetastore_add_partitions_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_result__isset; class ThriftHiveMetastore_add_partitions_result { public: - ThriftHiveMetastore_add_partitions_result(const ThriftHiveMetastore_add_partitions_result&); - ThriftHiveMetastore_add_partitions_result& operator=(const ThriftHiveMetastore_add_partitions_result&); ThriftHiveMetastore_add_partitions_result() : success(0) { } - virtual ~ThriftHiveMetastore_add_partitions_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_result() throw() {} + int32_t success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4582,13 +4879,21 @@ class ThriftHiveMetastore_add_partitions_result { _ThriftHiveMetastore_add_partitions_result__isset __isset; - void __set_success(const int32_t val); + void __set_success(const int32_t val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_result & rhs) const { @@ -4615,17 +4920,18 @@ class ThriftHiveMetastore_add_partitions_result { typedef struct _ThriftHiveMetastore_add_partitions_presult__isset { _ThriftHiveMetastore_add_partitions_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_presult__isset; class ThriftHiveMetastore_add_partitions_presult { public: - virtual ~ThriftHiveMetastore_add_partitions_presult() throw(); + virtual ~ThriftHiveMetastore_add_partitions_presult() throw() {} + int32_t* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4639,23 +4945,24 @@ class ThriftHiveMetastore_add_partitions_presult { typedef struct _ThriftHiveMetastore_add_partitions_pspec_args__isset { _ThriftHiveMetastore_add_partitions_pspec_args__isset() : new_parts(false) {} - bool new_parts :1; + bool new_parts; } _ThriftHiveMetastore_add_partitions_pspec_args__isset; class ThriftHiveMetastore_add_partitions_pspec_args { public: - ThriftHiveMetastore_add_partitions_pspec_args(const ThriftHiveMetastore_add_partitions_pspec_args&); - ThriftHiveMetastore_add_partitions_pspec_args& operator=(const ThriftHiveMetastore_add_partitions_pspec_args&); ThriftHiveMetastore_add_partitions_pspec_args() { } - virtual ~ThriftHiveMetastore_add_partitions_pspec_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_args() throw() {} + std::vector new_parts; _ThriftHiveMetastore_add_partitions_pspec_args__isset __isset; - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_pspec_args & rhs) const { @@ -4679,7 +4986,8 @@ class ThriftHiveMetastore_add_partitions_pspec_pargs { public: - virtual ~ThriftHiveMetastore_add_partitions_pspec_pargs() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_pargs() throw() {} + const std::vector * new_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -4688,21 +4996,20 @@ class ThriftHiveMetastore_add_partitions_pspec_pargs { typedef struct _ThriftHiveMetastore_add_partitions_pspec_result__isset { _ThriftHiveMetastore_add_partitions_pspec_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_pspec_result__isset; class ThriftHiveMetastore_add_partitions_pspec_result { public: - ThriftHiveMetastore_add_partitions_pspec_result(const ThriftHiveMetastore_add_partitions_pspec_result&); - ThriftHiveMetastore_add_partitions_pspec_result& operator=(const ThriftHiveMetastore_add_partitions_pspec_result&); ThriftHiveMetastore_add_partitions_pspec_result() : success(0) { } - virtual ~ThriftHiveMetastore_add_partitions_pspec_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_result() throw() {} + int32_t success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4710,13 +5017,21 @@ class ThriftHiveMetastore_add_partitions_pspec_result { _ThriftHiveMetastore_add_partitions_pspec_result__isset __isset; - void __set_success(const int32_t val); + void __set_success(const int32_t val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_pspec_result & rhs) const { @@ -4743,17 +5058,18 @@ class ThriftHiveMetastore_add_partitions_pspec_result { typedef struct _ThriftHiveMetastore_add_partitions_pspec_presult__isset { _ThriftHiveMetastore_add_partitions_pspec_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_pspec_presult__isset; class ThriftHiveMetastore_add_partitions_pspec_presult { public: - virtual ~ThriftHiveMetastore_add_partitions_pspec_presult() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_presult() throw() {} + int32_t* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4767,31 +5083,36 @@ class ThriftHiveMetastore_add_partitions_pspec_presult { typedef struct _ThriftHiveMetastore_append_partition_args__isset { _ThriftHiveMetastore_append_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; + bool db_name; + bool tbl_name; + bool part_vals; } _ThriftHiveMetastore_append_partition_args__isset; class ThriftHiveMetastore_append_partition_args { public: - ThriftHiveMetastore_append_partition_args(const ThriftHiveMetastore_append_partition_args&); - ThriftHiveMetastore_append_partition_args& operator=(const ThriftHiveMetastore_append_partition_args&); ThriftHiveMetastore_append_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_append_partition_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; _ThriftHiveMetastore_append_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } bool operator == (const ThriftHiveMetastore_append_partition_args & rhs) const { @@ -4819,7 +5140,8 @@ class ThriftHiveMetastore_append_partition_pargs { public: - virtual ~ThriftHiveMetastore_append_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_append_partition_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -4830,21 +5152,20 @@ class ThriftHiveMetastore_append_partition_pargs { typedef struct _ThriftHiveMetastore_append_partition_result__isset { _ThriftHiveMetastore_append_partition_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_result__isset; class ThriftHiveMetastore_append_partition_result { public: - ThriftHiveMetastore_append_partition_result(const ThriftHiveMetastore_append_partition_result&); - ThriftHiveMetastore_append_partition_result& operator=(const ThriftHiveMetastore_append_partition_result&); ThriftHiveMetastore_append_partition_result() { } - virtual ~ThriftHiveMetastore_append_partition_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4852,13 +5173,21 @@ class ThriftHiveMetastore_append_partition_result { _ThriftHiveMetastore_append_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_result & rhs) const { @@ -4885,17 +5214,18 @@ class ThriftHiveMetastore_append_partition_result { typedef struct _ThriftHiveMetastore_append_partition_presult__isset { _ThriftHiveMetastore_append_partition_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_presult__isset; class ThriftHiveMetastore_append_partition_presult { public: - virtual ~ThriftHiveMetastore_append_partition_presult() throw(); + virtual ~ThriftHiveMetastore_append_partition_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4909,23 +5239,24 @@ class ThriftHiveMetastore_append_partition_presult { typedef struct _ThriftHiveMetastore_add_partitions_req_args__isset { _ThriftHiveMetastore_add_partitions_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_add_partitions_req_args__isset; class ThriftHiveMetastore_add_partitions_req_args { public: - ThriftHiveMetastore_add_partitions_req_args(const ThriftHiveMetastore_add_partitions_req_args&); - ThriftHiveMetastore_add_partitions_req_args& operator=(const ThriftHiveMetastore_add_partitions_req_args&); ThriftHiveMetastore_add_partitions_req_args() { } - virtual ~ThriftHiveMetastore_add_partitions_req_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_args() throw() {} + AddPartitionsRequest request; _ThriftHiveMetastore_add_partitions_req_args__isset __isset; - void __set_request(const AddPartitionsRequest& val); + void __set_request(const AddPartitionsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_req_args & rhs) const { @@ -4949,7 +5280,8 @@ class ThriftHiveMetastore_add_partitions_req_pargs { public: - virtual ~ThriftHiveMetastore_add_partitions_req_pargs() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_pargs() throw() {} + const AddPartitionsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -4958,21 +5290,20 @@ class ThriftHiveMetastore_add_partitions_req_pargs { typedef struct _ThriftHiveMetastore_add_partitions_req_result__isset { _ThriftHiveMetastore_add_partitions_req_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_req_result__isset; class ThriftHiveMetastore_add_partitions_req_result { public: - ThriftHiveMetastore_add_partitions_req_result(const ThriftHiveMetastore_add_partitions_req_result&); - ThriftHiveMetastore_add_partitions_req_result& operator=(const ThriftHiveMetastore_add_partitions_req_result&); ThriftHiveMetastore_add_partitions_req_result() { } - virtual ~ThriftHiveMetastore_add_partitions_req_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_result() throw() {} + AddPartitionsResult success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4980,13 +5311,21 @@ class ThriftHiveMetastore_add_partitions_req_result { _ThriftHiveMetastore_add_partitions_req_result__isset __isset; - void __set_success(const AddPartitionsResult& val); + void __set_success(const AddPartitionsResult& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_req_result & rhs) const { @@ -5013,17 +5352,18 @@ class ThriftHiveMetastore_add_partitions_req_result { typedef struct _ThriftHiveMetastore_add_partitions_req_presult__isset { _ThriftHiveMetastore_add_partitions_req_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_req_presult__isset; class ThriftHiveMetastore_add_partitions_req_presult { public: - virtual ~ThriftHiveMetastore_add_partitions_req_presult() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_presult() throw() {} + AddPartitionsResult* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5037,21 +5377,20 @@ class ThriftHiveMetastore_add_partitions_req_presult { typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_args__isset { _ThriftHiveMetastore_append_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool environment_context; } _ThriftHiveMetastore_append_partition_with_environment_context_args__isset; class ThriftHiveMetastore_append_partition_with_environment_context_args { public: - ThriftHiveMetastore_append_partition_with_environment_context_args(const ThriftHiveMetastore_append_partition_with_environment_context_args&); - ThriftHiveMetastore_append_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_append_partition_with_environment_context_args&); ThriftHiveMetastore_append_partition_with_environment_context_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -5059,13 +5398,21 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { _ThriftHiveMetastore_append_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_append_partition_with_environment_context_args & rhs) const { @@ -5095,7 +5442,8 @@ class ThriftHiveMetastore_append_partition_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -5107,21 +5455,20 @@ class ThriftHiveMetastore_append_partition_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_result__isset { _ThriftHiveMetastore_append_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_with_environment_context_result__isset; class ThriftHiveMetastore_append_partition_with_environment_context_result { public: - ThriftHiveMetastore_append_partition_with_environment_context_result(const ThriftHiveMetastore_append_partition_with_environment_context_result&); - ThriftHiveMetastore_append_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_append_partition_with_environment_context_result&); ThriftHiveMetastore_append_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5129,13 +5476,21 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { _ThriftHiveMetastore_append_partition_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_with_environment_context_result & rhs) const { @@ -5162,17 +5517,18 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_append_partition_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5186,31 +5542,36 @@ class ThriftHiveMetastore_append_partition_with_environment_context_presult { typedef struct _ThriftHiveMetastore_append_partition_by_name_args__isset { _ThriftHiveMetastore_append_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; + bool db_name; + bool tbl_name; + bool part_name; } _ThriftHiveMetastore_append_partition_by_name_args__isset; class ThriftHiveMetastore_append_partition_by_name_args { public: - ThriftHiveMetastore_append_partition_by_name_args(const ThriftHiveMetastore_append_partition_by_name_args&); - ThriftHiveMetastore_append_partition_by_name_args& operator=(const ThriftHiveMetastore_append_partition_by_name_args&); ThriftHiveMetastore_append_partition_by_name_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; _ThriftHiveMetastore_append_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_args & rhs) const { @@ -5238,7 +5599,8 @@ class ThriftHiveMetastore_append_partition_by_name_pargs { public: - virtual ~ThriftHiveMetastore_append_partition_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -5249,21 +5611,20 @@ class ThriftHiveMetastore_append_partition_by_name_pargs { typedef struct _ThriftHiveMetastore_append_partition_by_name_result__isset { _ThriftHiveMetastore_append_partition_by_name_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_result__isset; class ThriftHiveMetastore_append_partition_by_name_result { public: - ThriftHiveMetastore_append_partition_by_name_result(const ThriftHiveMetastore_append_partition_by_name_result&); - ThriftHiveMetastore_append_partition_by_name_result& operator=(const ThriftHiveMetastore_append_partition_by_name_result&); ThriftHiveMetastore_append_partition_by_name_result() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5271,13 +5632,21 @@ class ThriftHiveMetastore_append_partition_by_name_result { _ThriftHiveMetastore_append_partition_by_name_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_result & rhs) const { @@ -5304,17 +5673,18 @@ class ThriftHiveMetastore_append_partition_by_name_result { typedef struct _ThriftHiveMetastore_append_partition_by_name_presult__isset { _ThriftHiveMetastore_append_partition_by_name_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_presult__isset; class ThriftHiveMetastore_append_partition_by_name_presult { public: - virtual ~ThriftHiveMetastore_append_partition_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5328,21 +5698,20 @@ class ThriftHiveMetastore_append_partition_by_name_presult { typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_name(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_name; + bool environment_context; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args { public: - ThriftHiveMetastore_append_partition_by_name_with_environment_context_args(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args&); - ThriftHiveMetastore_append_partition_by_name_with_environment_context_args& operator=(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args&); ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -5350,13 +5719,21 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args & rhs) const { @@ -5386,7 +5763,8 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_parg public: - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -5398,21 +5776,20 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_parg typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result { public: - ThriftHiveMetastore_append_partition_by_name_with_environment_context_result(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result&); - ThriftHiveMetastore_append_partition_by_name_with_environment_context_result& operator=(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result&); ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5420,13 +5797,21 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result & rhs) const { @@ -5453,17 +5838,18 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw() {} + Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5477,21 +5863,20 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_pres typedef struct _ThriftHiveMetastore_drop_partition_args__isset { _ThriftHiveMetastore_drop_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool deleteData; } _ThriftHiveMetastore_drop_partition_args__isset; class ThriftHiveMetastore_drop_partition_args { public: - ThriftHiveMetastore_drop_partition_args(const ThriftHiveMetastore_drop_partition_args&); - ThriftHiveMetastore_drop_partition_args& operator=(const ThriftHiveMetastore_drop_partition_args&); ThriftHiveMetastore_drop_partition_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -5499,13 +5884,21 @@ class ThriftHiveMetastore_drop_partition_args { _ThriftHiveMetastore_drop_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_args & rhs) const { @@ -5535,7 +5928,8 @@ class ThriftHiveMetastore_drop_partition_pargs { public: - virtual ~ThriftHiveMetastore_drop_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_partition_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -5547,31 +5941,36 @@ class ThriftHiveMetastore_drop_partition_pargs { typedef struct _ThriftHiveMetastore_drop_partition_result__isset { _ThriftHiveMetastore_drop_partition_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_result__isset; class ThriftHiveMetastore_drop_partition_result { public: - ThriftHiveMetastore_drop_partition_result(const ThriftHiveMetastore_drop_partition_result&); - ThriftHiveMetastore_drop_partition_result& operator=(const ThriftHiveMetastore_drop_partition_result&); ThriftHiveMetastore_drop_partition_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_result & rhs) const { @@ -5596,16 +5995,17 @@ class ThriftHiveMetastore_drop_partition_result { typedef struct _ThriftHiveMetastore_drop_partition_presult__isset { _ThriftHiveMetastore_drop_partition_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_presult__isset; class ThriftHiveMetastore_drop_partition_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_presult() throw(); + virtual ~ThriftHiveMetastore_drop_partition_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -5618,22 +6018,21 @@ class ThriftHiveMetastore_drop_partition_presult { typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool deleteData :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_args { public: - ThriftHiveMetastore_drop_partition_with_environment_context_args(const ThriftHiveMetastore_drop_partition_with_environment_context_args&); - ThriftHiveMetastore_drop_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_partition_with_environment_context_args&); ThriftHiveMetastore_drop_partition_with_environment_context_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -5642,15 +6041,25 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_args & rhs) const { @@ -5682,7 +6091,8 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -5695,31 +6105,36 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_result { public: - ThriftHiveMetastore_drop_partition_with_environment_context_result(const ThriftHiveMetastore_drop_partition_with_environment_context_result&); - ThriftHiveMetastore_drop_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_partition_with_environment_context_result&); ThriftHiveMetastore_drop_partition_with_environment_context_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_result & rhs) const { @@ -5744,16 +6159,17 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -5766,21 +6182,20 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_presult { typedef struct _ThriftHiveMetastore_drop_partition_by_name_args__isset { _ThriftHiveMetastore_drop_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool part_name; + bool deleteData; } _ThriftHiveMetastore_drop_partition_by_name_args__isset; class ThriftHiveMetastore_drop_partition_by_name_args { public: - ThriftHiveMetastore_drop_partition_by_name_args(const ThriftHiveMetastore_drop_partition_by_name_args&); - ThriftHiveMetastore_drop_partition_by_name_args& operator=(const ThriftHiveMetastore_drop_partition_by_name_args&); ThriftHiveMetastore_drop_partition_by_name_args() : db_name(), tbl_name(), part_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -5788,13 +6203,21 @@ class ThriftHiveMetastore_drop_partition_by_name_args { _ThriftHiveMetastore_drop_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_args & rhs) const { @@ -5824,7 +6247,8 @@ class ThriftHiveMetastore_drop_partition_by_name_pargs { public: - virtual ~ThriftHiveMetastore_drop_partition_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -5836,31 +6260,36 @@ class ThriftHiveMetastore_drop_partition_by_name_pargs { typedef struct _ThriftHiveMetastore_drop_partition_by_name_result__isset { _ThriftHiveMetastore_drop_partition_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_result__isset; class ThriftHiveMetastore_drop_partition_by_name_result { public: - ThriftHiveMetastore_drop_partition_by_name_result(const ThriftHiveMetastore_drop_partition_by_name_result&); - ThriftHiveMetastore_drop_partition_by_name_result& operator=(const ThriftHiveMetastore_drop_partition_by_name_result&); ThriftHiveMetastore_drop_partition_by_name_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_by_name_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_result & rhs) const { @@ -5885,16 +6314,17 @@ class ThriftHiveMetastore_drop_partition_by_name_result { typedef struct _ThriftHiveMetastore_drop_partition_by_name_presult__isset { _ThriftHiveMetastore_drop_partition_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_presult__isset; class ThriftHiveMetastore_drop_partition_by_name_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -5907,22 +6337,21 @@ class ThriftHiveMetastore_drop_partition_by_name_presult { typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_name(false), deleteData(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool deleteData :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_name; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { public: - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args&); - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args&); ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() : db_name(), tbl_name(), part_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -5931,15 +6360,25 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args & rhs) const { @@ -5971,7 +6410,8 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs public: - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -5984,31 +6424,36 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result { public: - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result&); - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result&); ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result & rhs) const { @@ -6033,16 +6478,17 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -6055,23 +6501,24 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presul typedef struct _ThriftHiveMetastore_drop_partitions_req_args__isset { _ThriftHiveMetastore_drop_partitions_req_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_drop_partitions_req_args__isset; class ThriftHiveMetastore_drop_partitions_req_args { public: - ThriftHiveMetastore_drop_partitions_req_args(const ThriftHiveMetastore_drop_partitions_req_args&); - ThriftHiveMetastore_drop_partitions_req_args& operator=(const ThriftHiveMetastore_drop_partitions_req_args&); ThriftHiveMetastore_drop_partitions_req_args() { } - virtual ~ThriftHiveMetastore_drop_partitions_req_args() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_args() throw() {} + DropPartitionsRequest req; _ThriftHiveMetastore_drop_partitions_req_args__isset __isset; - void __set_req(const DropPartitionsRequest& val); + void __set_req(const DropPartitionsRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_drop_partitions_req_args & rhs) const { @@ -6095,7 +6542,8 @@ class ThriftHiveMetastore_drop_partitions_req_pargs { public: - virtual ~ThriftHiveMetastore_drop_partitions_req_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_pargs() throw() {} + const DropPartitionsRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -6104,31 +6552,36 @@ class ThriftHiveMetastore_drop_partitions_req_pargs { typedef struct _ThriftHiveMetastore_drop_partitions_req_result__isset { _ThriftHiveMetastore_drop_partitions_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partitions_req_result__isset; class ThriftHiveMetastore_drop_partitions_req_result { public: - ThriftHiveMetastore_drop_partitions_req_result(const ThriftHiveMetastore_drop_partitions_req_result&); - ThriftHiveMetastore_drop_partitions_req_result& operator=(const ThriftHiveMetastore_drop_partitions_req_result&); ThriftHiveMetastore_drop_partitions_req_result() { } - virtual ~ThriftHiveMetastore_drop_partitions_req_result() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_result() throw() {} + DropPartitionsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partitions_req_result__isset __isset; - void __set_success(const DropPartitionsResult& val); + void __set_success(const DropPartitionsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partitions_req_result & rhs) const { @@ -6153,16 +6606,17 @@ class ThriftHiveMetastore_drop_partitions_req_result { typedef struct _ThriftHiveMetastore_drop_partitions_req_presult__isset { _ThriftHiveMetastore_drop_partitions_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partitions_req_presult__isset; class ThriftHiveMetastore_drop_partitions_req_presult { public: - virtual ~ThriftHiveMetastore_drop_partitions_req_presult() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_presult() throw() {} + DropPartitionsResult* success; NoSuchObjectException o1; MetaException o2; @@ -6175,31 +6629,36 @@ class ThriftHiveMetastore_drop_partitions_req_presult { typedef struct _ThriftHiveMetastore_get_partition_args__isset { _ThriftHiveMetastore_get_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; + bool db_name; + bool tbl_name; + bool part_vals; } _ThriftHiveMetastore_get_partition_args__isset; class ThriftHiveMetastore_get_partition_args { public: - ThriftHiveMetastore_get_partition_args(const ThriftHiveMetastore_get_partition_args&); - ThriftHiveMetastore_get_partition_args& operator=(const ThriftHiveMetastore_get_partition_args&); ThriftHiveMetastore_get_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_partition_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; _ThriftHiveMetastore_get_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } bool operator == (const ThriftHiveMetastore_get_partition_args & rhs) const { @@ -6227,7 +6686,8 @@ class ThriftHiveMetastore_get_partition_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -6238,31 +6698,36 @@ class ThriftHiveMetastore_get_partition_pargs { typedef struct _ThriftHiveMetastore_get_partition_result__isset { _ThriftHiveMetastore_get_partition_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_result__isset; class ThriftHiveMetastore_get_partition_result { public: - ThriftHiveMetastore_get_partition_result(const ThriftHiveMetastore_get_partition_result&); - ThriftHiveMetastore_get_partition_result& operator=(const ThriftHiveMetastore_get_partition_result&); ThriftHiveMetastore_get_partition_result() { } - virtual ~ThriftHiveMetastore_get_partition_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_result & rhs) const { @@ -6287,16 +6752,17 @@ class ThriftHiveMetastore_get_partition_result { typedef struct _ThriftHiveMetastore_get_partition_presult__isset { _ThriftHiveMetastore_get_partition_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_presult__isset; class ThriftHiveMetastore_get_partition_presult { public: - virtual ~ThriftHiveMetastore_get_partition_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_presult() throw() {} + Partition* success; MetaException o1; NoSuchObjectException o2; @@ -6309,22 +6775,21 @@ class ThriftHiveMetastore_get_partition_presult { typedef struct _ThriftHiveMetastore_exchange_partition_args__isset { _ThriftHiveMetastore_exchange_partition_args__isset() : partitionSpecs(false), source_db(false), source_table_name(false), dest_db(false), dest_table_name(false) {} - bool partitionSpecs :1; - bool source_db :1; - bool source_table_name :1; - bool dest_db :1; - bool dest_table_name :1; + bool partitionSpecs; + bool source_db; + bool source_table_name; + bool dest_db; + bool dest_table_name; } _ThriftHiveMetastore_exchange_partition_args__isset; class ThriftHiveMetastore_exchange_partition_args { public: - ThriftHiveMetastore_exchange_partition_args(const ThriftHiveMetastore_exchange_partition_args&); - ThriftHiveMetastore_exchange_partition_args& operator=(const ThriftHiveMetastore_exchange_partition_args&); ThriftHiveMetastore_exchange_partition_args() : source_db(), source_table_name(), dest_db(), dest_table_name() { } - virtual ~ThriftHiveMetastore_exchange_partition_args() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_args() throw() {} + std::map partitionSpecs; std::string source_db; std::string source_table_name; @@ -6333,15 +6798,25 @@ class ThriftHiveMetastore_exchange_partition_args { _ThriftHiveMetastore_exchange_partition_args__isset __isset; - void __set_partitionSpecs(const std::map & val); + void __set_partitionSpecs(const std::map & val) { + partitionSpecs = val; + } - void __set_source_db(const std::string& val); + void __set_source_db(const std::string& val) { + source_db = val; + } - void __set_source_table_name(const std::string& val); + void __set_source_table_name(const std::string& val) { + source_table_name = val; + } - void __set_dest_db(const std::string& val); + void __set_dest_db(const std::string& val) { + dest_db = val; + } - void __set_dest_table_name(const std::string& val); + void __set_dest_table_name(const std::string& val) { + dest_table_name = val; + } bool operator == (const ThriftHiveMetastore_exchange_partition_args & rhs) const { @@ -6373,7 +6848,8 @@ class ThriftHiveMetastore_exchange_partition_pargs { public: - virtual ~ThriftHiveMetastore_exchange_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_pargs() throw() {} + const std::map * partitionSpecs; const std::string* source_db; const std::string* source_table_name; @@ -6386,22 +6862,21 @@ class ThriftHiveMetastore_exchange_partition_pargs { typedef struct _ThriftHiveMetastore_exchange_partition_result__isset { _ThriftHiveMetastore_exchange_partition_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partition_result__isset; class ThriftHiveMetastore_exchange_partition_result { public: - ThriftHiveMetastore_exchange_partition_result(const ThriftHiveMetastore_exchange_partition_result&); - ThriftHiveMetastore_exchange_partition_result& operator=(const ThriftHiveMetastore_exchange_partition_result&); ThriftHiveMetastore_exchange_partition_result() { } - virtual ~ThriftHiveMetastore_exchange_partition_result() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; @@ -6410,15 +6885,25 @@ class ThriftHiveMetastore_exchange_partition_result { _ThriftHiveMetastore_exchange_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_exchange_partition_result & rhs) const { @@ -6447,18 +6932,19 @@ class ThriftHiveMetastore_exchange_partition_result { typedef struct _ThriftHiveMetastore_exchange_partition_presult__isset { _ThriftHiveMetastore_exchange_partition_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partition_presult__isset; class ThriftHiveMetastore_exchange_partition_presult { public: - virtual ~ThriftHiveMetastore_exchange_partition_presult() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_presult() throw() {} + Partition* success; MetaException o1; NoSuchObjectException o2; @@ -6473,22 +6959,21 @@ class ThriftHiveMetastore_exchange_partition_presult { typedef struct _ThriftHiveMetastore_exchange_partitions_args__isset { _ThriftHiveMetastore_exchange_partitions_args__isset() : partitionSpecs(false), source_db(false), source_table_name(false), dest_db(false), dest_table_name(false) {} - bool partitionSpecs :1; - bool source_db :1; - bool source_table_name :1; - bool dest_db :1; - bool dest_table_name :1; + bool partitionSpecs; + bool source_db; + bool source_table_name; + bool dest_db; + bool dest_table_name; } _ThriftHiveMetastore_exchange_partitions_args__isset; class ThriftHiveMetastore_exchange_partitions_args { public: - ThriftHiveMetastore_exchange_partitions_args(const ThriftHiveMetastore_exchange_partitions_args&); - ThriftHiveMetastore_exchange_partitions_args& operator=(const ThriftHiveMetastore_exchange_partitions_args&); ThriftHiveMetastore_exchange_partitions_args() : source_db(), source_table_name(), dest_db(), dest_table_name() { } - virtual ~ThriftHiveMetastore_exchange_partitions_args() throw(); + virtual ~ThriftHiveMetastore_exchange_partitions_args() throw() {} + std::map partitionSpecs; std::string source_db; std::string source_table_name; @@ -6497,15 +6982,25 @@ class ThriftHiveMetastore_exchange_partitions_args { _ThriftHiveMetastore_exchange_partitions_args__isset __isset; - void __set_partitionSpecs(const std::map & val); + void __set_partitionSpecs(const std::map & val) { + partitionSpecs = val; + } - void __set_source_db(const std::string& val); + void __set_source_db(const std::string& val) { + source_db = val; + } - void __set_source_table_name(const std::string& val); + void __set_source_table_name(const std::string& val) { + source_table_name = val; + } - void __set_dest_db(const std::string& val); + void __set_dest_db(const std::string& val) { + dest_db = val; + } - void __set_dest_table_name(const std::string& val); + void __set_dest_table_name(const std::string& val) { + dest_table_name = val; + } bool operator == (const ThriftHiveMetastore_exchange_partitions_args & rhs) const { @@ -6537,7 +7032,8 @@ class ThriftHiveMetastore_exchange_partitions_pargs { public: - virtual ~ThriftHiveMetastore_exchange_partitions_pargs() throw(); + virtual ~ThriftHiveMetastore_exchange_partitions_pargs() throw() {} + const std::map * partitionSpecs; const std::string* source_db; const std::string* source_table_name; @@ -6550,22 +7046,21 @@ class ThriftHiveMetastore_exchange_partitions_pargs { typedef struct _ThriftHiveMetastore_exchange_partitions_result__isset { _ThriftHiveMetastore_exchange_partitions_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partitions_result__isset; class ThriftHiveMetastore_exchange_partitions_result { public: - ThriftHiveMetastore_exchange_partitions_result(const ThriftHiveMetastore_exchange_partitions_result&); - ThriftHiveMetastore_exchange_partitions_result& operator=(const ThriftHiveMetastore_exchange_partitions_result&); ThriftHiveMetastore_exchange_partitions_result() { } - virtual ~ThriftHiveMetastore_exchange_partitions_result() throw(); + virtual ~ThriftHiveMetastore_exchange_partitions_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; @@ -6574,15 +7069,25 @@ class ThriftHiveMetastore_exchange_partitions_result { _ThriftHiveMetastore_exchange_partitions_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_exchange_partitions_result & rhs) const { @@ -6611,18 +7116,19 @@ class ThriftHiveMetastore_exchange_partitions_result { typedef struct _ThriftHiveMetastore_exchange_partitions_presult__isset { _ThriftHiveMetastore_exchange_partitions_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partitions_presult__isset; class ThriftHiveMetastore_exchange_partitions_presult { public: - virtual ~ThriftHiveMetastore_exchange_partitions_presult() throw(); + virtual ~ThriftHiveMetastore_exchange_partitions_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -6637,22 +7143,21 @@ class ThriftHiveMetastore_exchange_partitions_presult { typedef struct _ThriftHiveMetastore_get_partition_with_auth_args__isset { _ThriftHiveMetastore_get_partition_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partition_with_auth_args__isset; class ThriftHiveMetastore_get_partition_with_auth_args { public: - ThriftHiveMetastore_get_partition_with_auth_args(const ThriftHiveMetastore_get_partition_with_auth_args&); - ThriftHiveMetastore_get_partition_with_auth_args& operator=(const ThriftHiveMetastore_get_partition_with_auth_args&); ThriftHiveMetastore_get_partition_with_auth_args() : db_name(), tbl_name(), user_name() { } - virtual ~ThriftHiveMetastore_get_partition_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -6661,15 +7166,25 @@ class ThriftHiveMetastore_get_partition_with_auth_args { _ThriftHiveMetastore_get_partition_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partition_with_auth_args & rhs) const { @@ -6701,7 +7216,8 @@ class ThriftHiveMetastore_get_partition_with_auth_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_with_auth_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -6714,31 +7230,36 @@ class ThriftHiveMetastore_get_partition_with_auth_pargs { typedef struct _ThriftHiveMetastore_get_partition_with_auth_result__isset { _ThriftHiveMetastore_get_partition_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_with_auth_result__isset; class ThriftHiveMetastore_get_partition_with_auth_result { public: - ThriftHiveMetastore_get_partition_with_auth_result(const ThriftHiveMetastore_get_partition_with_auth_result&); - ThriftHiveMetastore_get_partition_with_auth_result& operator=(const ThriftHiveMetastore_get_partition_with_auth_result&); ThriftHiveMetastore_get_partition_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partition_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_with_auth_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_with_auth_result & rhs) const { @@ -6763,16 +7284,17 @@ class ThriftHiveMetastore_get_partition_with_auth_result { typedef struct _ThriftHiveMetastore_get_partition_with_auth_presult__isset { _ThriftHiveMetastore_get_partition_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_with_auth_presult__isset; class ThriftHiveMetastore_get_partition_with_auth_presult { public: - virtual ~ThriftHiveMetastore_get_partition_with_auth_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_presult() throw() {} + Partition* success; MetaException o1; NoSuchObjectException o2; @@ -6785,31 +7307,36 @@ class ThriftHiveMetastore_get_partition_with_auth_presult { typedef struct _ThriftHiveMetastore_get_partition_by_name_args__isset { _ThriftHiveMetastore_get_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; + bool db_name; + bool tbl_name; + bool part_name; } _ThriftHiveMetastore_get_partition_by_name_args__isset; class ThriftHiveMetastore_get_partition_by_name_args { public: - ThriftHiveMetastore_get_partition_by_name_args(const ThriftHiveMetastore_get_partition_by_name_args&); - ThriftHiveMetastore_get_partition_by_name_args& operator=(const ThriftHiveMetastore_get_partition_by_name_args&); ThriftHiveMetastore_get_partition_by_name_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_get_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; _ThriftHiveMetastore_get_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_get_partition_by_name_args & rhs) const { @@ -6837,7 +7364,8 @@ class ThriftHiveMetastore_get_partition_by_name_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -6848,31 +7376,36 @@ class ThriftHiveMetastore_get_partition_by_name_pargs { typedef struct _ThriftHiveMetastore_get_partition_by_name_result__isset { _ThriftHiveMetastore_get_partition_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_by_name_result__isset; class ThriftHiveMetastore_get_partition_by_name_result { public: - ThriftHiveMetastore_get_partition_by_name_result(const ThriftHiveMetastore_get_partition_by_name_result&); - ThriftHiveMetastore_get_partition_by_name_result& operator=(const ThriftHiveMetastore_get_partition_by_name_result&); ThriftHiveMetastore_get_partition_by_name_result() { } - virtual ~ThriftHiveMetastore_get_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_by_name_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_by_name_result & rhs) const { @@ -6897,16 +7430,17 @@ class ThriftHiveMetastore_get_partition_by_name_result { typedef struct _ThriftHiveMetastore_get_partition_by_name_presult__isset { _ThriftHiveMetastore_get_partition_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_by_name_presult__isset; class ThriftHiveMetastore_get_partition_by_name_presult { public: - virtual ~ThriftHiveMetastore_get_partition_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_presult() throw() {} + Partition* success; MetaException o1; NoSuchObjectException o2; @@ -6919,31 +7453,36 @@ class ThriftHiveMetastore_get_partition_by_name_presult { typedef struct _ThriftHiveMetastore_get_partitions_args__isset { _ThriftHiveMetastore_get_partitions_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partitions_args__isset; class ThriftHiveMetastore_get_partitions_args { public: - ThriftHiveMetastore_get_partitions_args(const ThriftHiveMetastore_get_partitions_args&); - ThriftHiveMetastore_get_partitions_args& operator=(const ThriftHiveMetastore_get_partitions_args&); ThriftHiveMetastore_get_partitions_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; _ThriftHiveMetastore_get_partitions_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_args & rhs) const { @@ -6971,7 +7510,8 @@ class ThriftHiveMetastore_get_partitions_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; @@ -6982,31 +7522,36 @@ class ThriftHiveMetastore_get_partitions_pargs { typedef struct _ThriftHiveMetastore_get_partitions_result__isset { _ThriftHiveMetastore_get_partitions_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_result__isset; class ThriftHiveMetastore_get_partitions_result { public: - ThriftHiveMetastore_get_partitions_result(const ThriftHiveMetastore_get_partitions_result&); - ThriftHiveMetastore_get_partitions_result& operator=(const ThriftHiveMetastore_get_partitions_result&); ThriftHiveMetastore_get_partitions_result() { } - virtual ~ThriftHiveMetastore_get_partitions_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_result & rhs) const { @@ -7031,16 +7576,17 @@ class ThriftHiveMetastore_get_partitions_result { typedef struct _ThriftHiveMetastore_get_partitions_presult__isset { _ThriftHiveMetastore_get_partitions_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_presult__isset; class ThriftHiveMetastore_get_partitions_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7053,22 +7599,21 @@ class ThriftHiveMetastore_get_partitions_presult { typedef struct _ThriftHiveMetastore_get_partitions_with_auth_args__isset { _ThriftHiveMetastore_get_partitions_with_auth_args__isset() : db_name(false), tbl_name(false), max_parts(true), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool max_parts; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partitions_with_auth_args__isset; class ThriftHiveMetastore_get_partitions_with_auth_args { public: - ThriftHiveMetastore_get_partitions_with_auth_args(const ThriftHiveMetastore_get_partitions_with_auth_args&); - ThriftHiveMetastore_get_partitions_with_auth_args& operator=(const ThriftHiveMetastore_get_partitions_with_auth_args&); ThriftHiveMetastore_get_partitions_with_auth_args() : db_name(), tbl_name(), max_parts(-1), user_name() { } - virtual ~ThriftHiveMetastore_get_partitions_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; @@ -7077,15 +7622,25 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { _ThriftHiveMetastore_get_partitions_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_args & rhs) const { @@ -7117,7 +7672,8 @@ class ThriftHiveMetastore_get_partitions_with_auth_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; @@ -7130,31 +7686,36 @@ class ThriftHiveMetastore_get_partitions_with_auth_pargs { typedef struct _ThriftHiveMetastore_get_partitions_with_auth_result__isset { _ThriftHiveMetastore_get_partitions_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_with_auth_result__isset; class ThriftHiveMetastore_get_partitions_with_auth_result { public: - ThriftHiveMetastore_get_partitions_with_auth_result(const ThriftHiveMetastore_get_partitions_with_auth_result&); - ThriftHiveMetastore_get_partitions_with_auth_result& operator=(const ThriftHiveMetastore_get_partitions_with_auth_result&); ThriftHiveMetastore_get_partitions_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partitions_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_with_auth_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_result & rhs) const { @@ -7179,16 +7740,17 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { typedef struct _ThriftHiveMetastore_get_partitions_with_auth_presult__isset { _ThriftHiveMetastore_get_partitions_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_with_auth_presult__isset; class ThriftHiveMetastore_get_partitions_with_auth_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_with_auth_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7201,31 +7763,36 @@ class ThriftHiveMetastore_get_partitions_with_auth_presult { typedef struct _ThriftHiveMetastore_get_partitions_pspec_args__isset { _ThriftHiveMetastore_get_partitions_pspec_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partitions_pspec_args__isset; class ThriftHiveMetastore_get_partitions_pspec_args { public: - ThriftHiveMetastore_get_partitions_pspec_args(const ThriftHiveMetastore_get_partitions_pspec_args&); - ThriftHiveMetastore_get_partitions_pspec_args& operator=(const ThriftHiveMetastore_get_partitions_pspec_args&); ThriftHiveMetastore_get_partitions_pspec_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_pspec_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_args() throw() {} + std::string db_name; std::string tbl_name; int32_t max_parts; _ThriftHiveMetastore_get_partitions_pspec_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int32_t val); + void __set_max_parts(const int32_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_pspec_args & rhs) const { @@ -7253,7 +7820,8 @@ class ThriftHiveMetastore_get_partitions_pspec_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_pspec_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int32_t* max_parts; @@ -7264,31 +7832,36 @@ class ThriftHiveMetastore_get_partitions_pspec_pargs { typedef struct _ThriftHiveMetastore_get_partitions_pspec_result__isset { _ThriftHiveMetastore_get_partitions_pspec_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_pspec_result__isset; class ThriftHiveMetastore_get_partitions_pspec_result { public: - ThriftHiveMetastore_get_partitions_pspec_result(const ThriftHiveMetastore_get_partitions_pspec_result&); - ThriftHiveMetastore_get_partitions_pspec_result& operator=(const ThriftHiveMetastore_get_partitions_pspec_result&); ThriftHiveMetastore_get_partitions_pspec_result() { } - virtual ~ThriftHiveMetastore_get_partitions_pspec_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_pspec_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_pspec_result & rhs) const { @@ -7313,16 +7886,17 @@ class ThriftHiveMetastore_get_partitions_pspec_result { typedef struct _ThriftHiveMetastore_get_partitions_pspec_presult__isset { _ThriftHiveMetastore_get_partitions_pspec_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_pspec_presult__isset; class ThriftHiveMetastore_get_partitions_pspec_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_pspec_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7335,31 +7909,36 @@ class ThriftHiveMetastore_get_partitions_pspec_presult { typedef struct _ThriftHiveMetastore_get_partition_names_args__isset { _ThriftHiveMetastore_get_partition_names_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partition_names_args__isset; class ThriftHiveMetastore_get_partition_names_args { public: - ThriftHiveMetastore_get_partition_names_args(const ThriftHiveMetastore_get_partition_names_args&); - ThriftHiveMetastore_get_partition_names_args& operator=(const ThriftHiveMetastore_get_partition_names_args&); ThriftHiveMetastore_get_partition_names_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partition_names_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; _ThriftHiveMetastore_get_partition_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_args & rhs) const { @@ -7387,7 +7966,8 @@ class ThriftHiveMetastore_get_partition_names_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_names_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; @@ -7398,27 +7978,30 @@ class ThriftHiveMetastore_get_partition_names_pargs { typedef struct _ThriftHiveMetastore_get_partition_names_result__isset { _ThriftHiveMetastore_get_partition_names_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_partition_names_result__isset; class ThriftHiveMetastore_get_partition_names_result { public: - ThriftHiveMetastore_get_partition_names_result(const ThriftHiveMetastore_get_partition_names_result&); - ThriftHiveMetastore_get_partition_names_result& operator=(const ThriftHiveMetastore_get_partition_names_result&); ThriftHiveMetastore_get_partition_names_result() { } - virtual ~ThriftHiveMetastore_get_partition_names_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_result() throw() {} + std::vector success; MetaException o2; _ThriftHiveMetastore_get_partition_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_result & rhs) const { @@ -7441,15 +8024,16 @@ class ThriftHiveMetastore_get_partition_names_result { typedef struct _ThriftHiveMetastore_get_partition_names_presult__isset { _ThriftHiveMetastore_get_partition_names_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_partition_names_presult__isset; class ThriftHiveMetastore_get_partition_names_presult { public: - virtual ~ThriftHiveMetastore_get_partition_names_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_presult() throw() {} + std::vector * success; MetaException o2; @@ -7461,21 +8045,20 @@ class ThriftHiveMetastore_get_partition_names_presult { typedef struct _ThriftHiveMetastore_get_partitions_ps_args__isset { _ThriftHiveMetastore_get_partitions_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; } _ThriftHiveMetastore_get_partitions_ps_args__isset; class ThriftHiveMetastore_get_partitions_ps_args { public: - ThriftHiveMetastore_get_partitions_ps_args(const ThriftHiveMetastore_get_partitions_ps_args&); - ThriftHiveMetastore_get_partitions_ps_args& operator=(const ThriftHiveMetastore_get_partitions_ps_args&); ThriftHiveMetastore_get_partitions_ps_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_ps_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -7483,13 +8066,21 @@ class ThriftHiveMetastore_get_partitions_ps_args { _ThriftHiveMetastore_get_partitions_ps_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_args & rhs) const { @@ -7519,7 +8110,8 @@ class ThriftHiveMetastore_get_partitions_ps_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_ps_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -7531,31 +8123,36 @@ class ThriftHiveMetastore_get_partitions_ps_pargs { typedef struct _ThriftHiveMetastore_get_partitions_ps_result__isset { _ThriftHiveMetastore_get_partitions_ps_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_result__isset; class ThriftHiveMetastore_get_partitions_ps_result { public: - ThriftHiveMetastore_get_partitions_ps_result(const ThriftHiveMetastore_get_partitions_ps_result&); - ThriftHiveMetastore_get_partitions_ps_result& operator=(const ThriftHiveMetastore_get_partitions_ps_result&); ThriftHiveMetastore_get_partitions_ps_result() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_ps_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_result & rhs) const { @@ -7580,16 +8177,17 @@ class ThriftHiveMetastore_get_partitions_ps_result { typedef struct _ThriftHiveMetastore_get_partitions_ps_presult__isset { _ThriftHiveMetastore_get_partitions_ps_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_presult__isset; class ThriftHiveMetastore_get_partitions_ps_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_ps_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -7602,23 +8200,22 @@ class ThriftHiveMetastore_get_partitions_ps_presult { typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_args { public: - ThriftHiveMetastore_get_partitions_ps_with_auth_args(const ThriftHiveMetastore_get_partitions_ps_with_auth_args&); - ThriftHiveMetastore_get_partitions_ps_with_auth_args& operator=(const ThriftHiveMetastore_get_partitions_ps_with_auth_args&); ThriftHiveMetastore_get_partitions_ps_with_auth_args() : db_name(), tbl_name(), max_parts(-1), user_name() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -7628,17 +8225,29 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_args & rhs) const { @@ -7672,7 +8281,8 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -7686,31 +8296,36 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_pargs { typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_result { public: - ThriftHiveMetastore_get_partitions_ps_with_auth_result(const ThriftHiveMetastore_get_partitions_ps_with_auth_result&); - ThriftHiveMetastore_get_partitions_ps_with_auth_result& operator=(const ThriftHiveMetastore_get_partitions_ps_with_auth_result&); ThriftHiveMetastore_get_partitions_ps_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_result & rhs) const { @@ -7735,16 +8350,17 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7757,21 +8373,20 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_presult { typedef struct _ThriftHiveMetastore_get_partition_names_ps_args__isset { _ThriftHiveMetastore_get_partition_names_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; } _ThriftHiveMetastore_get_partition_names_ps_args__isset; class ThriftHiveMetastore_get_partition_names_ps_args { public: - ThriftHiveMetastore_get_partition_names_ps_args(const ThriftHiveMetastore_get_partition_names_ps_args&); - ThriftHiveMetastore_get_partition_names_ps_args& operator=(const ThriftHiveMetastore_get_partition_names_ps_args&); ThriftHiveMetastore_get_partition_names_ps_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -7779,13 +8394,21 @@ class ThriftHiveMetastore_get_partition_names_ps_args { _ThriftHiveMetastore_get_partition_names_ps_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_ps_args & rhs) const { @@ -7815,7 +8438,8 @@ class ThriftHiveMetastore_get_partition_names_ps_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -7827,31 +8451,36 @@ class ThriftHiveMetastore_get_partition_names_ps_pargs { typedef struct _ThriftHiveMetastore_get_partition_names_ps_result__isset { _ThriftHiveMetastore_get_partition_names_ps_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_names_ps_result__isset; class ThriftHiveMetastore_get_partition_names_ps_result { public: - ThriftHiveMetastore_get_partition_names_ps_result(const ThriftHiveMetastore_get_partition_names_ps_result&); - ThriftHiveMetastore_get_partition_names_ps_result& operator=(const ThriftHiveMetastore_get_partition_names_ps_result&); ThriftHiveMetastore_get_partition_names_ps_result() { } - virtual ~ThriftHiveMetastore_get_partition_names_ps_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_names_ps_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_ps_result & rhs) const { @@ -7876,16 +8505,17 @@ class ThriftHiveMetastore_get_partition_names_ps_result { typedef struct _ThriftHiveMetastore_get_partition_names_ps_presult__isset { _ThriftHiveMetastore_get_partition_names_ps_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_names_ps_presult__isset; class ThriftHiveMetastore_get_partition_names_ps_presult { public: - virtual ~ThriftHiveMetastore_get_partition_names_ps_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -7898,21 +8528,20 @@ class ThriftHiveMetastore_get_partition_names_ps_presult { typedef struct _ThriftHiveMetastore_get_partitions_by_filter_args__isset { _ThriftHiveMetastore_get_partitions_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool filter :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool filter; + bool max_parts; } _ThriftHiveMetastore_get_partitions_by_filter_args__isset; class ThriftHiveMetastore_get_partitions_by_filter_args { public: - ThriftHiveMetastore_get_partitions_by_filter_args(const ThriftHiveMetastore_get_partitions_by_filter_args&); - ThriftHiveMetastore_get_partitions_by_filter_args& operator=(const ThriftHiveMetastore_get_partitions_by_filter_args&); ThriftHiveMetastore_get_partitions_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_args() throw() {} + std::string db_name; std::string tbl_name; std::string filter; @@ -7920,13 +8549,21 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { _ThriftHiveMetastore_get_partitions_by_filter_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_args & rhs) const { @@ -7956,7 +8593,8 @@ class ThriftHiveMetastore_get_partitions_by_filter_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* filter; @@ -7968,31 +8606,36 @@ class ThriftHiveMetastore_get_partitions_by_filter_pargs { typedef struct _ThriftHiveMetastore_get_partitions_by_filter_result__isset { _ThriftHiveMetastore_get_partitions_by_filter_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_filter_result__isset; class ThriftHiveMetastore_get_partitions_by_filter_result { public: - ThriftHiveMetastore_get_partitions_by_filter_result(const ThriftHiveMetastore_get_partitions_by_filter_result&); - ThriftHiveMetastore_get_partitions_by_filter_result& operator=(const ThriftHiveMetastore_get_partitions_by_filter_result&); ThriftHiveMetastore_get_partitions_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_result & rhs) const { @@ -8017,16 +8660,17 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { typedef struct _ThriftHiveMetastore_get_partitions_by_filter_presult__isset { _ThriftHiveMetastore_get_partitions_by_filter_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_filter_presult__isset; class ThriftHiveMetastore_get_partitions_by_filter_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_by_filter_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8039,21 +8683,20 @@ class ThriftHiveMetastore_get_partitions_by_filter_presult { typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_args__isset { _ThriftHiveMetastore_get_part_specs_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool filter :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool filter; + bool max_parts; } _ThriftHiveMetastore_get_part_specs_by_filter_args__isset; class ThriftHiveMetastore_get_part_specs_by_filter_args { public: - ThriftHiveMetastore_get_part_specs_by_filter_args(const ThriftHiveMetastore_get_part_specs_by_filter_args&); - ThriftHiveMetastore_get_part_specs_by_filter_args& operator=(const ThriftHiveMetastore_get_part_specs_by_filter_args&); ThriftHiveMetastore_get_part_specs_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_args() throw() {} + std::string db_name; std::string tbl_name; std::string filter; @@ -8061,13 +8704,21 @@ class ThriftHiveMetastore_get_part_specs_by_filter_args { _ThriftHiveMetastore_get_part_specs_by_filter_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_parts(const int32_t val); + void __set_max_parts(const int32_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_part_specs_by_filter_args & rhs) const { @@ -8097,7 +8748,8 @@ class ThriftHiveMetastore_get_part_specs_by_filter_pargs { public: - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* filter; @@ -8109,31 +8761,36 @@ class ThriftHiveMetastore_get_part_specs_by_filter_pargs { typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_result__isset { _ThriftHiveMetastore_get_part_specs_by_filter_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_part_specs_by_filter_result__isset; class ThriftHiveMetastore_get_part_specs_by_filter_result { public: - ThriftHiveMetastore_get_part_specs_by_filter_result(const ThriftHiveMetastore_get_part_specs_by_filter_result&); - ThriftHiveMetastore_get_part_specs_by_filter_result& operator=(const ThriftHiveMetastore_get_part_specs_by_filter_result&); ThriftHiveMetastore_get_part_specs_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_part_specs_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_part_specs_by_filter_result & rhs) const { @@ -8158,16 +8815,17 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset { _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset; class ThriftHiveMetastore_get_part_specs_by_filter_presult { public: - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8180,23 +8838,24 @@ class ThriftHiveMetastore_get_part_specs_by_filter_presult { typedef struct _ThriftHiveMetastore_get_partitions_by_expr_args__isset { _ThriftHiveMetastore_get_partitions_by_expr_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_get_partitions_by_expr_args__isset; class ThriftHiveMetastore_get_partitions_by_expr_args { public: - ThriftHiveMetastore_get_partitions_by_expr_args(const ThriftHiveMetastore_get_partitions_by_expr_args&); - ThriftHiveMetastore_get_partitions_by_expr_args& operator=(const ThriftHiveMetastore_get_partitions_by_expr_args&); ThriftHiveMetastore_get_partitions_by_expr_args() { } - virtual ~ThriftHiveMetastore_get_partitions_by_expr_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_args() throw() {} + PartitionsByExprRequest req; _ThriftHiveMetastore_get_partitions_by_expr_args__isset __isset; - void __set_req(const PartitionsByExprRequest& val); + void __set_req(const PartitionsByExprRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_expr_args & rhs) const { @@ -8220,7 +8879,8 @@ class ThriftHiveMetastore_get_partitions_by_expr_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw() {} + const PartitionsByExprRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -8229,31 +8889,36 @@ class ThriftHiveMetastore_get_partitions_by_expr_pargs { typedef struct _ThriftHiveMetastore_get_partitions_by_expr_result__isset { _ThriftHiveMetastore_get_partitions_by_expr_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_expr_result__isset; class ThriftHiveMetastore_get_partitions_by_expr_result { public: - ThriftHiveMetastore_get_partitions_by_expr_result(const ThriftHiveMetastore_get_partitions_by_expr_result&); - ThriftHiveMetastore_get_partitions_by_expr_result& operator=(const ThriftHiveMetastore_get_partitions_by_expr_result&); ThriftHiveMetastore_get_partitions_by_expr_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_expr_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_result() throw() {} + PartitionsByExprResult success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_expr_result__isset __isset; - void __set_success(const PartitionsByExprResult& val); + void __set_success(const PartitionsByExprResult& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_expr_result & rhs) const { @@ -8278,16 +8943,17 @@ class ThriftHiveMetastore_get_partitions_by_expr_result { typedef struct _ThriftHiveMetastore_get_partitions_by_expr_presult__isset { _ThriftHiveMetastore_get_partitions_by_expr_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_expr_presult__isset; class ThriftHiveMetastore_get_partitions_by_expr_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_by_expr_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_presult() throw() {} + PartitionsByExprResult* success; MetaException o1; NoSuchObjectException o2; @@ -8300,31 +8966,36 @@ class ThriftHiveMetastore_get_partitions_by_expr_presult { typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset { _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false) {} - bool db_name :1; - bool tbl_name :1; - bool filter :1; + bool db_name; + bool tbl_name; + bool filter; } _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset; class ThriftHiveMetastore_get_num_partitions_by_filter_args { public: - ThriftHiveMetastore_get_num_partitions_by_filter_args(const ThriftHiveMetastore_get_num_partitions_by_filter_args&); - ThriftHiveMetastore_get_num_partitions_by_filter_args& operator=(const ThriftHiveMetastore_get_num_partitions_by_filter_args&); ThriftHiveMetastore_get_num_partitions_by_filter_args() : db_name(), tbl_name(), filter() { } - virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_args() throw() {} + std::string db_name; std::string tbl_name; std::string filter; _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } bool operator == (const ThriftHiveMetastore_get_num_partitions_by_filter_args & rhs) const { @@ -8352,7 +9023,8 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_pargs { public: - virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_pargs() throw(); + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* filter; @@ -8363,31 +9035,36 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_pargs { typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset { _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset; class ThriftHiveMetastore_get_num_partitions_by_filter_result { public: - ThriftHiveMetastore_get_num_partitions_by_filter_result(const ThriftHiveMetastore_get_num_partitions_by_filter_result&); - ThriftHiveMetastore_get_num_partitions_by_filter_result& operator=(const ThriftHiveMetastore_get_num_partitions_by_filter_result&); ThriftHiveMetastore_get_num_partitions_by_filter_result() : success(0) { } - virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_result() throw() {} + int32_t success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset __isset; - void __set_success(const int32_t val); + void __set_success(const int32_t val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_num_partitions_by_filter_result & rhs) const { @@ -8412,16 +9089,17 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_result { typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset { _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset; class ThriftHiveMetastore_get_num_partitions_by_filter_presult { public: - virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_presult() throw(); + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_presult() throw() {} + int32_t* success; MetaException o1; NoSuchObjectException o2; @@ -8434,31 +9112,36 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_presult { typedef struct _ThriftHiveMetastore_get_partitions_by_names_args__isset { _ThriftHiveMetastore_get_partitions_by_names_args__isset() : db_name(false), tbl_name(false), names(false) {} - bool db_name :1; - bool tbl_name :1; - bool names :1; + bool db_name; + bool tbl_name; + bool names; } _ThriftHiveMetastore_get_partitions_by_names_args__isset; class ThriftHiveMetastore_get_partitions_by_names_args { public: - ThriftHiveMetastore_get_partitions_by_names_args(const ThriftHiveMetastore_get_partitions_by_names_args&); - ThriftHiveMetastore_get_partitions_by_names_args& operator=(const ThriftHiveMetastore_get_partitions_by_names_args&); ThriftHiveMetastore_get_partitions_by_names_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_partitions_by_names_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_args() throw() {} + std::string db_name; std::string tbl_name; std::vector names; _ThriftHiveMetastore_get_partitions_by_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_names(const std::vector & val); + void __set_names(const std::vector & val) { + names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_names_args & rhs) const { @@ -8486,7 +9169,8 @@ class ThriftHiveMetastore_get_partitions_by_names_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_by_names_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * names; @@ -8497,31 +9181,36 @@ class ThriftHiveMetastore_get_partitions_by_names_pargs { typedef struct _ThriftHiveMetastore_get_partitions_by_names_result__isset { _ThriftHiveMetastore_get_partitions_by_names_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_names_result__isset; class ThriftHiveMetastore_get_partitions_by_names_result { public: - ThriftHiveMetastore_get_partitions_by_names_result(const ThriftHiveMetastore_get_partitions_by_names_result&); - ThriftHiveMetastore_get_partitions_by_names_result& operator=(const ThriftHiveMetastore_get_partitions_by_names_result&); ThriftHiveMetastore_get_partitions_by_names_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_names_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_names_result & rhs) const { @@ -8546,16 +9235,17 @@ class ThriftHiveMetastore_get_partitions_by_names_result { typedef struct _ThriftHiveMetastore_get_partitions_by_names_presult__isset { _ThriftHiveMetastore_get_partitions_by_names_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_names_presult__isset; class ThriftHiveMetastore_get_partitions_by_names_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_by_names_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_presult() throw() {} + std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8568,31 +9258,36 @@ class ThriftHiveMetastore_get_partitions_by_names_presult { typedef struct _ThriftHiveMetastore_alter_partition_args__isset { _ThriftHiveMetastore_alter_partition_args__isset() : db_name(false), tbl_name(false), new_part(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_part :1; + bool db_name; + bool tbl_name; + bool new_part; } _ThriftHiveMetastore_alter_partition_args__isset; class ThriftHiveMetastore_alter_partition_args { public: - ThriftHiveMetastore_alter_partition_args(const ThriftHiveMetastore_alter_partition_args&); - ThriftHiveMetastore_alter_partition_args& operator=(const ThriftHiveMetastore_alter_partition_args&); ThriftHiveMetastore_alter_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partition_args() throw(); + virtual ~ThriftHiveMetastore_alter_partition_args() throw() {} + std::string db_name; std::string tbl_name; Partition new_part; _ThriftHiveMetastore_alter_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_args & rhs) const { @@ -8620,7 +9315,8 @@ class ThriftHiveMetastore_alter_partition_pargs { public: - virtual ~ThriftHiveMetastore_alter_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_partition_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const Partition* new_part; @@ -8631,27 +9327,30 @@ class ThriftHiveMetastore_alter_partition_pargs { typedef struct _ThriftHiveMetastore_alter_partition_result__isset { _ThriftHiveMetastore_alter_partition_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_result__isset; class ThriftHiveMetastore_alter_partition_result { public: - ThriftHiveMetastore_alter_partition_result(const ThriftHiveMetastore_alter_partition_result&); - ThriftHiveMetastore_alter_partition_result& operator=(const ThriftHiveMetastore_alter_partition_result&); ThriftHiveMetastore_alter_partition_result() { } - virtual ~ThriftHiveMetastore_alter_partition_result() throw(); + virtual ~ThriftHiveMetastore_alter_partition_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partition_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_result & rhs) const { @@ -8674,15 +9373,16 @@ class ThriftHiveMetastore_alter_partition_result { typedef struct _ThriftHiveMetastore_alter_partition_presult__isset { _ThriftHiveMetastore_alter_partition_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_presult__isset; class ThriftHiveMetastore_alter_partition_presult { public: - virtual ~ThriftHiveMetastore_alter_partition_presult() throw(); + virtual ~ThriftHiveMetastore_alter_partition_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -8694,31 +9394,36 @@ class ThriftHiveMetastore_alter_partition_presult { typedef struct _ThriftHiveMetastore_alter_partitions_args__isset { _ThriftHiveMetastore_alter_partitions_args__isset() : db_name(false), tbl_name(false), new_parts(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_parts :1; + bool db_name; + bool tbl_name; + bool new_parts; } _ThriftHiveMetastore_alter_partitions_args__isset; class ThriftHiveMetastore_alter_partitions_args { public: - ThriftHiveMetastore_alter_partitions_args(const ThriftHiveMetastore_alter_partitions_args&); - ThriftHiveMetastore_alter_partitions_args& operator=(const ThriftHiveMetastore_alter_partitions_args&); ThriftHiveMetastore_alter_partitions_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partitions_args() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_args() throw() {} + std::string db_name; std::string tbl_name; std::vector new_parts; _ThriftHiveMetastore_alter_partitions_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_alter_partitions_args & rhs) const { @@ -8746,7 +9451,8 @@ class ThriftHiveMetastore_alter_partitions_pargs { public: - virtual ~ThriftHiveMetastore_alter_partitions_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * new_parts; @@ -8757,27 +9463,30 @@ class ThriftHiveMetastore_alter_partitions_pargs { typedef struct _ThriftHiveMetastore_alter_partitions_result__isset { _ThriftHiveMetastore_alter_partitions_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partitions_result__isset; class ThriftHiveMetastore_alter_partitions_result { public: - ThriftHiveMetastore_alter_partitions_result(const ThriftHiveMetastore_alter_partitions_result&); - ThriftHiveMetastore_alter_partitions_result& operator=(const ThriftHiveMetastore_alter_partitions_result&); ThriftHiveMetastore_alter_partitions_result() { } - virtual ~ThriftHiveMetastore_alter_partitions_result() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partitions_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partitions_result & rhs) const { @@ -8800,15 +9509,16 @@ class ThriftHiveMetastore_alter_partitions_result { typedef struct _ThriftHiveMetastore_alter_partitions_presult__isset { _ThriftHiveMetastore_alter_partitions_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partitions_presult__isset; class ThriftHiveMetastore_alter_partitions_presult { public: - virtual ~ThriftHiveMetastore_alter_partitions_presult() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -8820,21 +9530,20 @@ class ThriftHiveMetastore_alter_partitions_presult { typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), new_part(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_part :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool new_part; + bool environment_context; } _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_args { public: - ThriftHiveMetastore_alter_partition_with_environment_context_args(const ThriftHiveMetastore_alter_partition_with_environment_context_args&); - ThriftHiveMetastore_alter_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_alter_partition_with_environment_context_args&); ThriftHiveMetastore_alter_partition_with_environment_context_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; Partition new_part; @@ -8842,13 +9551,21 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_args { _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_with_environment_context_args & rhs) const { @@ -8878,7 +9595,8 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const Partition* new_part; @@ -8890,27 +9608,30 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_pargs { typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_result { public: - ThriftHiveMetastore_alter_partition_with_environment_context_result(const ThriftHiveMetastore_alter_partition_with_environment_context_result&); - ThriftHiveMetastore_alter_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_alter_partition_with_environment_context_result&); ThriftHiveMetastore_alter_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_with_environment_context_result & rhs) const { @@ -8933,15 +9654,16 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_result { typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -8953,21 +9675,20 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_presult { typedef struct _ThriftHiveMetastore_rename_partition_args__isset { _ThriftHiveMetastore_rename_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false), new_part(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool new_part :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool new_part; } _ThriftHiveMetastore_rename_partition_args__isset; class ThriftHiveMetastore_rename_partition_args { public: - ThriftHiveMetastore_rename_partition_args(const ThriftHiveMetastore_rename_partition_args&); - ThriftHiveMetastore_rename_partition_args& operator=(const ThriftHiveMetastore_rename_partition_args&); ThriftHiveMetastore_rename_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_rename_partition_args() throw(); + virtual ~ThriftHiveMetastore_rename_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -8975,13 +9696,21 @@ class ThriftHiveMetastore_rename_partition_args { _ThriftHiveMetastore_rename_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_rename_partition_args & rhs) const { @@ -9011,7 +9740,8 @@ class ThriftHiveMetastore_rename_partition_pargs { public: - virtual ~ThriftHiveMetastore_rename_partition_pargs() throw(); + virtual ~ThriftHiveMetastore_rename_partition_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -9023,27 +9753,30 @@ class ThriftHiveMetastore_rename_partition_pargs { typedef struct _ThriftHiveMetastore_rename_partition_result__isset { _ThriftHiveMetastore_rename_partition_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_rename_partition_result__isset; class ThriftHiveMetastore_rename_partition_result { public: - ThriftHiveMetastore_rename_partition_result(const ThriftHiveMetastore_rename_partition_result&); - ThriftHiveMetastore_rename_partition_result& operator=(const ThriftHiveMetastore_rename_partition_result&); ThriftHiveMetastore_rename_partition_result() { } - virtual ~ThriftHiveMetastore_rename_partition_result() throw(); + virtual ~ThriftHiveMetastore_rename_partition_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_rename_partition_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_rename_partition_result & rhs) const { @@ -9066,15 +9799,16 @@ class ThriftHiveMetastore_rename_partition_result { typedef struct _ThriftHiveMetastore_rename_partition_presult__isset { _ThriftHiveMetastore_rename_partition_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_rename_partition_presult__isset; class ThriftHiveMetastore_rename_partition_presult { public: - virtual ~ThriftHiveMetastore_rename_partition_presult() throw(); + virtual ~ThriftHiveMetastore_rename_partition_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -9086,27 +9820,30 @@ class ThriftHiveMetastore_rename_partition_presult { typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset() : part_vals(false), throw_exception(false) {} - bool part_vals :1; - bool throw_exception :1; + bool part_vals; + bool throw_exception; } _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_args { public: - ThriftHiveMetastore_partition_name_has_valid_characters_args(const ThriftHiveMetastore_partition_name_has_valid_characters_args&); - ThriftHiveMetastore_partition_name_has_valid_characters_args& operator=(const ThriftHiveMetastore_partition_name_has_valid_characters_args&); ThriftHiveMetastore_partition_name_has_valid_characters_args() : throw_exception(0) { } - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw() {} + std::vector part_vals; bool throw_exception; _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset __isset; - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_throw_exception(const bool val); + void __set_throw_exception(const bool val) { + throw_exception = val; + } bool operator == (const ThriftHiveMetastore_partition_name_has_valid_characters_args & rhs) const { @@ -9132,7 +9869,8 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_pargs { public: - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw() {} + const std::vector * part_vals; const bool* throw_exception; @@ -9142,27 +9880,30 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_pargs { typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_result { public: - ThriftHiveMetastore_partition_name_has_valid_characters_result(const ThriftHiveMetastore_partition_name_has_valid_characters_result&); - ThriftHiveMetastore_partition_name_has_valid_characters_result& operator=(const ThriftHiveMetastore_partition_name_has_valid_characters_result&); ThriftHiveMetastore_partition_name_has_valid_characters_result() : success(0) { } - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_has_valid_characters_result & rhs) const { @@ -9185,15 +9926,16 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_result { typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_presult { public: - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw() {} + bool* success; MetaException o1; @@ -9205,27 +9947,30 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_presult { typedef struct _ThriftHiveMetastore_get_config_value_args__isset { _ThriftHiveMetastore_get_config_value_args__isset() : name(false), defaultValue(false) {} - bool name :1; - bool defaultValue :1; + bool name; + bool defaultValue; } _ThriftHiveMetastore_get_config_value_args__isset; class ThriftHiveMetastore_get_config_value_args { public: - ThriftHiveMetastore_get_config_value_args(const ThriftHiveMetastore_get_config_value_args&); - ThriftHiveMetastore_get_config_value_args& operator=(const ThriftHiveMetastore_get_config_value_args&); ThriftHiveMetastore_get_config_value_args() : name(), defaultValue() { } - virtual ~ThriftHiveMetastore_get_config_value_args() throw(); + virtual ~ThriftHiveMetastore_get_config_value_args() throw() {} + std::string name; std::string defaultValue; _ThriftHiveMetastore_get_config_value_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_defaultValue(const std::string& val); + void __set_defaultValue(const std::string& val) { + defaultValue = val; + } bool operator == (const ThriftHiveMetastore_get_config_value_args & rhs) const { @@ -9251,7 +9996,8 @@ class ThriftHiveMetastore_get_config_value_pargs { public: - virtual ~ThriftHiveMetastore_get_config_value_pargs() throw(); + virtual ~ThriftHiveMetastore_get_config_value_pargs() throw() {} + const std::string* name; const std::string* defaultValue; @@ -9261,27 +10007,30 @@ class ThriftHiveMetastore_get_config_value_pargs { typedef struct _ThriftHiveMetastore_get_config_value_result__isset { _ThriftHiveMetastore_get_config_value_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_config_value_result__isset; class ThriftHiveMetastore_get_config_value_result { public: - ThriftHiveMetastore_get_config_value_result(const ThriftHiveMetastore_get_config_value_result&); - ThriftHiveMetastore_get_config_value_result& operator=(const ThriftHiveMetastore_get_config_value_result&); ThriftHiveMetastore_get_config_value_result() : success() { } - virtual ~ThriftHiveMetastore_get_config_value_result() throw(); + virtual ~ThriftHiveMetastore_get_config_value_result() throw() {} + std::string success; ConfigValSecurityException o1; _ThriftHiveMetastore_get_config_value_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const ConfigValSecurityException& val); + void __set_o1(const ConfigValSecurityException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_config_value_result & rhs) const { @@ -9304,15 +10053,16 @@ class ThriftHiveMetastore_get_config_value_result { typedef struct _ThriftHiveMetastore_get_config_value_presult__isset { _ThriftHiveMetastore_get_config_value_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_config_value_presult__isset; class ThriftHiveMetastore_get_config_value_presult { public: - virtual ~ThriftHiveMetastore_get_config_value_presult() throw(); + virtual ~ThriftHiveMetastore_get_config_value_presult() throw() {} + std::string* success; ConfigValSecurityException o1; @@ -9324,23 +10074,24 @@ class ThriftHiveMetastore_get_config_value_presult { typedef struct _ThriftHiveMetastore_partition_name_to_vals_args__isset { _ThriftHiveMetastore_partition_name_to_vals_args__isset() : part_name(false) {} - bool part_name :1; + bool part_name; } _ThriftHiveMetastore_partition_name_to_vals_args__isset; class ThriftHiveMetastore_partition_name_to_vals_args { public: - ThriftHiveMetastore_partition_name_to_vals_args(const ThriftHiveMetastore_partition_name_to_vals_args&); - ThriftHiveMetastore_partition_name_to_vals_args& operator=(const ThriftHiveMetastore_partition_name_to_vals_args&); ThriftHiveMetastore_partition_name_to_vals_args() : part_name() { } - virtual ~ThriftHiveMetastore_partition_name_to_vals_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_args() throw() {} + std::string part_name; _ThriftHiveMetastore_partition_name_to_vals_args__isset __isset; - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_vals_args & rhs) const { @@ -9364,7 +10115,8 @@ class ThriftHiveMetastore_partition_name_to_vals_pargs { public: - virtual ~ThriftHiveMetastore_partition_name_to_vals_pargs() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_pargs() throw() {} + const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -9373,27 +10125,30 @@ class ThriftHiveMetastore_partition_name_to_vals_pargs { typedef struct _ThriftHiveMetastore_partition_name_to_vals_result__isset { _ThriftHiveMetastore_partition_name_to_vals_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_vals_result__isset; class ThriftHiveMetastore_partition_name_to_vals_result { public: - ThriftHiveMetastore_partition_name_to_vals_result(const ThriftHiveMetastore_partition_name_to_vals_result&); - ThriftHiveMetastore_partition_name_to_vals_result& operator=(const ThriftHiveMetastore_partition_name_to_vals_result&); ThriftHiveMetastore_partition_name_to_vals_result() { } - virtual ~ThriftHiveMetastore_partition_name_to_vals_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_partition_name_to_vals_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_vals_result & rhs) const { @@ -9416,15 +10171,16 @@ class ThriftHiveMetastore_partition_name_to_vals_result { typedef struct _ThriftHiveMetastore_partition_name_to_vals_presult__isset { _ThriftHiveMetastore_partition_name_to_vals_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_vals_presult__isset; class ThriftHiveMetastore_partition_name_to_vals_presult { public: - virtual ~ThriftHiveMetastore_partition_name_to_vals_presult() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_presult() throw() {} + std::vector * success; MetaException o1; @@ -9436,23 +10192,24 @@ class ThriftHiveMetastore_partition_name_to_vals_presult { typedef struct _ThriftHiveMetastore_partition_name_to_spec_args__isset { _ThriftHiveMetastore_partition_name_to_spec_args__isset() : part_name(false) {} - bool part_name :1; + bool part_name; } _ThriftHiveMetastore_partition_name_to_spec_args__isset; class ThriftHiveMetastore_partition_name_to_spec_args { public: - ThriftHiveMetastore_partition_name_to_spec_args(const ThriftHiveMetastore_partition_name_to_spec_args&); - ThriftHiveMetastore_partition_name_to_spec_args& operator=(const ThriftHiveMetastore_partition_name_to_spec_args&); ThriftHiveMetastore_partition_name_to_spec_args() : part_name() { } - virtual ~ThriftHiveMetastore_partition_name_to_spec_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_args() throw() {} + std::string part_name; _ThriftHiveMetastore_partition_name_to_spec_args__isset __isset; - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_spec_args & rhs) const { @@ -9476,7 +10233,8 @@ class ThriftHiveMetastore_partition_name_to_spec_pargs { public: - virtual ~ThriftHiveMetastore_partition_name_to_spec_pargs() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_pargs() throw() {} + const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -9485,27 +10243,30 @@ class ThriftHiveMetastore_partition_name_to_spec_pargs { typedef struct _ThriftHiveMetastore_partition_name_to_spec_result__isset { _ThriftHiveMetastore_partition_name_to_spec_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_spec_result__isset; class ThriftHiveMetastore_partition_name_to_spec_result { public: - ThriftHiveMetastore_partition_name_to_spec_result(const ThriftHiveMetastore_partition_name_to_spec_result&); - ThriftHiveMetastore_partition_name_to_spec_result& operator=(const ThriftHiveMetastore_partition_name_to_spec_result&); ThriftHiveMetastore_partition_name_to_spec_result() { } - virtual ~ThriftHiveMetastore_partition_name_to_spec_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_result() throw() {} + std::map success; MetaException o1; _ThriftHiveMetastore_partition_name_to_spec_result__isset __isset; - void __set_success(const std::map & val); + void __set_success(const std::map & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_spec_result & rhs) const { @@ -9528,15 +10289,16 @@ class ThriftHiveMetastore_partition_name_to_spec_result { typedef struct _ThriftHiveMetastore_partition_name_to_spec_presult__isset { _ThriftHiveMetastore_partition_name_to_spec_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_spec_presult__isset; class ThriftHiveMetastore_partition_name_to_spec_presult { public: - virtual ~ThriftHiveMetastore_partition_name_to_spec_presult() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_presult() throw() {} + std::map * success; MetaException o1; @@ -9548,21 +10310,20 @@ class ThriftHiveMetastore_partition_name_to_spec_presult { typedef struct _ThriftHiveMetastore_markPartitionForEvent_args__isset { _ThriftHiveMetastore_markPartitionForEvent_args__isset() : db_name(false), tbl_name(false), part_vals(false), eventType(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool eventType :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool eventType; } _ThriftHiveMetastore_markPartitionForEvent_args__isset; class ThriftHiveMetastore_markPartitionForEvent_args { public: - ThriftHiveMetastore_markPartitionForEvent_args(const ThriftHiveMetastore_markPartitionForEvent_args&); - ThriftHiveMetastore_markPartitionForEvent_args& operator=(const ThriftHiveMetastore_markPartitionForEvent_args&); ThriftHiveMetastore_markPartitionForEvent_args() : db_name(), tbl_name(), eventType((PartitionEventType::type)0) { } - virtual ~ThriftHiveMetastore_markPartitionForEvent_args() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_args() throw() {} + std::string db_name; std::string tbl_name; std::map part_vals; @@ -9570,13 +10331,21 @@ class ThriftHiveMetastore_markPartitionForEvent_args { _ThriftHiveMetastore_markPartitionForEvent_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::map & val); + void __set_part_vals(const std::map & val) { + part_vals = val; + } - void __set_eventType(const PartitionEventType::type val); + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } bool operator == (const ThriftHiveMetastore_markPartitionForEvent_args & rhs) const { @@ -9606,7 +10375,8 @@ class ThriftHiveMetastore_markPartitionForEvent_pargs { public: - virtual ~ThriftHiveMetastore_markPartitionForEvent_pargs() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::map * part_vals; @@ -9618,23 +10388,22 @@ class ThriftHiveMetastore_markPartitionForEvent_pargs { typedef struct _ThriftHiveMetastore_markPartitionForEvent_result__isset { _ThriftHiveMetastore_markPartitionForEvent_result__isset() : o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_markPartitionForEvent_result__isset; class ThriftHiveMetastore_markPartitionForEvent_result { public: - ThriftHiveMetastore_markPartitionForEvent_result(const ThriftHiveMetastore_markPartitionForEvent_result&); - ThriftHiveMetastore_markPartitionForEvent_result& operator=(const ThriftHiveMetastore_markPartitionForEvent_result&); ThriftHiveMetastore_markPartitionForEvent_result() { } - virtual ~ThriftHiveMetastore_markPartitionForEvent_result() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_result() throw() {} + MetaException o1; NoSuchObjectException o2; UnknownDBException o3; @@ -9644,17 +10413,29 @@ class ThriftHiveMetastore_markPartitionForEvent_result { _ThriftHiveMetastore_markPartitionForEvent_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } - void __set_o4(const UnknownTableException& val); + void __set_o4(const UnknownTableException& val) { + o4 = val; + } - void __set_o5(const UnknownPartitionException& val); + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } - void __set_o6(const InvalidPartitionException& val); + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } bool operator == (const ThriftHiveMetastore_markPartitionForEvent_result & rhs) const { @@ -9685,19 +10466,20 @@ class ThriftHiveMetastore_markPartitionForEvent_result { typedef struct _ThriftHiveMetastore_markPartitionForEvent_presult__isset { _ThriftHiveMetastore_markPartitionForEvent_presult__isset() : o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_markPartitionForEvent_presult__isset; class ThriftHiveMetastore_markPartitionForEvent_presult { public: - virtual ~ThriftHiveMetastore_markPartitionForEvent_presult() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_presult() throw() {} + MetaException o1; NoSuchObjectException o2; UnknownDBException o3; @@ -9713,21 +10495,20 @@ class ThriftHiveMetastore_markPartitionForEvent_presult { typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset() : db_name(false), tbl_name(false), part_vals(false), eventType(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool eventType :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool eventType; } _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_args { public: - ThriftHiveMetastore_isPartitionMarkedForEvent_args(const ThriftHiveMetastore_isPartitionMarkedForEvent_args&); - ThriftHiveMetastore_isPartitionMarkedForEvent_args& operator=(const ThriftHiveMetastore_isPartitionMarkedForEvent_args&); ThriftHiveMetastore_isPartitionMarkedForEvent_args() : db_name(), tbl_name(), eventType((PartitionEventType::type)0) { } - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw() {} + std::string db_name; std::string tbl_name; std::map part_vals; @@ -9735,13 +10516,21 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::map & val); + void __set_part_vals(const std::map & val) { + part_vals = val; + } - void __set_eventType(const PartitionEventType::type val); + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_args & rhs) const { @@ -9771,7 +10560,8 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_pargs { public: - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::map * part_vals; @@ -9783,24 +10573,23 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_pargs { typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_result { public: - ThriftHiveMetastore_isPartitionMarkedForEvent_result(const ThriftHiveMetastore_isPartitionMarkedForEvent_result&); - ThriftHiveMetastore_isPartitionMarkedForEvent_result& operator=(const ThriftHiveMetastore_isPartitionMarkedForEvent_result&); ThriftHiveMetastore_isPartitionMarkedForEvent_result() : success(0) { } - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw() {} + bool success; MetaException o1; NoSuchObjectException o2; @@ -9811,19 +10600,33 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } - void __set_o4(const UnknownTableException& val); + void __set_o4(const UnknownTableException& val) { + o4 = val; + } - void __set_o5(const UnknownPartitionException& val); + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } - void __set_o6(const InvalidPartitionException& val); + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_result & rhs) const { @@ -9856,20 +10659,21 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_presult { public: - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw() {} + bool* success; MetaException o1; NoSuchObjectException o2; @@ -9886,27 +10690,30 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_presult { typedef struct _ThriftHiveMetastore_add_index_args__isset { _ThriftHiveMetastore_add_index_args__isset() : new_index(false), index_table(false) {} - bool new_index :1; - bool index_table :1; + bool new_index; + bool index_table; } _ThriftHiveMetastore_add_index_args__isset; class ThriftHiveMetastore_add_index_args { public: - ThriftHiveMetastore_add_index_args(const ThriftHiveMetastore_add_index_args&); - ThriftHiveMetastore_add_index_args& operator=(const ThriftHiveMetastore_add_index_args&); ThriftHiveMetastore_add_index_args() { } - virtual ~ThriftHiveMetastore_add_index_args() throw(); + virtual ~ThriftHiveMetastore_add_index_args() throw() {} + Index new_index; Table index_table; _ThriftHiveMetastore_add_index_args__isset __isset; - void __set_new_index(const Index& val); + void __set_new_index(const Index& val) { + new_index = val; + } - void __set_index_table(const Table& val); + void __set_index_table(const Table& val) { + index_table = val; + } bool operator == (const ThriftHiveMetastore_add_index_args & rhs) const { @@ -9932,7 +10739,8 @@ class ThriftHiveMetastore_add_index_pargs { public: - virtual ~ThriftHiveMetastore_add_index_pargs() throw(); + virtual ~ThriftHiveMetastore_add_index_pargs() throw() {} + const Index* new_index; const Table* index_table; @@ -9942,21 +10750,20 @@ class ThriftHiveMetastore_add_index_pargs { typedef struct _ThriftHiveMetastore_add_index_result__isset { _ThriftHiveMetastore_add_index_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_index_result__isset; class ThriftHiveMetastore_add_index_result { public: - ThriftHiveMetastore_add_index_result(const ThriftHiveMetastore_add_index_result&); - ThriftHiveMetastore_add_index_result& operator=(const ThriftHiveMetastore_add_index_result&); ThriftHiveMetastore_add_index_result() { } - virtual ~ThriftHiveMetastore_add_index_result() throw(); + virtual ~ThriftHiveMetastore_add_index_result() throw() {} + Index success; InvalidObjectException o1; AlreadyExistsException o2; @@ -9964,13 +10771,21 @@ class ThriftHiveMetastore_add_index_result { _ThriftHiveMetastore_add_index_result__isset __isset; - void __set_success(const Index& val); + void __set_success(const Index& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_index_result & rhs) const { @@ -9997,17 +10812,18 @@ class ThriftHiveMetastore_add_index_result { typedef struct _ThriftHiveMetastore_add_index_presult__isset { _ThriftHiveMetastore_add_index_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_index_presult__isset; class ThriftHiveMetastore_add_index_presult { public: - virtual ~ThriftHiveMetastore_add_index_presult() throw(); + virtual ~ThriftHiveMetastore_add_index_presult() throw() {} + Index* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -10021,21 +10837,20 @@ class ThriftHiveMetastore_add_index_presult { typedef struct _ThriftHiveMetastore_alter_index_args__isset { _ThriftHiveMetastore_alter_index_args__isset() : dbname(false), base_tbl_name(false), idx_name(false), new_idx(false) {} - bool dbname :1; - bool base_tbl_name :1; - bool idx_name :1; - bool new_idx :1; + bool dbname; + bool base_tbl_name; + bool idx_name; + bool new_idx; } _ThriftHiveMetastore_alter_index_args__isset; class ThriftHiveMetastore_alter_index_args { public: - ThriftHiveMetastore_alter_index_args(const ThriftHiveMetastore_alter_index_args&); - ThriftHiveMetastore_alter_index_args& operator=(const ThriftHiveMetastore_alter_index_args&); ThriftHiveMetastore_alter_index_args() : dbname(), base_tbl_name(), idx_name() { } - virtual ~ThriftHiveMetastore_alter_index_args() throw(); + virtual ~ThriftHiveMetastore_alter_index_args() throw() {} + std::string dbname; std::string base_tbl_name; std::string idx_name; @@ -10043,13 +10858,21 @@ class ThriftHiveMetastore_alter_index_args { _ThriftHiveMetastore_alter_index_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_base_tbl_name(const std::string& val); + void __set_base_tbl_name(const std::string& val) { + base_tbl_name = val; + } - void __set_idx_name(const std::string& val); + void __set_idx_name(const std::string& val) { + idx_name = val; + } - void __set_new_idx(const Index& val); + void __set_new_idx(const Index& val) { + new_idx = val; + } bool operator == (const ThriftHiveMetastore_alter_index_args & rhs) const { @@ -10079,7 +10902,8 @@ class ThriftHiveMetastore_alter_index_pargs { public: - virtual ~ThriftHiveMetastore_alter_index_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_index_pargs() throw() {} + const std::string* dbname; const std::string* base_tbl_name; const std::string* idx_name; @@ -10091,27 +10915,30 @@ class ThriftHiveMetastore_alter_index_pargs { typedef struct _ThriftHiveMetastore_alter_index_result__isset { _ThriftHiveMetastore_alter_index_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_index_result__isset; class ThriftHiveMetastore_alter_index_result { public: - ThriftHiveMetastore_alter_index_result(const ThriftHiveMetastore_alter_index_result&); - ThriftHiveMetastore_alter_index_result& operator=(const ThriftHiveMetastore_alter_index_result&); ThriftHiveMetastore_alter_index_result() { } - virtual ~ThriftHiveMetastore_alter_index_result() throw(); + virtual ~ThriftHiveMetastore_alter_index_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_index_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_index_result & rhs) const { @@ -10134,15 +10961,16 @@ class ThriftHiveMetastore_alter_index_result { typedef struct _ThriftHiveMetastore_alter_index_presult__isset { _ThriftHiveMetastore_alter_index_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_index_presult__isset; class ThriftHiveMetastore_alter_index_presult { public: - virtual ~ThriftHiveMetastore_alter_index_presult() throw(); + virtual ~ThriftHiveMetastore_alter_index_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -10154,21 +10982,20 @@ class ThriftHiveMetastore_alter_index_presult { typedef struct _ThriftHiveMetastore_drop_index_by_name_args__isset { _ThriftHiveMetastore_drop_index_by_name_args__isset() : db_name(false), tbl_name(false), index_name(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool index_name :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool index_name; + bool deleteData; } _ThriftHiveMetastore_drop_index_by_name_args__isset; class ThriftHiveMetastore_drop_index_by_name_args { public: - ThriftHiveMetastore_drop_index_by_name_args(const ThriftHiveMetastore_drop_index_by_name_args&); - ThriftHiveMetastore_drop_index_by_name_args& operator=(const ThriftHiveMetastore_drop_index_by_name_args&); ThriftHiveMetastore_drop_index_by_name_args() : db_name(), tbl_name(), index_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_index_by_name_args() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string index_name; @@ -10176,13 +11003,21 @@ class ThriftHiveMetastore_drop_index_by_name_args { _ThriftHiveMetastore_drop_index_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_index_name(const std::string& val); + void __set_index_name(const std::string& val) { + index_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_index_by_name_args & rhs) const { @@ -10212,7 +11047,8 @@ class ThriftHiveMetastore_drop_index_by_name_pargs { public: - virtual ~ThriftHiveMetastore_drop_index_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* index_name; @@ -10224,31 +11060,36 @@ class ThriftHiveMetastore_drop_index_by_name_pargs { typedef struct _ThriftHiveMetastore_drop_index_by_name_result__isset { _ThriftHiveMetastore_drop_index_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_index_by_name_result__isset; class ThriftHiveMetastore_drop_index_by_name_result { public: - ThriftHiveMetastore_drop_index_by_name_result(const ThriftHiveMetastore_drop_index_by_name_result&); - ThriftHiveMetastore_drop_index_by_name_result& operator=(const ThriftHiveMetastore_drop_index_by_name_result&); ThriftHiveMetastore_drop_index_by_name_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_index_by_name_result() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_index_by_name_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_index_by_name_result & rhs) const { @@ -10273,16 +11114,17 @@ class ThriftHiveMetastore_drop_index_by_name_result { typedef struct _ThriftHiveMetastore_drop_index_by_name_presult__isset { _ThriftHiveMetastore_drop_index_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_index_by_name_presult__isset; class ThriftHiveMetastore_drop_index_by_name_presult { public: - virtual ~ThriftHiveMetastore_drop_index_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -10295,31 +11137,36 @@ class ThriftHiveMetastore_drop_index_by_name_presult { typedef struct _ThriftHiveMetastore_get_index_by_name_args__isset { _ThriftHiveMetastore_get_index_by_name_args__isset() : db_name(false), tbl_name(false), index_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool index_name :1; + bool db_name; + bool tbl_name; + bool index_name; } _ThriftHiveMetastore_get_index_by_name_args__isset; class ThriftHiveMetastore_get_index_by_name_args { public: - ThriftHiveMetastore_get_index_by_name_args(const ThriftHiveMetastore_get_index_by_name_args&); - ThriftHiveMetastore_get_index_by_name_args& operator=(const ThriftHiveMetastore_get_index_by_name_args&); ThriftHiveMetastore_get_index_by_name_args() : db_name(), tbl_name(), index_name() { } - virtual ~ThriftHiveMetastore_get_index_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string index_name; _ThriftHiveMetastore_get_index_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_index_name(const std::string& val); + void __set_index_name(const std::string& val) { + index_name = val; + } bool operator == (const ThriftHiveMetastore_get_index_by_name_args & rhs) const { @@ -10347,7 +11194,8 @@ class ThriftHiveMetastore_get_index_by_name_pargs { public: - virtual ~ThriftHiveMetastore_get_index_by_name_pargs() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* index_name; @@ -10358,31 +11206,36 @@ class ThriftHiveMetastore_get_index_by_name_pargs { typedef struct _ThriftHiveMetastore_get_index_by_name_result__isset { _ThriftHiveMetastore_get_index_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_index_by_name_result__isset; class ThriftHiveMetastore_get_index_by_name_result { public: - ThriftHiveMetastore_get_index_by_name_result(const ThriftHiveMetastore_get_index_by_name_result&); - ThriftHiveMetastore_get_index_by_name_result& operator=(const ThriftHiveMetastore_get_index_by_name_result&); ThriftHiveMetastore_get_index_by_name_result() { } - virtual ~ThriftHiveMetastore_get_index_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_result() throw() {} + Index success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_index_by_name_result__isset __isset; - void __set_success(const Index& val); + void __set_success(const Index& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_index_by_name_result & rhs) const { @@ -10407,16 +11260,17 @@ class ThriftHiveMetastore_get_index_by_name_result { typedef struct _ThriftHiveMetastore_get_index_by_name_presult__isset { _ThriftHiveMetastore_get_index_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_index_by_name_presult__isset; class ThriftHiveMetastore_get_index_by_name_presult { public: - virtual ~ThriftHiveMetastore_get_index_by_name_presult() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_presult() throw() {} + Index* success; MetaException o1; NoSuchObjectException o2; @@ -10429,31 +11283,36 @@ class ThriftHiveMetastore_get_index_by_name_presult { typedef struct _ThriftHiveMetastore_get_indexes_args__isset { _ThriftHiveMetastore_get_indexes_args__isset() : db_name(false), tbl_name(false), max_indexes(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_indexes :1; + bool db_name; + bool tbl_name; + bool max_indexes; } _ThriftHiveMetastore_get_indexes_args__isset; class ThriftHiveMetastore_get_indexes_args { public: - ThriftHiveMetastore_get_indexes_args(const ThriftHiveMetastore_get_indexes_args&); - ThriftHiveMetastore_get_indexes_args& operator=(const ThriftHiveMetastore_get_indexes_args&); ThriftHiveMetastore_get_indexes_args() : db_name(), tbl_name(), max_indexes(-1) { } - virtual ~ThriftHiveMetastore_get_indexes_args() throw(); + virtual ~ThriftHiveMetastore_get_indexes_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_indexes; _ThriftHiveMetastore_get_indexes_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_indexes(const int16_t val); + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } bool operator == (const ThriftHiveMetastore_get_indexes_args & rhs) const { @@ -10481,7 +11340,8 @@ class ThriftHiveMetastore_get_indexes_pargs { public: - virtual ~ThriftHiveMetastore_get_indexes_pargs() throw(); + virtual ~ThriftHiveMetastore_get_indexes_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int16_t* max_indexes; @@ -10492,31 +11352,36 @@ class ThriftHiveMetastore_get_indexes_pargs { typedef struct _ThriftHiveMetastore_get_indexes_result__isset { _ThriftHiveMetastore_get_indexes_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_indexes_result__isset; class ThriftHiveMetastore_get_indexes_result { public: - ThriftHiveMetastore_get_indexes_result(const ThriftHiveMetastore_get_indexes_result&); - ThriftHiveMetastore_get_indexes_result& operator=(const ThriftHiveMetastore_get_indexes_result&); ThriftHiveMetastore_get_indexes_result() { } - virtual ~ThriftHiveMetastore_get_indexes_result() throw(); + virtual ~ThriftHiveMetastore_get_indexes_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_indexes_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_indexes_result & rhs) const { @@ -10541,16 +11406,17 @@ class ThriftHiveMetastore_get_indexes_result { typedef struct _ThriftHiveMetastore_get_indexes_presult__isset { _ThriftHiveMetastore_get_indexes_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_indexes_presult__isset; class ThriftHiveMetastore_get_indexes_presult { public: - virtual ~ThriftHiveMetastore_get_indexes_presult() throw(); + virtual ~ThriftHiveMetastore_get_indexes_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -10563,31 +11429,36 @@ class ThriftHiveMetastore_get_indexes_presult { typedef struct _ThriftHiveMetastore_get_index_names_args__isset { _ThriftHiveMetastore_get_index_names_args__isset() : db_name(false), tbl_name(false), max_indexes(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_indexes :1; + bool db_name; + bool tbl_name; + bool max_indexes; } _ThriftHiveMetastore_get_index_names_args__isset; class ThriftHiveMetastore_get_index_names_args { public: - ThriftHiveMetastore_get_index_names_args(const ThriftHiveMetastore_get_index_names_args&); - ThriftHiveMetastore_get_index_names_args& operator=(const ThriftHiveMetastore_get_index_names_args&); ThriftHiveMetastore_get_index_names_args() : db_name(), tbl_name(), max_indexes(-1) { } - virtual ~ThriftHiveMetastore_get_index_names_args() throw(); + virtual ~ThriftHiveMetastore_get_index_names_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_indexes; _ThriftHiveMetastore_get_index_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_indexes(const int16_t val); + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } bool operator == (const ThriftHiveMetastore_get_index_names_args & rhs) const { @@ -10615,7 +11486,8 @@ class ThriftHiveMetastore_get_index_names_pargs { public: - virtual ~ThriftHiveMetastore_get_index_names_pargs() throw(); + virtual ~ThriftHiveMetastore_get_index_names_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const int16_t* max_indexes; @@ -10626,27 +11498,30 @@ class ThriftHiveMetastore_get_index_names_pargs { typedef struct _ThriftHiveMetastore_get_index_names_result__isset { _ThriftHiveMetastore_get_index_names_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_index_names_result__isset; class ThriftHiveMetastore_get_index_names_result { public: - ThriftHiveMetastore_get_index_names_result(const ThriftHiveMetastore_get_index_names_result&); - ThriftHiveMetastore_get_index_names_result& operator=(const ThriftHiveMetastore_get_index_names_result&); ThriftHiveMetastore_get_index_names_result() { } - virtual ~ThriftHiveMetastore_get_index_names_result() throw(); + virtual ~ThriftHiveMetastore_get_index_names_result() throw() {} + std::vector success; MetaException o2; _ThriftHiveMetastore_get_index_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_index_names_result & rhs) const { @@ -10669,15 +11544,16 @@ class ThriftHiveMetastore_get_index_names_result { typedef struct _ThriftHiveMetastore_get_index_names_presult__isset { _ThriftHiveMetastore_get_index_names_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_index_names_presult__isset; class ThriftHiveMetastore_get_index_names_presult { public: - virtual ~ThriftHiveMetastore_get_index_names_presult() throw(); + virtual ~ThriftHiveMetastore_get_index_names_presult() throw() {} + std::vector * success; MetaException o2; @@ -10689,23 +11565,24 @@ class ThriftHiveMetastore_get_index_names_presult { typedef struct _ThriftHiveMetastore_update_table_column_statistics_args__isset { _ThriftHiveMetastore_update_table_column_statistics_args__isset() : stats_obj(false) {} - bool stats_obj :1; + bool stats_obj; } _ThriftHiveMetastore_update_table_column_statistics_args__isset; class ThriftHiveMetastore_update_table_column_statistics_args { public: - ThriftHiveMetastore_update_table_column_statistics_args(const ThriftHiveMetastore_update_table_column_statistics_args&); - ThriftHiveMetastore_update_table_column_statistics_args& operator=(const ThriftHiveMetastore_update_table_column_statistics_args&); ThriftHiveMetastore_update_table_column_statistics_args() { } - virtual ~ThriftHiveMetastore_update_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_args() throw() {} + ColumnStatistics stats_obj; _ThriftHiveMetastore_update_table_column_statistics_args__isset __isset; - void __set_stats_obj(const ColumnStatistics& val); + void __set_stats_obj(const ColumnStatistics& val) { + stats_obj = val; + } bool operator == (const ThriftHiveMetastore_update_table_column_statistics_args & rhs) const { @@ -10729,7 +11606,8 @@ class ThriftHiveMetastore_update_table_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_update_table_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() {} + const ColumnStatistics* stats_obj; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -10738,22 +11616,21 @@ class ThriftHiveMetastore_update_table_column_statistics_pargs { typedef struct _ThriftHiveMetastore_update_table_column_statistics_result__isset { _ThriftHiveMetastore_update_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_table_column_statistics_result__isset; class ThriftHiveMetastore_update_table_column_statistics_result { public: - ThriftHiveMetastore_update_table_column_statistics_result(const ThriftHiveMetastore_update_table_column_statistics_result&); - ThriftHiveMetastore_update_table_column_statistics_result& operator=(const ThriftHiveMetastore_update_table_column_statistics_result&); ThriftHiveMetastore_update_table_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_update_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -10762,15 +11639,25 @@ class ThriftHiveMetastore_update_table_column_statistics_result { _ThriftHiveMetastore_update_table_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_update_table_column_statistics_result & rhs) const { @@ -10799,18 +11686,19 @@ class ThriftHiveMetastore_update_table_column_statistics_result { typedef struct _ThriftHiveMetastore_update_table_column_statistics_presult__isset { _ThriftHiveMetastore_update_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_table_column_statistics_presult__isset; class ThriftHiveMetastore_update_table_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_update_table_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_presult() throw() {} + bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -10825,23 +11713,24 @@ class ThriftHiveMetastore_update_table_column_statistics_presult { typedef struct _ThriftHiveMetastore_update_partition_column_statistics_args__isset { _ThriftHiveMetastore_update_partition_column_statistics_args__isset() : stats_obj(false) {} - bool stats_obj :1; + bool stats_obj; } _ThriftHiveMetastore_update_partition_column_statistics_args__isset; class ThriftHiveMetastore_update_partition_column_statistics_args { public: - ThriftHiveMetastore_update_partition_column_statistics_args(const ThriftHiveMetastore_update_partition_column_statistics_args&); - ThriftHiveMetastore_update_partition_column_statistics_args& operator=(const ThriftHiveMetastore_update_partition_column_statistics_args&); ThriftHiveMetastore_update_partition_column_statistics_args() { } - virtual ~ThriftHiveMetastore_update_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_args() throw() {} + ColumnStatistics stats_obj; _ThriftHiveMetastore_update_partition_column_statistics_args__isset __isset; - void __set_stats_obj(const ColumnStatistics& val); + void __set_stats_obj(const ColumnStatistics& val) { + stats_obj = val; + } bool operator == (const ThriftHiveMetastore_update_partition_column_statistics_args & rhs) const { @@ -10865,7 +11754,8 @@ class ThriftHiveMetastore_update_partition_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() {} + const ColumnStatistics* stats_obj; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -10874,22 +11764,21 @@ class ThriftHiveMetastore_update_partition_column_statistics_pargs { typedef struct _ThriftHiveMetastore_update_partition_column_statistics_result__isset { _ThriftHiveMetastore_update_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_partition_column_statistics_result__isset; class ThriftHiveMetastore_update_partition_column_statistics_result { public: - ThriftHiveMetastore_update_partition_column_statistics_result(const ThriftHiveMetastore_update_partition_column_statistics_result&); - ThriftHiveMetastore_update_partition_column_statistics_result& operator=(const ThriftHiveMetastore_update_partition_column_statistics_result&); ThriftHiveMetastore_update_partition_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_update_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -10898,15 +11787,25 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { _ThriftHiveMetastore_update_partition_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_update_partition_column_statistics_result & rhs) const { @@ -10935,18 +11834,19 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { typedef struct _ThriftHiveMetastore_update_partition_column_statistics_presult__isset { _ThriftHiveMetastore_update_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_partition_column_statistics_presult__isset; class ThriftHiveMetastore_update_partition_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_update_partition_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() {} + bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -10961,31 +11861,36 @@ class ThriftHiveMetastore_update_partition_column_statistics_presult { typedef struct _ThriftHiveMetastore_get_table_column_statistics_args__isset { _ThriftHiveMetastore_get_table_column_statistics_args__isset() : db_name(false), tbl_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool col_name; } _ThriftHiveMetastore_get_table_column_statistics_args__isset; class ThriftHiveMetastore_get_table_column_statistics_args { public: - ThriftHiveMetastore_get_table_column_statistics_args(const ThriftHiveMetastore_get_table_column_statistics_args&); - ThriftHiveMetastore_get_table_column_statistics_args& operator=(const ThriftHiveMetastore_get_table_column_statistics_args&); ThriftHiveMetastore_get_table_column_statistics_args() : db_name(), tbl_name(), col_name() { } - virtual ~ThriftHiveMetastore_get_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string col_name; _ThriftHiveMetastore_get_table_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_get_table_column_statistics_args & rhs) const { @@ -11013,7 +11918,8 @@ class ThriftHiveMetastore_get_table_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_get_table_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* col_name; @@ -11024,22 +11930,21 @@ class ThriftHiveMetastore_get_table_column_statistics_pargs { typedef struct _ThriftHiveMetastore_get_table_column_statistics_result__isset { _ThriftHiveMetastore_get_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_table_column_statistics_result__isset; class ThriftHiveMetastore_get_table_column_statistics_result { public: - ThriftHiveMetastore_get_table_column_statistics_result(const ThriftHiveMetastore_get_table_column_statistics_result&); - ThriftHiveMetastore_get_table_column_statistics_result& operator=(const ThriftHiveMetastore_get_table_column_statistics_result&); ThriftHiveMetastore_get_table_column_statistics_result() { } - virtual ~ThriftHiveMetastore_get_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_result() throw() {} + ColumnStatistics success; NoSuchObjectException o1; MetaException o2; @@ -11048,15 +11953,25 @@ class ThriftHiveMetastore_get_table_column_statistics_result { _ThriftHiveMetastore_get_table_column_statistics_result__isset __isset; - void __set_success(const ColumnStatistics& val); + void __set_success(const ColumnStatistics& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidInputException& val); + void __set_o3(const InvalidInputException& val) { + o3 = val; + } - void __set_o4(const InvalidObjectException& val); + void __set_o4(const InvalidObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_get_table_column_statistics_result & rhs) const { @@ -11085,18 +12000,19 @@ class ThriftHiveMetastore_get_table_column_statistics_result { typedef struct _ThriftHiveMetastore_get_table_column_statistics_presult__isset { _ThriftHiveMetastore_get_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_table_column_statistics_presult__isset; class ThriftHiveMetastore_get_table_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_get_table_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_presult() throw() {} + ColumnStatistics* success; NoSuchObjectException o1; MetaException o2; @@ -11111,21 +12027,20 @@ class ThriftHiveMetastore_get_table_column_statistics_presult { typedef struct _ThriftHiveMetastore_get_partition_column_statistics_args__isset { _ThriftHiveMetastore_get_partition_column_statistics_args__isset() : db_name(false), tbl_name(false), part_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool part_name; + bool col_name; } _ThriftHiveMetastore_get_partition_column_statistics_args__isset; class ThriftHiveMetastore_get_partition_column_statistics_args { public: - ThriftHiveMetastore_get_partition_column_statistics_args(const ThriftHiveMetastore_get_partition_column_statistics_args&); - ThriftHiveMetastore_get_partition_column_statistics_args& operator=(const ThriftHiveMetastore_get_partition_column_statistics_args&); ThriftHiveMetastore_get_partition_column_statistics_args() : db_name(), tbl_name(), part_name(), col_name() { } - virtual ~ThriftHiveMetastore_get_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -11133,13 +12048,21 @@ class ThriftHiveMetastore_get_partition_column_statistics_args { _ThriftHiveMetastore_get_partition_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_get_partition_column_statistics_args & rhs) const { @@ -11169,7 +12092,8 @@ class ThriftHiveMetastore_get_partition_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -11181,22 +12105,21 @@ class ThriftHiveMetastore_get_partition_column_statistics_pargs { typedef struct _ThriftHiveMetastore_get_partition_column_statistics_result__isset { _ThriftHiveMetastore_get_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_partition_column_statistics_result__isset; class ThriftHiveMetastore_get_partition_column_statistics_result { public: - ThriftHiveMetastore_get_partition_column_statistics_result(const ThriftHiveMetastore_get_partition_column_statistics_result&); - ThriftHiveMetastore_get_partition_column_statistics_result& operator=(const ThriftHiveMetastore_get_partition_column_statistics_result&); ThriftHiveMetastore_get_partition_column_statistics_result() { } - virtual ~ThriftHiveMetastore_get_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_result() throw() {} + ColumnStatistics success; NoSuchObjectException o1; MetaException o2; @@ -11205,15 +12128,25 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { _ThriftHiveMetastore_get_partition_column_statistics_result__isset __isset; - void __set_success(const ColumnStatistics& val); + void __set_success(const ColumnStatistics& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidInputException& val); + void __set_o3(const InvalidInputException& val) { + o3 = val; + } - void __set_o4(const InvalidObjectException& val); + void __set_o4(const InvalidObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_column_statistics_result & rhs) const { @@ -11242,18 +12175,19 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { typedef struct _ThriftHiveMetastore_get_partition_column_statistics_presult__isset { _ThriftHiveMetastore_get_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_partition_column_statistics_presult__isset; class ThriftHiveMetastore_get_partition_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_get_partition_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() {} + ColumnStatistics* success; NoSuchObjectException o1; MetaException o2; @@ -11268,23 +12202,24 @@ class ThriftHiveMetastore_get_partition_column_statistics_presult { typedef struct _ThriftHiveMetastore_get_table_statistics_req_args__isset { _ThriftHiveMetastore_get_table_statistics_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_table_statistics_req_args__isset; class ThriftHiveMetastore_get_table_statistics_req_args { public: - ThriftHiveMetastore_get_table_statistics_req_args(const ThriftHiveMetastore_get_table_statistics_req_args&); - ThriftHiveMetastore_get_table_statistics_req_args& operator=(const ThriftHiveMetastore_get_table_statistics_req_args&); ThriftHiveMetastore_get_table_statistics_req_args() { } - virtual ~ThriftHiveMetastore_get_table_statistics_req_args() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_args() throw() {} + TableStatsRequest request; _ThriftHiveMetastore_get_table_statistics_req_args__isset __isset; - void __set_request(const TableStatsRequest& val); + void __set_request(const TableStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_table_statistics_req_args & rhs) const { @@ -11308,7 +12243,8 @@ class ThriftHiveMetastore_get_table_statistics_req_pargs { public: - virtual ~ThriftHiveMetastore_get_table_statistics_req_pargs() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() {} + const TableStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -11317,31 +12253,36 @@ class ThriftHiveMetastore_get_table_statistics_req_pargs { typedef struct _ThriftHiveMetastore_get_table_statistics_req_result__isset { _ThriftHiveMetastore_get_table_statistics_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_statistics_req_result__isset; class ThriftHiveMetastore_get_table_statistics_req_result { public: - ThriftHiveMetastore_get_table_statistics_req_result(const ThriftHiveMetastore_get_table_statistics_req_result&); - ThriftHiveMetastore_get_table_statistics_req_result& operator=(const ThriftHiveMetastore_get_table_statistics_req_result&); ThriftHiveMetastore_get_table_statistics_req_result() { } - virtual ~ThriftHiveMetastore_get_table_statistics_req_result() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_result() throw() {} + TableStatsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_table_statistics_req_result__isset __isset; - void __set_success(const TableStatsResult& val); + void __set_success(const TableStatsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_table_statistics_req_result & rhs) const { @@ -11366,16 +12307,17 @@ class ThriftHiveMetastore_get_table_statistics_req_result { typedef struct _ThriftHiveMetastore_get_table_statistics_req_presult__isset { _ThriftHiveMetastore_get_table_statistics_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_statistics_req_presult__isset; class ThriftHiveMetastore_get_table_statistics_req_presult { public: - virtual ~ThriftHiveMetastore_get_table_statistics_req_presult() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_presult() throw() {} + TableStatsResult* success; NoSuchObjectException o1; MetaException o2; @@ -11388,23 +12330,24 @@ class ThriftHiveMetastore_get_table_statistics_req_presult { typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_args__isset { _ThriftHiveMetastore_get_partitions_statistics_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_partitions_statistics_req_args__isset; class ThriftHiveMetastore_get_partitions_statistics_req_args { public: - ThriftHiveMetastore_get_partitions_statistics_req_args(const ThriftHiveMetastore_get_partitions_statistics_req_args&); - ThriftHiveMetastore_get_partitions_statistics_req_args& operator=(const ThriftHiveMetastore_get_partitions_statistics_req_args&); ThriftHiveMetastore_get_partitions_statistics_req_args() { } - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() {} + PartitionsStatsRequest request; _ThriftHiveMetastore_get_partitions_statistics_req_args__isset __isset; - void __set_request(const PartitionsStatsRequest& val); + void __set_request(const PartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_statistics_req_args & rhs) const { @@ -11428,7 +12371,8 @@ class ThriftHiveMetastore_get_partitions_statistics_req_pargs { public: - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() {} + const PartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -11437,31 +12381,36 @@ class ThriftHiveMetastore_get_partitions_statistics_req_pargs { typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_result__isset { _ThriftHiveMetastore_get_partitions_statistics_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_statistics_req_result__isset; class ThriftHiveMetastore_get_partitions_statistics_req_result { public: - ThriftHiveMetastore_get_partitions_statistics_req_result(const ThriftHiveMetastore_get_partitions_statistics_req_result&); - ThriftHiveMetastore_get_partitions_statistics_req_result& operator=(const ThriftHiveMetastore_get_partitions_statistics_req_result&); ThriftHiveMetastore_get_partitions_statistics_req_result() { } - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() {} + PartitionsStatsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_statistics_req_result__isset __isset; - void __set_success(const PartitionsStatsResult& val); + void __set_success(const PartitionsStatsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_statistics_req_result & rhs) const { @@ -11486,16 +12435,17 @@ class ThriftHiveMetastore_get_partitions_statistics_req_result { typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset { _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset; class ThriftHiveMetastore_get_partitions_statistics_req_presult { public: - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() {} + PartitionsStatsResult* success; NoSuchObjectException o1; MetaException o2; @@ -11508,23 +12458,24 @@ class ThriftHiveMetastore_get_partitions_statistics_req_presult { typedef struct _ThriftHiveMetastore_get_aggr_stats_for_args__isset { _ThriftHiveMetastore_get_aggr_stats_for_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_aggr_stats_for_args__isset; class ThriftHiveMetastore_get_aggr_stats_for_args { public: - ThriftHiveMetastore_get_aggr_stats_for_args(const ThriftHiveMetastore_get_aggr_stats_for_args&); - ThriftHiveMetastore_get_aggr_stats_for_args& operator=(const ThriftHiveMetastore_get_aggr_stats_for_args&); ThriftHiveMetastore_get_aggr_stats_for_args() { } - virtual ~ThriftHiveMetastore_get_aggr_stats_for_args() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_args() throw() {} + PartitionsStatsRequest request; _ThriftHiveMetastore_get_aggr_stats_for_args__isset __isset; - void __set_request(const PartitionsStatsRequest& val); + void __set_request(const PartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_args & rhs) const { @@ -11548,7 +12499,8 @@ class ThriftHiveMetastore_get_aggr_stats_for_pargs { public: - virtual ~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() {} + const PartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -11557,31 +12509,36 @@ class ThriftHiveMetastore_get_aggr_stats_for_pargs { typedef struct _ThriftHiveMetastore_get_aggr_stats_for_result__isset { _ThriftHiveMetastore_get_aggr_stats_for_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_aggr_stats_for_result__isset; class ThriftHiveMetastore_get_aggr_stats_for_result { public: - ThriftHiveMetastore_get_aggr_stats_for_result(const ThriftHiveMetastore_get_aggr_stats_for_result&); - ThriftHiveMetastore_get_aggr_stats_for_result& operator=(const ThriftHiveMetastore_get_aggr_stats_for_result&); ThriftHiveMetastore_get_aggr_stats_for_result() { } - virtual ~ThriftHiveMetastore_get_aggr_stats_for_result() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_result() throw() {} + AggrStats success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_aggr_stats_for_result__isset __isset; - void __set_success(const AggrStats& val); + void __set_success(const AggrStats& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_result & rhs) const { @@ -11606,16 +12563,17 @@ class ThriftHiveMetastore_get_aggr_stats_for_result { typedef struct _ThriftHiveMetastore_get_aggr_stats_for_presult__isset { _ThriftHiveMetastore_get_aggr_stats_for_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_aggr_stats_for_presult__isset; class ThriftHiveMetastore_get_aggr_stats_for_presult { public: - virtual ~ThriftHiveMetastore_get_aggr_stats_for_presult() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() {} + AggrStats* success; NoSuchObjectException o1; MetaException o2; @@ -11628,23 +12586,24 @@ class ThriftHiveMetastore_get_aggr_stats_for_presult { typedef struct _ThriftHiveMetastore_set_aggr_stats_for_args__isset { _ThriftHiveMetastore_set_aggr_stats_for_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_set_aggr_stats_for_args__isset; class ThriftHiveMetastore_set_aggr_stats_for_args { public: - ThriftHiveMetastore_set_aggr_stats_for_args(const ThriftHiveMetastore_set_aggr_stats_for_args&); - ThriftHiveMetastore_set_aggr_stats_for_args& operator=(const ThriftHiveMetastore_set_aggr_stats_for_args&); ThriftHiveMetastore_set_aggr_stats_for_args() { } - virtual ~ThriftHiveMetastore_set_aggr_stats_for_args() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_args() throw() {} + SetPartitionsStatsRequest request; _ThriftHiveMetastore_set_aggr_stats_for_args__isset __isset; - void __set_request(const SetPartitionsStatsRequest& val); + void __set_request(const SetPartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_set_aggr_stats_for_args & rhs) const { @@ -11668,7 +12627,8 @@ class ThriftHiveMetastore_set_aggr_stats_for_pargs { public: - virtual ~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() {} + const SetPartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -11677,22 +12637,21 @@ class ThriftHiveMetastore_set_aggr_stats_for_pargs { typedef struct _ThriftHiveMetastore_set_aggr_stats_for_result__isset { _ThriftHiveMetastore_set_aggr_stats_for_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_set_aggr_stats_for_result__isset; class ThriftHiveMetastore_set_aggr_stats_for_result { public: - ThriftHiveMetastore_set_aggr_stats_for_result(const ThriftHiveMetastore_set_aggr_stats_for_result&); - ThriftHiveMetastore_set_aggr_stats_for_result& operator=(const ThriftHiveMetastore_set_aggr_stats_for_result&); ThriftHiveMetastore_set_aggr_stats_for_result() : success(0) { } - virtual ~ThriftHiveMetastore_set_aggr_stats_for_result() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11701,15 +12660,25 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { _ThriftHiveMetastore_set_aggr_stats_for_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_set_aggr_stats_for_result & rhs) const { @@ -11738,18 +12707,19 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { typedef struct _ThriftHiveMetastore_set_aggr_stats_for_presult__isset { _ThriftHiveMetastore_set_aggr_stats_for_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_set_aggr_stats_for_presult__isset; class ThriftHiveMetastore_set_aggr_stats_for_presult { public: - virtual ~ThriftHiveMetastore_set_aggr_stats_for_presult() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() {} + bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11764,21 +12734,20 @@ class ThriftHiveMetastore_set_aggr_stats_for_presult { typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_args__isset { _ThriftHiveMetastore_delete_partition_column_statistics_args__isset() : db_name(false), tbl_name(false), part_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool part_name; + bool col_name; } _ThriftHiveMetastore_delete_partition_column_statistics_args__isset; class ThriftHiveMetastore_delete_partition_column_statistics_args { public: - ThriftHiveMetastore_delete_partition_column_statistics_args(const ThriftHiveMetastore_delete_partition_column_statistics_args&); - ThriftHiveMetastore_delete_partition_column_statistics_args& operator=(const ThriftHiveMetastore_delete_partition_column_statistics_args&); ThriftHiveMetastore_delete_partition_column_statistics_args() : db_name(), tbl_name(), part_name(), col_name() { } - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -11786,13 +12755,21 @@ class ThriftHiveMetastore_delete_partition_column_statistics_args { _ThriftHiveMetastore_delete_partition_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_delete_partition_column_statistics_args & rhs) const { @@ -11822,7 +12799,8 @@ class ThriftHiveMetastore_delete_partition_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -11834,22 +12812,21 @@ class ThriftHiveMetastore_delete_partition_column_statistics_pargs { typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_result__isset { _ThriftHiveMetastore_delete_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_partition_column_statistics_result__isset; class ThriftHiveMetastore_delete_partition_column_statistics_result { public: - ThriftHiveMetastore_delete_partition_column_statistics_result(const ThriftHiveMetastore_delete_partition_column_statistics_result&); - ThriftHiveMetastore_delete_partition_column_statistics_result& operator=(const ThriftHiveMetastore_delete_partition_column_statistics_result&); ThriftHiveMetastore_delete_partition_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; @@ -11858,15 +12835,25 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { _ThriftHiveMetastore_delete_partition_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_delete_partition_column_statistics_result & rhs) const { @@ -11895,18 +12882,19 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset { _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset; class ThriftHiveMetastore_delete_partition_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -11921,31 +12909,36 @@ class ThriftHiveMetastore_delete_partition_column_statistics_presult { typedef struct _ThriftHiveMetastore_delete_table_column_statistics_args__isset { _ThriftHiveMetastore_delete_table_column_statistics_args__isset() : db_name(false), tbl_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool col_name; } _ThriftHiveMetastore_delete_table_column_statistics_args__isset; class ThriftHiveMetastore_delete_table_column_statistics_args { public: - ThriftHiveMetastore_delete_table_column_statistics_args(const ThriftHiveMetastore_delete_table_column_statistics_args&); - ThriftHiveMetastore_delete_table_column_statistics_args& operator=(const ThriftHiveMetastore_delete_table_column_statistics_args&); ThriftHiveMetastore_delete_table_column_statistics_args() : db_name(), tbl_name(), col_name() { } - virtual ~ThriftHiveMetastore_delete_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string col_name; _ThriftHiveMetastore_delete_table_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_delete_table_column_statistics_args & rhs) const { @@ -11973,7 +12966,8 @@ class ThriftHiveMetastore_delete_table_column_statistics_pargs { public: - virtual ~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() {} + const std::string* db_name; const std::string* tbl_name; const std::string* col_name; @@ -11984,22 +12978,21 @@ class ThriftHiveMetastore_delete_table_column_statistics_pargs { typedef struct _ThriftHiveMetastore_delete_table_column_statistics_result__isset { _ThriftHiveMetastore_delete_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_table_column_statistics_result__isset; class ThriftHiveMetastore_delete_table_column_statistics_result { public: - ThriftHiveMetastore_delete_table_column_statistics_result(const ThriftHiveMetastore_delete_table_column_statistics_result&); - ThriftHiveMetastore_delete_table_column_statistics_result& operator=(const ThriftHiveMetastore_delete_table_column_statistics_result&); ThriftHiveMetastore_delete_table_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_delete_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; @@ -12008,15 +13001,25 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { _ThriftHiveMetastore_delete_table_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_delete_table_column_statistics_result & rhs) const { @@ -12045,18 +13048,19 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { typedef struct _ThriftHiveMetastore_delete_table_column_statistics_presult__isset { _ThriftHiveMetastore_delete_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_table_column_statistics_presult__isset; class ThriftHiveMetastore_delete_table_column_statistics_presult { public: - virtual ~ThriftHiveMetastore_delete_table_column_statistics_presult() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() {} + bool* success; NoSuchObjectException o1; MetaException o2; @@ -12071,23 +13075,24 @@ class ThriftHiveMetastore_delete_table_column_statistics_presult { typedef struct _ThriftHiveMetastore_create_function_args__isset { _ThriftHiveMetastore_create_function_args__isset() : func(false) {} - bool func :1; + bool func; } _ThriftHiveMetastore_create_function_args__isset; class ThriftHiveMetastore_create_function_args { public: - ThriftHiveMetastore_create_function_args(const ThriftHiveMetastore_create_function_args&); - ThriftHiveMetastore_create_function_args& operator=(const ThriftHiveMetastore_create_function_args&); ThriftHiveMetastore_create_function_args() { } - virtual ~ThriftHiveMetastore_create_function_args() throw(); + virtual ~ThriftHiveMetastore_create_function_args() throw() {} + Function func; _ThriftHiveMetastore_create_function_args__isset __isset; - void __set_func(const Function& val); + void __set_func(const Function& val) { + func = val; + } bool operator == (const ThriftHiveMetastore_create_function_args & rhs) const { @@ -12111,7 +13116,8 @@ class ThriftHiveMetastore_create_function_pargs { public: - virtual ~ThriftHiveMetastore_create_function_pargs() throw(); + virtual ~ThriftHiveMetastore_create_function_pargs() throw() {} + const Function* func; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -12120,21 +13126,20 @@ class ThriftHiveMetastore_create_function_pargs { typedef struct _ThriftHiveMetastore_create_function_result__isset { _ThriftHiveMetastore_create_function_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_function_result__isset; class ThriftHiveMetastore_create_function_result { public: - ThriftHiveMetastore_create_function_result(const ThriftHiveMetastore_create_function_result&); - ThriftHiveMetastore_create_function_result& operator=(const ThriftHiveMetastore_create_function_result&); ThriftHiveMetastore_create_function_result() { } - virtual ~ThriftHiveMetastore_create_function_result() throw(); + virtual ~ThriftHiveMetastore_create_function_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -12142,13 +13147,21 @@ class ThriftHiveMetastore_create_function_result { _ThriftHiveMetastore_create_function_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_function_result & rhs) const { @@ -12175,17 +13188,18 @@ class ThriftHiveMetastore_create_function_result { typedef struct _ThriftHiveMetastore_create_function_presult__isset { _ThriftHiveMetastore_create_function_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_function_presult__isset; class ThriftHiveMetastore_create_function_presult { public: - virtual ~ThriftHiveMetastore_create_function_presult() throw(); + virtual ~ThriftHiveMetastore_create_function_presult() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -12199,27 +13213,30 @@ class ThriftHiveMetastore_create_function_presult { typedef struct _ThriftHiveMetastore_drop_function_args__isset { _ThriftHiveMetastore_drop_function_args__isset() : dbName(false), funcName(false) {} - bool dbName :1; - bool funcName :1; + bool dbName; + bool funcName; } _ThriftHiveMetastore_drop_function_args__isset; class ThriftHiveMetastore_drop_function_args { public: - ThriftHiveMetastore_drop_function_args(const ThriftHiveMetastore_drop_function_args&); - ThriftHiveMetastore_drop_function_args& operator=(const ThriftHiveMetastore_drop_function_args&); ThriftHiveMetastore_drop_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_drop_function_args() throw(); + virtual ~ThriftHiveMetastore_drop_function_args() throw() {} + std::string dbName; std::string funcName; _ThriftHiveMetastore_drop_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } bool operator == (const ThriftHiveMetastore_drop_function_args & rhs) const { @@ -12245,7 +13262,8 @@ class ThriftHiveMetastore_drop_function_pargs { public: - virtual ~ThriftHiveMetastore_drop_function_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_function_pargs() throw() {} + const std::string* dbName; const std::string* funcName; @@ -12255,27 +13273,30 @@ class ThriftHiveMetastore_drop_function_pargs { typedef struct _ThriftHiveMetastore_drop_function_result__isset { _ThriftHiveMetastore_drop_function_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_function_result__isset; class ThriftHiveMetastore_drop_function_result { public: - ThriftHiveMetastore_drop_function_result(const ThriftHiveMetastore_drop_function_result&); - ThriftHiveMetastore_drop_function_result& operator=(const ThriftHiveMetastore_drop_function_result&); ThriftHiveMetastore_drop_function_result() { } - virtual ~ThriftHiveMetastore_drop_function_result() throw(); + virtual ~ThriftHiveMetastore_drop_function_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_function_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_function_result & rhs) const { @@ -12298,15 +13319,16 @@ class ThriftHiveMetastore_drop_function_result { typedef struct _ThriftHiveMetastore_drop_function_presult__isset { _ThriftHiveMetastore_drop_function_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_function_presult__isset; class ThriftHiveMetastore_drop_function_presult { public: - virtual ~ThriftHiveMetastore_drop_function_presult() throw(); + virtual ~ThriftHiveMetastore_drop_function_presult() throw() {} + NoSuchObjectException o1; MetaException o3; @@ -12318,31 +13340,36 @@ class ThriftHiveMetastore_drop_function_presult { typedef struct _ThriftHiveMetastore_alter_function_args__isset { _ThriftHiveMetastore_alter_function_args__isset() : dbName(false), funcName(false), newFunc(false) {} - bool dbName :1; - bool funcName :1; - bool newFunc :1; + bool dbName; + bool funcName; + bool newFunc; } _ThriftHiveMetastore_alter_function_args__isset; class ThriftHiveMetastore_alter_function_args { public: - ThriftHiveMetastore_alter_function_args(const ThriftHiveMetastore_alter_function_args&); - ThriftHiveMetastore_alter_function_args& operator=(const ThriftHiveMetastore_alter_function_args&); ThriftHiveMetastore_alter_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_alter_function_args() throw(); + virtual ~ThriftHiveMetastore_alter_function_args() throw() {} + std::string dbName; std::string funcName; Function newFunc; _ThriftHiveMetastore_alter_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } - void __set_newFunc(const Function& val); + void __set_newFunc(const Function& val) { + newFunc = val; + } bool operator == (const ThriftHiveMetastore_alter_function_args & rhs) const { @@ -12370,7 +13397,8 @@ class ThriftHiveMetastore_alter_function_pargs { public: - virtual ~ThriftHiveMetastore_alter_function_pargs() throw(); + virtual ~ThriftHiveMetastore_alter_function_pargs() throw() {} + const std::string* dbName; const std::string* funcName; const Function* newFunc; @@ -12381,27 +13409,30 @@ class ThriftHiveMetastore_alter_function_pargs { typedef struct _ThriftHiveMetastore_alter_function_result__isset { _ThriftHiveMetastore_alter_function_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_function_result__isset; class ThriftHiveMetastore_alter_function_result { public: - ThriftHiveMetastore_alter_function_result(const ThriftHiveMetastore_alter_function_result&); - ThriftHiveMetastore_alter_function_result& operator=(const ThriftHiveMetastore_alter_function_result&); ThriftHiveMetastore_alter_function_result() { } - virtual ~ThriftHiveMetastore_alter_function_result() throw(); + virtual ~ThriftHiveMetastore_alter_function_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_function_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_function_result & rhs) const { @@ -12424,15 +13455,16 @@ class ThriftHiveMetastore_alter_function_result { typedef struct _ThriftHiveMetastore_alter_function_presult__isset { _ThriftHiveMetastore_alter_function_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_function_presult__isset; class ThriftHiveMetastore_alter_function_presult { public: - virtual ~ThriftHiveMetastore_alter_function_presult() throw(); + virtual ~ThriftHiveMetastore_alter_function_presult() throw() {} + InvalidOperationException o1; MetaException o2; @@ -12444,27 +13476,30 @@ class ThriftHiveMetastore_alter_function_presult { typedef struct _ThriftHiveMetastore_get_functions_args__isset { _ThriftHiveMetastore_get_functions_args__isset() : dbName(false), pattern(false) {} - bool dbName :1; - bool pattern :1; + bool dbName; + bool pattern; } _ThriftHiveMetastore_get_functions_args__isset; class ThriftHiveMetastore_get_functions_args { public: - ThriftHiveMetastore_get_functions_args(const ThriftHiveMetastore_get_functions_args&); - ThriftHiveMetastore_get_functions_args& operator=(const ThriftHiveMetastore_get_functions_args&); ThriftHiveMetastore_get_functions_args() : dbName(), pattern() { } - virtual ~ThriftHiveMetastore_get_functions_args() throw(); + virtual ~ThriftHiveMetastore_get_functions_args() throw() {} + std::string dbName; std::string pattern; _ThriftHiveMetastore_get_functions_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_functions_args & rhs) const { @@ -12490,7 +13525,8 @@ class ThriftHiveMetastore_get_functions_pargs { public: - virtual ~ThriftHiveMetastore_get_functions_pargs() throw(); + virtual ~ThriftHiveMetastore_get_functions_pargs() throw() {} + const std::string* dbName; const std::string* pattern; @@ -12500,27 +13536,30 @@ class ThriftHiveMetastore_get_functions_pargs { typedef struct _ThriftHiveMetastore_get_functions_result__isset { _ThriftHiveMetastore_get_functions_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_functions_result__isset; class ThriftHiveMetastore_get_functions_result { public: - ThriftHiveMetastore_get_functions_result(const ThriftHiveMetastore_get_functions_result&); - ThriftHiveMetastore_get_functions_result& operator=(const ThriftHiveMetastore_get_functions_result&); ThriftHiveMetastore_get_functions_result() { } - virtual ~ThriftHiveMetastore_get_functions_result() throw(); + virtual ~ThriftHiveMetastore_get_functions_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_functions_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_functions_result & rhs) const { @@ -12543,15 +13582,16 @@ class ThriftHiveMetastore_get_functions_result { typedef struct _ThriftHiveMetastore_get_functions_presult__isset { _ThriftHiveMetastore_get_functions_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_functions_presult__isset; class ThriftHiveMetastore_get_functions_presult { public: - virtual ~ThriftHiveMetastore_get_functions_presult() throw(); + virtual ~ThriftHiveMetastore_get_functions_presult() throw() {} + std::vector * success; MetaException o1; @@ -12563,27 +13603,30 @@ class ThriftHiveMetastore_get_functions_presult { typedef struct _ThriftHiveMetastore_get_function_args__isset { _ThriftHiveMetastore_get_function_args__isset() : dbName(false), funcName(false) {} - bool dbName :1; - bool funcName :1; + bool dbName; + bool funcName; } _ThriftHiveMetastore_get_function_args__isset; class ThriftHiveMetastore_get_function_args { public: - ThriftHiveMetastore_get_function_args(const ThriftHiveMetastore_get_function_args&); - ThriftHiveMetastore_get_function_args& operator=(const ThriftHiveMetastore_get_function_args&); ThriftHiveMetastore_get_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_get_function_args() throw(); + virtual ~ThriftHiveMetastore_get_function_args() throw() {} + std::string dbName; std::string funcName; _ThriftHiveMetastore_get_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } bool operator == (const ThriftHiveMetastore_get_function_args & rhs) const { @@ -12609,7 +13652,8 @@ class ThriftHiveMetastore_get_function_pargs { public: - virtual ~ThriftHiveMetastore_get_function_pargs() throw(); + virtual ~ThriftHiveMetastore_get_function_pargs() throw() {} + const std::string* dbName; const std::string* funcName; @@ -12619,31 +13663,36 @@ class ThriftHiveMetastore_get_function_pargs { typedef struct _ThriftHiveMetastore_get_function_result__isset { _ThriftHiveMetastore_get_function_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_function_result__isset; class ThriftHiveMetastore_get_function_result { public: - ThriftHiveMetastore_get_function_result(const ThriftHiveMetastore_get_function_result&); - ThriftHiveMetastore_get_function_result& operator=(const ThriftHiveMetastore_get_function_result&); ThriftHiveMetastore_get_function_result() { } - virtual ~ThriftHiveMetastore_get_function_result() throw(); + virtual ~ThriftHiveMetastore_get_function_result() throw() {} + Function success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_function_result__isset __isset; - void __set_success(const Function& val); + void __set_success(const Function& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_function_result & rhs) const { @@ -12668,16 +13717,17 @@ class ThriftHiveMetastore_get_function_result { typedef struct _ThriftHiveMetastore_get_function_presult__isset { _ThriftHiveMetastore_get_function_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_function_presult__isset; class ThriftHiveMetastore_get_function_presult { public: - virtual ~ThriftHiveMetastore_get_function_presult() throw(); + virtual ~ThriftHiveMetastore_get_function_presult() throw() {} + Function* success; MetaException o1; NoSuchObjectException o2; @@ -12692,12 +13742,11 @@ class ThriftHiveMetastore_get_function_presult { class ThriftHiveMetastore_get_all_functions_args { public: - ThriftHiveMetastore_get_all_functions_args(const ThriftHiveMetastore_get_all_functions_args&); - ThriftHiveMetastore_get_all_functions_args& operator=(const ThriftHiveMetastore_get_all_functions_args&); ThriftHiveMetastore_get_all_functions_args() { } - virtual ~ThriftHiveMetastore_get_all_functions_args() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_all_functions_args & /* rhs */) const { @@ -12719,7 +13768,8 @@ class ThriftHiveMetastore_get_all_functions_pargs { public: - virtual ~ThriftHiveMetastore_get_all_functions_pargs() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -12727,27 +13777,30 @@ class ThriftHiveMetastore_get_all_functions_pargs { typedef struct _ThriftHiveMetastore_get_all_functions_result__isset { _ThriftHiveMetastore_get_all_functions_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_functions_result__isset; class ThriftHiveMetastore_get_all_functions_result { public: - ThriftHiveMetastore_get_all_functions_result(const ThriftHiveMetastore_get_all_functions_result&); - ThriftHiveMetastore_get_all_functions_result& operator=(const ThriftHiveMetastore_get_all_functions_result&); ThriftHiveMetastore_get_all_functions_result() { } - virtual ~ThriftHiveMetastore_get_all_functions_result() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_result() throw() {} + GetAllFunctionsResponse success; MetaException o1; _ThriftHiveMetastore_get_all_functions_result__isset __isset; - void __set_success(const GetAllFunctionsResponse& val); + void __set_success(const GetAllFunctionsResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_functions_result & rhs) const { @@ -12770,15 +13823,16 @@ class ThriftHiveMetastore_get_all_functions_result { typedef struct _ThriftHiveMetastore_get_all_functions_presult__isset { _ThriftHiveMetastore_get_all_functions_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_functions_presult__isset; class ThriftHiveMetastore_get_all_functions_presult { public: - virtual ~ThriftHiveMetastore_get_all_functions_presult() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_presult() throw() {} + GetAllFunctionsResponse* success; MetaException o1; @@ -12790,23 +13844,24 @@ class ThriftHiveMetastore_get_all_functions_presult { typedef struct _ThriftHiveMetastore_create_role_args__isset { _ThriftHiveMetastore_create_role_args__isset() : role(false) {} - bool role :1; + bool role; } _ThriftHiveMetastore_create_role_args__isset; class ThriftHiveMetastore_create_role_args { public: - ThriftHiveMetastore_create_role_args(const ThriftHiveMetastore_create_role_args&); - ThriftHiveMetastore_create_role_args& operator=(const ThriftHiveMetastore_create_role_args&); ThriftHiveMetastore_create_role_args() { } - virtual ~ThriftHiveMetastore_create_role_args() throw(); + virtual ~ThriftHiveMetastore_create_role_args() throw() {} + Role role; _ThriftHiveMetastore_create_role_args__isset __isset; - void __set_role(const Role& val); + void __set_role(const Role& val) { + role = val; + } bool operator == (const ThriftHiveMetastore_create_role_args & rhs) const { @@ -12830,7 +13885,8 @@ class ThriftHiveMetastore_create_role_pargs { public: - virtual ~ThriftHiveMetastore_create_role_pargs() throw(); + virtual ~ThriftHiveMetastore_create_role_pargs() throw() {} + const Role* role; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -12839,27 +13895,30 @@ class ThriftHiveMetastore_create_role_pargs { typedef struct _ThriftHiveMetastore_create_role_result__isset { _ThriftHiveMetastore_create_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_create_role_result__isset; class ThriftHiveMetastore_create_role_result { public: - ThriftHiveMetastore_create_role_result(const ThriftHiveMetastore_create_role_result&); - ThriftHiveMetastore_create_role_result& operator=(const ThriftHiveMetastore_create_role_result&); ThriftHiveMetastore_create_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_create_role_result() throw(); + virtual ~ThriftHiveMetastore_create_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_create_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_create_role_result & rhs) const { @@ -12882,15 +13941,16 @@ class ThriftHiveMetastore_create_role_result { typedef struct _ThriftHiveMetastore_create_role_presult__isset { _ThriftHiveMetastore_create_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_create_role_presult__isset; class ThriftHiveMetastore_create_role_presult { public: - virtual ~ThriftHiveMetastore_create_role_presult() throw(); + virtual ~ThriftHiveMetastore_create_role_presult() throw() {} + bool* success; MetaException o1; @@ -12902,23 +13962,24 @@ class ThriftHiveMetastore_create_role_presult { typedef struct _ThriftHiveMetastore_drop_role_args__isset { _ThriftHiveMetastore_drop_role_args__isset() : role_name(false) {} - bool role_name :1; + bool role_name; } _ThriftHiveMetastore_drop_role_args__isset; class ThriftHiveMetastore_drop_role_args { public: - ThriftHiveMetastore_drop_role_args(const ThriftHiveMetastore_drop_role_args&); - ThriftHiveMetastore_drop_role_args& operator=(const ThriftHiveMetastore_drop_role_args&); ThriftHiveMetastore_drop_role_args() : role_name() { } - virtual ~ThriftHiveMetastore_drop_role_args() throw(); + virtual ~ThriftHiveMetastore_drop_role_args() throw() {} + std::string role_name; _ThriftHiveMetastore_drop_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } bool operator == (const ThriftHiveMetastore_drop_role_args & rhs) const { @@ -12942,7 +14003,8 @@ class ThriftHiveMetastore_drop_role_pargs { public: - virtual ~ThriftHiveMetastore_drop_role_pargs() throw(); + virtual ~ThriftHiveMetastore_drop_role_pargs() throw() {} + const std::string* role_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -12951,27 +14013,30 @@ class ThriftHiveMetastore_drop_role_pargs { typedef struct _ThriftHiveMetastore_drop_role_result__isset { _ThriftHiveMetastore_drop_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_drop_role_result__isset; class ThriftHiveMetastore_drop_role_result { public: - ThriftHiveMetastore_drop_role_result(const ThriftHiveMetastore_drop_role_result&); - ThriftHiveMetastore_drop_role_result& operator=(const ThriftHiveMetastore_drop_role_result&); ThriftHiveMetastore_drop_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_role_result() throw(); + virtual ~ThriftHiveMetastore_drop_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_drop_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_drop_role_result & rhs) const { @@ -12994,15 +14059,16 @@ class ThriftHiveMetastore_drop_role_result { typedef struct _ThriftHiveMetastore_drop_role_presult__isset { _ThriftHiveMetastore_drop_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_drop_role_presult__isset; class ThriftHiveMetastore_drop_role_presult { public: - virtual ~ThriftHiveMetastore_drop_role_presult() throw(); + virtual ~ThriftHiveMetastore_drop_role_presult() throw() {} + bool* success; MetaException o1; @@ -13016,12 +14082,11 @@ class ThriftHiveMetastore_drop_role_presult { class ThriftHiveMetastore_get_role_names_args { public: - ThriftHiveMetastore_get_role_names_args(const ThriftHiveMetastore_get_role_names_args&); - ThriftHiveMetastore_get_role_names_args& operator=(const ThriftHiveMetastore_get_role_names_args&); ThriftHiveMetastore_get_role_names_args() { } - virtual ~ThriftHiveMetastore_get_role_names_args() throw(); + virtual ~ThriftHiveMetastore_get_role_names_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_role_names_args & /* rhs */) const { @@ -13043,7 +14108,8 @@ class ThriftHiveMetastore_get_role_names_pargs { public: - virtual ~ThriftHiveMetastore_get_role_names_pargs() throw(); + virtual ~ThriftHiveMetastore_get_role_names_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -13051,27 +14117,30 @@ class ThriftHiveMetastore_get_role_names_pargs { typedef struct _ThriftHiveMetastore_get_role_names_result__isset { _ThriftHiveMetastore_get_role_names_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_names_result__isset; class ThriftHiveMetastore_get_role_names_result { public: - ThriftHiveMetastore_get_role_names_result(const ThriftHiveMetastore_get_role_names_result&); - ThriftHiveMetastore_get_role_names_result& operator=(const ThriftHiveMetastore_get_role_names_result&); ThriftHiveMetastore_get_role_names_result() { } - virtual ~ThriftHiveMetastore_get_role_names_result() throw(); + virtual ~ThriftHiveMetastore_get_role_names_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_role_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_role_names_result & rhs) const { @@ -13094,15 +14163,16 @@ class ThriftHiveMetastore_get_role_names_result { typedef struct _ThriftHiveMetastore_get_role_names_presult__isset { _ThriftHiveMetastore_get_role_names_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_names_presult__isset; class ThriftHiveMetastore_get_role_names_presult { public: - virtual ~ThriftHiveMetastore_get_role_names_presult() throw(); + virtual ~ThriftHiveMetastore_get_role_names_presult() throw() {} + std::vector * success; MetaException o1; @@ -13114,23 +14184,22 @@ class ThriftHiveMetastore_get_role_names_presult { typedef struct _ThriftHiveMetastore_grant_role_args__isset { _ThriftHiveMetastore_grant_role_args__isset() : role_name(false), principal_name(false), principal_type(false), grantor(false), grantorType(false), grant_option(false) {} - bool role_name :1; - bool principal_name :1; - bool principal_type :1; - bool grantor :1; - bool grantorType :1; - bool grant_option :1; + bool role_name; + bool principal_name; + bool principal_type; + bool grantor; + bool grantorType; + bool grant_option; } _ThriftHiveMetastore_grant_role_args__isset; class ThriftHiveMetastore_grant_role_args { public: - ThriftHiveMetastore_grant_role_args(const ThriftHiveMetastore_grant_role_args&); - ThriftHiveMetastore_grant_role_args& operator=(const ThriftHiveMetastore_grant_role_args&); ThriftHiveMetastore_grant_role_args() : role_name(), principal_name(), principal_type((PrincipalType::type)0), grantor(), grantorType((PrincipalType::type)0), grant_option(0) { } - virtual ~ThriftHiveMetastore_grant_role_args() throw(); + virtual ~ThriftHiveMetastore_grant_role_args() throw() {} + std::string role_name; std::string principal_name; PrincipalType::type principal_type; @@ -13140,17 +14209,29 @@ class ThriftHiveMetastore_grant_role_args { _ThriftHiveMetastore_grant_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } - void __set_grant_option(const bool val); + void __set_grant_option(const bool val) { + grant_option = val; + } bool operator == (const ThriftHiveMetastore_grant_role_args & rhs) const { @@ -13184,7 +14265,8 @@ class ThriftHiveMetastore_grant_role_pargs { public: - virtual ~ThriftHiveMetastore_grant_role_pargs() throw(); + virtual ~ThriftHiveMetastore_grant_role_pargs() throw() {} + const std::string* role_name; const std::string* principal_name; const PrincipalType::type* principal_type; @@ -13198,27 +14280,30 @@ class ThriftHiveMetastore_grant_role_pargs { typedef struct _ThriftHiveMetastore_grant_role_result__isset { _ThriftHiveMetastore_grant_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_role_result__isset; class ThriftHiveMetastore_grant_role_result { public: - ThriftHiveMetastore_grant_role_result(const ThriftHiveMetastore_grant_role_result&); - ThriftHiveMetastore_grant_role_result& operator=(const ThriftHiveMetastore_grant_role_result&); ThriftHiveMetastore_grant_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_grant_role_result() throw(); + virtual ~ThriftHiveMetastore_grant_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_grant_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_role_result & rhs) const { @@ -13241,15 +14326,16 @@ class ThriftHiveMetastore_grant_role_result { typedef struct _ThriftHiveMetastore_grant_role_presult__isset { _ThriftHiveMetastore_grant_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_role_presult__isset; class ThriftHiveMetastore_grant_role_presult { public: - virtual ~ThriftHiveMetastore_grant_role_presult() throw(); + virtual ~ThriftHiveMetastore_grant_role_presult() throw() {} + bool* success; MetaException o1; @@ -13261,31 +14347,36 @@ class ThriftHiveMetastore_grant_role_presult { typedef struct _ThriftHiveMetastore_revoke_role_args__isset { _ThriftHiveMetastore_revoke_role_args__isset() : role_name(false), principal_name(false), principal_type(false) {} - bool role_name :1; - bool principal_name :1; - bool principal_type :1; + bool role_name; + bool principal_name; + bool principal_type; } _ThriftHiveMetastore_revoke_role_args__isset; class ThriftHiveMetastore_revoke_role_args { public: - ThriftHiveMetastore_revoke_role_args(const ThriftHiveMetastore_revoke_role_args&); - ThriftHiveMetastore_revoke_role_args& operator=(const ThriftHiveMetastore_revoke_role_args&); ThriftHiveMetastore_revoke_role_args() : role_name(), principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_revoke_role_args() throw(); + virtual ~ThriftHiveMetastore_revoke_role_args() throw() {} + std::string role_name; std::string principal_name; PrincipalType::type principal_type; _ThriftHiveMetastore_revoke_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const ThriftHiveMetastore_revoke_role_args & rhs) const { @@ -13313,7 +14404,8 @@ class ThriftHiveMetastore_revoke_role_pargs { public: - virtual ~ThriftHiveMetastore_revoke_role_pargs() throw(); + virtual ~ThriftHiveMetastore_revoke_role_pargs() throw() {} + const std::string* role_name; const std::string* principal_name; const PrincipalType::type* principal_type; @@ -13324,27 +14416,30 @@ class ThriftHiveMetastore_revoke_role_pargs { typedef struct _ThriftHiveMetastore_revoke_role_result__isset { _ThriftHiveMetastore_revoke_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_role_result__isset; class ThriftHiveMetastore_revoke_role_result { public: - ThriftHiveMetastore_revoke_role_result(const ThriftHiveMetastore_revoke_role_result&); - ThriftHiveMetastore_revoke_role_result& operator=(const ThriftHiveMetastore_revoke_role_result&); ThriftHiveMetastore_revoke_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_revoke_role_result() throw(); + virtual ~ThriftHiveMetastore_revoke_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_revoke_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_revoke_role_result & rhs) const { @@ -13367,15 +14462,16 @@ class ThriftHiveMetastore_revoke_role_result { typedef struct _ThriftHiveMetastore_revoke_role_presult__isset { _ThriftHiveMetastore_revoke_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_role_presult__isset; class ThriftHiveMetastore_revoke_role_presult { public: - virtual ~ThriftHiveMetastore_revoke_role_presult() throw(); + virtual ~ThriftHiveMetastore_revoke_role_presult() throw() {} + bool* success; MetaException o1; @@ -13387,27 +14483,30 @@ class ThriftHiveMetastore_revoke_role_presult { typedef struct _ThriftHiveMetastore_list_roles_args__isset { _ThriftHiveMetastore_list_roles_args__isset() : principal_name(false), principal_type(false) {} - bool principal_name :1; - bool principal_type :1; + bool principal_name; + bool principal_type; } _ThriftHiveMetastore_list_roles_args__isset; class ThriftHiveMetastore_list_roles_args { public: - ThriftHiveMetastore_list_roles_args(const ThriftHiveMetastore_list_roles_args&); - ThriftHiveMetastore_list_roles_args& operator=(const ThriftHiveMetastore_list_roles_args&); ThriftHiveMetastore_list_roles_args() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_list_roles_args() throw(); + virtual ~ThriftHiveMetastore_list_roles_args() throw() {} + std::string principal_name; PrincipalType::type principal_type; _ThriftHiveMetastore_list_roles_args__isset __isset; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const ThriftHiveMetastore_list_roles_args & rhs) const { @@ -13433,7 +14532,8 @@ class ThriftHiveMetastore_list_roles_pargs { public: - virtual ~ThriftHiveMetastore_list_roles_pargs() throw(); + virtual ~ThriftHiveMetastore_list_roles_pargs() throw() {} + const std::string* principal_name; const PrincipalType::type* principal_type; @@ -13443,27 +14543,30 @@ class ThriftHiveMetastore_list_roles_pargs { typedef struct _ThriftHiveMetastore_list_roles_result__isset { _ThriftHiveMetastore_list_roles_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_roles_result__isset; class ThriftHiveMetastore_list_roles_result { public: - ThriftHiveMetastore_list_roles_result(const ThriftHiveMetastore_list_roles_result&); - ThriftHiveMetastore_list_roles_result& operator=(const ThriftHiveMetastore_list_roles_result&); ThriftHiveMetastore_list_roles_result() { } - virtual ~ThriftHiveMetastore_list_roles_result() throw(); + virtual ~ThriftHiveMetastore_list_roles_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_list_roles_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_list_roles_result & rhs) const { @@ -13486,15 +14589,16 @@ class ThriftHiveMetastore_list_roles_result { typedef struct _ThriftHiveMetastore_list_roles_presult__isset { _ThriftHiveMetastore_list_roles_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_roles_presult__isset; class ThriftHiveMetastore_list_roles_presult { public: - virtual ~ThriftHiveMetastore_list_roles_presult() throw(); + virtual ~ThriftHiveMetastore_list_roles_presult() throw() {} + std::vector * success; MetaException o1; @@ -13506,23 +14610,24 @@ class ThriftHiveMetastore_list_roles_presult { typedef struct _ThriftHiveMetastore_grant_revoke_role_args__isset { _ThriftHiveMetastore_grant_revoke_role_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_grant_revoke_role_args__isset; class ThriftHiveMetastore_grant_revoke_role_args { public: - ThriftHiveMetastore_grant_revoke_role_args(const ThriftHiveMetastore_grant_revoke_role_args&); - ThriftHiveMetastore_grant_revoke_role_args& operator=(const ThriftHiveMetastore_grant_revoke_role_args&); ThriftHiveMetastore_grant_revoke_role_args() { } - virtual ~ThriftHiveMetastore_grant_revoke_role_args() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_args() throw() {} + GrantRevokeRoleRequest request; _ThriftHiveMetastore_grant_revoke_role_args__isset __isset; - void __set_request(const GrantRevokeRoleRequest& val); + void __set_request(const GrantRevokeRoleRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_role_args & rhs) const { @@ -13546,7 +14651,8 @@ class ThriftHiveMetastore_grant_revoke_role_pargs { public: - virtual ~ThriftHiveMetastore_grant_revoke_role_pargs() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_pargs() throw() {} + const GrantRevokeRoleRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -13555,27 +14661,30 @@ class ThriftHiveMetastore_grant_revoke_role_pargs { typedef struct _ThriftHiveMetastore_grant_revoke_role_result__isset { _ThriftHiveMetastore_grant_revoke_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_role_result__isset; class ThriftHiveMetastore_grant_revoke_role_result { public: - ThriftHiveMetastore_grant_revoke_role_result(const ThriftHiveMetastore_grant_revoke_role_result&); - ThriftHiveMetastore_grant_revoke_role_result& operator=(const ThriftHiveMetastore_grant_revoke_role_result&); ThriftHiveMetastore_grant_revoke_role_result() { } - virtual ~ThriftHiveMetastore_grant_revoke_role_result() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_result() throw() {} + GrantRevokeRoleResponse success; MetaException o1; _ThriftHiveMetastore_grant_revoke_role_result__isset __isset; - void __set_success(const GrantRevokeRoleResponse& val); + void __set_success(const GrantRevokeRoleResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_role_result & rhs) const { @@ -13598,15 +14707,16 @@ class ThriftHiveMetastore_grant_revoke_role_result { typedef struct _ThriftHiveMetastore_grant_revoke_role_presult__isset { _ThriftHiveMetastore_grant_revoke_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_role_presult__isset; class ThriftHiveMetastore_grant_revoke_role_presult { public: - virtual ~ThriftHiveMetastore_grant_revoke_role_presult() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_presult() throw() {} + GrantRevokeRoleResponse* success; MetaException o1; @@ -13618,23 +14728,24 @@ class ThriftHiveMetastore_grant_revoke_role_presult { typedef struct _ThriftHiveMetastore_get_principals_in_role_args__isset { _ThriftHiveMetastore_get_principals_in_role_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_principals_in_role_args__isset; class ThriftHiveMetastore_get_principals_in_role_args { public: - ThriftHiveMetastore_get_principals_in_role_args(const ThriftHiveMetastore_get_principals_in_role_args&); - ThriftHiveMetastore_get_principals_in_role_args& operator=(const ThriftHiveMetastore_get_principals_in_role_args&); ThriftHiveMetastore_get_principals_in_role_args() { } - virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw() {} + GetPrincipalsInRoleRequest request; _ThriftHiveMetastore_get_principals_in_role_args__isset __isset; - void __set_request(const GetPrincipalsInRoleRequest& val); + void __set_request(const GetPrincipalsInRoleRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_principals_in_role_args & rhs) const { @@ -13658,7 +14769,8 @@ class ThriftHiveMetastore_get_principals_in_role_pargs { public: - virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw() {} + const GetPrincipalsInRoleRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -13667,27 +14779,30 @@ class ThriftHiveMetastore_get_principals_in_role_pargs { typedef struct _ThriftHiveMetastore_get_principals_in_role_result__isset { _ThriftHiveMetastore_get_principals_in_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_principals_in_role_result__isset; class ThriftHiveMetastore_get_principals_in_role_result { public: - ThriftHiveMetastore_get_principals_in_role_result(const ThriftHiveMetastore_get_principals_in_role_result&); - ThriftHiveMetastore_get_principals_in_role_result& operator=(const ThriftHiveMetastore_get_principals_in_role_result&); ThriftHiveMetastore_get_principals_in_role_result() { } - virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw() {} + GetPrincipalsInRoleResponse success; MetaException o1; _ThriftHiveMetastore_get_principals_in_role_result__isset __isset; - void __set_success(const GetPrincipalsInRoleResponse& val); + void __set_success(const GetPrincipalsInRoleResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_principals_in_role_result & rhs) const { @@ -13710,15 +14825,16 @@ class ThriftHiveMetastore_get_principals_in_role_result { typedef struct _ThriftHiveMetastore_get_principals_in_role_presult__isset { _ThriftHiveMetastore_get_principals_in_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_principals_in_role_presult__isset; class ThriftHiveMetastore_get_principals_in_role_presult { public: - virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw() {} + GetPrincipalsInRoleResponse* success; MetaException o1; @@ -13730,23 +14846,24 @@ class ThriftHiveMetastore_get_principals_in_role_presult { typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_args__isset { _ThriftHiveMetastore_get_role_grants_for_principal_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_role_grants_for_principal_args__isset; class ThriftHiveMetastore_get_role_grants_for_principal_args { public: - ThriftHiveMetastore_get_role_grants_for_principal_args(const ThriftHiveMetastore_get_role_grants_for_principal_args&); - ThriftHiveMetastore_get_role_grants_for_principal_args& operator=(const ThriftHiveMetastore_get_role_grants_for_principal_args&); ThriftHiveMetastore_get_role_grants_for_principal_args() { } - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_args() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_args() throw() {} + GetRoleGrantsForPrincipalRequest request; _ThriftHiveMetastore_get_role_grants_for_principal_args__isset __isset; - void __set_request(const GetRoleGrantsForPrincipalRequest& val); + void __set_request(const GetRoleGrantsForPrincipalRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_args & rhs) const { @@ -13770,7 +14887,8 @@ class ThriftHiveMetastore_get_role_grants_for_principal_pargs { public: - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw() {} + const GetRoleGrantsForPrincipalRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -13779,27 +14897,30 @@ class ThriftHiveMetastore_get_role_grants_for_principal_pargs { typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_result__isset { _ThriftHiveMetastore_get_role_grants_for_principal_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_grants_for_principal_result__isset; class ThriftHiveMetastore_get_role_grants_for_principal_result { public: - ThriftHiveMetastore_get_role_grants_for_principal_result(const ThriftHiveMetastore_get_role_grants_for_principal_result&); - ThriftHiveMetastore_get_role_grants_for_principal_result& operator=(const ThriftHiveMetastore_get_role_grants_for_principal_result&); ThriftHiveMetastore_get_role_grants_for_principal_result() { } - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_result() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_result() throw() {} + GetRoleGrantsForPrincipalResponse success; MetaException o1; _ThriftHiveMetastore_get_role_grants_for_principal_result__isset __isset; - void __set_success(const GetRoleGrantsForPrincipalResponse& val); + void __set_success(const GetRoleGrantsForPrincipalResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_result & rhs) const { @@ -13822,15 +14943,16 @@ class ThriftHiveMetastore_get_role_grants_for_principal_result { typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset { _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset; class ThriftHiveMetastore_get_role_grants_for_principal_presult { public: - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw() {} + GetRoleGrantsForPrincipalResponse* success; MetaException o1; @@ -13842,31 +14964,36 @@ class ThriftHiveMetastore_get_role_grants_for_principal_presult { typedef struct _ThriftHiveMetastore_get_privilege_set_args__isset { _ThriftHiveMetastore_get_privilege_set_args__isset() : hiveObject(false), user_name(false), group_names(false) {} - bool hiveObject :1; - bool user_name :1; - bool group_names :1; + bool hiveObject; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_privilege_set_args__isset; class ThriftHiveMetastore_get_privilege_set_args { public: - ThriftHiveMetastore_get_privilege_set_args(const ThriftHiveMetastore_get_privilege_set_args&); - ThriftHiveMetastore_get_privilege_set_args& operator=(const ThriftHiveMetastore_get_privilege_set_args&); ThriftHiveMetastore_get_privilege_set_args() : user_name() { } - virtual ~ThriftHiveMetastore_get_privilege_set_args() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_args() throw() {} + HiveObjectRef hiveObject; std::string user_name; std::vector group_names; _ThriftHiveMetastore_get_privilege_set_args__isset __isset; - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_privilege_set_args & rhs) const { @@ -13894,7 +15021,8 @@ class ThriftHiveMetastore_get_privilege_set_pargs { public: - virtual ~ThriftHiveMetastore_get_privilege_set_pargs() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_pargs() throw() {} + const HiveObjectRef* hiveObject; const std::string* user_name; const std::vector * group_names; @@ -13905,27 +15033,30 @@ class ThriftHiveMetastore_get_privilege_set_pargs { typedef struct _ThriftHiveMetastore_get_privilege_set_result__isset { _ThriftHiveMetastore_get_privilege_set_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_privilege_set_result__isset; class ThriftHiveMetastore_get_privilege_set_result { public: - ThriftHiveMetastore_get_privilege_set_result(const ThriftHiveMetastore_get_privilege_set_result&); - ThriftHiveMetastore_get_privilege_set_result& operator=(const ThriftHiveMetastore_get_privilege_set_result&); ThriftHiveMetastore_get_privilege_set_result() { } - virtual ~ThriftHiveMetastore_get_privilege_set_result() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_result() throw() {} + PrincipalPrivilegeSet success; MetaException o1; _ThriftHiveMetastore_get_privilege_set_result__isset __isset; - void __set_success(const PrincipalPrivilegeSet& val); + void __set_success(const PrincipalPrivilegeSet& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_privilege_set_result & rhs) const { @@ -13948,15 +15079,16 @@ class ThriftHiveMetastore_get_privilege_set_result { typedef struct _ThriftHiveMetastore_get_privilege_set_presult__isset { _ThriftHiveMetastore_get_privilege_set_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_privilege_set_presult__isset; class ThriftHiveMetastore_get_privilege_set_presult { public: - virtual ~ThriftHiveMetastore_get_privilege_set_presult() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_presult() throw() {} + PrincipalPrivilegeSet* success; MetaException o1; @@ -13968,31 +15100,36 @@ class ThriftHiveMetastore_get_privilege_set_presult { typedef struct _ThriftHiveMetastore_list_privileges_args__isset { _ThriftHiveMetastore_list_privileges_args__isset() : principal_name(false), principal_type(false), hiveObject(false) {} - bool principal_name :1; - bool principal_type :1; - bool hiveObject :1; + bool principal_name; + bool principal_type; + bool hiveObject; } _ThriftHiveMetastore_list_privileges_args__isset; class ThriftHiveMetastore_list_privileges_args { public: - ThriftHiveMetastore_list_privileges_args(const ThriftHiveMetastore_list_privileges_args&); - ThriftHiveMetastore_list_privileges_args& operator=(const ThriftHiveMetastore_list_privileges_args&); ThriftHiveMetastore_list_privileges_args() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_list_privileges_args() throw(); + virtual ~ThriftHiveMetastore_list_privileges_args() throw() {} + std::string principal_name; PrincipalType::type principal_type; HiveObjectRef hiveObject; _ThriftHiveMetastore_list_privileges_args__isset __isset; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } bool operator == (const ThriftHiveMetastore_list_privileges_args & rhs) const { @@ -14020,7 +15157,8 @@ class ThriftHiveMetastore_list_privileges_pargs { public: - virtual ~ThriftHiveMetastore_list_privileges_pargs() throw(); + virtual ~ThriftHiveMetastore_list_privileges_pargs() throw() {} + const std::string* principal_name; const PrincipalType::type* principal_type; const HiveObjectRef* hiveObject; @@ -14031,27 +15169,30 @@ class ThriftHiveMetastore_list_privileges_pargs { typedef struct _ThriftHiveMetastore_list_privileges_result__isset { _ThriftHiveMetastore_list_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_privileges_result__isset; class ThriftHiveMetastore_list_privileges_result { public: - ThriftHiveMetastore_list_privileges_result(const ThriftHiveMetastore_list_privileges_result&); - ThriftHiveMetastore_list_privileges_result& operator=(const ThriftHiveMetastore_list_privileges_result&); ThriftHiveMetastore_list_privileges_result() { } - virtual ~ThriftHiveMetastore_list_privileges_result() throw(); + virtual ~ThriftHiveMetastore_list_privileges_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_list_privileges_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_list_privileges_result & rhs) const { @@ -14074,15 +15215,16 @@ class ThriftHiveMetastore_list_privileges_result { typedef struct _ThriftHiveMetastore_list_privileges_presult__isset { _ThriftHiveMetastore_list_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_privileges_presult__isset; class ThriftHiveMetastore_list_privileges_presult { public: - virtual ~ThriftHiveMetastore_list_privileges_presult() throw(); + virtual ~ThriftHiveMetastore_list_privileges_presult() throw() {} + std::vector * success; MetaException o1; @@ -14094,23 +15236,24 @@ class ThriftHiveMetastore_list_privileges_presult { typedef struct _ThriftHiveMetastore_grant_privileges_args__isset { _ThriftHiveMetastore_grant_privileges_args__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _ThriftHiveMetastore_grant_privileges_args__isset; class ThriftHiveMetastore_grant_privileges_args { public: - ThriftHiveMetastore_grant_privileges_args(const ThriftHiveMetastore_grant_privileges_args&); - ThriftHiveMetastore_grant_privileges_args& operator=(const ThriftHiveMetastore_grant_privileges_args&); ThriftHiveMetastore_grant_privileges_args() { } - virtual ~ThriftHiveMetastore_grant_privileges_args() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_args() throw() {} + PrivilegeBag privileges; _ThriftHiveMetastore_grant_privileges_args__isset __isset; - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } bool operator == (const ThriftHiveMetastore_grant_privileges_args & rhs) const { @@ -14134,7 +15277,8 @@ class ThriftHiveMetastore_grant_privileges_pargs { public: - virtual ~ThriftHiveMetastore_grant_privileges_pargs() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_pargs() throw() {} + const PrivilegeBag* privileges; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14143,27 +15287,30 @@ class ThriftHiveMetastore_grant_privileges_pargs { typedef struct _ThriftHiveMetastore_grant_privileges_result__isset { _ThriftHiveMetastore_grant_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_privileges_result__isset; class ThriftHiveMetastore_grant_privileges_result { public: - ThriftHiveMetastore_grant_privileges_result(const ThriftHiveMetastore_grant_privileges_result&); - ThriftHiveMetastore_grant_privileges_result& operator=(const ThriftHiveMetastore_grant_privileges_result&); ThriftHiveMetastore_grant_privileges_result() : success(0) { } - virtual ~ThriftHiveMetastore_grant_privileges_result() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_grant_privileges_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_privileges_result & rhs) const { @@ -14186,15 +15333,16 @@ class ThriftHiveMetastore_grant_privileges_result { typedef struct _ThriftHiveMetastore_grant_privileges_presult__isset { _ThriftHiveMetastore_grant_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_privileges_presult__isset; class ThriftHiveMetastore_grant_privileges_presult { public: - virtual ~ThriftHiveMetastore_grant_privileges_presult() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_presult() throw() {} + bool* success; MetaException o1; @@ -14206,23 +15354,24 @@ class ThriftHiveMetastore_grant_privileges_presult { typedef struct _ThriftHiveMetastore_revoke_privileges_args__isset { _ThriftHiveMetastore_revoke_privileges_args__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _ThriftHiveMetastore_revoke_privileges_args__isset; class ThriftHiveMetastore_revoke_privileges_args { public: - ThriftHiveMetastore_revoke_privileges_args(const ThriftHiveMetastore_revoke_privileges_args&); - ThriftHiveMetastore_revoke_privileges_args& operator=(const ThriftHiveMetastore_revoke_privileges_args&); ThriftHiveMetastore_revoke_privileges_args() { } - virtual ~ThriftHiveMetastore_revoke_privileges_args() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_args() throw() {} + PrivilegeBag privileges; _ThriftHiveMetastore_revoke_privileges_args__isset __isset; - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } bool operator == (const ThriftHiveMetastore_revoke_privileges_args & rhs) const { @@ -14246,7 +15395,8 @@ class ThriftHiveMetastore_revoke_privileges_pargs { public: - virtual ~ThriftHiveMetastore_revoke_privileges_pargs() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_pargs() throw() {} + const PrivilegeBag* privileges; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14255,27 +15405,30 @@ class ThriftHiveMetastore_revoke_privileges_pargs { typedef struct _ThriftHiveMetastore_revoke_privileges_result__isset { _ThriftHiveMetastore_revoke_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_privileges_result__isset; class ThriftHiveMetastore_revoke_privileges_result { public: - ThriftHiveMetastore_revoke_privileges_result(const ThriftHiveMetastore_revoke_privileges_result&); - ThriftHiveMetastore_revoke_privileges_result& operator=(const ThriftHiveMetastore_revoke_privileges_result&); ThriftHiveMetastore_revoke_privileges_result() : success(0) { } - virtual ~ThriftHiveMetastore_revoke_privileges_result() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_revoke_privileges_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_revoke_privileges_result & rhs) const { @@ -14298,15 +15451,16 @@ class ThriftHiveMetastore_revoke_privileges_result { typedef struct _ThriftHiveMetastore_revoke_privileges_presult__isset { _ThriftHiveMetastore_revoke_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_privileges_presult__isset; class ThriftHiveMetastore_revoke_privileges_presult { public: - virtual ~ThriftHiveMetastore_revoke_privileges_presult() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_presult() throw() {} + bool* success; MetaException o1; @@ -14318,23 +15472,24 @@ class ThriftHiveMetastore_revoke_privileges_presult { typedef struct _ThriftHiveMetastore_grant_revoke_privileges_args__isset { _ThriftHiveMetastore_grant_revoke_privileges_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_grant_revoke_privileges_args__isset; class ThriftHiveMetastore_grant_revoke_privileges_args { public: - ThriftHiveMetastore_grant_revoke_privileges_args(const ThriftHiveMetastore_grant_revoke_privileges_args&); - ThriftHiveMetastore_grant_revoke_privileges_args& operator=(const ThriftHiveMetastore_grant_revoke_privileges_args&); ThriftHiveMetastore_grant_revoke_privileges_args() { } - virtual ~ThriftHiveMetastore_grant_revoke_privileges_args() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_args() throw() {} + GrantRevokePrivilegeRequest request; _ThriftHiveMetastore_grant_revoke_privileges_args__isset __isset; - void __set_request(const GrantRevokePrivilegeRequest& val); + void __set_request(const GrantRevokePrivilegeRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_args & rhs) const { @@ -14358,7 +15513,8 @@ class ThriftHiveMetastore_grant_revoke_privileges_pargs { public: - virtual ~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw() {} + const GrantRevokePrivilegeRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14367,27 +15523,30 @@ class ThriftHiveMetastore_grant_revoke_privileges_pargs { typedef struct _ThriftHiveMetastore_grant_revoke_privileges_result__isset { _ThriftHiveMetastore_grant_revoke_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_privileges_result__isset; class ThriftHiveMetastore_grant_revoke_privileges_result { public: - ThriftHiveMetastore_grant_revoke_privileges_result(const ThriftHiveMetastore_grant_revoke_privileges_result&); - ThriftHiveMetastore_grant_revoke_privileges_result& operator=(const ThriftHiveMetastore_grant_revoke_privileges_result&); ThriftHiveMetastore_grant_revoke_privileges_result() { } - virtual ~ThriftHiveMetastore_grant_revoke_privileges_result() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_result() throw() {} + GrantRevokePrivilegeResponse success; MetaException o1; _ThriftHiveMetastore_grant_revoke_privileges_result__isset __isset; - void __set_success(const GrantRevokePrivilegeResponse& val); + void __set_success(const GrantRevokePrivilegeResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_result & rhs) const { @@ -14410,15 +15569,16 @@ class ThriftHiveMetastore_grant_revoke_privileges_result { typedef struct _ThriftHiveMetastore_grant_revoke_privileges_presult__isset { _ThriftHiveMetastore_grant_revoke_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_privileges_presult__isset; class ThriftHiveMetastore_grant_revoke_privileges_presult { public: - virtual ~ThriftHiveMetastore_grant_revoke_privileges_presult() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_presult() throw() {} + GrantRevokePrivilegeResponse* success; MetaException o1; @@ -14430,27 +15590,30 @@ class ThriftHiveMetastore_grant_revoke_privileges_presult { typedef struct _ThriftHiveMetastore_set_ugi_args__isset { _ThriftHiveMetastore_set_ugi_args__isset() : user_name(false), group_names(false) {} - bool user_name :1; - bool group_names :1; + bool user_name; + bool group_names; } _ThriftHiveMetastore_set_ugi_args__isset; class ThriftHiveMetastore_set_ugi_args { public: - ThriftHiveMetastore_set_ugi_args(const ThriftHiveMetastore_set_ugi_args&); - ThriftHiveMetastore_set_ugi_args& operator=(const ThriftHiveMetastore_set_ugi_args&); ThriftHiveMetastore_set_ugi_args() : user_name() { } - virtual ~ThriftHiveMetastore_set_ugi_args() throw(); + virtual ~ThriftHiveMetastore_set_ugi_args() throw() {} + std::string user_name; std::vector group_names; _ThriftHiveMetastore_set_ugi_args__isset __isset; - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_set_ugi_args & rhs) const { @@ -14476,7 +15639,8 @@ class ThriftHiveMetastore_set_ugi_pargs { public: - virtual ~ThriftHiveMetastore_set_ugi_pargs() throw(); + virtual ~ThriftHiveMetastore_set_ugi_pargs() throw() {} + const std::string* user_name; const std::vector * group_names; @@ -14486,27 +15650,30 @@ class ThriftHiveMetastore_set_ugi_pargs { typedef struct _ThriftHiveMetastore_set_ugi_result__isset { _ThriftHiveMetastore_set_ugi_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_set_ugi_result__isset; class ThriftHiveMetastore_set_ugi_result { public: - ThriftHiveMetastore_set_ugi_result(const ThriftHiveMetastore_set_ugi_result&); - ThriftHiveMetastore_set_ugi_result& operator=(const ThriftHiveMetastore_set_ugi_result&); ThriftHiveMetastore_set_ugi_result() { } - virtual ~ThriftHiveMetastore_set_ugi_result() throw(); + virtual ~ThriftHiveMetastore_set_ugi_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_set_ugi_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_set_ugi_result & rhs) const { @@ -14529,15 +15696,16 @@ class ThriftHiveMetastore_set_ugi_result { typedef struct _ThriftHiveMetastore_set_ugi_presult__isset { _ThriftHiveMetastore_set_ugi_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_set_ugi_presult__isset; class ThriftHiveMetastore_set_ugi_presult { public: - virtual ~ThriftHiveMetastore_set_ugi_presult() throw(); + virtual ~ThriftHiveMetastore_set_ugi_presult() throw() {} + std::vector * success; MetaException o1; @@ -14549,27 +15717,30 @@ class ThriftHiveMetastore_set_ugi_presult { typedef struct _ThriftHiveMetastore_get_delegation_token_args__isset { _ThriftHiveMetastore_get_delegation_token_args__isset() : token_owner(false), renewer_kerberos_principal_name(false) {} - bool token_owner :1; - bool renewer_kerberos_principal_name :1; + bool token_owner; + bool renewer_kerberos_principal_name; } _ThriftHiveMetastore_get_delegation_token_args__isset; class ThriftHiveMetastore_get_delegation_token_args { public: - ThriftHiveMetastore_get_delegation_token_args(const ThriftHiveMetastore_get_delegation_token_args&); - ThriftHiveMetastore_get_delegation_token_args& operator=(const ThriftHiveMetastore_get_delegation_token_args&); ThriftHiveMetastore_get_delegation_token_args() : token_owner(), renewer_kerberos_principal_name() { } - virtual ~ThriftHiveMetastore_get_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_args() throw() {} + std::string token_owner; std::string renewer_kerberos_principal_name; _ThriftHiveMetastore_get_delegation_token_args__isset __isset; - void __set_token_owner(const std::string& val); + void __set_token_owner(const std::string& val) { + token_owner = val; + } - void __set_renewer_kerberos_principal_name(const std::string& val); + void __set_renewer_kerberos_principal_name(const std::string& val) { + renewer_kerberos_principal_name = val; + } bool operator == (const ThriftHiveMetastore_get_delegation_token_args & rhs) const { @@ -14595,7 +15766,8 @@ class ThriftHiveMetastore_get_delegation_token_pargs { public: - virtual ~ThriftHiveMetastore_get_delegation_token_pargs() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_pargs() throw() {} + const std::string* token_owner; const std::string* renewer_kerberos_principal_name; @@ -14605,27 +15777,30 @@ class ThriftHiveMetastore_get_delegation_token_pargs { typedef struct _ThriftHiveMetastore_get_delegation_token_result__isset { _ThriftHiveMetastore_get_delegation_token_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_delegation_token_result__isset; class ThriftHiveMetastore_get_delegation_token_result { public: - ThriftHiveMetastore_get_delegation_token_result(const ThriftHiveMetastore_get_delegation_token_result&); - ThriftHiveMetastore_get_delegation_token_result& operator=(const ThriftHiveMetastore_get_delegation_token_result&); ThriftHiveMetastore_get_delegation_token_result() : success() { } - virtual ~ThriftHiveMetastore_get_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_result() throw() {} + std::string success; MetaException o1; _ThriftHiveMetastore_get_delegation_token_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_delegation_token_result & rhs) const { @@ -14648,15 +15823,16 @@ class ThriftHiveMetastore_get_delegation_token_result { typedef struct _ThriftHiveMetastore_get_delegation_token_presult__isset { _ThriftHiveMetastore_get_delegation_token_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_delegation_token_presult__isset; class ThriftHiveMetastore_get_delegation_token_presult { public: - virtual ~ThriftHiveMetastore_get_delegation_token_presult() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_presult() throw() {} + std::string* success; MetaException o1; @@ -14668,23 +15844,24 @@ class ThriftHiveMetastore_get_delegation_token_presult { typedef struct _ThriftHiveMetastore_renew_delegation_token_args__isset { _ThriftHiveMetastore_renew_delegation_token_args__isset() : token_str_form(false) {} - bool token_str_form :1; + bool token_str_form; } _ThriftHiveMetastore_renew_delegation_token_args__isset; class ThriftHiveMetastore_renew_delegation_token_args { public: - ThriftHiveMetastore_renew_delegation_token_args(const ThriftHiveMetastore_renew_delegation_token_args&); - ThriftHiveMetastore_renew_delegation_token_args& operator=(const ThriftHiveMetastore_renew_delegation_token_args&); ThriftHiveMetastore_renew_delegation_token_args() : token_str_form() { } - virtual ~ThriftHiveMetastore_renew_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_args() throw() {} + std::string token_str_form; _ThriftHiveMetastore_renew_delegation_token_args__isset __isset; - void __set_token_str_form(const std::string& val); + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } bool operator == (const ThriftHiveMetastore_renew_delegation_token_args & rhs) const { @@ -14708,7 +15885,8 @@ class ThriftHiveMetastore_renew_delegation_token_pargs { public: - virtual ~ThriftHiveMetastore_renew_delegation_token_pargs() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_pargs() throw() {} + const std::string* token_str_form; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14717,27 +15895,30 @@ class ThriftHiveMetastore_renew_delegation_token_pargs { typedef struct _ThriftHiveMetastore_renew_delegation_token_result__isset { _ThriftHiveMetastore_renew_delegation_token_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_renew_delegation_token_result__isset; class ThriftHiveMetastore_renew_delegation_token_result { public: - ThriftHiveMetastore_renew_delegation_token_result(const ThriftHiveMetastore_renew_delegation_token_result&); - ThriftHiveMetastore_renew_delegation_token_result& operator=(const ThriftHiveMetastore_renew_delegation_token_result&); ThriftHiveMetastore_renew_delegation_token_result() : success(0) { } - virtual ~ThriftHiveMetastore_renew_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_result() throw() {} + int64_t success; MetaException o1; _ThriftHiveMetastore_renew_delegation_token_result__isset __isset; - void __set_success(const int64_t val); + void __set_success(const int64_t val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_renew_delegation_token_result & rhs) const { @@ -14760,15 +15941,16 @@ class ThriftHiveMetastore_renew_delegation_token_result { typedef struct _ThriftHiveMetastore_renew_delegation_token_presult__isset { _ThriftHiveMetastore_renew_delegation_token_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_renew_delegation_token_presult__isset; class ThriftHiveMetastore_renew_delegation_token_presult { public: - virtual ~ThriftHiveMetastore_renew_delegation_token_presult() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_presult() throw() {} + int64_t* success; MetaException o1; @@ -14780,23 +15962,24 @@ class ThriftHiveMetastore_renew_delegation_token_presult { typedef struct _ThriftHiveMetastore_cancel_delegation_token_args__isset { _ThriftHiveMetastore_cancel_delegation_token_args__isset() : token_str_form(false) {} - bool token_str_form :1; + bool token_str_form; } _ThriftHiveMetastore_cancel_delegation_token_args__isset; class ThriftHiveMetastore_cancel_delegation_token_args { public: - ThriftHiveMetastore_cancel_delegation_token_args(const ThriftHiveMetastore_cancel_delegation_token_args&); - ThriftHiveMetastore_cancel_delegation_token_args& operator=(const ThriftHiveMetastore_cancel_delegation_token_args&); ThriftHiveMetastore_cancel_delegation_token_args() : token_str_form() { } - virtual ~ThriftHiveMetastore_cancel_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_args() throw() {} + std::string token_str_form; _ThriftHiveMetastore_cancel_delegation_token_args__isset __isset; - void __set_token_str_form(const std::string& val); + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } bool operator == (const ThriftHiveMetastore_cancel_delegation_token_args & rhs) const { @@ -14820,7 +16003,8 @@ class ThriftHiveMetastore_cancel_delegation_token_pargs { public: - virtual ~ThriftHiveMetastore_cancel_delegation_token_pargs() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_pargs() throw() {} + const std::string* token_str_form; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14829,23 +16013,24 @@ class ThriftHiveMetastore_cancel_delegation_token_pargs { typedef struct _ThriftHiveMetastore_cancel_delegation_token_result__isset { _ThriftHiveMetastore_cancel_delegation_token_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_cancel_delegation_token_result__isset; class ThriftHiveMetastore_cancel_delegation_token_result { public: - ThriftHiveMetastore_cancel_delegation_token_result(const ThriftHiveMetastore_cancel_delegation_token_result&); - ThriftHiveMetastore_cancel_delegation_token_result& operator=(const ThriftHiveMetastore_cancel_delegation_token_result&); ThriftHiveMetastore_cancel_delegation_token_result() { } - virtual ~ThriftHiveMetastore_cancel_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_result() throw() {} + MetaException o1; _ThriftHiveMetastore_cancel_delegation_token_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_cancel_delegation_token_result & rhs) const { @@ -14866,14 +16051,15 @@ class ThriftHiveMetastore_cancel_delegation_token_result { typedef struct _ThriftHiveMetastore_cancel_delegation_token_presult__isset { _ThriftHiveMetastore_cancel_delegation_token_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_cancel_delegation_token_presult__isset; class ThriftHiveMetastore_cancel_delegation_token_presult { public: - virtual ~ThriftHiveMetastore_cancel_delegation_token_presult() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_presult() throw() {} + MetaException o1; _ThriftHiveMetastore_cancel_delegation_token_presult__isset __isset; @@ -14886,12 +16072,11 @@ class ThriftHiveMetastore_cancel_delegation_token_presult { class ThriftHiveMetastore_get_open_txns_args { public: - ThriftHiveMetastore_get_open_txns_args(const ThriftHiveMetastore_get_open_txns_args&); - ThriftHiveMetastore_get_open_txns_args& operator=(const ThriftHiveMetastore_get_open_txns_args&); ThriftHiveMetastore_get_open_txns_args() { } - virtual ~ThriftHiveMetastore_get_open_txns_args() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_open_txns_args & /* rhs */) const { @@ -14913,7 +16098,8 @@ class ThriftHiveMetastore_get_open_txns_pargs { public: - virtual ~ThriftHiveMetastore_get_open_txns_pargs() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -14921,23 +16107,24 @@ class ThriftHiveMetastore_get_open_txns_pargs { typedef struct _ThriftHiveMetastore_get_open_txns_result__isset { _ThriftHiveMetastore_get_open_txns_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_result__isset; class ThriftHiveMetastore_get_open_txns_result { public: - ThriftHiveMetastore_get_open_txns_result(const ThriftHiveMetastore_get_open_txns_result&); - ThriftHiveMetastore_get_open_txns_result& operator=(const ThriftHiveMetastore_get_open_txns_result&); ThriftHiveMetastore_get_open_txns_result() { } - virtual ~ThriftHiveMetastore_get_open_txns_result() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_result() throw() {} + GetOpenTxnsResponse success; _ThriftHiveMetastore_get_open_txns_result__isset __isset; - void __set_success(const GetOpenTxnsResponse& val); + void __set_success(const GetOpenTxnsResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_open_txns_result & rhs) const { @@ -14958,14 +16145,15 @@ class ThriftHiveMetastore_get_open_txns_result { typedef struct _ThriftHiveMetastore_get_open_txns_presult__isset { _ThriftHiveMetastore_get_open_txns_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_presult__isset; class ThriftHiveMetastore_get_open_txns_presult { public: - virtual ~ThriftHiveMetastore_get_open_txns_presult() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_presult() throw() {} + GetOpenTxnsResponse* success; _ThriftHiveMetastore_get_open_txns_presult__isset __isset; @@ -14978,12 +16166,11 @@ class ThriftHiveMetastore_get_open_txns_presult { class ThriftHiveMetastore_get_open_txns_info_args { public: - ThriftHiveMetastore_get_open_txns_info_args(const ThriftHiveMetastore_get_open_txns_info_args&); - ThriftHiveMetastore_get_open_txns_info_args& operator=(const ThriftHiveMetastore_get_open_txns_info_args&); ThriftHiveMetastore_get_open_txns_info_args() { } - virtual ~ThriftHiveMetastore_get_open_txns_info_args() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_open_txns_info_args & /* rhs */) const { @@ -15005,7 +16192,8 @@ class ThriftHiveMetastore_get_open_txns_info_pargs { public: - virtual ~ThriftHiveMetastore_get_open_txns_info_pargs() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15013,23 +16201,24 @@ class ThriftHiveMetastore_get_open_txns_info_pargs { typedef struct _ThriftHiveMetastore_get_open_txns_info_result__isset { _ThriftHiveMetastore_get_open_txns_info_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_info_result__isset; class ThriftHiveMetastore_get_open_txns_info_result { public: - ThriftHiveMetastore_get_open_txns_info_result(const ThriftHiveMetastore_get_open_txns_info_result&); - ThriftHiveMetastore_get_open_txns_info_result& operator=(const ThriftHiveMetastore_get_open_txns_info_result&); ThriftHiveMetastore_get_open_txns_info_result() { } - virtual ~ThriftHiveMetastore_get_open_txns_info_result() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_result() throw() {} + GetOpenTxnsInfoResponse success; _ThriftHiveMetastore_get_open_txns_info_result__isset __isset; - void __set_success(const GetOpenTxnsInfoResponse& val); + void __set_success(const GetOpenTxnsInfoResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_open_txns_info_result & rhs) const { @@ -15050,14 +16239,15 @@ class ThriftHiveMetastore_get_open_txns_info_result { typedef struct _ThriftHiveMetastore_get_open_txns_info_presult__isset { _ThriftHiveMetastore_get_open_txns_info_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_info_presult__isset; class ThriftHiveMetastore_get_open_txns_info_presult { public: - virtual ~ThriftHiveMetastore_get_open_txns_info_presult() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_presult() throw() {} + GetOpenTxnsInfoResponse* success; _ThriftHiveMetastore_get_open_txns_info_presult__isset __isset; @@ -15068,23 +16258,24 @@ class ThriftHiveMetastore_get_open_txns_info_presult { typedef struct _ThriftHiveMetastore_open_txns_args__isset { _ThriftHiveMetastore_open_txns_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_open_txns_args__isset; class ThriftHiveMetastore_open_txns_args { public: - ThriftHiveMetastore_open_txns_args(const ThriftHiveMetastore_open_txns_args&); - ThriftHiveMetastore_open_txns_args& operator=(const ThriftHiveMetastore_open_txns_args&); ThriftHiveMetastore_open_txns_args() { } - virtual ~ThriftHiveMetastore_open_txns_args() throw(); + virtual ~ThriftHiveMetastore_open_txns_args() throw() {} + OpenTxnRequest rqst; _ThriftHiveMetastore_open_txns_args__isset __isset; - void __set_rqst(const OpenTxnRequest& val); + void __set_rqst(const OpenTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_open_txns_args & rhs) const { @@ -15108,7 +16299,8 @@ class ThriftHiveMetastore_open_txns_pargs { public: - virtual ~ThriftHiveMetastore_open_txns_pargs() throw(); + virtual ~ThriftHiveMetastore_open_txns_pargs() throw() {} + const OpenTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15117,23 +16309,24 @@ class ThriftHiveMetastore_open_txns_pargs { typedef struct _ThriftHiveMetastore_open_txns_result__isset { _ThriftHiveMetastore_open_txns_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_open_txns_result__isset; class ThriftHiveMetastore_open_txns_result { public: - ThriftHiveMetastore_open_txns_result(const ThriftHiveMetastore_open_txns_result&); - ThriftHiveMetastore_open_txns_result& operator=(const ThriftHiveMetastore_open_txns_result&); ThriftHiveMetastore_open_txns_result() { } - virtual ~ThriftHiveMetastore_open_txns_result() throw(); + virtual ~ThriftHiveMetastore_open_txns_result() throw() {} + OpenTxnsResponse success; _ThriftHiveMetastore_open_txns_result__isset __isset; - void __set_success(const OpenTxnsResponse& val); + void __set_success(const OpenTxnsResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_open_txns_result & rhs) const { @@ -15154,14 +16347,15 @@ class ThriftHiveMetastore_open_txns_result { typedef struct _ThriftHiveMetastore_open_txns_presult__isset { _ThriftHiveMetastore_open_txns_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_open_txns_presult__isset; class ThriftHiveMetastore_open_txns_presult { public: - virtual ~ThriftHiveMetastore_open_txns_presult() throw(); + virtual ~ThriftHiveMetastore_open_txns_presult() throw() {} + OpenTxnsResponse* success; _ThriftHiveMetastore_open_txns_presult__isset __isset; @@ -15172,23 +16366,24 @@ class ThriftHiveMetastore_open_txns_presult { typedef struct _ThriftHiveMetastore_abort_txn_args__isset { _ThriftHiveMetastore_abort_txn_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_abort_txn_args__isset; class ThriftHiveMetastore_abort_txn_args { public: - ThriftHiveMetastore_abort_txn_args(const ThriftHiveMetastore_abort_txn_args&); - ThriftHiveMetastore_abort_txn_args& operator=(const ThriftHiveMetastore_abort_txn_args&); ThriftHiveMetastore_abort_txn_args() { } - virtual ~ThriftHiveMetastore_abort_txn_args() throw(); + virtual ~ThriftHiveMetastore_abort_txn_args() throw() {} + AbortTxnRequest rqst; _ThriftHiveMetastore_abort_txn_args__isset __isset; - void __set_rqst(const AbortTxnRequest& val); + void __set_rqst(const AbortTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_abort_txn_args & rhs) const { @@ -15212,7 +16407,8 @@ class ThriftHiveMetastore_abort_txn_pargs { public: - virtual ~ThriftHiveMetastore_abort_txn_pargs() throw(); + virtual ~ThriftHiveMetastore_abort_txn_pargs() throw() {} + const AbortTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15221,23 +16417,24 @@ class ThriftHiveMetastore_abort_txn_pargs { typedef struct _ThriftHiveMetastore_abort_txn_result__isset { _ThriftHiveMetastore_abort_txn_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_abort_txn_result__isset; class ThriftHiveMetastore_abort_txn_result { public: - ThriftHiveMetastore_abort_txn_result(const ThriftHiveMetastore_abort_txn_result&); - ThriftHiveMetastore_abort_txn_result& operator=(const ThriftHiveMetastore_abort_txn_result&); ThriftHiveMetastore_abort_txn_result() { } - virtual ~ThriftHiveMetastore_abort_txn_result() throw(); + virtual ~ThriftHiveMetastore_abort_txn_result() throw() {} + NoSuchTxnException o1; _ThriftHiveMetastore_abort_txn_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_abort_txn_result & rhs) const { @@ -15258,14 +16455,15 @@ class ThriftHiveMetastore_abort_txn_result { typedef struct _ThriftHiveMetastore_abort_txn_presult__isset { _ThriftHiveMetastore_abort_txn_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_abort_txn_presult__isset; class ThriftHiveMetastore_abort_txn_presult { public: - virtual ~ThriftHiveMetastore_abort_txn_presult() throw(); + virtual ~ThriftHiveMetastore_abort_txn_presult() throw() {} + NoSuchTxnException o1; _ThriftHiveMetastore_abort_txn_presult__isset __isset; @@ -15276,23 +16474,24 @@ class ThriftHiveMetastore_abort_txn_presult { typedef struct _ThriftHiveMetastore_commit_txn_args__isset { _ThriftHiveMetastore_commit_txn_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_commit_txn_args__isset; class ThriftHiveMetastore_commit_txn_args { public: - ThriftHiveMetastore_commit_txn_args(const ThriftHiveMetastore_commit_txn_args&); - ThriftHiveMetastore_commit_txn_args& operator=(const ThriftHiveMetastore_commit_txn_args&); ThriftHiveMetastore_commit_txn_args() { } - virtual ~ThriftHiveMetastore_commit_txn_args() throw(); + virtual ~ThriftHiveMetastore_commit_txn_args() throw() {} + CommitTxnRequest rqst; _ThriftHiveMetastore_commit_txn_args__isset __isset; - void __set_rqst(const CommitTxnRequest& val); + void __set_rqst(const CommitTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_commit_txn_args & rhs) const { @@ -15316,7 +16515,8 @@ class ThriftHiveMetastore_commit_txn_pargs { public: - virtual ~ThriftHiveMetastore_commit_txn_pargs() throw(); + virtual ~ThriftHiveMetastore_commit_txn_pargs() throw() {} + const CommitTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15325,27 +16525,30 @@ class ThriftHiveMetastore_commit_txn_pargs { typedef struct _ThriftHiveMetastore_commit_txn_result__isset { _ThriftHiveMetastore_commit_txn_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_commit_txn_result__isset; class ThriftHiveMetastore_commit_txn_result { public: - ThriftHiveMetastore_commit_txn_result(const ThriftHiveMetastore_commit_txn_result&); - ThriftHiveMetastore_commit_txn_result& operator=(const ThriftHiveMetastore_commit_txn_result&); ThriftHiveMetastore_commit_txn_result() { } - virtual ~ThriftHiveMetastore_commit_txn_result() throw(); + virtual ~ThriftHiveMetastore_commit_txn_result() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_commit_txn_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_commit_txn_result & rhs) const { @@ -15368,15 +16571,16 @@ class ThriftHiveMetastore_commit_txn_result { typedef struct _ThriftHiveMetastore_commit_txn_presult__isset { _ThriftHiveMetastore_commit_txn_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_commit_txn_presult__isset; class ThriftHiveMetastore_commit_txn_presult { public: - virtual ~ThriftHiveMetastore_commit_txn_presult() throw(); + virtual ~ThriftHiveMetastore_commit_txn_presult() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; @@ -15388,23 +16592,24 @@ class ThriftHiveMetastore_commit_txn_presult { typedef struct _ThriftHiveMetastore_lock_args__isset { _ThriftHiveMetastore_lock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_lock_args__isset; class ThriftHiveMetastore_lock_args { public: - ThriftHiveMetastore_lock_args(const ThriftHiveMetastore_lock_args&); - ThriftHiveMetastore_lock_args& operator=(const ThriftHiveMetastore_lock_args&); ThriftHiveMetastore_lock_args() { } - virtual ~ThriftHiveMetastore_lock_args() throw(); + virtual ~ThriftHiveMetastore_lock_args() throw() {} + LockRequest rqst; _ThriftHiveMetastore_lock_args__isset __isset; - void __set_rqst(const LockRequest& val); + void __set_rqst(const LockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_lock_args & rhs) const { @@ -15428,7 +16633,8 @@ class ThriftHiveMetastore_lock_pargs { public: - virtual ~ThriftHiveMetastore_lock_pargs() throw(); + virtual ~ThriftHiveMetastore_lock_pargs() throw() {} + const LockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15437,31 +16643,36 @@ class ThriftHiveMetastore_lock_pargs { typedef struct _ThriftHiveMetastore_lock_result__isset { _ThriftHiveMetastore_lock_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_lock_result__isset; class ThriftHiveMetastore_lock_result { public: - ThriftHiveMetastore_lock_result(const ThriftHiveMetastore_lock_result&); - ThriftHiveMetastore_lock_result& operator=(const ThriftHiveMetastore_lock_result&); ThriftHiveMetastore_lock_result() { } - virtual ~ThriftHiveMetastore_lock_result() throw(); + virtual ~ThriftHiveMetastore_lock_result() throw() {} + LockResponse success; NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_lock_result__isset __isset; - void __set_success(const LockResponse& val); + void __set_success(const LockResponse& val) { + success = val; + } - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_lock_result & rhs) const { @@ -15486,16 +16697,17 @@ class ThriftHiveMetastore_lock_result { typedef struct _ThriftHiveMetastore_lock_presult__isset { _ThriftHiveMetastore_lock_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_lock_presult__isset; class ThriftHiveMetastore_lock_presult { public: - virtual ~ThriftHiveMetastore_lock_presult() throw(); + virtual ~ThriftHiveMetastore_lock_presult() throw() {} + LockResponse* success; NoSuchTxnException o1; TxnAbortedException o2; @@ -15508,23 +16720,24 @@ class ThriftHiveMetastore_lock_presult { typedef struct _ThriftHiveMetastore_check_lock_args__isset { _ThriftHiveMetastore_check_lock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_check_lock_args__isset; class ThriftHiveMetastore_check_lock_args { public: - ThriftHiveMetastore_check_lock_args(const ThriftHiveMetastore_check_lock_args&); - ThriftHiveMetastore_check_lock_args& operator=(const ThriftHiveMetastore_check_lock_args&); ThriftHiveMetastore_check_lock_args() { } - virtual ~ThriftHiveMetastore_check_lock_args() throw(); + virtual ~ThriftHiveMetastore_check_lock_args() throw() {} + CheckLockRequest rqst; _ThriftHiveMetastore_check_lock_args__isset __isset; - void __set_rqst(const CheckLockRequest& val); + void __set_rqst(const CheckLockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_check_lock_args & rhs) const { @@ -15548,7 +16761,8 @@ class ThriftHiveMetastore_check_lock_pargs { public: - virtual ~ThriftHiveMetastore_check_lock_pargs() throw(); + virtual ~ThriftHiveMetastore_check_lock_pargs() throw() {} + const CheckLockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15557,21 +16771,20 @@ class ThriftHiveMetastore_check_lock_pargs { typedef struct _ThriftHiveMetastore_check_lock_result__isset { _ThriftHiveMetastore_check_lock_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_check_lock_result__isset; class ThriftHiveMetastore_check_lock_result { public: - ThriftHiveMetastore_check_lock_result(const ThriftHiveMetastore_check_lock_result&); - ThriftHiveMetastore_check_lock_result& operator=(const ThriftHiveMetastore_check_lock_result&); ThriftHiveMetastore_check_lock_result() { } - virtual ~ThriftHiveMetastore_check_lock_result() throw(); + virtual ~ThriftHiveMetastore_check_lock_result() throw() {} + LockResponse success; NoSuchTxnException o1; TxnAbortedException o2; @@ -15579,13 +16792,21 @@ class ThriftHiveMetastore_check_lock_result { _ThriftHiveMetastore_check_lock_result__isset __isset; - void __set_success(const LockResponse& val); + void __set_success(const LockResponse& val) { + success = val; + } - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } - void __set_o3(const NoSuchLockException& val); + void __set_o3(const NoSuchLockException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_check_lock_result & rhs) const { @@ -15612,17 +16833,18 @@ class ThriftHiveMetastore_check_lock_result { typedef struct _ThriftHiveMetastore_check_lock_presult__isset { _ThriftHiveMetastore_check_lock_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_check_lock_presult__isset; class ThriftHiveMetastore_check_lock_presult { public: - virtual ~ThriftHiveMetastore_check_lock_presult() throw(); + virtual ~ThriftHiveMetastore_check_lock_presult() throw() {} + LockResponse* success; NoSuchTxnException o1; TxnAbortedException o2; @@ -15636,23 +16858,24 @@ class ThriftHiveMetastore_check_lock_presult { typedef struct _ThriftHiveMetastore_unlock_args__isset { _ThriftHiveMetastore_unlock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_unlock_args__isset; class ThriftHiveMetastore_unlock_args { public: - ThriftHiveMetastore_unlock_args(const ThriftHiveMetastore_unlock_args&); - ThriftHiveMetastore_unlock_args& operator=(const ThriftHiveMetastore_unlock_args&); ThriftHiveMetastore_unlock_args() { } - virtual ~ThriftHiveMetastore_unlock_args() throw(); + virtual ~ThriftHiveMetastore_unlock_args() throw() {} + UnlockRequest rqst; _ThriftHiveMetastore_unlock_args__isset __isset; - void __set_rqst(const UnlockRequest& val); + void __set_rqst(const UnlockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_unlock_args & rhs) const { @@ -15676,7 +16899,8 @@ class ThriftHiveMetastore_unlock_pargs { public: - virtual ~ThriftHiveMetastore_unlock_pargs() throw(); + virtual ~ThriftHiveMetastore_unlock_pargs() throw() {} + const UnlockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15685,27 +16909,30 @@ class ThriftHiveMetastore_unlock_pargs { typedef struct _ThriftHiveMetastore_unlock_result__isset { _ThriftHiveMetastore_unlock_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_unlock_result__isset; class ThriftHiveMetastore_unlock_result { public: - ThriftHiveMetastore_unlock_result(const ThriftHiveMetastore_unlock_result&); - ThriftHiveMetastore_unlock_result& operator=(const ThriftHiveMetastore_unlock_result&); ThriftHiveMetastore_unlock_result() { } - virtual ~ThriftHiveMetastore_unlock_result() throw(); + virtual ~ThriftHiveMetastore_unlock_result() throw() {} + NoSuchLockException o1; TxnOpenException o2; _ThriftHiveMetastore_unlock_result__isset __isset; - void __set_o1(const NoSuchLockException& val); + void __set_o1(const NoSuchLockException& val) { + o1 = val; + } - void __set_o2(const TxnOpenException& val); + void __set_o2(const TxnOpenException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_unlock_result & rhs) const { @@ -15728,15 +16955,16 @@ class ThriftHiveMetastore_unlock_result { typedef struct _ThriftHiveMetastore_unlock_presult__isset { _ThriftHiveMetastore_unlock_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_unlock_presult__isset; class ThriftHiveMetastore_unlock_presult { public: - virtual ~ThriftHiveMetastore_unlock_presult() throw(); + virtual ~ThriftHiveMetastore_unlock_presult() throw() {} + NoSuchLockException o1; TxnOpenException o2; @@ -15748,23 +16976,24 @@ class ThriftHiveMetastore_unlock_presult { typedef struct _ThriftHiveMetastore_show_locks_args__isset { _ThriftHiveMetastore_show_locks_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_show_locks_args__isset; class ThriftHiveMetastore_show_locks_args { public: - ThriftHiveMetastore_show_locks_args(const ThriftHiveMetastore_show_locks_args&); - ThriftHiveMetastore_show_locks_args& operator=(const ThriftHiveMetastore_show_locks_args&); ThriftHiveMetastore_show_locks_args() { } - virtual ~ThriftHiveMetastore_show_locks_args() throw(); + virtual ~ThriftHiveMetastore_show_locks_args() throw() {} + ShowLocksRequest rqst; _ThriftHiveMetastore_show_locks_args__isset __isset; - void __set_rqst(const ShowLocksRequest& val); + void __set_rqst(const ShowLocksRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_show_locks_args & rhs) const { @@ -15788,7 +17017,8 @@ class ThriftHiveMetastore_show_locks_pargs { public: - virtual ~ThriftHiveMetastore_show_locks_pargs() throw(); + virtual ~ThriftHiveMetastore_show_locks_pargs() throw() {} + const ShowLocksRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15797,23 +17027,24 @@ class ThriftHiveMetastore_show_locks_pargs { typedef struct _ThriftHiveMetastore_show_locks_result__isset { _ThriftHiveMetastore_show_locks_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_locks_result__isset; class ThriftHiveMetastore_show_locks_result { public: - ThriftHiveMetastore_show_locks_result(const ThriftHiveMetastore_show_locks_result&); - ThriftHiveMetastore_show_locks_result& operator=(const ThriftHiveMetastore_show_locks_result&); ThriftHiveMetastore_show_locks_result() { } - virtual ~ThriftHiveMetastore_show_locks_result() throw(); + virtual ~ThriftHiveMetastore_show_locks_result() throw() {} + ShowLocksResponse success; _ThriftHiveMetastore_show_locks_result__isset __isset; - void __set_success(const ShowLocksResponse& val); + void __set_success(const ShowLocksResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_show_locks_result & rhs) const { @@ -15834,14 +17065,15 @@ class ThriftHiveMetastore_show_locks_result { typedef struct _ThriftHiveMetastore_show_locks_presult__isset { _ThriftHiveMetastore_show_locks_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_locks_presult__isset; class ThriftHiveMetastore_show_locks_presult { public: - virtual ~ThriftHiveMetastore_show_locks_presult() throw(); + virtual ~ThriftHiveMetastore_show_locks_presult() throw() {} + ShowLocksResponse* success; _ThriftHiveMetastore_show_locks_presult__isset __isset; @@ -15852,23 +17084,24 @@ class ThriftHiveMetastore_show_locks_presult { typedef struct _ThriftHiveMetastore_heartbeat_args__isset { _ThriftHiveMetastore_heartbeat_args__isset() : ids(false) {} - bool ids :1; + bool ids; } _ThriftHiveMetastore_heartbeat_args__isset; class ThriftHiveMetastore_heartbeat_args { public: - ThriftHiveMetastore_heartbeat_args(const ThriftHiveMetastore_heartbeat_args&); - ThriftHiveMetastore_heartbeat_args& operator=(const ThriftHiveMetastore_heartbeat_args&); ThriftHiveMetastore_heartbeat_args() { } - virtual ~ThriftHiveMetastore_heartbeat_args() throw(); + virtual ~ThriftHiveMetastore_heartbeat_args() throw() {} + HeartbeatRequest ids; _ThriftHiveMetastore_heartbeat_args__isset __isset; - void __set_ids(const HeartbeatRequest& val); + void __set_ids(const HeartbeatRequest& val) { + ids = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_args & rhs) const { @@ -15892,7 +17125,8 @@ class ThriftHiveMetastore_heartbeat_pargs { public: - virtual ~ThriftHiveMetastore_heartbeat_pargs() throw(); + virtual ~ThriftHiveMetastore_heartbeat_pargs() throw() {} + const HeartbeatRequest* ids; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -15901,31 +17135,36 @@ class ThriftHiveMetastore_heartbeat_pargs { typedef struct _ThriftHiveMetastore_heartbeat_result__isset { _ThriftHiveMetastore_heartbeat_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_heartbeat_result__isset; class ThriftHiveMetastore_heartbeat_result { public: - ThriftHiveMetastore_heartbeat_result(const ThriftHiveMetastore_heartbeat_result&); - ThriftHiveMetastore_heartbeat_result& operator=(const ThriftHiveMetastore_heartbeat_result&); ThriftHiveMetastore_heartbeat_result() { } - virtual ~ThriftHiveMetastore_heartbeat_result() throw(); + virtual ~ThriftHiveMetastore_heartbeat_result() throw() {} + NoSuchLockException o1; NoSuchTxnException o2; TxnAbortedException o3; _ThriftHiveMetastore_heartbeat_result__isset __isset; - void __set_o1(const NoSuchLockException& val); + void __set_o1(const NoSuchLockException& val) { + o1 = val; + } - void __set_o2(const NoSuchTxnException& val); + void __set_o2(const NoSuchTxnException& val) { + o2 = val; + } - void __set_o3(const TxnAbortedException& val); + void __set_o3(const TxnAbortedException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_result & rhs) const { @@ -15950,16 +17189,17 @@ class ThriftHiveMetastore_heartbeat_result { typedef struct _ThriftHiveMetastore_heartbeat_presult__isset { _ThriftHiveMetastore_heartbeat_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_heartbeat_presult__isset; class ThriftHiveMetastore_heartbeat_presult { public: - virtual ~ThriftHiveMetastore_heartbeat_presult() throw(); + virtual ~ThriftHiveMetastore_heartbeat_presult() throw() {} + NoSuchLockException o1; NoSuchTxnException o2; TxnAbortedException o3; @@ -15972,23 +17212,24 @@ class ThriftHiveMetastore_heartbeat_presult { typedef struct _ThriftHiveMetastore_heartbeat_txn_range_args__isset { _ThriftHiveMetastore_heartbeat_txn_range_args__isset() : txns(false) {} - bool txns :1; + bool txns; } _ThriftHiveMetastore_heartbeat_txn_range_args__isset; class ThriftHiveMetastore_heartbeat_txn_range_args { public: - ThriftHiveMetastore_heartbeat_txn_range_args(const ThriftHiveMetastore_heartbeat_txn_range_args&); - ThriftHiveMetastore_heartbeat_txn_range_args& operator=(const ThriftHiveMetastore_heartbeat_txn_range_args&); ThriftHiveMetastore_heartbeat_txn_range_args() { } - virtual ~ThriftHiveMetastore_heartbeat_txn_range_args() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_args() throw() {} + HeartbeatTxnRangeRequest txns; _ThriftHiveMetastore_heartbeat_txn_range_args__isset __isset; - void __set_txns(const HeartbeatTxnRangeRequest& val); + void __set_txns(const HeartbeatTxnRangeRequest& val) { + txns = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_txn_range_args & rhs) const { @@ -16012,7 +17253,8 @@ class ThriftHiveMetastore_heartbeat_txn_range_pargs { public: - virtual ~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() {} + const HeartbeatTxnRangeRequest* txns; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16021,23 +17263,24 @@ class ThriftHiveMetastore_heartbeat_txn_range_pargs { typedef struct _ThriftHiveMetastore_heartbeat_txn_range_result__isset { _ThriftHiveMetastore_heartbeat_txn_range_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_heartbeat_txn_range_result__isset; class ThriftHiveMetastore_heartbeat_txn_range_result { public: - ThriftHiveMetastore_heartbeat_txn_range_result(const ThriftHiveMetastore_heartbeat_txn_range_result&); - ThriftHiveMetastore_heartbeat_txn_range_result& operator=(const ThriftHiveMetastore_heartbeat_txn_range_result&); ThriftHiveMetastore_heartbeat_txn_range_result() { } - virtual ~ThriftHiveMetastore_heartbeat_txn_range_result() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_result() throw() {} + HeartbeatTxnRangeResponse success; _ThriftHiveMetastore_heartbeat_txn_range_result__isset __isset; - void __set_success(const HeartbeatTxnRangeResponse& val); + void __set_success(const HeartbeatTxnRangeResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_txn_range_result & rhs) const { @@ -16058,14 +17301,15 @@ class ThriftHiveMetastore_heartbeat_txn_range_result { typedef struct _ThriftHiveMetastore_heartbeat_txn_range_presult__isset { _ThriftHiveMetastore_heartbeat_txn_range_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_heartbeat_txn_range_presult__isset; class ThriftHiveMetastore_heartbeat_txn_range_presult { public: - virtual ~ThriftHiveMetastore_heartbeat_txn_range_presult() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() {} + HeartbeatTxnRangeResponse* success; _ThriftHiveMetastore_heartbeat_txn_range_presult__isset __isset; @@ -16076,23 +17320,24 @@ class ThriftHiveMetastore_heartbeat_txn_range_presult { typedef struct _ThriftHiveMetastore_compact_args__isset { _ThriftHiveMetastore_compact_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_compact_args__isset; class ThriftHiveMetastore_compact_args { public: - ThriftHiveMetastore_compact_args(const ThriftHiveMetastore_compact_args&); - ThriftHiveMetastore_compact_args& operator=(const ThriftHiveMetastore_compact_args&); ThriftHiveMetastore_compact_args() { } - virtual ~ThriftHiveMetastore_compact_args() throw(); + virtual ~ThriftHiveMetastore_compact_args() throw() {} + CompactionRequest rqst; _ThriftHiveMetastore_compact_args__isset __isset; - void __set_rqst(const CompactionRequest& val); + void __set_rqst(const CompactionRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_compact_args & rhs) const { @@ -16116,7 +17361,8 @@ class ThriftHiveMetastore_compact_pargs { public: - virtual ~ThriftHiveMetastore_compact_pargs() throw(); + virtual ~ThriftHiveMetastore_compact_pargs() throw() {} + const CompactionRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16127,12 +17373,11 @@ class ThriftHiveMetastore_compact_pargs { class ThriftHiveMetastore_compact_result { public: - ThriftHiveMetastore_compact_result(const ThriftHiveMetastore_compact_result&); - ThriftHiveMetastore_compact_result& operator=(const ThriftHiveMetastore_compact_result&); ThriftHiveMetastore_compact_result() { } - virtual ~ThriftHiveMetastore_compact_result() throw(); + virtual ~ThriftHiveMetastore_compact_result() throw() {} + bool operator == (const ThriftHiveMetastore_compact_result & /* rhs */) const { @@ -16154,7 +17399,8 @@ class ThriftHiveMetastore_compact_presult { public: - virtual ~ThriftHiveMetastore_compact_presult() throw(); + virtual ~ThriftHiveMetastore_compact_presult() throw() {} + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -16162,23 +17408,24 @@ class ThriftHiveMetastore_compact_presult { typedef struct _ThriftHiveMetastore_show_compact_args__isset { _ThriftHiveMetastore_show_compact_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_show_compact_args__isset; class ThriftHiveMetastore_show_compact_args { public: - ThriftHiveMetastore_show_compact_args(const ThriftHiveMetastore_show_compact_args&); - ThriftHiveMetastore_show_compact_args& operator=(const ThriftHiveMetastore_show_compact_args&); ThriftHiveMetastore_show_compact_args() { } - virtual ~ThriftHiveMetastore_show_compact_args() throw(); + virtual ~ThriftHiveMetastore_show_compact_args() throw() {} + ShowCompactRequest rqst; _ThriftHiveMetastore_show_compact_args__isset __isset; - void __set_rqst(const ShowCompactRequest& val); + void __set_rqst(const ShowCompactRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_show_compact_args & rhs) const { @@ -16202,7 +17449,8 @@ class ThriftHiveMetastore_show_compact_pargs { public: - virtual ~ThriftHiveMetastore_show_compact_pargs() throw(); + virtual ~ThriftHiveMetastore_show_compact_pargs() throw() {} + const ShowCompactRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16211,23 +17459,24 @@ class ThriftHiveMetastore_show_compact_pargs { typedef struct _ThriftHiveMetastore_show_compact_result__isset { _ThriftHiveMetastore_show_compact_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_compact_result__isset; class ThriftHiveMetastore_show_compact_result { public: - ThriftHiveMetastore_show_compact_result(const ThriftHiveMetastore_show_compact_result&); - ThriftHiveMetastore_show_compact_result& operator=(const ThriftHiveMetastore_show_compact_result&); ThriftHiveMetastore_show_compact_result() { } - virtual ~ThriftHiveMetastore_show_compact_result() throw(); + virtual ~ThriftHiveMetastore_show_compact_result() throw() {} + ShowCompactResponse success; _ThriftHiveMetastore_show_compact_result__isset __isset; - void __set_success(const ShowCompactResponse& val); + void __set_success(const ShowCompactResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_show_compact_result & rhs) const { @@ -16248,14 +17497,15 @@ class ThriftHiveMetastore_show_compact_result { typedef struct _ThriftHiveMetastore_show_compact_presult__isset { _ThriftHiveMetastore_show_compact_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_compact_presult__isset; class ThriftHiveMetastore_show_compact_presult { public: - virtual ~ThriftHiveMetastore_show_compact_presult() throw(); + virtual ~ThriftHiveMetastore_show_compact_presult() throw() {} + ShowCompactResponse* success; _ThriftHiveMetastore_show_compact_presult__isset __isset; @@ -16266,23 +17516,24 @@ class ThriftHiveMetastore_show_compact_presult { typedef struct _ThriftHiveMetastore_add_dynamic_partitions_args__isset { _ThriftHiveMetastore_add_dynamic_partitions_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_add_dynamic_partitions_args__isset; class ThriftHiveMetastore_add_dynamic_partitions_args { public: - ThriftHiveMetastore_add_dynamic_partitions_args(const ThriftHiveMetastore_add_dynamic_partitions_args&); - ThriftHiveMetastore_add_dynamic_partitions_args& operator=(const ThriftHiveMetastore_add_dynamic_partitions_args&); ThriftHiveMetastore_add_dynamic_partitions_args() { } - virtual ~ThriftHiveMetastore_add_dynamic_partitions_args() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_args() throw() {} + AddDynamicPartitions rqst; _ThriftHiveMetastore_add_dynamic_partitions_args__isset __isset; - void __set_rqst(const AddDynamicPartitions& val); + void __set_rqst(const AddDynamicPartitions& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_args & rhs) const { @@ -16306,7 +17557,8 @@ class ThriftHiveMetastore_add_dynamic_partitions_pargs { public: - virtual ~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() {} + const AddDynamicPartitions* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16315,27 +17567,30 @@ class ThriftHiveMetastore_add_dynamic_partitions_pargs { typedef struct _ThriftHiveMetastore_add_dynamic_partitions_result__isset { _ThriftHiveMetastore_add_dynamic_partitions_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_add_dynamic_partitions_result__isset; class ThriftHiveMetastore_add_dynamic_partitions_result { public: - ThriftHiveMetastore_add_dynamic_partitions_result(const ThriftHiveMetastore_add_dynamic_partitions_result&); - ThriftHiveMetastore_add_dynamic_partitions_result& operator=(const ThriftHiveMetastore_add_dynamic_partitions_result&); ThriftHiveMetastore_add_dynamic_partitions_result() { } - virtual ~ThriftHiveMetastore_add_dynamic_partitions_result() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_result() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_add_dynamic_partitions_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_result & rhs) const { @@ -16358,15 +17613,16 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { typedef struct _ThriftHiveMetastore_add_dynamic_partitions_presult__isset { _ThriftHiveMetastore_add_dynamic_partitions_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_add_dynamic_partitions_presult__isset; class ThriftHiveMetastore_add_dynamic_partitions_presult { public: - virtual ~ThriftHiveMetastore_add_dynamic_partitions_presult() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; @@ -16378,23 +17634,24 @@ class ThriftHiveMetastore_add_dynamic_partitions_presult { typedef struct _ThriftHiveMetastore_get_next_notification_args__isset { _ThriftHiveMetastore_get_next_notification_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_get_next_notification_args__isset; class ThriftHiveMetastore_get_next_notification_args { public: - ThriftHiveMetastore_get_next_notification_args(const ThriftHiveMetastore_get_next_notification_args&); - ThriftHiveMetastore_get_next_notification_args& operator=(const ThriftHiveMetastore_get_next_notification_args&); ThriftHiveMetastore_get_next_notification_args() { } - virtual ~ThriftHiveMetastore_get_next_notification_args() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_args() throw() {} + NotificationEventRequest rqst; _ThriftHiveMetastore_get_next_notification_args__isset __isset; - void __set_rqst(const NotificationEventRequest& val); + void __set_rqst(const NotificationEventRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_get_next_notification_args & rhs) const { @@ -16418,7 +17675,8 @@ class ThriftHiveMetastore_get_next_notification_pargs { public: - virtual ~ThriftHiveMetastore_get_next_notification_pargs() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_pargs() throw() {} + const NotificationEventRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16427,23 +17685,24 @@ class ThriftHiveMetastore_get_next_notification_pargs { typedef struct _ThriftHiveMetastore_get_next_notification_result__isset { _ThriftHiveMetastore_get_next_notification_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_next_notification_result__isset; class ThriftHiveMetastore_get_next_notification_result { public: - ThriftHiveMetastore_get_next_notification_result(const ThriftHiveMetastore_get_next_notification_result&); - ThriftHiveMetastore_get_next_notification_result& operator=(const ThriftHiveMetastore_get_next_notification_result&); ThriftHiveMetastore_get_next_notification_result() { } - virtual ~ThriftHiveMetastore_get_next_notification_result() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_result() throw() {} + NotificationEventResponse success; _ThriftHiveMetastore_get_next_notification_result__isset __isset; - void __set_success(const NotificationEventResponse& val); + void __set_success(const NotificationEventResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_next_notification_result & rhs) const { @@ -16464,14 +17723,15 @@ class ThriftHiveMetastore_get_next_notification_result { typedef struct _ThriftHiveMetastore_get_next_notification_presult__isset { _ThriftHiveMetastore_get_next_notification_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_next_notification_presult__isset; class ThriftHiveMetastore_get_next_notification_presult { public: - virtual ~ThriftHiveMetastore_get_next_notification_presult() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_presult() throw() {} + NotificationEventResponse* success; _ThriftHiveMetastore_get_next_notification_presult__isset __isset; @@ -16484,12 +17744,11 @@ class ThriftHiveMetastore_get_next_notification_presult { class ThriftHiveMetastore_get_current_notificationEventId_args { public: - ThriftHiveMetastore_get_current_notificationEventId_args(const ThriftHiveMetastore_get_current_notificationEventId_args&); - ThriftHiveMetastore_get_current_notificationEventId_args& operator=(const ThriftHiveMetastore_get_current_notificationEventId_args&); ThriftHiveMetastore_get_current_notificationEventId_args() { } - virtual ~ThriftHiveMetastore_get_current_notificationEventId_args() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_current_notificationEventId_args & /* rhs */) const { @@ -16511,7 +17770,8 @@ class ThriftHiveMetastore_get_current_notificationEventId_pargs { public: - virtual ~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16519,23 +17779,24 @@ class ThriftHiveMetastore_get_current_notificationEventId_pargs { typedef struct _ThriftHiveMetastore_get_current_notificationEventId_result__isset { _ThriftHiveMetastore_get_current_notificationEventId_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_current_notificationEventId_result__isset; class ThriftHiveMetastore_get_current_notificationEventId_result { public: - ThriftHiveMetastore_get_current_notificationEventId_result(const ThriftHiveMetastore_get_current_notificationEventId_result&); - ThriftHiveMetastore_get_current_notificationEventId_result& operator=(const ThriftHiveMetastore_get_current_notificationEventId_result&); ThriftHiveMetastore_get_current_notificationEventId_result() { } - virtual ~ThriftHiveMetastore_get_current_notificationEventId_result() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_result() throw() {} + CurrentNotificationEventId success; _ThriftHiveMetastore_get_current_notificationEventId_result__isset __isset; - void __set_success(const CurrentNotificationEventId& val); + void __set_success(const CurrentNotificationEventId& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_current_notificationEventId_result & rhs) const { @@ -16556,14 +17817,15 @@ class ThriftHiveMetastore_get_current_notificationEventId_result { typedef struct _ThriftHiveMetastore_get_current_notificationEventId_presult__isset { _ThriftHiveMetastore_get_current_notificationEventId_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_current_notificationEventId_presult__isset; class ThriftHiveMetastore_get_current_notificationEventId_presult { public: - virtual ~ThriftHiveMetastore_get_current_notificationEventId_presult() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() {} + CurrentNotificationEventId* success; _ThriftHiveMetastore_get_current_notificationEventId_presult__isset __isset; @@ -16574,23 +17836,24 @@ class ThriftHiveMetastore_get_current_notificationEventId_presult { typedef struct _ThriftHiveMetastore_fire_listener_event_args__isset { _ThriftHiveMetastore_fire_listener_event_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_fire_listener_event_args__isset; class ThriftHiveMetastore_fire_listener_event_args { public: - ThriftHiveMetastore_fire_listener_event_args(const ThriftHiveMetastore_fire_listener_event_args&); - ThriftHiveMetastore_fire_listener_event_args& operator=(const ThriftHiveMetastore_fire_listener_event_args&); ThriftHiveMetastore_fire_listener_event_args() { } - virtual ~ThriftHiveMetastore_fire_listener_event_args() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_args() throw() {} + FireEventRequest rqst; _ThriftHiveMetastore_fire_listener_event_args__isset __isset; - void __set_rqst(const FireEventRequest& val); + void __set_rqst(const FireEventRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_fire_listener_event_args & rhs) const { @@ -16614,7 +17877,8 @@ class ThriftHiveMetastore_fire_listener_event_pargs { public: - virtual ~ThriftHiveMetastore_fire_listener_event_pargs() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_pargs() throw() {} + const FireEventRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16623,23 +17887,24 @@ class ThriftHiveMetastore_fire_listener_event_pargs { typedef struct _ThriftHiveMetastore_fire_listener_event_result__isset { _ThriftHiveMetastore_fire_listener_event_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_fire_listener_event_result__isset; class ThriftHiveMetastore_fire_listener_event_result { public: - ThriftHiveMetastore_fire_listener_event_result(const ThriftHiveMetastore_fire_listener_event_result&); - ThriftHiveMetastore_fire_listener_event_result& operator=(const ThriftHiveMetastore_fire_listener_event_result&); ThriftHiveMetastore_fire_listener_event_result() { } - virtual ~ThriftHiveMetastore_fire_listener_event_result() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_result() throw() {} + FireEventResponse success; _ThriftHiveMetastore_fire_listener_event_result__isset __isset; - void __set_success(const FireEventResponse& val); + void __set_success(const FireEventResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_fire_listener_event_result & rhs) const { @@ -16660,14 +17925,15 @@ class ThriftHiveMetastore_fire_listener_event_result { typedef struct _ThriftHiveMetastore_fire_listener_event_presult__isset { _ThriftHiveMetastore_fire_listener_event_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_fire_listener_event_presult__isset; class ThriftHiveMetastore_fire_listener_event_presult { public: - virtual ~ThriftHiveMetastore_fire_listener_event_presult() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_presult() throw() {} + FireEventResponse* success; _ThriftHiveMetastore_fire_listener_event_presult__isset __isset; @@ -16680,12 +17946,11 @@ class ThriftHiveMetastore_fire_listener_event_presult { class ThriftHiveMetastore_flushCache_args { public: - ThriftHiveMetastore_flushCache_args(const ThriftHiveMetastore_flushCache_args&); - ThriftHiveMetastore_flushCache_args& operator=(const ThriftHiveMetastore_flushCache_args&); ThriftHiveMetastore_flushCache_args() { } - virtual ~ThriftHiveMetastore_flushCache_args() throw(); + virtual ~ThriftHiveMetastore_flushCache_args() throw() {} + bool operator == (const ThriftHiveMetastore_flushCache_args & /* rhs */) const { @@ -16707,7 +17972,8 @@ class ThriftHiveMetastore_flushCache_pargs { public: - virtual ~ThriftHiveMetastore_flushCache_pargs() throw(); + virtual ~ThriftHiveMetastore_flushCache_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16717,12 +17983,11 @@ class ThriftHiveMetastore_flushCache_pargs { class ThriftHiveMetastore_flushCache_result { public: - ThriftHiveMetastore_flushCache_result(const ThriftHiveMetastore_flushCache_result&); - ThriftHiveMetastore_flushCache_result& operator=(const ThriftHiveMetastore_flushCache_result&); ThriftHiveMetastore_flushCache_result() { } - virtual ~ThriftHiveMetastore_flushCache_result() throw(); + virtual ~ThriftHiveMetastore_flushCache_result() throw() {} + bool operator == (const ThriftHiveMetastore_flushCache_result & /* rhs */) const { @@ -16744,7 +18009,8 @@ class ThriftHiveMetastore_flushCache_presult { public: - virtual ~ThriftHiveMetastore_flushCache_presult() throw(); + virtual ~ThriftHiveMetastore_flushCache_presult() throw() {} + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -16752,23 +18018,24 @@ class ThriftHiveMetastore_flushCache_presult { typedef struct _ThriftHiveMetastore_get_file_metadata_by_expr_args__isset { _ThriftHiveMetastore_get_file_metadata_by_expr_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_get_file_metadata_by_expr_args__isset; class ThriftHiveMetastore_get_file_metadata_by_expr_args { public: - ThriftHiveMetastore_get_file_metadata_by_expr_args(const ThriftHiveMetastore_get_file_metadata_by_expr_args&); - ThriftHiveMetastore_get_file_metadata_by_expr_args& operator=(const ThriftHiveMetastore_get_file_metadata_by_expr_args&); ThriftHiveMetastore_get_file_metadata_by_expr_args() { } - virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_args() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_args() throw() {} + GetFileMetadataByExprRequest req; _ThriftHiveMetastore_get_file_metadata_by_expr_args__isset __isset; - void __set_req(const GetFileMetadataByExprRequest& val); + void __set_req(const GetFileMetadataByExprRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_get_file_metadata_by_expr_args & rhs) const { @@ -16792,7 +18059,8 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_pargs { public: - virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_pargs() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_pargs() throw() {} + const GetFileMetadataByExprRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16801,23 +18069,24 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_pargs { typedef struct _ThriftHiveMetastore_get_file_metadata_by_expr_result__isset { _ThriftHiveMetastore_get_file_metadata_by_expr_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_file_metadata_by_expr_result__isset; class ThriftHiveMetastore_get_file_metadata_by_expr_result { public: - ThriftHiveMetastore_get_file_metadata_by_expr_result(const ThriftHiveMetastore_get_file_metadata_by_expr_result&); - ThriftHiveMetastore_get_file_metadata_by_expr_result& operator=(const ThriftHiveMetastore_get_file_metadata_by_expr_result&); ThriftHiveMetastore_get_file_metadata_by_expr_result() { } - virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_result() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_result() throw() {} + GetFileMetadataByExprResult success; _ThriftHiveMetastore_get_file_metadata_by_expr_result__isset __isset; - void __set_success(const GetFileMetadataByExprResult& val); + void __set_success(const GetFileMetadataByExprResult& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_file_metadata_by_expr_result & rhs) const { @@ -16838,14 +18107,15 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_result { typedef struct _ThriftHiveMetastore_get_file_metadata_by_expr_presult__isset { _ThriftHiveMetastore_get_file_metadata_by_expr_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_file_metadata_by_expr_presult__isset; class ThriftHiveMetastore_get_file_metadata_by_expr_presult { public: - virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_presult() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_by_expr_presult() throw() {} + GetFileMetadataByExprResult* success; _ThriftHiveMetastore_get_file_metadata_by_expr_presult__isset __isset; @@ -16856,23 +18126,24 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_presult { typedef struct _ThriftHiveMetastore_get_file_metadata_args__isset { _ThriftHiveMetastore_get_file_metadata_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_get_file_metadata_args__isset; class ThriftHiveMetastore_get_file_metadata_args { public: - ThriftHiveMetastore_get_file_metadata_args(const ThriftHiveMetastore_get_file_metadata_args&); - ThriftHiveMetastore_get_file_metadata_args& operator=(const ThriftHiveMetastore_get_file_metadata_args&); ThriftHiveMetastore_get_file_metadata_args() { } - virtual ~ThriftHiveMetastore_get_file_metadata_args() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_args() throw() {} + GetFileMetadataRequest req; _ThriftHiveMetastore_get_file_metadata_args__isset __isset; - void __set_req(const GetFileMetadataRequest& val); + void __set_req(const GetFileMetadataRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_get_file_metadata_args & rhs) const { @@ -16896,7 +18167,8 @@ class ThriftHiveMetastore_get_file_metadata_pargs { public: - virtual ~ThriftHiveMetastore_get_file_metadata_pargs() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_pargs() throw() {} + const GetFileMetadataRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -16905,23 +18177,24 @@ class ThriftHiveMetastore_get_file_metadata_pargs { typedef struct _ThriftHiveMetastore_get_file_metadata_result__isset { _ThriftHiveMetastore_get_file_metadata_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_file_metadata_result__isset; class ThriftHiveMetastore_get_file_metadata_result { public: - ThriftHiveMetastore_get_file_metadata_result(const ThriftHiveMetastore_get_file_metadata_result&); - ThriftHiveMetastore_get_file_metadata_result& operator=(const ThriftHiveMetastore_get_file_metadata_result&); ThriftHiveMetastore_get_file_metadata_result() { } - virtual ~ThriftHiveMetastore_get_file_metadata_result() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_result() throw() {} + GetFileMetadataResult success; _ThriftHiveMetastore_get_file_metadata_result__isset __isset; - void __set_success(const GetFileMetadataResult& val); + void __set_success(const GetFileMetadataResult& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_file_metadata_result & rhs) const { @@ -16942,14 +18215,15 @@ class ThriftHiveMetastore_get_file_metadata_result { typedef struct _ThriftHiveMetastore_get_file_metadata_presult__isset { _ThriftHiveMetastore_get_file_metadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_file_metadata_presult__isset; class ThriftHiveMetastore_get_file_metadata_presult { public: - virtual ~ThriftHiveMetastore_get_file_metadata_presult() throw(); + virtual ~ThriftHiveMetastore_get_file_metadata_presult() throw() {} + GetFileMetadataResult* success; _ThriftHiveMetastore_get_file_metadata_presult__isset __isset; @@ -16960,23 +18234,24 @@ class ThriftHiveMetastore_get_file_metadata_presult { typedef struct _ThriftHiveMetastore_put_file_metadata_args__isset { _ThriftHiveMetastore_put_file_metadata_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_put_file_metadata_args__isset; class ThriftHiveMetastore_put_file_metadata_args { public: - ThriftHiveMetastore_put_file_metadata_args(const ThriftHiveMetastore_put_file_metadata_args&); - ThriftHiveMetastore_put_file_metadata_args& operator=(const ThriftHiveMetastore_put_file_metadata_args&); ThriftHiveMetastore_put_file_metadata_args() { } - virtual ~ThriftHiveMetastore_put_file_metadata_args() throw(); + virtual ~ThriftHiveMetastore_put_file_metadata_args() throw() {} + PutFileMetadataRequest req; _ThriftHiveMetastore_put_file_metadata_args__isset __isset; - void __set_req(const PutFileMetadataRequest& val); + void __set_req(const PutFileMetadataRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_put_file_metadata_args & rhs) const { @@ -17000,7 +18275,8 @@ class ThriftHiveMetastore_put_file_metadata_pargs { public: - virtual ~ThriftHiveMetastore_put_file_metadata_pargs() throw(); + virtual ~ThriftHiveMetastore_put_file_metadata_pargs() throw() {} + const PutFileMetadataRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -17009,23 +18285,24 @@ class ThriftHiveMetastore_put_file_metadata_pargs { typedef struct _ThriftHiveMetastore_put_file_metadata_result__isset { _ThriftHiveMetastore_put_file_metadata_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_put_file_metadata_result__isset; class ThriftHiveMetastore_put_file_metadata_result { public: - ThriftHiveMetastore_put_file_metadata_result(const ThriftHiveMetastore_put_file_metadata_result&); - ThriftHiveMetastore_put_file_metadata_result& operator=(const ThriftHiveMetastore_put_file_metadata_result&); ThriftHiveMetastore_put_file_metadata_result() { } - virtual ~ThriftHiveMetastore_put_file_metadata_result() throw(); + virtual ~ThriftHiveMetastore_put_file_metadata_result() throw() {} + PutFileMetadataResult success; _ThriftHiveMetastore_put_file_metadata_result__isset __isset; - void __set_success(const PutFileMetadataResult& val); + void __set_success(const PutFileMetadataResult& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_put_file_metadata_result & rhs) const { @@ -17046,14 +18323,15 @@ class ThriftHiveMetastore_put_file_metadata_result { typedef struct _ThriftHiveMetastore_put_file_metadata_presult__isset { _ThriftHiveMetastore_put_file_metadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_put_file_metadata_presult__isset; class ThriftHiveMetastore_put_file_metadata_presult { public: - virtual ~ThriftHiveMetastore_put_file_metadata_presult() throw(); + virtual ~ThriftHiveMetastore_put_file_metadata_presult() throw() {} + PutFileMetadataResult* success; _ThriftHiveMetastore_put_file_metadata_presult__isset __isset; @@ -17064,23 +18342,24 @@ class ThriftHiveMetastore_put_file_metadata_presult { typedef struct _ThriftHiveMetastore_clear_file_metadata_args__isset { _ThriftHiveMetastore_clear_file_metadata_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_clear_file_metadata_args__isset; class ThriftHiveMetastore_clear_file_metadata_args { public: - ThriftHiveMetastore_clear_file_metadata_args(const ThriftHiveMetastore_clear_file_metadata_args&); - ThriftHiveMetastore_clear_file_metadata_args& operator=(const ThriftHiveMetastore_clear_file_metadata_args&); ThriftHiveMetastore_clear_file_metadata_args() { } - virtual ~ThriftHiveMetastore_clear_file_metadata_args() throw(); + virtual ~ThriftHiveMetastore_clear_file_metadata_args() throw() {} + ClearFileMetadataRequest req; _ThriftHiveMetastore_clear_file_metadata_args__isset __isset; - void __set_req(const ClearFileMetadataRequest& val); + void __set_req(const ClearFileMetadataRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_clear_file_metadata_args & rhs) const { @@ -17104,7 +18383,8 @@ class ThriftHiveMetastore_clear_file_metadata_pargs { public: - virtual ~ThriftHiveMetastore_clear_file_metadata_pargs() throw(); + virtual ~ThriftHiveMetastore_clear_file_metadata_pargs() throw() {} + const ClearFileMetadataRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -17113,23 +18393,24 @@ class ThriftHiveMetastore_clear_file_metadata_pargs { typedef struct _ThriftHiveMetastore_clear_file_metadata_result__isset { _ThriftHiveMetastore_clear_file_metadata_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_clear_file_metadata_result__isset; class ThriftHiveMetastore_clear_file_metadata_result { public: - ThriftHiveMetastore_clear_file_metadata_result(const ThriftHiveMetastore_clear_file_metadata_result&); - ThriftHiveMetastore_clear_file_metadata_result& operator=(const ThriftHiveMetastore_clear_file_metadata_result&); ThriftHiveMetastore_clear_file_metadata_result() { } - virtual ~ThriftHiveMetastore_clear_file_metadata_result() throw(); + virtual ~ThriftHiveMetastore_clear_file_metadata_result() throw() {} + ClearFileMetadataResult success; _ThriftHiveMetastore_clear_file_metadata_result__isset __isset; - void __set_success(const ClearFileMetadataResult& val); + void __set_success(const ClearFileMetadataResult& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_clear_file_metadata_result & rhs) const { @@ -17150,14 +18431,15 @@ class ThriftHiveMetastore_clear_file_metadata_result { typedef struct _ThriftHiveMetastore_clear_file_metadata_presult__isset { _ThriftHiveMetastore_clear_file_metadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_clear_file_metadata_presult__isset; class ThriftHiveMetastore_clear_file_metadata_presult { public: - virtual ~ThriftHiveMetastore_clear_file_metadata_presult() throw(); + virtual ~ThriftHiveMetastore_clear_file_metadata_presult() throw() {} + ClearFileMetadataResult* success; _ThriftHiveMetastore_clear_file_metadata_presult__isset __isset; @@ -17168,23 +18450,24 @@ class ThriftHiveMetastore_clear_file_metadata_presult { typedef struct _ThriftHiveMetastore_cache_file_metadata_args__isset { _ThriftHiveMetastore_cache_file_metadata_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_cache_file_metadata_args__isset; class ThriftHiveMetastore_cache_file_metadata_args { public: - ThriftHiveMetastore_cache_file_metadata_args(const ThriftHiveMetastore_cache_file_metadata_args&); - ThriftHiveMetastore_cache_file_metadata_args& operator=(const ThriftHiveMetastore_cache_file_metadata_args&); ThriftHiveMetastore_cache_file_metadata_args() { } - virtual ~ThriftHiveMetastore_cache_file_metadata_args() throw(); + virtual ~ThriftHiveMetastore_cache_file_metadata_args() throw() {} + CacheFileMetadataRequest req; _ThriftHiveMetastore_cache_file_metadata_args__isset __isset; - void __set_req(const CacheFileMetadataRequest& val); + void __set_req(const CacheFileMetadataRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_cache_file_metadata_args & rhs) const { @@ -17208,7 +18491,8 @@ class ThriftHiveMetastore_cache_file_metadata_pargs { public: - virtual ~ThriftHiveMetastore_cache_file_metadata_pargs() throw(); + virtual ~ThriftHiveMetastore_cache_file_metadata_pargs() throw() {} + const CacheFileMetadataRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -17217,23 +18501,24 @@ class ThriftHiveMetastore_cache_file_metadata_pargs { typedef struct _ThriftHiveMetastore_cache_file_metadata_result__isset { _ThriftHiveMetastore_cache_file_metadata_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_cache_file_metadata_result__isset; class ThriftHiveMetastore_cache_file_metadata_result { public: - ThriftHiveMetastore_cache_file_metadata_result(const ThriftHiveMetastore_cache_file_metadata_result&); - ThriftHiveMetastore_cache_file_metadata_result& operator=(const ThriftHiveMetastore_cache_file_metadata_result&); ThriftHiveMetastore_cache_file_metadata_result() { } - virtual ~ThriftHiveMetastore_cache_file_metadata_result() throw(); + virtual ~ThriftHiveMetastore_cache_file_metadata_result() throw() {} + CacheFileMetadataResult success; _ThriftHiveMetastore_cache_file_metadata_result__isset __isset; - void __set_success(const CacheFileMetadataResult& val); + void __set_success(const CacheFileMetadataResult& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_cache_file_metadata_result & rhs) const { @@ -17254,14 +18539,15 @@ class ThriftHiveMetastore_cache_file_metadata_result { typedef struct _ThriftHiveMetastore_cache_file_metadata_presult__isset { _ThriftHiveMetastore_cache_file_metadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_cache_file_metadata_presult__isset; class ThriftHiveMetastore_cache_file_metadata_presult { public: - virtual ~ThriftHiveMetastore_cache_file_metadata_presult() throw(); + virtual ~ThriftHiveMetastore_cache_file_metadata_presult() throw() {} + CacheFileMetadataResult* success; _ThriftHiveMetastore_cache_file_metadata_presult__isset __isset; @@ -17274,7 +18560,8 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public public: ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : ::facebook::fb303::FacebookServiceClient(prot, prot) {} - ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::facebook::fb303::FacebookServiceClient(iprot, oprot) {} + ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + ::facebook::fb303::FacebookServiceClient(iprot, oprot) {} boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } @@ -19273,425 +20560,6 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi }; -// The 'concurrent' client is a thread safe client that correctly handles -// out of order responses. It is slower than the regular client, so should -// only be used when you need to share a connection among multiple threads -class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf, public ::facebook::fb303::FacebookServiceConcurrentClient { - public: - ThriftHiveMetastoreConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : - ::facebook::fb303::FacebookServiceConcurrentClient(prot, prot) {} - ThriftHiveMetastoreConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::facebook::fb303::FacebookServiceConcurrentClient(iprot, oprot) {} - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { - return piprot_; - } - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() { - return poprot_; - } - void getMetaConf(std::string& _return, const std::string& key); - int32_t send_getMetaConf(const std::string& key); - void recv_getMetaConf(std::string& _return, const int32_t seqid); - void setMetaConf(const std::string& key, const std::string& value); - int32_t send_setMetaConf(const std::string& key, const std::string& value); - void recv_setMetaConf(const int32_t seqid); - void create_database(const Database& database); - int32_t send_create_database(const Database& database); - void recv_create_database(const int32_t seqid); - void get_database(Database& _return, const std::string& name); - int32_t send_get_database(const std::string& name); - void recv_get_database(Database& _return, const int32_t seqid); - void drop_database(const std::string& name, const bool deleteData, const bool cascade); - int32_t send_drop_database(const std::string& name, const bool deleteData, const bool cascade); - void recv_drop_database(const int32_t seqid); - void get_databases(std::vector & _return, const std::string& pattern); - int32_t send_get_databases(const std::string& pattern); - void recv_get_databases(std::vector & _return, const int32_t seqid); - void get_all_databases(std::vector & _return); - int32_t send_get_all_databases(); - void recv_get_all_databases(std::vector & _return, const int32_t seqid); - void alter_database(const std::string& dbname, const Database& db); - int32_t send_alter_database(const std::string& dbname, const Database& db); - void recv_alter_database(const int32_t seqid); - void get_type(Type& _return, const std::string& name); - int32_t send_get_type(const std::string& name); - void recv_get_type(Type& _return, const int32_t seqid); - bool create_type(const Type& type); - int32_t send_create_type(const Type& type); - bool recv_create_type(const int32_t seqid); - bool drop_type(const std::string& type); - int32_t send_drop_type(const std::string& type); - bool recv_drop_type(const int32_t seqid); - void get_type_all(std::map & _return, const std::string& name); - int32_t send_get_type_all(const std::string& name); - void recv_get_type_all(std::map & _return, const int32_t seqid); - void get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name); - int32_t send_get_fields(const std::string& db_name, const std::string& table_name); - void recv_get_fields(std::vector & _return, const int32_t seqid); - void get_fields_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context); - int32_t send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context); - void recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid); - void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name); - int32_t send_get_schema(const std::string& db_name, const std::string& table_name); - void recv_get_schema(std::vector & _return, const int32_t seqid); - void get_schema_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context); - int32_t send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context); - void recv_get_schema_with_environment_context(std::vector & _return, const int32_t seqid); - void create_table(const Table& tbl); - int32_t send_create_table(const Table& tbl); - void recv_create_table(const int32_t seqid); - void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); - int32_t send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); - void recv_create_table_with_environment_context(const int32_t seqid); - void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); - int32_t send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); - void recv_drop_table(const int32_t seqid); - void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context); - int32_t send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context); - void recv_drop_table_with_environment_context(const int32_t seqid); - void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern); - int32_t send_get_tables(const std::string& db_name, const std::string& pattern); - void recv_get_tables(std::vector & _return, const int32_t seqid); - void get_table_meta(std::vector & _return, const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); - int32_t send_get_table_meta(const std::string& db_patterns, const std::string& tbl_patterns, const std::vector & tbl_types); - void recv_get_table_meta(std::vector & _return, const int32_t seqid); - void get_all_tables(std::vector & _return, const std::string& db_name); - int32_t send_get_all_tables(const std::string& db_name); - void recv_get_all_tables(std::vector & _return, const int32_t seqid); - void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name); - int32_t send_get_table(const std::string& dbname, const std::string& tbl_name); - void recv_get_table(Table& _return, const int32_t seqid); - void get_table_objects_by_name(std::vector
& _return, const std::string& dbname, const std::vector & tbl_names); - int32_t send_get_table_objects_by_name(const std::string& dbname, const std::vector & tbl_names); - void recv_get_table_objects_by_name(std::vector
& _return, const int32_t seqid); - void get_table_names_by_filter(std::vector & _return, const std::string& dbname, const std::string& filter, const int16_t max_tables); - int32_t send_get_table_names_by_filter(const std::string& dbname, const std::string& filter, const int16_t max_tables); - void recv_get_table_names_by_filter(std::vector & _return, const int32_t seqid); - void alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl); - int32_t send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl); - void recv_alter_table(const int32_t seqid); - void alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context); - int32_t send_alter_table_with_environment_context(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const EnvironmentContext& environment_context); - void recv_alter_table_with_environment_context(const int32_t seqid); - void alter_table_with_cascade(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const bool cascade); - int32_t send_alter_table_with_cascade(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl, const bool cascade); - void recv_alter_table_with_cascade(const int32_t seqid); - void add_partition(Partition& _return, const Partition& new_part); - int32_t send_add_partition(const Partition& new_part); - void recv_add_partition(Partition& _return, const int32_t seqid); - void add_partition_with_environment_context(Partition& _return, const Partition& new_part, const EnvironmentContext& environment_context); - int32_t send_add_partition_with_environment_context(const Partition& new_part, const EnvironmentContext& environment_context); - void recv_add_partition_with_environment_context(Partition& _return, const int32_t seqid); - int32_t add_partitions(const std::vector & new_parts); - int32_t send_add_partitions(const std::vector & new_parts); - int32_t recv_add_partitions(const int32_t seqid); - int32_t add_partitions_pspec(const std::vector & new_parts); - int32_t send_add_partitions_pspec(const std::vector & new_parts); - int32_t recv_add_partitions_pspec(const int32_t seqid); - void append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); - int32_t send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); - void recv_append_partition(Partition& _return, const int32_t seqid); - void add_partitions_req(AddPartitionsResult& _return, const AddPartitionsRequest& request); - int32_t send_add_partitions_req(const AddPartitionsRequest& request); - void recv_add_partitions_req(AddPartitionsResult& _return, const int32_t seqid); - void append_partition_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const EnvironmentContext& environment_context); - int32_t send_append_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const EnvironmentContext& environment_context); - void recv_append_partition_with_environment_context(Partition& _return, const int32_t seqid); - void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name); - int32_t send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name); - void recv_append_partition_by_name(Partition& _return, const int32_t seqid); - void append_partition_by_name_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context); - int32_t send_append_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context); - void recv_append_partition_by_name_with_environment_context(Partition& _return, const int32_t seqid); - bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); - int32_t send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); - bool recv_drop_partition(const int32_t seqid); - bool drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); - int32_t send_drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); - bool recv_drop_partition_with_environment_context(const int32_t seqid); - bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); - int32_t send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); - bool recv_drop_partition_by_name(const int32_t seqid); - bool drop_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData, const EnvironmentContext& environment_context); - int32_t send_drop_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData, const EnvironmentContext& environment_context); - bool recv_drop_partition_by_name_with_environment_context(const int32_t seqid); - void drop_partitions_req(DropPartitionsResult& _return, const DropPartitionsRequest& req); - int32_t send_drop_partitions_req(const DropPartitionsRequest& req); - void recv_drop_partitions_req(DropPartitionsResult& _return, const int32_t seqid); - void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); - int32_t send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals); - void recv_get_partition(Partition& _return, const int32_t seqid); - void exchange_partition(Partition& _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); - int32_t send_exchange_partition(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); - void recv_exchange_partition(Partition& _return, const int32_t seqid); - void exchange_partitions(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); - int32_t send_exchange_partitions(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); - void recv_exchange_partitions(std::vector & _return, const int32_t seqid); - void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); - int32_t send_get_partition_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); - void recv_get_partition_with_auth(Partition& _return, const int32_t seqid); - void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name); - int32_t send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name); - void recv_get_partition_by_name(Partition& _return, const int32_t seqid); - void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); - int32_t send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); - void recv_get_partitions(std::vector & _return, const int32_t seqid); - void get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names); - int32_t send_get_partitions_with_auth(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names); - void recv_get_partitions_with_auth(std::vector & _return, const int32_t seqid); - void get_partitions_pspec(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int32_t max_parts); - int32_t send_get_partitions_pspec(const std::string& db_name, const std::string& tbl_name, const int32_t max_parts); - void recv_get_partitions_pspec(std::vector & _return, const int32_t seqid); - void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); - int32_t send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); - void recv_get_partition_names(std::vector & _return, const int32_t seqid); - void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); - int32_t send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); - void recv_get_partitions_ps(std::vector & _return, const int32_t seqid); - void get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names); - int32_t send_get_partitions_ps_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names); - void recv_get_partitions_ps_with_auth(std::vector & _return, const int32_t seqid); - void get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); - int32_t send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); - void recv_get_partition_names_ps(std::vector & _return, const int32_t seqid); - void get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); - int32_t send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); - void recv_get_partitions_by_filter(std::vector & _return, const int32_t seqid); - void get_part_specs_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int32_t max_parts); - int32_t send_get_part_specs_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int32_t max_parts); - void recv_get_part_specs_by_filter(std::vector & _return, const int32_t seqid); - void get_partitions_by_expr(PartitionsByExprResult& _return, const PartitionsByExprRequest& req); - int32_t send_get_partitions_by_expr(const PartitionsByExprRequest& req); - void recv_get_partitions_by_expr(PartitionsByExprResult& _return, const int32_t seqid); - int32_t get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter); - int32_t send_get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter); - int32_t recv_get_num_partitions_by_filter(const int32_t seqid); - void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names); - int32_t send_get_partitions_by_names(const std::string& db_name, const std::string& tbl_name, const std::vector & names); - void recv_get_partitions_by_names(std::vector & _return, const int32_t seqid); - void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part); - int32_t send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part); - void recv_alter_partition(const int32_t seqid); - void alter_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & new_parts); - int32_t send_alter_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & new_parts); - void recv_alter_partitions(const int32_t seqid); - void alter_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const Partition& new_part, const EnvironmentContext& environment_context); - int32_t send_alter_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const Partition& new_part, const EnvironmentContext& environment_context); - void recv_alter_partition_with_environment_context(const int32_t seqid); - void rename_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const Partition& new_part); - int32_t send_rename_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const Partition& new_part); - void recv_rename_partition(const int32_t seqid); - bool partition_name_has_valid_characters(const std::vector & part_vals, const bool throw_exception); - int32_t send_partition_name_has_valid_characters(const std::vector & part_vals, const bool throw_exception); - bool recv_partition_name_has_valid_characters(const int32_t seqid); - void get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue); - int32_t send_get_config_value(const std::string& name, const std::string& defaultValue); - void recv_get_config_value(std::string& _return, const int32_t seqid); - void partition_name_to_vals(std::vector & _return, const std::string& part_name); - int32_t send_partition_name_to_vals(const std::string& part_name); - void recv_partition_name_to_vals(std::vector & _return, const int32_t seqid); - void partition_name_to_spec(std::map & _return, const std::string& part_name); - int32_t send_partition_name_to_spec(const std::string& part_name); - void recv_partition_name_to_spec(std::map & _return, const int32_t seqid); - void markPartitionForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType); - int32_t send_markPartitionForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType); - void recv_markPartitionForEvent(const int32_t seqid); - bool isPartitionMarkedForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType); - int32_t send_isPartitionMarkedForEvent(const std::string& db_name, const std::string& tbl_name, const std::map & part_vals, const PartitionEventType::type eventType); - bool recv_isPartitionMarkedForEvent(const int32_t seqid); - void add_index(Index& _return, const Index& new_index, const Table& index_table); - int32_t send_add_index(const Index& new_index, const Table& index_table); - void recv_add_index(Index& _return, const int32_t seqid); - void alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx); - int32_t send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx); - void recv_alter_index(const int32_t seqid); - bool drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData); - int32_t send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData); - bool recv_drop_index_by_name(const int32_t seqid); - void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name); - int32_t send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name); - void recv_get_index_by_name(Index& _return, const int32_t seqid); - void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); - int32_t send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); - void recv_get_indexes(std::vector & _return, const int32_t seqid); - void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); - int32_t send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); - void recv_get_index_names(std::vector & _return, const int32_t seqid); - bool update_table_column_statistics(const ColumnStatistics& stats_obj); - int32_t send_update_table_column_statistics(const ColumnStatistics& stats_obj); - bool recv_update_table_column_statistics(const int32_t seqid); - bool update_partition_column_statistics(const ColumnStatistics& stats_obj); - int32_t send_update_partition_column_statistics(const ColumnStatistics& stats_obj); - bool recv_update_partition_column_statistics(const int32_t seqid); - void get_table_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& col_name); - int32_t send_get_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name); - void recv_get_table_column_statistics(ColumnStatistics& _return, const int32_t seqid); - void get_partition_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); - int32_t send_get_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); - void recv_get_partition_column_statistics(ColumnStatistics& _return, const int32_t seqid); - void get_table_statistics_req(TableStatsResult& _return, const TableStatsRequest& request); - int32_t send_get_table_statistics_req(const TableStatsRequest& request); - void recv_get_table_statistics_req(TableStatsResult& _return, const int32_t seqid); - void get_partitions_statistics_req(PartitionsStatsResult& _return, const PartitionsStatsRequest& request); - int32_t send_get_partitions_statistics_req(const PartitionsStatsRequest& request); - void recv_get_partitions_statistics_req(PartitionsStatsResult& _return, const int32_t seqid); - void get_aggr_stats_for(AggrStats& _return, const PartitionsStatsRequest& request); - int32_t send_get_aggr_stats_for(const PartitionsStatsRequest& request); - void recv_get_aggr_stats_for(AggrStats& _return, const int32_t seqid); - bool set_aggr_stats_for(const SetPartitionsStatsRequest& request); - int32_t send_set_aggr_stats_for(const SetPartitionsStatsRequest& request); - bool recv_set_aggr_stats_for(const int32_t seqid); - bool delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); - int32_t send_delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); - bool recv_delete_partition_column_statistics(const int32_t seqid); - bool delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name); - int32_t send_delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name); - bool recv_delete_table_column_statistics(const int32_t seqid); - void create_function(const Function& func); - int32_t send_create_function(const Function& func); - void recv_create_function(const int32_t seqid); - void drop_function(const std::string& dbName, const std::string& funcName); - int32_t send_drop_function(const std::string& dbName, const std::string& funcName); - void recv_drop_function(const int32_t seqid); - void alter_function(const std::string& dbName, const std::string& funcName, const Function& newFunc); - int32_t send_alter_function(const std::string& dbName, const std::string& funcName, const Function& newFunc); - void recv_alter_function(const int32_t seqid); - void get_functions(std::vector & _return, const std::string& dbName, const std::string& pattern); - int32_t send_get_functions(const std::string& dbName, const std::string& pattern); - void recv_get_functions(std::vector & _return, const int32_t seqid); - void get_function(Function& _return, const std::string& dbName, const std::string& funcName); - int32_t send_get_function(const std::string& dbName, const std::string& funcName); - void recv_get_function(Function& _return, const int32_t seqid); - void get_all_functions(GetAllFunctionsResponse& _return); - int32_t send_get_all_functions(); - void recv_get_all_functions(GetAllFunctionsResponse& _return, const int32_t seqid); - bool create_role(const Role& role); - int32_t send_create_role(const Role& role); - bool recv_create_role(const int32_t seqid); - bool drop_role(const std::string& role_name); - int32_t send_drop_role(const std::string& role_name); - bool recv_drop_role(const int32_t seqid); - void get_role_names(std::vector & _return); - int32_t send_get_role_names(); - void recv_get_role_names(std::vector & _return, const int32_t seqid); - bool grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option); - int32_t send_grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option); - bool recv_grant_role(const int32_t seqid); - bool revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type); - int32_t send_revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type); - bool recv_revoke_role(const int32_t seqid); - void list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type); - int32_t send_list_roles(const std::string& principal_name, const PrincipalType::type principal_type); - void recv_list_roles(std::vector & _return, const int32_t seqid); - void grant_revoke_role(GrantRevokeRoleResponse& _return, const GrantRevokeRoleRequest& request); - int32_t send_grant_revoke_role(const GrantRevokeRoleRequest& request); - void recv_grant_revoke_role(GrantRevokeRoleResponse& _return, const int32_t seqid); - void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request); - int32_t send_get_principals_in_role(const GetPrincipalsInRoleRequest& request); - void recv_get_principals_in_role(GetPrincipalsInRoleResponse& _return, const int32_t seqid); - void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request); - int32_t send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request); - void recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const int32_t seqid); - void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names); - int32_t send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names); - void recv_get_privilege_set(PrincipalPrivilegeSet& _return, const int32_t seqid); - void list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject); - int32_t send_list_privileges(const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject); - void recv_list_privileges(std::vector & _return, const int32_t seqid); - bool grant_privileges(const PrivilegeBag& privileges); - int32_t send_grant_privileges(const PrivilegeBag& privileges); - bool recv_grant_privileges(const int32_t seqid); - bool revoke_privileges(const PrivilegeBag& privileges); - int32_t send_revoke_privileges(const PrivilegeBag& privileges); - bool recv_revoke_privileges(const int32_t seqid); - void grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const GrantRevokePrivilegeRequest& request); - int32_t send_grant_revoke_privileges(const GrantRevokePrivilegeRequest& request); - void recv_grant_revoke_privileges(GrantRevokePrivilegeResponse& _return, const int32_t seqid); - void set_ugi(std::vector & _return, const std::string& user_name, const std::vector & group_names); - int32_t send_set_ugi(const std::string& user_name, const std::vector & group_names); - void recv_set_ugi(std::vector & _return, const int32_t seqid); - void get_delegation_token(std::string& _return, const std::string& token_owner, const std::string& renewer_kerberos_principal_name); - int32_t send_get_delegation_token(const std::string& token_owner, const std::string& renewer_kerberos_principal_name); - void recv_get_delegation_token(std::string& _return, const int32_t seqid); - int64_t renew_delegation_token(const std::string& token_str_form); - int32_t send_renew_delegation_token(const std::string& token_str_form); - int64_t recv_renew_delegation_token(const int32_t seqid); - void cancel_delegation_token(const std::string& token_str_form); - int32_t send_cancel_delegation_token(const std::string& token_str_form); - void recv_cancel_delegation_token(const int32_t seqid); - void get_open_txns(GetOpenTxnsResponse& _return); - int32_t send_get_open_txns(); - void recv_get_open_txns(GetOpenTxnsResponse& _return, const int32_t seqid); - void get_open_txns_info(GetOpenTxnsInfoResponse& _return); - int32_t send_get_open_txns_info(); - void recv_get_open_txns_info(GetOpenTxnsInfoResponse& _return, const int32_t seqid); - void open_txns(OpenTxnsResponse& _return, const OpenTxnRequest& rqst); - int32_t send_open_txns(const OpenTxnRequest& rqst); - void recv_open_txns(OpenTxnsResponse& _return, const int32_t seqid); - void abort_txn(const AbortTxnRequest& rqst); - int32_t send_abort_txn(const AbortTxnRequest& rqst); - void recv_abort_txn(const int32_t seqid); - void commit_txn(const CommitTxnRequest& rqst); - int32_t send_commit_txn(const CommitTxnRequest& rqst); - void recv_commit_txn(const int32_t seqid); - void lock(LockResponse& _return, const LockRequest& rqst); - int32_t send_lock(const LockRequest& rqst); - void recv_lock(LockResponse& _return, const int32_t seqid); - void check_lock(LockResponse& _return, const CheckLockRequest& rqst); - int32_t send_check_lock(const CheckLockRequest& rqst); - void recv_check_lock(LockResponse& _return, const int32_t seqid); - void unlock(const UnlockRequest& rqst); - int32_t send_unlock(const UnlockRequest& rqst); - void recv_unlock(const int32_t seqid); - void show_locks(ShowLocksResponse& _return, const ShowLocksRequest& rqst); - int32_t send_show_locks(const ShowLocksRequest& rqst); - void recv_show_locks(ShowLocksResponse& _return, const int32_t seqid); - void heartbeat(const HeartbeatRequest& ids); - int32_t send_heartbeat(const HeartbeatRequest& ids); - void recv_heartbeat(const int32_t seqid); - void heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const HeartbeatTxnRangeRequest& txns); - int32_t send_heartbeat_txn_range(const HeartbeatTxnRangeRequest& txns); - void recv_heartbeat_txn_range(HeartbeatTxnRangeResponse& _return, const int32_t seqid); - void compact(const CompactionRequest& rqst); - int32_t send_compact(const CompactionRequest& rqst); - void recv_compact(const int32_t seqid); - void show_compact(ShowCompactResponse& _return, const ShowCompactRequest& rqst); - int32_t send_show_compact(const ShowCompactRequest& rqst); - void recv_show_compact(ShowCompactResponse& _return, const int32_t seqid); - void add_dynamic_partitions(const AddDynamicPartitions& rqst); - int32_t send_add_dynamic_partitions(const AddDynamicPartitions& rqst); - void recv_add_dynamic_partitions(const int32_t seqid); - void get_next_notification(NotificationEventResponse& _return, const NotificationEventRequest& rqst); - int32_t send_get_next_notification(const NotificationEventRequest& rqst); - void recv_get_next_notification(NotificationEventResponse& _return, const int32_t seqid); - void get_current_notificationEventId(CurrentNotificationEventId& _return); - int32_t send_get_current_notificationEventId(); - void recv_get_current_notificationEventId(CurrentNotificationEventId& _return, const int32_t seqid); - void fire_listener_event(FireEventResponse& _return, const FireEventRequest& rqst); - int32_t send_fire_listener_event(const FireEventRequest& rqst); - void recv_fire_listener_event(FireEventResponse& _return, const int32_t seqid); - void flushCache(); - int32_t send_flushCache(); - void recv_flushCache(const int32_t seqid); - void get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const GetFileMetadataByExprRequest& req); - int32_t send_get_file_metadata_by_expr(const GetFileMetadataByExprRequest& req); - void recv_get_file_metadata_by_expr(GetFileMetadataByExprResult& _return, const int32_t seqid); - void get_file_metadata(GetFileMetadataResult& _return, const GetFileMetadataRequest& req); - int32_t send_get_file_metadata(const GetFileMetadataRequest& req); - void recv_get_file_metadata(GetFileMetadataResult& _return, const int32_t seqid); - void put_file_metadata(PutFileMetadataResult& _return, const PutFileMetadataRequest& req); - int32_t send_put_file_metadata(const PutFileMetadataRequest& req); - void recv_put_file_metadata(PutFileMetadataResult& _return, const int32_t seqid); - void clear_file_metadata(ClearFileMetadataResult& _return, const ClearFileMetadataRequest& req); - int32_t send_clear_file_metadata(const ClearFileMetadataRequest& req); - void recv_clear_file_metadata(ClearFileMetadataResult& _return, const int32_t seqid); - void cache_file_metadata(CacheFileMetadataResult& _return, const CacheFileMetadataRequest& req); - int32_t send_cache_file_metadata(const CacheFileMetadataRequest& req); - void recv_cache_file_metadata(CacheFileMetadataResult& _return, const int32_t seqid); -}; - -#ifdef _WIN32 - #pragma warning( pop ) -#endif - }}} // namespace #endif diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp index f982bf2..c7bf9ba 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h index ae14bd1..35a8a50 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index d997e33..fec13dd 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "hive_metastore_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -159,22 +156,11 @@ const char* _kFileMetadataExprTypeNames[] = { }; const std::map _FileMetadataExprType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(1, _kFileMetadataExprTypeValues, _kFileMetadataExprTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -Version::~Version() throw() { -} - - -void Version::__set_version(const std::string& val) { - this->version = val; -} - -void Version::__set_comments(const std::string& val) { - this->comments = val; -} +const char* Version::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; +const uint8_t Version::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; uint32_t Version::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -223,7 +209,6 @@ uint32_t Version::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Version::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Version"); xfer += oprot->writeFieldBegin("version", ::apache::thrift::protocol::T_STRING, 1); @@ -246,45 +231,11 @@ void swap(Version &a, Version &b) { swap(a.__isset, b.__isset); } -Version::Version(const Version& other0) { - version = other0.version; - comments = other0.comments; - __isset = other0.__isset; -} -Version& Version::operator=(const Version& other1) { - version = other1.version; - comments = other1.comments; - __isset = other1.__isset; - return *this; -} -void Version::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Version("; - out << "version=" << to_string(version); - out << ", " << "comments=" << to_string(comments); - out << ")"; -} - - -FieldSchema::~FieldSchema() throw() { -} - - -void FieldSchema::__set_name(const std::string& val) { - this->name = val; -} - -void FieldSchema::__set_type(const std::string& val) { - this->type = val; -} - -void FieldSchema::__set_comment(const std::string& val) { - this->comment = val; -} +const char* FieldSchema::ascii_fingerprint = "AB879940BD15B6B25691265F7384B271"; +const uint8_t FieldSchema::binary_fingerprint[16] = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; uint32_t FieldSchema::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -341,7 +292,6 @@ uint32_t FieldSchema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FieldSchema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("FieldSchema"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -369,55 +319,11 @@ void swap(FieldSchema &a, FieldSchema &b) { swap(a.__isset, b.__isset); } -FieldSchema::FieldSchema(const FieldSchema& other2) { - name = other2.name; - type = other2.type; - comment = other2.comment; - __isset = other2.__isset; -} -FieldSchema& FieldSchema::operator=(const FieldSchema& other3) { - name = other3.name; - type = other3.type; - comment = other3.comment; - __isset = other3.__isset; - return *this; -} -void FieldSchema::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "FieldSchema("; - out << "name=" << to_string(name); - out << ", " << "type=" << to_string(type); - out << ", " << "comment=" << to_string(comment); - out << ")"; -} - - -Type::~Type() throw() { -} - - -void Type::__set_name(const std::string& val) { - this->name = val; -} - -void Type::__set_type1(const std::string& val) { - this->type1 = val; -__isset.type1 = true; -} - -void Type::__set_type2(const std::string& val) { - this->type2 = val; -__isset.type2 = true; -} - -void Type::__set_fields(const std::vector & val) { - this->fields = val; -__isset.fields = true; -} +const char* Type::ascii_fingerprint = "20DF02DE523C27F7066C7BD4D9120842"; +const uint8_t Type::binary_fingerprint[16] = {0x20,0xDF,0x02,0xDE,0x52,0x3C,0x27,0xF7,0x06,0x6C,0x7B,0xD4,0xD9,0x12,0x08,0x42}; uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -464,14 +370,14 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fields.clear(); - uint32_t _size4; - ::apache::thrift::protocol::TType _etype7; - xfer += iprot->readListBegin(_etype7, _size4); - this->fields.resize(_size4); - uint32_t _i8; - for (_i8 = 0; _i8 < _size4; ++_i8) + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->fields.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += this->fields[_i8].read(iprot); + xfer += this->fields[_i4].read(iprot); } xfer += iprot->readListEnd(); } @@ -494,7 +400,6 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Type"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -515,10 +420,10 @@ uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fields.size())); - std::vector ::const_iterator _iter9; - for (_iter9 = this->fields.begin(); _iter9 != this->fields.end(); ++_iter9) + std::vector ::const_iterator _iter5; + for (_iter5 = this->fields.begin(); _iter5 != this->fields.end(); ++_iter5) { - xfer += (*_iter9).write(oprot); + xfer += (*_iter5).write(oprot); } xfer += oprot->writeListEnd(); } @@ -538,59 +443,11 @@ void swap(Type &a, Type &b) { swap(a.__isset, b.__isset); } -Type::Type(const Type& other10) { - name = other10.name; - type1 = other10.type1; - type2 = other10.type2; - fields = other10.fields; - __isset = other10.__isset; -} -Type& Type::operator=(const Type& other11) { - name = other11.name; - type1 = other11.type1; - type2 = other11.type2; - fields = other11.fields; - __isset = other11.__isset; - return *this; -} -void Type::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Type("; - out << "name=" << to_string(name); - out << ", " << "type1="; (__isset.type1 ? (out << to_string(type1)) : (out << "")); - out << ", " << "type2="; (__isset.type2 ? (out << to_string(type2)) : (out << "")); - out << ", " << "fields="; (__isset.fields ? (out << to_string(fields)) : (out << "")); - out << ")"; -} - - -HiveObjectRef::~HiveObjectRef() throw() { -} - - -void HiveObjectRef::__set_objectType(const HiveObjectType::type val) { - this->objectType = val; -} - -void HiveObjectRef::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void HiveObjectRef::__set_objectName(const std::string& val) { - this->objectName = val; -} - -void HiveObjectRef::__set_partValues(const std::vector & val) { - this->partValues = val; -} - -void HiveObjectRef::__set_columnName(const std::string& val) { - this->columnName = val; -} +const char* HiveObjectRef::ascii_fingerprint = "205CD8311CF3AA9EC161BAEF8D7C933C"; +const uint8_t HiveObjectRef::binary_fingerprint[16] = {0x20,0x5C,0xD8,0x31,0x1C,0xF3,0xAA,0x9E,0xC1,0x61,0xBA,0xEF,0x8D,0x7C,0x93,0x3C}; uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -611,9 +468,9 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast12; - xfer += iprot->readI32(ecast12); - this->objectType = (HiveObjectType::type)ecast12; + int32_t ecast6; + xfer += iprot->readI32(ecast6); + this->objectType = (HiveObjectType::type)ecast6; this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); @@ -639,14 +496,14 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partValues.clear(); - uint32_t _size13; - ::apache::thrift::protocol::TType _etype16; - xfer += iprot->readListBegin(_etype16, _size13); - this->partValues.resize(_size13); - uint32_t _i17; - for (_i17 = 0; _i17 < _size13; ++_i17) + uint32_t _size7; + ::apache::thrift::protocol::TType _etype10; + xfer += iprot->readListBegin(_etype10, _size7); + this->partValues.resize(_size7); + uint32_t _i11; + for (_i11 = 0; _i11 < _size7; ++_i11) { - xfer += iprot->readString(this->partValues[_i17]); + xfer += iprot->readString(this->partValues[_i11]); } xfer += iprot->readListEnd(); } @@ -677,7 +534,6 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HiveObjectRef"); xfer += oprot->writeFieldBegin("objectType", ::apache::thrift::protocol::T_I32, 1); @@ -695,10 +551,10 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partValues.size())); - std::vector ::const_iterator _iter18; - for (_iter18 = this->partValues.begin(); _iter18 != this->partValues.end(); ++_iter18) + std::vector ::const_iterator _iter12; + for (_iter12 = this->partValues.begin(); _iter12 != this->partValues.end(); ++_iter12) { - xfer += oprot->writeString((*_iter18)); + xfer += oprot->writeString((*_iter12)); } xfer += oprot->writeListEnd(); } @@ -723,62 +579,11 @@ void swap(HiveObjectRef &a, HiveObjectRef &b) { swap(a.__isset, b.__isset); } -HiveObjectRef::HiveObjectRef(const HiveObjectRef& other19) { - objectType = other19.objectType; - dbName = other19.dbName; - objectName = other19.objectName; - partValues = other19.partValues; - columnName = other19.columnName; - __isset = other19.__isset; -} -HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other20) { - objectType = other20.objectType; - dbName = other20.dbName; - objectName = other20.objectName; - partValues = other20.partValues; - columnName = other20.columnName; - __isset = other20.__isset; - return *this; -} -void HiveObjectRef::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HiveObjectRef("; - out << "objectType=" << to_string(objectType); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "objectName=" << to_string(objectName); - out << ", " << "partValues=" << to_string(partValues); - out << ", " << "columnName=" << to_string(columnName); - out << ")"; -} - - -PrivilegeGrantInfo::~PrivilegeGrantInfo() throw() { -} - - -void PrivilegeGrantInfo::__set_privilege(const std::string& val) { - this->privilege = val; -} - -void PrivilegeGrantInfo::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void PrivilegeGrantInfo::__set_grantor(const std::string& val) { - this->grantor = val; -} - -void PrivilegeGrantInfo::__set_grantorType(const PrincipalType::type val) { - this->grantorType = val; -} - -void PrivilegeGrantInfo::__set_grantOption(const bool val) { - this->grantOption = val; -} +const char* PrivilegeGrantInfo::ascii_fingerprint = "A58923AF7294BE492D6F90E07E8CEE1F"; +const uint8_t PrivilegeGrantInfo::binary_fingerprint[16] = {0xA5,0x89,0x23,0xAF,0x72,0x94,0xBE,0x49,0x2D,0x6F,0x90,0xE0,0x7E,0x8C,0xEE,0x1F}; uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -823,9 +628,9 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast21; - xfer += iprot->readI32(ecast21); - this->grantorType = (PrincipalType::type)ecast21; + int32_t ecast13; + xfer += iprot->readI32(ecast13); + this->grantorType = (PrincipalType::type)ecast13; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -853,7 +658,6 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t PrivilegeGrantInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PrivilegeGrantInfo"); xfer += oprot->writeFieldBegin("privilege", ::apache::thrift::protocol::T_STRING, 1); @@ -891,58 +695,11 @@ void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { swap(a.__isset, b.__isset); } -PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other22) { - privilege = other22.privilege; - createTime = other22.createTime; - grantor = other22.grantor; - grantorType = other22.grantorType; - grantOption = other22.grantOption; - __isset = other22.__isset; -} -PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other23) { - privilege = other23.privilege; - createTime = other23.createTime; - grantor = other23.grantor; - grantorType = other23.grantorType; - grantOption = other23.grantOption; - __isset = other23.__isset; - return *this; -} -void PrivilegeGrantInfo::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PrivilegeGrantInfo("; - out << "privilege=" << to_string(privilege); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "grantor=" << to_string(grantor); - out << ", " << "grantorType=" << to_string(grantorType); - out << ", " << "grantOption=" << to_string(grantOption); - out << ")"; -} - - -HiveObjectPrivilege::~HiveObjectPrivilege() throw() { -} - - -void HiveObjectPrivilege::__set_hiveObject(const HiveObjectRef& val) { - this->hiveObject = val; -} - -void HiveObjectPrivilege::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void HiveObjectPrivilege::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void HiveObjectPrivilege::__set_grantInfo(const PrivilegeGrantInfo& val) { - this->grantInfo = val; -} +const char* HiveObjectPrivilege::ascii_fingerprint = "83D71969B23BD853E29DBA9D43B29AF8"; +const uint8_t HiveObjectPrivilege::binary_fingerprint[16] = {0x83,0xD7,0x19,0x69,0xB2,0x3B,0xD8,0x53,0xE2,0x9D,0xBA,0x9D,0x43,0xB2,0x9A,0xF8}; uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -979,9 +736,9 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast24; - xfer += iprot->readI32(ecast24); - this->principalType = (PrincipalType::type)ecast24; + int32_t ecast14; + xfer += iprot->readI32(ecast14); + this->principalType = (PrincipalType::type)ecast14; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1009,7 +766,6 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HiveObjectPrivilege"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1042,43 +798,11 @@ void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { swap(a.__isset, b.__isset); } -HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other25) { - hiveObject = other25.hiveObject; - principalName = other25.principalName; - principalType = other25.principalType; - grantInfo = other25.grantInfo; - __isset = other25.__isset; -} -HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other26) { - hiveObject = other26.hiveObject; - principalName = other26.principalName; - principalType = other26.principalType; - grantInfo = other26.grantInfo; - __isset = other26.__isset; - return *this; -} -void HiveObjectPrivilege::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HiveObjectPrivilege("; - out << "hiveObject=" << to_string(hiveObject); - out << ", " << "principalName=" << to_string(principalName); - out << ", " << "principalType=" << to_string(principalType); - out << ", " << "grantInfo=" << to_string(grantInfo); - out << ")"; -} - - -PrivilegeBag::~PrivilegeBag() throw() { -} - - -void PrivilegeBag::__set_privileges(const std::vector & val) { - this->privileges = val; -} +const char* PrivilegeBag::ascii_fingerprint = "BB89E4701B7B709B046A74C90B1147F2"; +const uint8_t PrivilegeBag::binary_fingerprint[16] = {0xBB,0x89,0xE4,0x70,0x1B,0x7B,0x70,0x9B,0x04,0x6A,0x74,0xC9,0x0B,0x11,0x47,0xF2}; uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1101,14 +825,14 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->privileges.clear(); - uint32_t _size27; - ::apache::thrift::protocol::TType _etype30; - xfer += iprot->readListBegin(_etype30, _size27); - this->privileges.resize(_size27); - uint32_t _i31; - for (_i31 = 0; _i31 < _size27; ++_i31) + uint32_t _size15; + ::apache::thrift::protocol::TType _etype18; + xfer += iprot->readListBegin(_etype18, _size15); + this->privileges.resize(_size15); + uint32_t _i19; + for (_i19 = 0; _i19 < _size15; ++_i19) { - xfer += this->privileges[_i31].read(iprot); + xfer += this->privileges[_i19].read(iprot); } xfer += iprot->readListEnd(); } @@ -1131,16 +855,15 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PrivilegeBag"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->privileges.size())); - std::vector ::const_iterator _iter32; - for (_iter32 = this->privileges.begin(); _iter32 != this->privileges.end(); ++_iter32) + std::vector ::const_iterator _iter20; + for (_iter20 = this->privileges.begin(); _iter20 != this->privileges.end(); ++_iter20) { - xfer += (*_iter32).write(oprot); + xfer += (*_iter20).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1157,42 +880,11 @@ void swap(PrivilegeBag &a, PrivilegeBag &b) { swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other33) { - privileges = other33.privileges; - __isset = other33.__isset; -} -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other34) { - privileges = other34.privileges; - __isset = other34.__isset; - return *this; -} -void PrivilegeBag::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PrivilegeBag("; - out << "privileges=" << to_string(privileges); - out << ")"; -} - - -PrincipalPrivilegeSet::~PrincipalPrivilegeSet() throw() { -} - - -void PrincipalPrivilegeSet::__set_userPrivileges(const std::map > & val) { - this->userPrivileges = val; -} - -void PrincipalPrivilegeSet::__set_groupPrivileges(const std::map > & val) { - this->groupPrivileges = val; -} - -void PrincipalPrivilegeSet::__set_rolePrivileges(const std::map > & val) { - this->rolePrivileges = val; -} +const char* PrincipalPrivilegeSet::ascii_fingerprint = "08F75D2533906EA87BE34EA640856683"; +const uint8_t PrincipalPrivilegeSet::binary_fingerprint[16] = {0x08,0xF7,0x5D,0x25,0x33,0x90,0x6E,0xA8,0x7B,0xE3,0x4E,0xA6,0x40,0x85,0x66,0x83}; uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1215,26 +907,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->userPrivileges.clear(); - uint32_t _size35; - ::apache::thrift::protocol::TType _ktype36; - ::apache::thrift::protocol::TType _vtype37; - xfer += iprot->readMapBegin(_ktype36, _vtype37, _size35); - uint32_t _i39; - for (_i39 = 0; _i39 < _size35; ++_i39) + uint32_t _size21; + ::apache::thrift::protocol::TType _ktype22; + ::apache::thrift::protocol::TType _vtype23; + xfer += iprot->readMapBegin(_ktype22, _vtype23, _size21); + uint32_t _i25; + for (_i25 = 0; _i25 < _size21; ++_i25) { - std::string _key40; - xfer += iprot->readString(_key40); - std::vector & _val41 = this->userPrivileges[_key40]; + std::string _key26; + xfer += iprot->readString(_key26); + std::vector & _val27 = this->userPrivileges[_key26]; { - _val41.clear(); - uint32_t _size42; - ::apache::thrift::protocol::TType _etype45; - xfer += iprot->readListBegin(_etype45, _size42); - _val41.resize(_size42); - uint32_t _i46; - for (_i46 = 0; _i46 < _size42; ++_i46) + _val27.clear(); + uint32_t _size28; + ::apache::thrift::protocol::TType _etype31; + xfer += iprot->readListBegin(_etype31, _size28); + _val27.resize(_size28); + uint32_t _i32; + for (_i32 = 0; _i32 < _size28; ++_i32) { - xfer += _val41[_i46].read(iprot); + xfer += _val27[_i32].read(iprot); } xfer += iprot->readListEnd(); } @@ -1250,26 +942,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->groupPrivileges.clear(); - uint32_t _size47; - ::apache::thrift::protocol::TType _ktype48; - ::apache::thrift::protocol::TType _vtype49; - xfer += iprot->readMapBegin(_ktype48, _vtype49, _size47); - uint32_t _i51; - for (_i51 = 0; _i51 < _size47; ++_i51) + uint32_t _size33; + ::apache::thrift::protocol::TType _ktype34; + ::apache::thrift::protocol::TType _vtype35; + xfer += iprot->readMapBegin(_ktype34, _vtype35, _size33); + uint32_t _i37; + for (_i37 = 0; _i37 < _size33; ++_i37) { - std::string _key52; - xfer += iprot->readString(_key52); - std::vector & _val53 = this->groupPrivileges[_key52]; + std::string _key38; + xfer += iprot->readString(_key38); + std::vector & _val39 = this->groupPrivileges[_key38]; { - _val53.clear(); - uint32_t _size54; - ::apache::thrift::protocol::TType _etype57; - xfer += iprot->readListBegin(_etype57, _size54); - _val53.resize(_size54); - uint32_t _i58; - for (_i58 = 0; _i58 < _size54; ++_i58) + _val39.clear(); + uint32_t _size40; + ::apache::thrift::protocol::TType _etype43; + xfer += iprot->readListBegin(_etype43, _size40); + _val39.resize(_size40); + uint32_t _i44; + for (_i44 = 0; _i44 < _size40; ++_i44) { - xfer += _val53[_i58].read(iprot); + xfer += _val39[_i44].read(iprot); } xfer += iprot->readListEnd(); } @@ -1285,26 +977,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->rolePrivileges.clear(); - uint32_t _size59; - ::apache::thrift::protocol::TType _ktype60; - ::apache::thrift::protocol::TType _vtype61; - xfer += iprot->readMapBegin(_ktype60, _vtype61, _size59); - uint32_t _i63; - for (_i63 = 0; _i63 < _size59; ++_i63) + uint32_t _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - std::string _key64; - xfer += iprot->readString(_key64); - std::vector & _val65 = this->rolePrivileges[_key64]; + std::string _key50; + xfer += iprot->readString(_key50); + std::vector & _val51 = this->rolePrivileges[_key50]; { - _val65.clear(); - uint32_t _size66; - ::apache::thrift::protocol::TType _etype69; - xfer += iprot->readListBegin(_etype69, _size66); - _val65.resize(_size66); - uint32_t _i70; - for (_i70 = 0; _i70 < _size66; ++_i70) + _val51.clear(); + uint32_t _size52; + ::apache::thrift::protocol::TType _etype55; + xfer += iprot->readListBegin(_etype55, _size52); + _val51.resize(_size52); + uint32_t _i56; + for (_i56 = 0; _i56 < _size52; ++_i56) { - xfer += _val65[_i70].read(iprot); + xfer += _val51[_i56].read(iprot); } xfer += iprot->readListEnd(); } @@ -1330,22 +1022,21 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PrincipalPrivilegeSet"); xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->userPrivileges.size())); - std::map > ::const_iterator _iter71; - for (_iter71 = this->userPrivileges.begin(); _iter71 != this->userPrivileges.end(); ++_iter71) + std::map > ::const_iterator _iter57; + for (_iter57 = this->userPrivileges.begin(); _iter57 != this->userPrivileges.end(); ++_iter57) { - xfer += oprot->writeString(_iter71->first); + xfer += oprot->writeString(_iter57->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter71->second.size())); - std::vector ::const_iterator _iter72; - for (_iter72 = _iter71->second.begin(); _iter72 != _iter71->second.end(); ++_iter72) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter57->second.size())); + std::vector ::const_iterator _iter58; + for (_iter58 = _iter57->second.begin(); _iter58 != _iter57->second.end(); ++_iter58) { - xfer += (*_iter72).write(oprot); + xfer += (*_iter58).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1357,16 +1048,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->groupPrivileges.size())); - std::map > ::const_iterator _iter73; - for (_iter73 = this->groupPrivileges.begin(); _iter73 != this->groupPrivileges.end(); ++_iter73) + std::map > ::const_iterator _iter59; + for (_iter59 = this->groupPrivileges.begin(); _iter59 != this->groupPrivileges.end(); ++_iter59) { - xfer += oprot->writeString(_iter73->first); + xfer += oprot->writeString(_iter59->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter73->second.size())); - std::vector ::const_iterator _iter74; - for (_iter74 = _iter73->second.begin(); _iter74 != _iter73->second.end(); ++_iter74) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter59->second.size())); + std::vector ::const_iterator _iter60; + for (_iter60 = _iter59->second.begin(); _iter60 != _iter59->second.end(); ++_iter60) { - xfer += (*_iter74).write(oprot); + xfer += (*_iter60).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1378,16 +1069,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->rolePrivileges.size())); - std::map > ::const_iterator _iter75; - for (_iter75 = this->rolePrivileges.begin(); _iter75 != this->rolePrivileges.end(); ++_iter75) + std::map > ::const_iterator _iter61; + for (_iter61 = this->rolePrivileges.begin(); _iter61 != this->rolePrivileges.end(); ++_iter61) { - xfer += oprot->writeString(_iter75->first); + xfer += oprot->writeString(_iter61->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter75->second.size())); - std::vector ::const_iterator _iter76; - for (_iter76 = _iter75->second.begin(); _iter76 != _iter75->second.end(); ++_iter76) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter61->second.size())); + std::vector ::const_iterator _iter62; + for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62) { - xfer += (*_iter76).write(oprot); + xfer += (*_iter62).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1409,49 +1100,11 @@ void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { swap(a.__isset, b.__isset); } -PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other77) { - userPrivileges = other77.userPrivileges; - groupPrivileges = other77.groupPrivileges; - rolePrivileges = other77.rolePrivileges; - __isset = other77.__isset; -} -PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other78) { - userPrivileges = other78.userPrivileges; - groupPrivileges = other78.groupPrivileges; - rolePrivileges = other78.rolePrivileges; - __isset = other78.__isset; - return *this; -} -void PrincipalPrivilegeSet::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PrincipalPrivilegeSet("; - out << "userPrivileges=" << to_string(userPrivileges); - out << ", " << "groupPrivileges=" << to_string(groupPrivileges); - out << ", " << "rolePrivileges=" << to_string(rolePrivileges); - out << ")"; -} - - -GrantRevokePrivilegeRequest::~GrantRevokePrivilegeRequest() throw() { -} - - -void GrantRevokePrivilegeRequest::__set_requestType(const GrantRevokeType::type val) { - this->requestType = val; -} - -void GrantRevokePrivilegeRequest::__set_privileges(const PrivilegeBag& val) { - this->privileges = val; -} - -void GrantRevokePrivilegeRequest::__set_revokeGrantOption(const bool val) { - this->revokeGrantOption = val; -__isset.revokeGrantOption = true; -} +const char* GrantRevokePrivilegeRequest::ascii_fingerprint = "DF474A3CB526AD40DC0F2C3702F7AA2C"; +const uint8_t GrantRevokePrivilegeRequest::binary_fingerprint[16] = {0xDF,0x47,0x4A,0x3C,0xB5,0x26,0xAD,0x40,0xDC,0x0F,0x2C,0x37,0x02,0xF7,0xAA,0x2C}; uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1472,9 +1125,9 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast79; - xfer += iprot->readI32(ecast79); - this->requestType = (GrantRevokeType::type)ecast79; + int32_t ecast63; + xfer += iprot->readI32(ecast63); + this->requestType = (GrantRevokeType::type)ecast63; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -1510,7 +1163,6 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol uint32_t GrantRevokePrivilegeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GrantRevokePrivilegeRequest"); xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); @@ -1539,41 +1191,11 @@ void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other80) { - requestType = other80.requestType; - privileges = other80.privileges; - revokeGrantOption = other80.revokeGrantOption; - __isset = other80.__isset; -} -GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other81) { - requestType = other81.requestType; - privileges = other81.privileges; - revokeGrantOption = other81.revokeGrantOption; - __isset = other81.__isset; - return *this; -} -void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GrantRevokePrivilegeRequest("; - out << "requestType=" << to_string(requestType); - out << ", " << "privileges=" << to_string(privileges); - out << ", " << "revokeGrantOption="; (__isset.revokeGrantOption ? (out << to_string(revokeGrantOption)) : (out << "")); - out << ")"; -} - - -GrantRevokePrivilegeResponse::~GrantRevokePrivilegeResponse() throw() { -} - - -void GrantRevokePrivilegeResponse::__set_success(const bool val) { - this->success = val; -__isset.success = true; -} +const char* GrantRevokePrivilegeResponse::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; +const uint8_t GrantRevokePrivilegeResponse::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1614,7 +1236,6 @@ uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtoco uint32_t GrantRevokePrivilegeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GrantRevokePrivilegeResponse"); if (this->__isset.success) { @@ -1633,42 +1254,11 @@ void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other82) { - success = other82.success; - __isset = other82.__isset; -} -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other83) { - success = other83.success; - __isset = other83.__isset; - return *this; -} -void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GrantRevokePrivilegeResponse("; - out << "success="; (__isset.success ? (out << to_string(success)) : (out << "")); - out << ")"; -} - - -Role::~Role() throw() { -} - - -void Role::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void Role::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Role::__set_ownerName(const std::string& val) { - this->ownerName = val; -} +const char* Role::ascii_fingerprint = "70563A0628F75DF9555F4D24690B1E26"; +const uint8_t Role::binary_fingerprint[16] = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1725,7 +1315,6 @@ uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Role::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Role"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -1753,64 +1342,11 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } -Role::Role(const Role& other84) { - roleName = other84.roleName; - createTime = other84.createTime; - ownerName = other84.ownerName; - __isset = other84.__isset; -} -Role& Role::operator=(const Role& other85) { - roleName = other85.roleName; - createTime = other85.createTime; - ownerName = other85.ownerName; - __isset = other85.__isset; - return *this; -} -void Role::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Role("; - out << "roleName=" << to_string(roleName); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "ownerName=" << to_string(ownerName); - out << ")"; -} - - -RolePrincipalGrant::~RolePrincipalGrant() throw() { -} - - -void RolePrincipalGrant::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void RolePrincipalGrant::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void RolePrincipalGrant::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void RolePrincipalGrant::__set_grantOption(const bool val) { - this->grantOption = val; -} - -void RolePrincipalGrant::__set_grantTime(const int32_t val) { - this->grantTime = val; -} - -void RolePrincipalGrant::__set_grantorName(const std::string& val) { - this->grantorName = val; -} - -void RolePrincipalGrant::__set_grantorPrincipalType(const PrincipalType::type val) { - this->grantorPrincipalType = val; -} +const char* RolePrincipalGrant::ascii_fingerprint = "899BA3F6214DD1B79D27206BA857C772"; +const uint8_t RolePrincipalGrant::binary_fingerprint[16] = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1847,9 +1383,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast86; - xfer += iprot->readI32(ecast86); - this->principalType = (PrincipalType::type)ecast86; + int32_t ecast64; + xfer += iprot->readI32(ecast64); + this->principalType = (PrincipalType::type)ecast64; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1881,9 +1417,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast87; - xfer += iprot->readI32(ecast87); - this->grantorPrincipalType = (PrincipalType::type)ecast87; + int32_t ecast65; + xfer += iprot->readI32(ecast65); + this->grantorPrincipalType = (PrincipalType::type)ecast65; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -1903,7 +1439,6 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t RolePrincipalGrant::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("RolePrincipalGrant"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -1951,56 +1486,11 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__isset); } -RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other88) { - roleName = other88.roleName; - principalName = other88.principalName; - principalType = other88.principalType; - grantOption = other88.grantOption; - grantTime = other88.grantTime; - grantorName = other88.grantorName; - grantorPrincipalType = other88.grantorPrincipalType; - __isset = other88.__isset; -} -RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other89) { - roleName = other89.roleName; - principalName = other89.principalName; - principalType = other89.principalType; - grantOption = other89.grantOption; - grantTime = other89.grantTime; - grantorName = other89.grantorName; - grantorPrincipalType = other89.grantorPrincipalType; - __isset = other89.__isset; - return *this; -} -void RolePrincipalGrant::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "RolePrincipalGrant("; - out << "roleName=" << to_string(roleName); - out << ", " << "principalName=" << to_string(principalName); - out << ", " << "principalType=" << to_string(principalType); - out << ", " << "grantOption=" << to_string(grantOption); - out << ", " << "grantTime=" << to_string(grantTime); - out << ", " << "grantorName=" << to_string(grantorName); - out << ", " << "grantorPrincipalType=" << to_string(grantorPrincipalType); - out << ")"; -} - - -GetRoleGrantsForPrincipalRequest::~GetRoleGrantsForPrincipalRequest() throw() { -} - - -void GetRoleGrantsForPrincipalRequest::__set_principal_name(const std::string& val) { - this->principal_name = val; -} - -void GetRoleGrantsForPrincipalRequest::__set_principal_type(const PrincipalType::type val) { - this->principal_type = val; -} +const char* GetRoleGrantsForPrincipalRequest::ascii_fingerprint = "D6FD826D949221396F4FFC3ECCD3D192"; +const uint8_t GetRoleGrantsForPrincipalRequest::binary_fingerprint[16] = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2031,9 +1521,9 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast90; - xfer += iprot->readI32(ecast90); - this->principal_type = (PrincipalType::type)ecast90; + int32_t ecast66; + xfer += iprot->readI32(ecast66); + this->principal_type = (PrincipalType::type)ecast66; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -2057,7 +1547,6 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro uint32_t GetRoleGrantsForPrincipalRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalRequest"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2079,35 +1568,11 @@ void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest swap(a.principal_type, b.principal_type); } -GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other91) { - principal_name = other91.principal_name; - principal_type = other91.principal_type; -} -GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other92) { - principal_name = other92.principal_name; - principal_type = other92.principal_type; - return *this; -} -void GetRoleGrantsForPrincipalRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetRoleGrantsForPrincipalRequest("; - out << "principal_name=" << to_string(principal_name); - out << ", " << "principal_type=" << to_string(principal_type); - out << ")"; -} - - -GetRoleGrantsForPrincipalResponse::~GetRoleGrantsForPrincipalResponse() throw() { -} - - -void GetRoleGrantsForPrincipalResponse::__set_principalGrants(const std::vector & val) { - this->principalGrants = val; -} +const char* GetRoleGrantsForPrincipalResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; +const uint8_t GetRoleGrantsForPrincipalResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2131,14 +1596,14 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->principalGrants.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size67; + ::apache::thrift::protocol::TType _etype70; + xfer += iprot->readListBegin(_etype70, _size67); + this->principalGrants.resize(_size67); + uint32_t _i71; + for (_i71 = 0; _i71 < _size67; ++_i71) { - xfer += this->principalGrants[_i97].read(iprot); + xfer += this->principalGrants[_i71].read(iprot); } xfer += iprot->readListEnd(); } @@ -2163,16 +1628,15 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalResponse"); xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter98; - for (_iter98 = this->principalGrants.begin(); _iter98 != this->principalGrants.end(); ++_iter98) + std::vector ::const_iterator _iter72; + for (_iter72 = this->principalGrants.begin(); _iter72 != this->principalGrants.end(); ++_iter72) { - xfer += (*_iter98).write(oprot); + xfer += (*_iter72).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2188,32 +1652,11 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other99) { - principalGrants = other99.principalGrants; -} -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other100) { - principalGrants = other100.principalGrants; - return *this; -} -void GetRoleGrantsForPrincipalResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetRoleGrantsForPrincipalResponse("; - out << "principalGrants=" << to_string(principalGrants); - out << ")"; -} - - -GetPrincipalsInRoleRequest::~GetPrincipalsInRoleRequest() throw() { -} - - -void GetPrincipalsInRoleRequest::__set_roleName(const std::string& val) { - this->roleName = val; -} +const char* GetPrincipalsInRoleRequest::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t GetPrincipalsInRoleRequest::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2257,7 +1700,6 @@ uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* uint32_t GetPrincipalsInRoleRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetPrincipalsInRoleRequest"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -2274,32 +1716,11 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other101) { - roleName = other101.roleName; -} -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other102) { - roleName = other102.roleName; - return *this; -} -void GetPrincipalsInRoleRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetPrincipalsInRoleRequest("; - out << "roleName=" << to_string(roleName); - out << ")"; -} - - -GetPrincipalsInRoleResponse::~GetPrincipalsInRoleResponse() throw() { -} - - -void GetPrincipalsInRoleResponse::__set_principalGrants(const std::vector & val) { - this->principalGrants = val; -} +const char* GetPrincipalsInRoleResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; +const uint8_t GetPrincipalsInRoleResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2323,14 +1744,14 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size103; - ::apache::thrift::protocol::TType _etype106; - xfer += iprot->readListBegin(_etype106, _size103); - this->principalGrants.resize(_size103); - uint32_t _i107; - for (_i107 = 0; _i107 < _size103; ++_i107) + uint32_t _size73; + ::apache::thrift::protocol::TType _etype76; + xfer += iprot->readListBegin(_etype76, _size73); + this->principalGrants.resize(_size73); + uint32_t _i77; + for (_i77 = 0; _i77 < _size73; ++_i77) { - xfer += this->principalGrants[_i107].read(iprot); + xfer += this->principalGrants[_i77].read(iprot); } xfer += iprot->readListEnd(); } @@ -2355,16 +1776,15 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetPrincipalsInRoleResponse"); xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter108; - for (_iter108 = this->principalGrants.begin(); _iter108 != this->principalGrants.end(); ++_iter108) + std::vector ::const_iterator _iter78; + for (_iter78 = this->principalGrants.begin(); _iter78 != this->principalGrants.end(); ++_iter78) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter78).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2380,59 +1800,11 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other109) { - principalGrants = other109.principalGrants; -} -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other110) { - principalGrants = other110.principalGrants; - return *this; -} -void GetPrincipalsInRoleResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetPrincipalsInRoleResponse("; - out << "principalGrants=" << to_string(principalGrants); - out << ")"; -} - - -GrantRevokeRoleRequest::~GrantRevokeRoleRequest() throw() { -} - - -void GrantRevokeRoleRequest::__set_requestType(const GrantRevokeType::type val) { - this->requestType = val; -} - -void GrantRevokeRoleRequest::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void GrantRevokeRoleRequest::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void GrantRevokeRoleRequest::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void GrantRevokeRoleRequest::__set_grantor(const std::string& val) { - this->grantor = val; -__isset.grantor = true; -} - -void GrantRevokeRoleRequest::__set_grantorType(const PrincipalType::type val) { - this->grantorType = val; -__isset.grantorType = true; -} - -void GrantRevokeRoleRequest::__set_grantOption(const bool val) { - this->grantOption = val; -__isset.grantOption = true; -} +const char* GrantRevokeRoleRequest::ascii_fingerprint = "907DEA796F2BA7AF76DC2566E75FAEE7"; +const uint8_t GrantRevokeRoleRequest::binary_fingerprint[16] = {0x90,0x7D,0xEA,0x79,0x6F,0x2B,0xA7,0xAF,0x76,0xDC,0x25,0x66,0xE7,0x5F,0xAE,0xE7}; uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2453,9 +1825,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast111; - xfer += iprot->readI32(ecast111); - this->requestType = (GrantRevokeType::type)ecast111; + int32_t ecast79; + xfer += iprot->readI32(ecast79); + this->requestType = (GrantRevokeType::type)ecast79; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -2479,9 +1851,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast112; - xfer += iprot->readI32(ecast112); - this->principalType = (PrincipalType::type)ecast112; + int32_t ecast80; + xfer += iprot->readI32(ecast80); + this->principalType = (PrincipalType::type)ecast80; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2497,9 +1869,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast113; - xfer += iprot->readI32(ecast113); - this->grantorType = (PrincipalType::type)ecast113; + int32_t ecast81; + xfer += iprot->readI32(ecast81); + this->grantorType = (PrincipalType::type)ecast81; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -2527,7 +1899,6 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t GrantRevokeRoleRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GrantRevokeRoleRequest"); xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); @@ -2578,53 +1949,11 @@ void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other114) { - requestType = other114.requestType; - roleName = other114.roleName; - principalName = other114.principalName; - principalType = other114.principalType; - grantor = other114.grantor; - grantorType = other114.grantorType; - grantOption = other114.grantOption; - __isset = other114.__isset; -} -GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other115) { - requestType = other115.requestType; - roleName = other115.roleName; - principalName = other115.principalName; - principalType = other115.principalType; - grantor = other115.grantor; - grantorType = other115.grantorType; - grantOption = other115.grantOption; - __isset = other115.__isset; - return *this; -} -void GrantRevokeRoleRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GrantRevokeRoleRequest("; - out << "requestType=" << to_string(requestType); - out << ", " << "roleName=" << to_string(roleName); - out << ", " << "principalName=" << to_string(principalName); - out << ", " << "principalType=" << to_string(principalType); - out << ", " << "grantor="; (__isset.grantor ? (out << to_string(grantor)) : (out << "")); - out << ", " << "grantorType="; (__isset.grantorType ? (out << to_string(grantorType)) : (out << "")); - out << ", " << "grantOption="; (__isset.grantOption ? (out << to_string(grantOption)) : (out << "")); - out << ")"; -} - - -GrantRevokeRoleResponse::~GrantRevokeRoleResponse() throw() { -} - - -void GrantRevokeRoleResponse::__set_success(const bool val) { - this->success = val; -__isset.success = true; -} +const char* GrantRevokeRoleResponse::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; +const uint8_t GrantRevokeRoleResponse::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; uint32_t GrantRevokeRoleResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2665,7 +1994,6 @@ uint32_t GrantRevokeRoleResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GrantRevokeRoleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GrantRevokeRoleResponse"); if (this->__isset.success) { @@ -2684,69 +2012,19 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other116) { - success = other116.success; - __isset = other116.__isset; -} -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other117) { - success = other117.success; - __isset = other117.__isset; - return *this; -} -void GrantRevokeRoleResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GrantRevokeRoleResponse("; - out << "success="; (__isset.success ? (out << to_string(success)) : (out << "")); - out << ")"; -} - - -Database::~Database() throw() { -} - +const char* Database::ascii_fingerprint = "553495CAE243A1C583D5C3DD990AED53"; +const uint8_t Database::binary_fingerprint[16] = {0x55,0x34,0x95,0xCA,0xE2,0x43,0xA1,0xC5,0x83,0xD5,0xC3,0xDD,0x99,0x0A,0xED,0x53}; -void Database::__set_name(const std::string& val) { - this->name = val; -} +uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { -void Database::__set_description(const std::string& val) { - this->description = val; -} + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; -void Database::__set_locationUri(const std::string& val) { - this->locationUri = val; -} + xfer += iprot->readStructBegin(fname); -void Database::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Database::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - -void Database::__set_ownerName(const std::string& val) { - this->ownerName = val; -__isset.ownerName = true; -} - -void Database::__set_ownerType(const PrincipalType::type val) { - this->ownerType = val; -__isset.ownerType = true; -} - -uint32_t Database::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; + using ::apache::thrift::protocol::TProtocolException; while (true) @@ -2785,17 +2063,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size118; - ::apache::thrift::protocol::TType _ktype119; - ::apache::thrift::protocol::TType _vtype120; - xfer += iprot->readMapBegin(_ktype119, _vtype120, _size118); - uint32_t _i122; - for (_i122 = 0; _i122 < _size118; ++_i122) + uint32_t _size82; + ::apache::thrift::protocol::TType _ktype83; + ::apache::thrift::protocol::TType _vtype84; + xfer += iprot->readMapBegin(_ktype83, _vtype84, _size82); + uint32_t _i86; + for (_i86 = 0; _i86 < _size82; ++_i86) { - std::string _key123; - xfer += iprot->readString(_key123); - std::string& _val124 = this->parameters[_key123]; - xfer += iprot->readString(_val124); + std::string _key87; + xfer += iprot->readString(_key87); + std::string& _val88 = this->parameters[_key87]; + xfer += iprot->readString(_val88); } xfer += iprot->readMapEnd(); } @@ -2822,9 +2100,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast125; - xfer += iprot->readI32(ecast125); - this->ownerType = (PrincipalType::type)ecast125; + int32_t ecast89; + xfer += iprot->readI32(ecast89); + this->ownerType = (PrincipalType::type)ecast89; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -2844,7 +2122,6 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Database"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2862,11 +2139,11 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter126; - for (_iter126 = this->parameters.begin(); _iter126 != this->parameters.end(); ++_iter126) + std::map ::const_iterator _iter90; + for (_iter90 = this->parameters.begin(); _iter90 != this->parameters.end(); ++_iter90) { - xfer += oprot->writeString(_iter126->first); - xfer += oprot->writeString(_iter126->second); + xfer += oprot->writeString(_iter90->first); + xfer += oprot->writeString(_iter90->second); } xfer += oprot->writeMapEnd(); } @@ -2904,60 +2181,11 @@ void swap(Database &a, Database &b) { swap(a.__isset, b.__isset); } -Database::Database(const Database& other127) { - name = other127.name; - description = other127.description; - locationUri = other127.locationUri; - parameters = other127.parameters; - privileges = other127.privileges; - ownerName = other127.ownerName; - ownerType = other127.ownerType; - __isset = other127.__isset; -} -Database& Database::operator=(const Database& other128) { - name = other128.name; - description = other128.description; - locationUri = other128.locationUri; - parameters = other128.parameters; - privileges = other128.privileges; - ownerName = other128.ownerName; - ownerType = other128.ownerType; - __isset = other128.__isset; - return *this; -} -void Database::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Database("; - out << "name=" << to_string(name); - out << ", " << "description=" << to_string(description); - out << ", " << "locationUri=" << to_string(locationUri); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); - out << ", " << "ownerName="; (__isset.ownerName ? (out << to_string(ownerName)) : (out << "")); - out << ", " << "ownerType="; (__isset.ownerType ? (out << to_string(ownerType)) : (out << "")); - out << ")"; -} - - -SerDeInfo::~SerDeInfo() throw() { -} - - -void SerDeInfo::__set_name(const std::string& val) { - this->name = val; -} - -void SerDeInfo::__set_serializationLib(const std::string& val) { - this->serializationLib = val; -} - -void SerDeInfo::__set_parameters(const std::map & val) { - this->parameters = val; -} +const char* SerDeInfo::ascii_fingerprint = "B1021C32A35A2AEFCD2F57A5424159A7"; +const uint8_t SerDeInfo::binary_fingerprint[16] = {0xB1,0x02,0x1C,0x32,0xA3,0x5A,0x2A,0xEF,0xCD,0x2F,0x57,0xA5,0x42,0x41,0x59,0xA7}; uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2996,17 +2224,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size129; - ::apache::thrift::protocol::TType _ktype130; - ::apache::thrift::protocol::TType _vtype131; - xfer += iprot->readMapBegin(_ktype130, _vtype131, _size129); - uint32_t _i133; - for (_i133 = 0; _i133 < _size129; ++_i133) + uint32_t _size91; + ::apache::thrift::protocol::TType _ktype92; + ::apache::thrift::protocol::TType _vtype93; + xfer += iprot->readMapBegin(_ktype92, _vtype93, _size91); + uint32_t _i95; + for (_i95 = 0; _i95 < _size91; ++_i95) { - std::string _key134; - xfer += iprot->readString(_key134); - std::string& _val135 = this->parameters[_key134]; - xfer += iprot->readString(_val135); + std::string _key96; + xfer += iprot->readString(_key96); + std::string& _val97 = this->parameters[_key96]; + xfer += iprot->readString(_val97); } xfer += iprot->readMapEnd(); } @@ -3029,7 +2257,6 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("SerDeInfo"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -3043,11 +2270,11 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter136; - for (_iter136 = this->parameters.begin(); _iter136 != this->parameters.end(); ++_iter136) + std::map ::const_iterator _iter98; + for (_iter98 = this->parameters.begin(); _iter98 != this->parameters.end(); ++_iter98) { - xfer += oprot->writeString(_iter136->first); - xfer += oprot->writeString(_iter136->second); + xfer += oprot->writeString(_iter98->first); + xfer += oprot->writeString(_iter98->second); } xfer += oprot->writeMapEnd(); } @@ -3066,44 +2293,11 @@ void swap(SerDeInfo &a, SerDeInfo &b) { swap(a.__isset, b.__isset); } -SerDeInfo::SerDeInfo(const SerDeInfo& other137) { - name = other137.name; - serializationLib = other137.serializationLib; - parameters = other137.parameters; - __isset = other137.__isset; -} -SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other138) { - name = other138.name; - serializationLib = other138.serializationLib; - parameters = other138.parameters; - __isset = other138.__isset; - return *this; -} -void SerDeInfo::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "SerDeInfo("; - out << "name=" << to_string(name); - out << ", " << "serializationLib=" << to_string(serializationLib); - out << ", " << "parameters=" << to_string(parameters); - out << ")"; -} - - -Order::~Order() throw() { -} - - -void Order::__set_col(const std::string& val) { - this->col = val; -} - -void Order::__set_order(const int32_t val) { - this->order = val; -} +const char* Order::ascii_fingerprint = "EEBC915CE44901401D881E6091423036"; +const uint8_t Order::binary_fingerprint[16] = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36}; uint32_t Order::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3152,7 +2346,6 @@ uint32_t Order::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Order::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Order"); xfer += oprot->writeFieldBegin("col", ::apache::thrift::protocol::T_STRING, 1); @@ -3175,45 +2368,11 @@ void swap(Order &a, Order &b) { swap(a.__isset, b.__isset); } -Order::Order(const Order& other139) { - col = other139.col; - order = other139.order; - __isset = other139.__isset; -} -Order& Order::operator=(const Order& other140) { - col = other140.col; - order = other140.order; - __isset = other140.__isset; - return *this; -} -void Order::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Order("; - out << "col=" << to_string(col); - out << ", " << "order=" << to_string(order); - out << ")"; -} - - -SkewedInfo::~SkewedInfo() throw() { -} - - -void SkewedInfo::__set_skewedColNames(const std::vector & val) { - this->skewedColNames = val; -} - -void SkewedInfo::__set_skewedColValues(const std::vector > & val) { - this->skewedColValues = val; -} - -void SkewedInfo::__set_skewedColValueLocationMaps(const std::map , std::string> & val) { - this->skewedColValueLocationMaps = val; -} +const char* SkewedInfo::ascii_fingerprint = "4BF2ED84BC3C3EB297A2AE2FA8427EB1"; +const uint8_t SkewedInfo::binary_fingerprint[16] = {0x4B,0xF2,0xED,0x84,0xBC,0x3C,0x3E,0xB2,0x97,0xA2,0xAE,0x2F,0xA8,0x42,0x7E,0xB1}; uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3236,14 +2395,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size141; - ::apache::thrift::protocol::TType _etype144; - xfer += iprot->readListBegin(_etype144, _size141); - this->skewedColNames.resize(_size141); - uint32_t _i145; - for (_i145 = 0; _i145 < _size141; ++_i145) + uint32_t _size99; + ::apache::thrift::protocol::TType _etype102; + xfer += iprot->readListBegin(_etype102, _size99); + this->skewedColNames.resize(_size99); + uint32_t _i103; + for (_i103 = 0; _i103 < _size99; ++_i103) { - xfer += iprot->readString(this->skewedColNames[_i145]); + xfer += iprot->readString(this->skewedColNames[_i103]); } xfer += iprot->readListEnd(); } @@ -3256,23 +2415,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size146; - ::apache::thrift::protocol::TType _etype149; - xfer += iprot->readListBegin(_etype149, _size146); - this->skewedColValues.resize(_size146); - uint32_t _i150; - for (_i150 = 0; _i150 < _size146; ++_i150) + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->skewedColValues.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { { - this->skewedColValues[_i150].clear(); - uint32_t _size151; - ::apache::thrift::protocol::TType _etype154; - xfer += iprot->readListBegin(_etype154, _size151); - this->skewedColValues[_i150].resize(_size151); - uint32_t _i155; - for (_i155 = 0; _i155 < _size151; ++_i155) + this->skewedColValues[_i108].clear(); + uint32_t _size109; + ::apache::thrift::protocol::TType _etype112; + xfer += iprot->readListBegin(_etype112, _size109); + this->skewedColValues[_i108].resize(_size109); + uint32_t _i113; + for (_i113 = 0; _i113 < _size109; ++_i113) { - xfer += iprot->readString(this->skewedColValues[_i150][_i155]); + xfer += iprot->readString(this->skewedColValues[_i108][_i113]); } xfer += iprot->readListEnd(); } @@ -3288,29 +2447,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size156; - ::apache::thrift::protocol::TType _ktype157; - ::apache::thrift::protocol::TType _vtype158; - xfer += iprot->readMapBegin(_ktype157, _vtype158, _size156); - uint32_t _i160; - for (_i160 = 0; _i160 < _size156; ++_i160) + uint32_t _size114; + ::apache::thrift::protocol::TType _ktype115; + ::apache::thrift::protocol::TType _vtype116; + xfer += iprot->readMapBegin(_ktype115, _vtype116, _size114); + uint32_t _i118; + for (_i118 = 0; _i118 < _size114; ++_i118) { - std::vector _key161; + std::vector _key119; { - _key161.clear(); - uint32_t _size163; - ::apache::thrift::protocol::TType _etype166; - xfer += iprot->readListBegin(_etype166, _size163); - _key161.resize(_size163); - uint32_t _i167; - for (_i167 = 0; _i167 < _size163; ++_i167) + _key119.clear(); + uint32_t _size121; + ::apache::thrift::protocol::TType _etype124; + xfer += iprot->readListBegin(_etype124, _size121); + _key119.resize(_size121); + uint32_t _i125; + for (_i125 = 0; _i125 < _size121; ++_i125) { - xfer += iprot->readString(_key161[_i167]); + xfer += iprot->readString(_key119[_i125]); } xfer += iprot->readListEnd(); } - std::string& _val162 = this->skewedColValueLocationMaps[_key161]; - xfer += iprot->readString(_val162); + std::string& _val120 = this->skewedColValueLocationMaps[_key119]; + xfer += iprot->readString(_val120); } xfer += iprot->readMapEnd(); } @@ -3333,16 +2492,15 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("SkewedInfo"); xfer += oprot->writeFieldBegin("skewedColNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->skewedColNames.size())); - std::vector ::const_iterator _iter168; - for (_iter168 = this->skewedColNames.begin(); _iter168 != this->skewedColNames.end(); ++_iter168) + std::vector ::const_iterator _iter126; + for (_iter126 = this->skewedColNames.begin(); _iter126 != this->skewedColNames.end(); ++_iter126) { - xfer += oprot->writeString((*_iter168)); + xfer += oprot->writeString((*_iter126)); } xfer += oprot->writeListEnd(); } @@ -3351,15 +2509,15 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValues", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->skewedColValues.size())); - std::vector > ::const_iterator _iter169; - for (_iter169 = this->skewedColValues.begin(); _iter169 != this->skewedColValues.end(); ++_iter169) + std::vector > ::const_iterator _iter127; + for (_iter127 = this->skewedColValues.begin(); _iter127 != this->skewedColValues.end(); ++_iter127) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter169).size())); - std::vector ::const_iterator _iter170; - for (_iter170 = (*_iter169).begin(); _iter170 != (*_iter169).end(); ++_iter170) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter127).size())); + std::vector ::const_iterator _iter128; + for (_iter128 = (*_iter127).begin(); _iter128 != (*_iter127).end(); ++_iter128) { - xfer += oprot->writeString((*_iter170)); + xfer += oprot->writeString((*_iter128)); } xfer += oprot->writeListEnd(); } @@ -3371,19 +2529,19 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValueLocationMaps", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_LIST, ::apache::thrift::protocol::T_STRING, static_cast(this->skewedColValueLocationMaps.size())); - std::map , std::string> ::const_iterator _iter171; - for (_iter171 = this->skewedColValueLocationMaps.begin(); _iter171 != this->skewedColValueLocationMaps.end(); ++_iter171) + std::map , std::string> ::const_iterator _iter129; + for (_iter129 = this->skewedColValueLocationMaps.begin(); _iter129 != this->skewedColValueLocationMaps.end(); ++_iter129) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter171->first.size())); - std::vector ::const_iterator _iter172; - for (_iter172 = _iter171->first.begin(); _iter172 != _iter171->first.end(); ++_iter172) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter129->first.size())); + std::vector ::const_iterator _iter130; + for (_iter130 = _iter129->first.begin(); _iter130 != _iter129->first.end(); ++_iter130) { - xfer += oprot->writeString((*_iter172)); + xfer += oprot->writeString((*_iter130)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter171->second); + xfer += oprot->writeString(_iter129->second); } xfer += oprot->writeMapEnd(); } @@ -3402,86 +2560,11 @@ void swap(SkewedInfo &a, SkewedInfo &b) { swap(a.__isset, b.__isset); } -SkewedInfo::SkewedInfo(const SkewedInfo& other173) { - skewedColNames = other173.skewedColNames; - skewedColValues = other173.skewedColValues; - skewedColValueLocationMaps = other173.skewedColValueLocationMaps; - __isset = other173.__isset; -} -SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other174) { - skewedColNames = other174.skewedColNames; - skewedColValues = other174.skewedColValues; - skewedColValueLocationMaps = other174.skewedColValueLocationMaps; - __isset = other174.__isset; - return *this; -} -void SkewedInfo::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "SkewedInfo("; - out << "skewedColNames=" << to_string(skewedColNames); - out << ", " << "skewedColValues=" << to_string(skewedColValues); - out << ", " << "skewedColValueLocationMaps=" << to_string(skewedColValueLocationMaps); - out << ")"; -} - - -StorageDescriptor::~StorageDescriptor() throw() { -} - - -void StorageDescriptor::__set_cols(const std::vector & val) { - this->cols = val; -} - -void StorageDescriptor::__set_location(const std::string& val) { - this->location = val; -} - -void StorageDescriptor::__set_inputFormat(const std::string& val) { - this->inputFormat = val; -} - -void StorageDescriptor::__set_outputFormat(const std::string& val) { - this->outputFormat = val; -} - -void StorageDescriptor::__set_compressed(const bool val) { - this->compressed = val; -} - -void StorageDescriptor::__set_numBuckets(const int32_t val) { - this->numBuckets = val; -} - -void StorageDescriptor::__set_serdeInfo(const SerDeInfo& val) { - this->serdeInfo = val; -} - -void StorageDescriptor::__set_bucketCols(const std::vector & val) { - this->bucketCols = val; -} - -void StorageDescriptor::__set_sortCols(const std::vector & val) { - this->sortCols = val; -} - -void StorageDescriptor::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void StorageDescriptor::__set_skewedInfo(const SkewedInfo& val) { - this->skewedInfo = val; -__isset.skewedInfo = true; -} - -void StorageDescriptor::__set_storedAsSubDirectories(const bool val) { - this->storedAsSubDirectories = val; -__isset.storedAsSubDirectories = true; -} +const char* StorageDescriptor::ascii_fingerprint = "CA8C9AA5FE4C32643757D8639CEF0CD7"; +const uint8_t StorageDescriptor::binary_fingerprint[16] = {0xCA,0x8C,0x9A,0xA5,0xFE,0x4C,0x32,0x64,0x37,0x57,0xD8,0x63,0x9C,0xEF,0x0C,0xD7}; uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3504,14 +2587,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size175; - ::apache::thrift::protocol::TType _etype178; - xfer += iprot->readListBegin(_etype178, _size175); - this->cols.resize(_size175); - uint32_t _i179; - for (_i179 = 0; _i179 < _size175; ++_i179) + uint32_t _size131; + ::apache::thrift::protocol::TType _etype134; + xfer += iprot->readListBegin(_etype134, _size131); + this->cols.resize(_size131); + uint32_t _i135; + for (_i135 = 0; _i135 < _size131; ++_i135) { - xfer += this->cols[_i179].read(iprot); + xfer += this->cols[_i135].read(iprot); } xfer += iprot->readListEnd(); } @@ -3572,14 +2655,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size180; - ::apache::thrift::protocol::TType _etype183; - xfer += iprot->readListBegin(_etype183, _size180); - this->bucketCols.resize(_size180); - uint32_t _i184; - for (_i184 = 0; _i184 < _size180; ++_i184) + uint32_t _size136; + ::apache::thrift::protocol::TType _etype139; + xfer += iprot->readListBegin(_etype139, _size136); + this->bucketCols.resize(_size136); + uint32_t _i140; + for (_i140 = 0; _i140 < _size136; ++_i140) { - xfer += iprot->readString(this->bucketCols[_i184]); + xfer += iprot->readString(this->bucketCols[_i140]); } xfer += iprot->readListEnd(); } @@ -3592,14 +2675,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size185; - ::apache::thrift::protocol::TType _etype188; - xfer += iprot->readListBegin(_etype188, _size185); - this->sortCols.resize(_size185); - uint32_t _i189; - for (_i189 = 0; _i189 < _size185; ++_i189) + uint32_t _size141; + ::apache::thrift::protocol::TType _etype144; + xfer += iprot->readListBegin(_etype144, _size141); + this->sortCols.resize(_size141); + uint32_t _i145; + for (_i145 = 0; _i145 < _size141; ++_i145) { - xfer += this->sortCols[_i189].read(iprot); + xfer += this->sortCols[_i145].read(iprot); } xfer += iprot->readListEnd(); } @@ -3612,17 +2695,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size190; - ::apache::thrift::protocol::TType _ktype191; - ::apache::thrift::protocol::TType _vtype192; - xfer += iprot->readMapBegin(_ktype191, _vtype192, _size190); - uint32_t _i194; - for (_i194 = 0; _i194 < _size190; ++_i194) + uint32_t _size146; + ::apache::thrift::protocol::TType _ktype147; + ::apache::thrift::protocol::TType _vtype148; + xfer += iprot->readMapBegin(_ktype147, _vtype148, _size146); + uint32_t _i150; + for (_i150 = 0; _i150 < _size146; ++_i150) { - std::string _key195; - xfer += iprot->readString(_key195); - std::string& _val196 = this->parameters[_key195]; - xfer += iprot->readString(_val196); + std::string _key151; + xfer += iprot->readString(_key151); + std::string& _val152 = this->parameters[_key151]; + xfer += iprot->readString(_val152); } xfer += iprot->readMapEnd(); } @@ -3661,16 +2744,15 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("StorageDescriptor"); xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter197; - for (_iter197 = this->cols.begin(); _iter197 != this->cols.end(); ++_iter197) + std::vector ::const_iterator _iter153; + for (_iter153 = this->cols.begin(); _iter153 != this->cols.end(); ++_iter153) { - xfer += (*_iter197).write(oprot); + xfer += (*_iter153).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3703,10 +2785,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->bucketCols.size())); - std::vector ::const_iterator _iter198; - for (_iter198 = this->bucketCols.begin(); _iter198 != this->bucketCols.end(); ++_iter198) + std::vector ::const_iterator _iter154; + for (_iter154 = this->bucketCols.begin(); _iter154 != this->bucketCols.end(); ++_iter154) { - xfer += oprot->writeString((*_iter198)); + xfer += oprot->writeString((*_iter154)); } xfer += oprot->writeListEnd(); } @@ -3715,10 +2797,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sortCols.size())); - std::vector ::const_iterator _iter199; - for (_iter199 = this->sortCols.begin(); _iter199 != this->sortCols.end(); ++_iter199) + std::vector ::const_iterator _iter155; + for (_iter155 = this->sortCols.begin(); _iter155 != this->sortCols.end(); ++_iter155) { - xfer += (*_iter199).write(oprot); + xfer += (*_iter155).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3727,11 +2809,11 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter200; - for (_iter200 = this->parameters.begin(); _iter200 != this->parameters.end(); ++_iter200) + std::map ::const_iterator _iter156; + for (_iter156 = this->parameters.begin(); _iter156 != this->parameters.end(); ++_iter156) { - xfer += oprot->writeString(_iter200->first); - xfer += oprot->writeString(_iter200->second); + xfer += oprot->writeString(_iter156->first); + xfer += oprot->writeString(_iter156->second); } xfer += oprot->writeMapEnd(); } @@ -3769,121 +2851,11 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) { swap(a.__isset, b.__isset); } -StorageDescriptor::StorageDescriptor(const StorageDescriptor& other201) { - cols = other201.cols; - location = other201.location; - inputFormat = other201.inputFormat; - outputFormat = other201.outputFormat; - compressed = other201.compressed; - numBuckets = other201.numBuckets; - serdeInfo = other201.serdeInfo; - bucketCols = other201.bucketCols; - sortCols = other201.sortCols; - parameters = other201.parameters; - skewedInfo = other201.skewedInfo; - storedAsSubDirectories = other201.storedAsSubDirectories; - __isset = other201.__isset; -} -StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other202) { - cols = other202.cols; - location = other202.location; - inputFormat = other202.inputFormat; - outputFormat = other202.outputFormat; - compressed = other202.compressed; - numBuckets = other202.numBuckets; - serdeInfo = other202.serdeInfo; - bucketCols = other202.bucketCols; - sortCols = other202.sortCols; - parameters = other202.parameters; - skewedInfo = other202.skewedInfo; - storedAsSubDirectories = other202.storedAsSubDirectories; - __isset = other202.__isset; - return *this; -} -void StorageDescriptor::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "StorageDescriptor("; - out << "cols=" << to_string(cols); - out << ", " << "location=" << to_string(location); - out << ", " << "inputFormat=" << to_string(inputFormat); - out << ", " << "outputFormat=" << to_string(outputFormat); - out << ", " << "compressed=" << to_string(compressed); - out << ", " << "numBuckets=" << to_string(numBuckets); - out << ", " << "serdeInfo=" << to_string(serdeInfo); - out << ", " << "bucketCols=" << to_string(bucketCols); - out << ", " << "sortCols=" << to_string(sortCols); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "skewedInfo="; (__isset.skewedInfo ? (out << to_string(skewedInfo)) : (out << "")); - out << ", " << "storedAsSubDirectories="; (__isset.storedAsSubDirectories ? (out << to_string(storedAsSubDirectories)) : (out << "")); - out << ")"; -} - - -Table::~Table() throw() { -} - - -void Table::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void Table::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Table::__set_owner(const std::string& val) { - this->owner = val; -} - -void Table::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Table::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Table::__set_retention(const int32_t val) { - this->retention = val; -} - -void Table::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Table::__set_partitionKeys(const std::vector & val) { - this->partitionKeys = val; -} - -void Table::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Table::__set_viewOriginalText(const std::string& val) { - this->viewOriginalText = val; -} - -void Table::__set_viewExpandedText(const std::string& val) { - this->viewExpandedText = val; -} - -void Table::__set_tableType(const std::string& val) { - this->tableType = val; -} - -void Table::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - -void Table::__set_temporary(const bool val) { - this->temporary = val; -__isset.temporary = true; -} +const char* Table::ascii_fingerprint = "29EFB2A5970EF572039E5D94CC78AA85"; +const uint8_t Table::binary_fingerprint[16] = {0x29,0xEF,0xB2,0xA5,0x97,0x0E,0xF5,0x72,0x03,0x9E,0x5D,0x94,0xCC,0x78,0xAA,0x85}; uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3962,14 +2934,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size203; - ::apache::thrift::protocol::TType _etype206; - xfer += iprot->readListBegin(_etype206, _size203); - this->partitionKeys.resize(_size203); - uint32_t _i207; - for (_i207 = 0; _i207 < _size203; ++_i207) + uint32_t _size157; + ::apache::thrift::protocol::TType _etype160; + xfer += iprot->readListBegin(_etype160, _size157); + this->partitionKeys.resize(_size157); + uint32_t _i161; + for (_i161 = 0; _i161 < _size157; ++_i161) { - xfer += this->partitionKeys[_i207].read(iprot); + xfer += this->partitionKeys[_i161].read(iprot); } xfer += iprot->readListEnd(); } @@ -3982,17 +2954,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size208; - ::apache::thrift::protocol::TType _ktype209; - ::apache::thrift::protocol::TType _vtype210; - xfer += iprot->readMapBegin(_ktype209, _vtype210, _size208); - uint32_t _i212; - for (_i212 = 0; _i212 < _size208; ++_i212) + uint32_t _size162; + ::apache::thrift::protocol::TType _ktype163; + ::apache::thrift::protocol::TType _vtype164; + xfer += iprot->readMapBegin(_ktype163, _vtype164, _size162); + uint32_t _i166; + for (_i166 = 0; _i166 < _size162; ++_i166) { - std::string _key213; - xfer += iprot->readString(_key213); - std::string& _val214 = this->parameters[_key213]; - xfer += iprot->readString(_val214); + std::string _key167; + xfer += iprot->readString(_key167); + std::string& _val168 = this->parameters[_key167]; + xfer += iprot->readString(_val168); } xfer += iprot->readMapEnd(); } @@ -4055,7 +3027,6 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Table"); xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 1); @@ -4089,10 +3060,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter215; - for (_iter215 = this->partitionKeys.begin(); _iter215 != this->partitionKeys.end(); ++_iter215) + std::vector ::const_iterator _iter169; + for (_iter169 = this->partitionKeys.begin(); _iter169 != this->partitionKeys.end(); ++_iter169) { - xfer += (*_iter215).write(oprot); + xfer += (*_iter169).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4101,11 +3072,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter216; - for (_iter216 = this->parameters.begin(); _iter216 != this->parameters.end(); ++_iter216) + std::map ::const_iterator _iter170; + for (_iter170 = this->parameters.begin(); _iter170 != this->parameters.end(); ++_iter170) { - xfer += oprot->writeString(_iter216->first); - xfer += oprot->writeString(_iter216->second); + xfer += oprot->writeString(_iter170->first); + xfer += oprot->writeString(_iter170->second); } xfer += oprot->writeMapEnd(); } @@ -4157,102 +3128,11 @@ void swap(Table &a, Table &b) { swap(a.__isset, b.__isset); } -Table::Table(const Table& other217) { - tableName = other217.tableName; - dbName = other217.dbName; - owner = other217.owner; - createTime = other217.createTime; - lastAccessTime = other217.lastAccessTime; - retention = other217.retention; - sd = other217.sd; - partitionKeys = other217.partitionKeys; - parameters = other217.parameters; - viewOriginalText = other217.viewOriginalText; - viewExpandedText = other217.viewExpandedText; - tableType = other217.tableType; - privileges = other217.privileges; - temporary = other217.temporary; - __isset = other217.__isset; -} -Table& Table::operator=(const Table& other218) { - tableName = other218.tableName; - dbName = other218.dbName; - owner = other218.owner; - createTime = other218.createTime; - lastAccessTime = other218.lastAccessTime; - retention = other218.retention; - sd = other218.sd; - partitionKeys = other218.partitionKeys; - parameters = other218.parameters; - viewOriginalText = other218.viewOriginalText; - viewExpandedText = other218.viewExpandedText; - tableType = other218.tableType; - privileges = other218.privileges; - temporary = other218.temporary; - __isset = other218.__isset; - return *this; -} -void Table::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Table("; - out << "tableName=" << to_string(tableName); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "owner=" << to_string(owner); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "lastAccessTime=" << to_string(lastAccessTime); - out << ", " << "retention=" << to_string(retention); - out << ", " << "sd=" << to_string(sd); - out << ", " << "partitionKeys=" << to_string(partitionKeys); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "viewOriginalText=" << to_string(viewOriginalText); - out << ", " << "viewExpandedText=" << to_string(viewExpandedText); - out << ", " << "tableType=" << to_string(tableType); - out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); - out << ", " << "temporary="; (__isset.temporary ? (out << to_string(temporary)) : (out << "")); - out << ")"; -} - - -Partition::~Partition() throw() { -} - - -void Partition::__set_values(const std::vector & val) { - this->values = val; -} - -void Partition::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Partition::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void Partition::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Partition::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Partition::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Partition::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Partition::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} +const char* Partition::ascii_fingerprint = "31A52241B88A426C34087FE38343FF51"; +const uint8_t Partition::binary_fingerprint[16] = {0x31,0xA5,0x22,0x41,0xB8,0x8A,0x42,0x6C,0x34,0x08,0x7F,0xE3,0x83,0x43,0xFF,0x51}; uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4275,14 +3155,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size219; - ::apache::thrift::protocol::TType _etype222; - xfer += iprot->readListBegin(_etype222, _size219); - this->values.resize(_size219); - uint32_t _i223; - for (_i223 = 0; _i223 < _size219; ++_i223) + uint32_t _size171; + ::apache::thrift::protocol::TType _etype174; + xfer += iprot->readListBegin(_etype174, _size171); + this->values.resize(_size171); + uint32_t _i175; + for (_i175 = 0; _i175 < _size171; ++_i175) { - xfer += iprot->readString(this->values[_i223]); + xfer += iprot->readString(this->values[_i175]); } xfer += iprot->readListEnd(); } @@ -4335,17 +3215,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size224; - ::apache::thrift::protocol::TType _ktype225; - ::apache::thrift::protocol::TType _vtype226; - xfer += iprot->readMapBegin(_ktype225, _vtype226, _size224); - uint32_t _i228; - for (_i228 = 0; _i228 < _size224; ++_i228) + uint32_t _size176; + ::apache::thrift::protocol::TType _ktype177; + ::apache::thrift::protocol::TType _vtype178; + xfer += iprot->readMapBegin(_ktype177, _vtype178, _size176); + uint32_t _i180; + for (_i180 = 0; _i180 < _size176; ++_i180) { - std::string _key229; - xfer += iprot->readString(_key229); - std::string& _val230 = this->parameters[_key229]; - xfer += iprot->readString(_val230); + std::string _key181; + xfer += iprot->readString(_key181); + std::string& _val182 = this->parameters[_key181]; + xfer += iprot->readString(_val182); } xfer += iprot->readMapEnd(); } @@ -4376,16 +3256,15 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Partition"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter231; - for (_iter231 = this->values.begin(); _iter231 != this->values.end(); ++_iter231) + std::vector ::const_iterator _iter183; + for (_iter183 = this->values.begin(); _iter183 != this->values.end(); ++_iter183) { - xfer += oprot->writeString((*_iter231)); + xfer += oprot->writeString((*_iter183)); } xfer += oprot->writeListEnd(); } @@ -4414,11 +3293,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter232; - for (_iter232 = this->parameters.begin(); _iter232 != this->parameters.end(); ++_iter232) + std::map ::const_iterator _iter184; + for (_iter184 = this->parameters.begin(); _iter184 != this->parameters.end(); ++_iter184) { - xfer += oprot->writeString(_iter232->first); - xfer += oprot->writeString(_iter232->second); + xfer += oprot->writeString(_iter184->first); + xfer += oprot->writeString(_iter184->second); } xfer += oprot->writeMapEnd(); } @@ -4447,76 +3326,11 @@ void swap(Partition &a, Partition &b) { swap(a.__isset, b.__isset); } -Partition::Partition(const Partition& other233) { - values = other233.values; - dbName = other233.dbName; - tableName = other233.tableName; - createTime = other233.createTime; - lastAccessTime = other233.lastAccessTime; - sd = other233.sd; - parameters = other233.parameters; - privileges = other233.privileges; - __isset = other233.__isset; -} -Partition& Partition::operator=(const Partition& other234) { - values = other234.values; - dbName = other234.dbName; - tableName = other234.tableName; - createTime = other234.createTime; - lastAccessTime = other234.lastAccessTime; - sd = other234.sd; - parameters = other234.parameters; - privileges = other234.privileges; - __isset = other234.__isset; - return *this; -} -void Partition::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Partition("; - out << "values=" << to_string(values); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "tableName=" << to_string(tableName); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "lastAccessTime=" << to_string(lastAccessTime); - out << ", " << "sd=" << to_string(sd); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); - out << ")"; -} - - -PartitionWithoutSD::~PartitionWithoutSD() throw() { -} - - -void PartitionWithoutSD::__set_values(const std::vector & val) { - this->values = val; -} - -void PartitionWithoutSD::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void PartitionWithoutSD::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void PartitionWithoutSD::__set_relativePath(const std::string& val) { - this->relativePath = val; -} - -void PartitionWithoutSD::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void PartitionWithoutSD::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} +const char* PartitionWithoutSD::ascii_fingerprint = "D79FA44499888D0E50B5625E0C536DEA"; +const uint8_t PartitionWithoutSD::binary_fingerprint[16] = {0xD7,0x9F,0xA4,0x44,0x99,0x88,0x8D,0x0E,0x50,0xB5,0x62,0x5E,0x0C,0x53,0x6D,0xEA}; uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4539,14 +3353,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size235; - ::apache::thrift::protocol::TType _etype238; - xfer += iprot->readListBegin(_etype238, _size235); - this->values.resize(_size235); - uint32_t _i239; - for (_i239 = 0; _i239 < _size235; ++_i239) + uint32_t _size185; + ::apache::thrift::protocol::TType _etype188; + xfer += iprot->readListBegin(_etype188, _size185); + this->values.resize(_size185); + uint32_t _i189; + for (_i189 = 0; _i189 < _size185; ++_i189) { - xfer += iprot->readString(this->values[_i239]); + xfer += iprot->readString(this->values[_i189]); } xfer += iprot->readListEnd(); } @@ -4583,17 +3397,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size240; - ::apache::thrift::protocol::TType _ktype241; - ::apache::thrift::protocol::TType _vtype242; - xfer += iprot->readMapBegin(_ktype241, _vtype242, _size240); - uint32_t _i244; - for (_i244 = 0; _i244 < _size240; ++_i244) + uint32_t _size190; + ::apache::thrift::protocol::TType _ktype191; + ::apache::thrift::protocol::TType _vtype192; + xfer += iprot->readMapBegin(_ktype191, _vtype192, _size190); + uint32_t _i194; + for (_i194 = 0; _i194 < _size190; ++_i194) { - std::string _key245; - xfer += iprot->readString(_key245); - std::string& _val246 = this->parameters[_key245]; - xfer += iprot->readString(_val246); + std::string _key195; + xfer += iprot->readString(_key195); + std::string& _val196 = this->parameters[_key195]; + xfer += iprot->readString(_val196); } xfer += iprot->readMapEnd(); } @@ -4624,16 +3438,15 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionWithoutSD"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter247; - for (_iter247 = this->values.begin(); _iter247 != this->values.end(); ++_iter247) + std::vector ::const_iterator _iter197; + for (_iter197 = this->values.begin(); _iter197 != this->values.end(); ++_iter197) { - xfer += oprot->writeString((*_iter247)); + xfer += oprot->writeString((*_iter197)); } xfer += oprot->writeListEnd(); } @@ -4654,11 +3467,11 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 5); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter248; - for (_iter248 = this->parameters.begin(); _iter248 != this->parameters.end(); ++_iter248) + std::map ::const_iterator _iter198; + for (_iter198 = this->parameters.begin(); _iter198 != this->parameters.end(); ++_iter198) { - xfer += oprot->writeString(_iter248->first); - xfer += oprot->writeString(_iter248->second); + xfer += oprot->writeString(_iter198->first); + xfer += oprot->writeString(_iter198->second); } xfer += oprot->writeMapEnd(); } @@ -4685,53 +3498,11 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other249) { - values = other249.values; - createTime = other249.createTime; - lastAccessTime = other249.lastAccessTime; - relativePath = other249.relativePath; - parameters = other249.parameters; - privileges = other249.privileges; - __isset = other249.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other250) { - values = other250.values; - createTime = other250.createTime; - lastAccessTime = other250.lastAccessTime; - relativePath = other250.relativePath; - parameters = other250.parameters; - privileges = other250.privileges; - __isset = other250.__isset; - return *this; -} -void PartitionWithoutSD::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionWithoutSD("; - out << "values=" << to_string(values); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "lastAccessTime=" << to_string(lastAccessTime); - out << ", " << "relativePath=" << to_string(relativePath); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); - out << ")"; -} - - -PartitionSpecWithSharedSD::~PartitionSpecWithSharedSD() throw() { -} - - -void PartitionSpecWithSharedSD::__set_partitions(const std::vector & val) { - this->partitions = val; -} - -void PartitionSpecWithSharedSD::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} +const char* PartitionSpecWithSharedSD::ascii_fingerprint = "7BEE9305B42DCD083FF06BEE6DDC61CF"; +const uint8_t PartitionSpecWithSharedSD::binary_fingerprint[16] = {0x7B,0xEE,0x93,0x05,0xB4,0x2D,0xCD,0x08,0x3F,0xF0,0x6B,0xEE,0x6D,0xDC,0x61,0xCF}; uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4754,14 +3525,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size251; - ::apache::thrift::protocol::TType _etype254; - xfer += iprot->readListBegin(_etype254, _size251); - this->partitions.resize(_size251); - uint32_t _i255; - for (_i255 = 0; _i255 < _size251; ++_i255) + uint32_t _size199; + ::apache::thrift::protocol::TType _etype202; + xfer += iprot->readListBegin(_etype202, _size199); + this->partitions.resize(_size199); + uint32_t _i203; + for (_i203 = 0; _i203 < _size199; ++_i203) { - xfer += this->partitions[_i255].read(iprot); + xfer += this->partitions[_i203].read(iprot); } xfer += iprot->readListEnd(); } @@ -4792,16 +3563,15 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionSpecWithSharedSD"); xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter256; - for (_iter256 = this->partitions.begin(); _iter256 != this->partitions.end(); ++_iter256) + std::vector ::const_iterator _iter204; + for (_iter204 = this->partitions.begin(); _iter204 != this->partitions.end(); ++_iter204) { - xfer += (*_iter256).write(oprot); + xfer += (*_iter204).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4823,37 +3593,11 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other257) { - partitions = other257.partitions; - sd = other257.sd; - __isset = other257.__isset; -} -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other258) { - partitions = other258.partitions; - sd = other258.sd; - __isset = other258.__isset; - return *this; -} -void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionSpecWithSharedSD("; - out << "partitions=" << to_string(partitions); - out << ", " << "sd=" << to_string(sd); - out << ")"; -} - - -PartitionListComposingSpec::~PartitionListComposingSpec() throw() { -} - - -void PartitionListComposingSpec::__set_partitions(const std::vector & val) { - this->partitions = val; -} +const char* PartitionListComposingSpec::ascii_fingerprint = "A048235CB9A257C8A74E3691BEFE0674"; +const uint8_t PartitionListComposingSpec::binary_fingerprint[16] = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4876,14 +3620,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size259; - ::apache::thrift::protocol::TType _etype262; - xfer += iprot->readListBegin(_etype262, _size259); - this->partitions.resize(_size259); - uint32_t _i263; - for (_i263 = 0; _i263 < _size259; ++_i263) + uint32_t _size205; + ::apache::thrift::protocol::TType _etype208; + xfer += iprot->readListBegin(_etype208, _size205); + this->partitions.resize(_size205); + uint32_t _i209; + for (_i209 = 0; _i209 < _size205; ++_i209) { - xfer += this->partitions[_i263].read(iprot); + xfer += this->partitions[_i209].read(iprot); } xfer += iprot->readListEnd(); } @@ -4906,16 +3650,15 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionListComposingSpec"); xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter264; - for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) + std::vector ::const_iterator _iter210; + for (_iter210 = this->partitions.begin(); _iter210 != this->partitions.end(); ++_iter210) { - xfer += (*_iter264).write(oprot); + xfer += (*_iter210).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4932,58 +3675,17 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other265) { - partitions = other265.partitions; - __isset = other265.__isset; -} -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other266) { - partitions = other266.partitions; - __isset = other266.__isset; - return *this; -} -void PartitionListComposingSpec::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionListComposingSpec("; - out << "partitions=" << to_string(partitions); - out << ")"; -} +const char* PartitionSpec::ascii_fingerprint = "C3F548C24D072CF6422F25096143E3E8"; +const uint8_t PartitionSpec::binary_fingerprint[16] = {0xC3,0xF5,0x48,0xC2,0x4D,0x07,0x2C,0xF6,0x42,0x2F,0x25,0x09,0x61,0x43,0xE3,0xE8}; +uint32_t PartitionSpec::read(::apache::thrift::protocol::TProtocol* iprot) { -PartitionSpec::~PartitionSpec() throw() { -} + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - -void PartitionSpec::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionSpec::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void PartitionSpec::__set_rootPath(const std::string& val) { - this->rootPath = val; -} - -void PartitionSpec::__set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val) { - this->sharedSDPartitionSpec = val; -__isset.sharedSDPartitionSpec = true; -} - -void PartitionSpec::__set_partitionList(const PartitionListComposingSpec& val) { - this->partitionList = val; -__isset.partitionList = true; -} - -uint32_t PartitionSpec::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); + xfer += iprot->readStructBegin(fname); using ::apache::thrift::protocol::TProtocolException; @@ -5050,7 +3752,6 @@ uint32_t PartitionSpec::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PartitionSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionSpec"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -5090,82 +3791,11 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other267) { - dbName = other267.dbName; - tableName = other267.tableName; - rootPath = other267.rootPath; - sharedSDPartitionSpec = other267.sharedSDPartitionSpec; - partitionList = other267.partitionList; - __isset = other267.__isset; -} -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other268) { - dbName = other268.dbName; - tableName = other268.tableName; - rootPath = other268.rootPath; - sharedSDPartitionSpec = other268.sharedSDPartitionSpec; - partitionList = other268.partitionList; - __isset = other268.__isset; - return *this; -} -void PartitionSpec::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionSpec("; - out << "dbName=" << to_string(dbName); - out << ", " << "tableName=" << to_string(tableName); - out << ", " << "rootPath=" << to_string(rootPath); - out << ", " << "sharedSDPartitionSpec="; (__isset.sharedSDPartitionSpec ? (out << to_string(sharedSDPartitionSpec)) : (out << "")); - out << ", " << "partitionList="; (__isset.partitionList ? (out << to_string(partitionList)) : (out << "")); - out << ")"; -} - - -Index::~Index() throw() { -} - - -void Index::__set_indexName(const std::string& val) { - this->indexName = val; -} - -void Index::__set_indexHandlerClass(const std::string& val) { - this->indexHandlerClass = val; -} - -void Index::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Index::__set_origTableName(const std::string& val) { - this->origTableName = val; -} - -void Index::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Index::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Index::__set_indexTableName(const std::string& val) { - this->indexTableName = val; -} - -void Index::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Index::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Index::__set_deferredRebuild(const bool val) { - this->deferredRebuild = val; -} +const char* Index::ascii_fingerprint = "09EEF655216AC81802850988D6C470A6"; +const uint8_t Index::binary_fingerprint[16] = {0x09,0xEE,0xF6,0x55,0x21,0x6A,0xC8,0x18,0x02,0x85,0x09,0x88,0xD6,0xC4,0x70,0xA6}; uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5252,17 +3882,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size269; - ::apache::thrift::protocol::TType _ktype270; - ::apache::thrift::protocol::TType _vtype271; - xfer += iprot->readMapBegin(_ktype270, _vtype271, _size269); - uint32_t _i273; - for (_i273 = 0; _i273 < _size269; ++_i273) + uint32_t _size211; + ::apache::thrift::protocol::TType _ktype212; + ::apache::thrift::protocol::TType _vtype213; + xfer += iprot->readMapBegin(_ktype212, _vtype213, _size211); + uint32_t _i215; + for (_i215 = 0; _i215 < _size211; ++_i215) { - std::string _key274; - xfer += iprot->readString(_key274); - std::string& _val275 = this->parameters[_key274]; - xfer += iprot->readString(_val275); + std::string _key216; + xfer += iprot->readString(_key216); + std::string& _val217 = this->parameters[_key216]; + xfer += iprot->readString(_val217); } xfer += iprot->readMapEnd(); } @@ -5293,7 +3923,6 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Index"); xfer += oprot->writeFieldBegin("indexName", ::apache::thrift::protocol::T_STRING, 1); @@ -5331,11 +3960,11 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter276; - for (_iter276 = this->parameters.begin(); _iter276 != this->parameters.end(); ++_iter276) + std::map ::const_iterator _iter218; + for (_iter218 = this->parameters.begin(); _iter218 != this->parameters.end(); ++_iter218) { - xfer += oprot->writeString(_iter276->first); - xfer += oprot->writeString(_iter276->second); + xfer += oprot->writeString(_iter218->first); + xfer += oprot->writeString(_iter218->second); } xfer += oprot->writeMapEnd(); } @@ -5365,69 +3994,11 @@ void swap(Index &a, Index &b) { swap(a.__isset, b.__isset); } -Index::Index(const Index& other277) { - indexName = other277.indexName; - indexHandlerClass = other277.indexHandlerClass; - dbName = other277.dbName; - origTableName = other277.origTableName; - createTime = other277.createTime; - lastAccessTime = other277.lastAccessTime; - indexTableName = other277.indexTableName; - sd = other277.sd; - parameters = other277.parameters; - deferredRebuild = other277.deferredRebuild; - __isset = other277.__isset; -} -Index& Index::operator=(const Index& other278) { - indexName = other278.indexName; - indexHandlerClass = other278.indexHandlerClass; - dbName = other278.dbName; - origTableName = other278.origTableName; - createTime = other278.createTime; - lastAccessTime = other278.lastAccessTime; - indexTableName = other278.indexTableName; - sd = other278.sd; - parameters = other278.parameters; - deferredRebuild = other278.deferredRebuild; - __isset = other278.__isset; - return *this; -} -void Index::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Index("; - out << "indexName=" << to_string(indexName); - out << ", " << "indexHandlerClass=" << to_string(indexHandlerClass); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "origTableName=" << to_string(origTableName); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "lastAccessTime=" << to_string(lastAccessTime); - out << ", " << "indexTableName=" << to_string(indexTableName); - out << ", " << "sd=" << to_string(sd); - out << ", " << "parameters=" << to_string(parameters); - out << ", " << "deferredRebuild=" << to_string(deferredRebuild); - out << ")"; -} - - -BooleanColumnStatsData::~BooleanColumnStatsData() throw() { -} - - -void BooleanColumnStatsData::__set_numTrues(const int64_t val) { - this->numTrues = val; -} - -void BooleanColumnStatsData::__set_numFalses(const int64_t val) { - this->numFalses = val; -} - -void BooleanColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} +const char* BooleanColumnStatsData::ascii_fingerprint = "4A712C500E54918CFBA57A70D875BC7B"; +const uint8_t BooleanColumnStatsData::binary_fingerprint[16] = {0x4A,0x71,0x2C,0x50,0x0E,0x54,0x91,0x8C,0xFB,0xA5,0x7A,0x70,0xD8,0x75,0xBC,0x7B}; uint32_t BooleanColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5440,6 +4011,7 @@ uint32_t BooleanColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr bool isset_numTrues = false; bool isset_numFalses = false; bool isset_numNulls = false; + bool isset_bitVectors = false; while (true) { @@ -5473,6 +4045,14 @@ uint32_t BooleanColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5488,12 +4068,13 @@ uint32_t BooleanColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numNulls) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t BooleanColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("BooleanColumnStatsData"); xfer += oprot->writeFieldBegin("numTrues", ::apache::thrift::protocol::T_I64, 1); @@ -5508,6 +4089,10 @@ uint32_t BooleanColumnStatsData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeI64(this->numNulls); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5518,54 +4103,14 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.numTrues, b.numTrues); swap(a.numFalses, b.numFalses); swap(a.numNulls, b.numNulls); + swap(a.bitVectors, b.bitVectors); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other279) { - numTrues = other279.numTrues; - numFalses = other279.numFalses; - numNulls = other279.numNulls; -} -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other280) { - numTrues = other280.numTrues; - numFalses = other280.numFalses; - numNulls = other280.numNulls; - return *this; -} -void BooleanColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "BooleanColumnStatsData("; - out << "numTrues=" << to_string(numTrues); - out << ", " << "numFalses=" << to_string(numFalses); - out << ", " << "numNulls=" << to_string(numNulls); - out << ")"; -} - - -DoubleColumnStatsData::~DoubleColumnStatsData() throw() { -} - - -void DoubleColumnStatsData::__set_lowValue(const double val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DoubleColumnStatsData::__set_highValue(const double val) { - this->highValue = val; -__isset.highValue = true; -} - -void DoubleColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void DoubleColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} +const char* DoubleColumnStatsData::ascii_fingerprint = "BEA28DCF4FBA2D1FBDC6C7D92C7D259C"; +const uint8_t DoubleColumnStatsData::binary_fingerprint[16] = {0xBE,0xA2,0x8D,0xCF,0x4F,0xBA,0x2D,0x1F,0xBD,0xC6,0xC7,0xD9,0x2C,0x7D,0x25,0x9C}; uint32_t DoubleColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5577,6 +4122,7 @@ uint32_t DoubleColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro bool isset_numNulls = false; bool isset_numDVs = false; + bool isset_bitVectors = false; while (true) { @@ -5618,6 +4164,14 @@ uint32_t DoubleColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5631,12 +4185,13 @@ uint32_t DoubleColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numDVs) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t DoubleColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DoubleColumnStatsData"); if (this->__isset.lowValue) { @@ -5657,6 +4212,10 @@ uint32_t DoubleColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeI64(this->numDVs); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5668,60 +4227,15 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.highValue, b.highValue); swap(a.numNulls, b.numNulls); swap(a.numDVs, b.numDVs); + swap(a.bitVectors, b.bitVectors); swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other281) { - lowValue = other281.lowValue; - highValue = other281.highValue; - numNulls = other281.numNulls; - numDVs = other281.numDVs; - __isset = other281.__isset; -} -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other282) { - lowValue = other282.lowValue; - highValue = other282.highValue; - numNulls = other282.numNulls; - numDVs = other282.numDVs; - __isset = other282.__isset; - return *this; -} -void DoubleColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DoubleColumnStatsData("; - out << "lowValue="; (__isset.lowValue ? (out << to_string(lowValue)) : (out << "")); - out << ", " << "highValue="; (__isset.highValue ? (out << to_string(highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(numNulls); - out << ", " << "numDVs=" << to_string(numDVs); - out << ")"; -} - - -LongColumnStatsData::~LongColumnStatsData() throw() { -} - - -void LongColumnStatsData::__set_lowValue(const int64_t val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void LongColumnStatsData::__set_highValue(const int64_t val) { - this->highValue = val; -__isset.highValue = true; -} - -void LongColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void LongColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} +const char* LongColumnStatsData::ascii_fingerprint = "7C75730F0483BF798B623579F05EB7A0"; +const uint8_t LongColumnStatsData::binary_fingerprint[16] = {0x7C,0x75,0x73,0x0F,0x04,0x83,0xBF,0x79,0x8B,0x62,0x35,0x79,0xF0,0x5E,0xB7,0xA0}; uint32_t LongColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5733,6 +4247,7 @@ uint32_t LongColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) bool isset_numNulls = false; bool isset_numDVs = false; + bool isset_bitVectors = false; while (true) { @@ -5774,6 +4289,14 @@ uint32_t LongColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5787,12 +4310,13 @@ uint32_t LongColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numDVs) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t LongColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("LongColumnStatsData"); if (this->__isset.lowValue) { @@ -5813,6 +4337,10 @@ uint32_t LongColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeI64(this->numDVs); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5824,58 +4352,15 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.highValue, b.highValue); swap(a.numNulls, b.numNulls); swap(a.numDVs, b.numDVs); + swap(a.bitVectors, b.bitVectors); swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other283) { - lowValue = other283.lowValue; - highValue = other283.highValue; - numNulls = other283.numNulls; - numDVs = other283.numDVs; - __isset = other283.__isset; -} -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other284) { - lowValue = other284.lowValue; - highValue = other284.highValue; - numNulls = other284.numNulls; - numDVs = other284.numDVs; - __isset = other284.__isset; - return *this; -} -void LongColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "LongColumnStatsData("; - out << "lowValue="; (__isset.lowValue ? (out << to_string(lowValue)) : (out << "")); - out << ", " << "highValue="; (__isset.highValue ? (out << to_string(highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(numNulls); - out << ", " << "numDVs=" << to_string(numDVs); - out << ")"; -} - - -StringColumnStatsData::~StringColumnStatsData() throw() { -} - - -void StringColumnStatsData::__set_maxColLen(const int64_t val) { - this->maxColLen = val; -} - -void StringColumnStatsData::__set_avgColLen(const double val) { - this->avgColLen = val; -} - -void StringColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void StringColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} +const char* StringColumnStatsData::ascii_fingerprint = "40245D2EED7A451D09BD995AED6A5343"; +const uint8_t StringColumnStatsData::binary_fingerprint[16] = {0x40,0x24,0x5D,0x2E,0xED,0x7A,0x45,0x1D,0x09,0xBD,0x99,0x5A,0xED,0x6A,0x53,0x43}; uint32_t StringColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5889,6 +4374,7 @@ uint32_t StringColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro bool isset_avgColLen = false; bool isset_numNulls = false; bool isset_numDVs = false; + bool isset_bitVectors = false; while (true) { @@ -5930,6 +4416,14 @@ uint32_t StringColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5947,12 +4441,13 @@ uint32_t StringColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numDVs) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t StringColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("StringColumnStatsData"); xfer += oprot->writeFieldBegin("maxColLen", ::apache::thrift::protocol::T_I64, 1); @@ -5971,6 +4466,10 @@ uint32_t StringColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeI64(this->numDVs); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -5982,51 +4481,14 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.avgColLen, b.avgColLen); swap(a.numNulls, b.numNulls); swap(a.numDVs, b.numDVs); + swap(a.bitVectors, b.bitVectors); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other285) { - maxColLen = other285.maxColLen; - avgColLen = other285.avgColLen; - numNulls = other285.numNulls; - numDVs = other285.numDVs; -} -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other286) { - maxColLen = other286.maxColLen; - avgColLen = other286.avgColLen; - numNulls = other286.numNulls; - numDVs = other286.numDVs; - return *this; -} -void StringColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "StringColumnStatsData("; - out << "maxColLen=" << to_string(maxColLen); - out << ", " << "avgColLen=" << to_string(avgColLen); - out << ", " << "numNulls=" << to_string(numNulls); - out << ", " << "numDVs=" << to_string(numDVs); - out << ")"; -} - - -BinaryColumnStatsData::~BinaryColumnStatsData() throw() { -} - - -void BinaryColumnStatsData::__set_maxColLen(const int64_t val) { - this->maxColLen = val; -} - -void BinaryColumnStatsData::__set_avgColLen(const double val) { - this->avgColLen = val; -} - -void BinaryColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} +const char* BinaryColumnStatsData::ascii_fingerprint = "F8DFB1C0A86CEF465C06983269A441E3"; +const uint8_t BinaryColumnStatsData::binary_fingerprint[16] = {0xF8,0xDF,0xB1,0xC0,0xA8,0x6C,0xEF,0x46,0x5C,0x06,0x98,0x32,0x69,0xA4,0x41,0xE3}; uint32_t BinaryColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6039,6 +4501,7 @@ uint32_t BinaryColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro bool isset_maxColLen = false; bool isset_avgColLen = false; bool isset_numNulls = false; + bool isset_bitVectors = false; while (true) { @@ -6072,6 +4535,14 @@ uint32_t BinaryColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6087,12 +4558,13 @@ uint32_t BinaryColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numNulls) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t BinaryColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("BinaryColumnStatsData"); xfer += oprot->writeFieldBegin("maxColLen", ::apache::thrift::protocol::T_I64, 1); @@ -6107,6 +4579,10 @@ uint32_t BinaryColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeI64(this->numNulls); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -6117,44 +4593,14 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.maxColLen, b.maxColLen); swap(a.avgColLen, b.avgColLen); swap(a.numNulls, b.numNulls); + swap(a.bitVectors, b.bitVectors); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other287) { - maxColLen = other287.maxColLen; - avgColLen = other287.avgColLen; - numNulls = other287.numNulls; -} -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other288) { - maxColLen = other288.maxColLen; - avgColLen = other288.avgColLen; - numNulls = other288.numNulls; - return *this; -} -void BinaryColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "BinaryColumnStatsData("; - out << "maxColLen=" << to_string(maxColLen); - out << ", " << "avgColLen=" << to_string(avgColLen); - out << ", " << "numNulls=" << to_string(numNulls); - out << ")"; -} - - -Decimal::~Decimal() throw() { -} - - -void Decimal::__set_unscaled(const std::string& val) { - this->unscaled = val; -} - -void Decimal::__set_scale(const int16_t val) { - this->scale = val; -} +const char* Decimal::ascii_fingerprint = "C4DDF6759F9B17C5C380806CE743DE8E"; +const uint8_t Decimal::binary_fingerprint[16] = {0xC4,0xDD,0xF6,0x75,0x9F,0x9B,0x17,0xC5,0xC3,0x80,0x80,0x6C,0xE7,0x43,0xDE,0x8E}; uint32_t Decimal::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6209,7 +4655,6 @@ uint32_t Decimal::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Decimal::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Decimal"); xfer += oprot->writeFieldBegin("unscaled", ::apache::thrift::protocol::T_STRING, 1); @@ -6231,49 +4676,11 @@ void swap(Decimal &a, Decimal &b) { swap(a.scale, b.scale); } -Decimal::Decimal(const Decimal& other289) { - unscaled = other289.unscaled; - scale = other289.scale; -} -Decimal& Decimal::operator=(const Decimal& other290) { - unscaled = other290.unscaled; - scale = other290.scale; - return *this; -} -void Decimal::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Decimal("; - out << "unscaled=" << to_string(unscaled); - out << ", " << "scale=" << to_string(scale); - out << ")"; -} - - -DecimalColumnStatsData::~DecimalColumnStatsData() throw() { -} - - -void DecimalColumnStatsData::__set_lowValue(const Decimal& val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DecimalColumnStatsData::__set_highValue(const Decimal& val) { - this->highValue = val; -__isset.highValue = true; -} - -void DecimalColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void DecimalColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} +const char* DecimalColumnStatsData::ascii_fingerprint = "86EE58DEC40D54A444081A7330B9DB0E"; +const uint8_t DecimalColumnStatsData::binary_fingerprint[16] = {0x86,0xEE,0x58,0xDE,0xC4,0x0D,0x54,0xA4,0x44,0x08,0x1A,0x73,0x30,0xB9,0xDB,0x0E}; uint32_t DecimalColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6285,6 +4692,7 @@ uint32_t DecimalColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr bool isset_numNulls = false; bool isset_numDVs = false; + bool isset_bitVectors = false; while (true) { @@ -6326,6 +4734,14 @@ uint32_t DecimalColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6339,12 +4755,13 @@ uint32_t DecimalColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numDVs) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t DecimalColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DecimalColumnStatsData"); if (this->__isset.lowValue) { @@ -6365,6 +4782,10 @@ uint32_t DecimalColumnStatsData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeI64(this->numDVs); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -6376,46 +4797,15 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.highValue, b.highValue); swap(a.numNulls, b.numNulls); swap(a.numDVs, b.numDVs); + swap(a.bitVectors, b.bitVectors); swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other291) { - lowValue = other291.lowValue; - highValue = other291.highValue; - numNulls = other291.numNulls; - numDVs = other291.numDVs; - __isset = other291.__isset; -} -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other292) { - lowValue = other292.lowValue; - highValue = other292.highValue; - numNulls = other292.numNulls; - numDVs = other292.numDVs; - __isset = other292.__isset; - return *this; -} -void DecimalColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DecimalColumnStatsData("; - out << "lowValue="; (__isset.lowValue ? (out << to_string(lowValue)) : (out << "")); - out << ", " << "highValue="; (__isset.highValue ? (out << to_string(highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(numNulls); - out << ", " << "numDVs=" << to_string(numDVs); - out << ")"; -} - - -Date::~Date() throw() { -} - - -void Date::__set_daysSinceEpoch(const int64_t val) { - this->daysSinceEpoch = val; -} +const char* Date::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t Date::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t Date::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6459,7 +4849,6 @@ uint32_t Date::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Date::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Date"); xfer += oprot->writeFieldBegin("daysSinceEpoch", ::apache::thrift::protocol::T_I64, 1); @@ -6476,46 +4865,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other293) { - daysSinceEpoch = other293.daysSinceEpoch; -} -Date& Date::operator=(const Date& other294) { - daysSinceEpoch = other294.daysSinceEpoch; - return *this; -} -void Date::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Date("; - out << "daysSinceEpoch=" << to_string(daysSinceEpoch); - out << ")"; -} - - -DateColumnStatsData::~DateColumnStatsData() throw() { -} - - -void DateColumnStatsData::__set_lowValue(const Date& val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DateColumnStatsData::__set_highValue(const Date& val) { - this->highValue = val; -__isset.highValue = true; -} - -void DateColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void DateColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} +const char* DateColumnStatsData::ascii_fingerprint = "78F305E316F70F8634B447C2194FCEAD"; +const uint8_t DateColumnStatsData::binary_fingerprint[16] = {0x78,0xF3,0x05,0xE3,0x16,0xF7,0x0F,0x86,0x34,0xB4,0x47,0xC2,0x19,0x4F,0xCE,0xAD}; uint32_t DateColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6527,6 +4881,7 @@ uint32_t DateColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) bool isset_numNulls = false; bool isset_numDVs = false; + bool isset_bitVectors = false; while (true) { @@ -6568,6 +4923,14 @@ uint32_t DateColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->bitVectors); + isset_bitVectors = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6581,12 +4944,13 @@ uint32_t DateColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_numDVs) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_bitVectors) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } uint32_t DateColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DateColumnStatsData"); if (this->__isset.lowValue) { @@ -6607,6 +4971,10 @@ uint32_t DateColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeI64(this->numDVs); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("bitVectors", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->bitVectors); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -6618,70 +4986,15 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.highValue, b.highValue); swap(a.numNulls, b.numNulls); swap(a.numDVs, b.numDVs); + swap(a.bitVectors, b.bitVectors); swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other295) { - lowValue = other295.lowValue; - highValue = other295.highValue; - numNulls = other295.numNulls; - numDVs = other295.numDVs; - __isset = other295.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other296) { - lowValue = other296.lowValue; - highValue = other296.highValue; - numNulls = other296.numNulls; - numDVs = other296.numDVs; - __isset = other296.__isset; - return *this; -} -void DateColumnStatsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DateColumnStatsData("; - out << "lowValue="; (__isset.lowValue ? (out << to_string(lowValue)) : (out << "")); - out << ", " << "highValue="; (__isset.highValue ? (out << to_string(highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(numNulls); - out << ", " << "numDVs=" << to_string(numDVs); - out << ")"; -} - - -ColumnStatisticsData::~ColumnStatisticsData() throw() { -} - - -void ColumnStatisticsData::__set_booleanStats(const BooleanColumnStatsData& val) { - this->booleanStats = val; -} - -void ColumnStatisticsData::__set_longStats(const LongColumnStatsData& val) { - this->longStats = val; -} - -void ColumnStatisticsData::__set_doubleStats(const DoubleColumnStatsData& val) { - this->doubleStats = val; -} - -void ColumnStatisticsData::__set_stringStats(const StringColumnStatsData& val) { - this->stringStats = val; -} - -void ColumnStatisticsData::__set_binaryStats(const BinaryColumnStatsData& val) { - this->binaryStats = val; -} - -void ColumnStatisticsData::__set_decimalStats(const DecimalColumnStatsData& val) { - this->decimalStats = val; -} - -void ColumnStatisticsData::__set_dateStats(const DateColumnStatsData& val) { - this->dateStats = val; -} +const char* ColumnStatisticsData::ascii_fingerprint = "CBBB717E6584839F4DE24460AD08215A"; +const uint8_t ColumnStatisticsData::binary_fingerprint[16] = {0xCB,0xBB,0x71,0x7E,0x65,0x84,0x83,0x9F,0x4D,0xE2,0x44,0x60,0xAD,0x08,0x21,0x5A}; uint32_t ColumnStatisticsData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6770,7 +5083,6 @@ uint32_t ColumnStatisticsData::read(::apache::thrift::protocol::TProtocol* iprot uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ColumnStatisticsData"); xfer += oprot->writeFieldBegin("booleanStats", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6818,60 +5130,11 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other297) { - booleanStats = other297.booleanStats; - longStats = other297.longStats; - doubleStats = other297.doubleStats; - stringStats = other297.stringStats; - binaryStats = other297.binaryStats; - decimalStats = other297.decimalStats; - dateStats = other297.dateStats; - __isset = other297.__isset; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other298) { - booleanStats = other298.booleanStats; - longStats = other298.longStats; - doubleStats = other298.doubleStats; - stringStats = other298.stringStats; - binaryStats = other298.binaryStats; - decimalStats = other298.decimalStats; - dateStats = other298.dateStats; - __isset = other298.__isset; - return *this; -} -void ColumnStatisticsData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ColumnStatisticsData("; - out << "booleanStats=" << to_string(booleanStats); - out << ", " << "longStats=" << to_string(longStats); - out << ", " << "doubleStats=" << to_string(doubleStats); - out << ", " << "stringStats=" << to_string(stringStats); - out << ", " << "binaryStats=" << to_string(binaryStats); - out << ", " << "decimalStats=" << to_string(decimalStats); - out << ", " << "dateStats=" << to_string(dateStats); - out << ")"; -} - - -ColumnStatisticsObj::~ColumnStatisticsObj() throw() { -} - - -void ColumnStatisticsObj::__set_colName(const std::string& val) { - this->colName = val; -} - -void ColumnStatisticsObj::__set_colType(const std::string& val) { - this->colType = val; -} - -void ColumnStatisticsObj::__set_statsData(const ColumnStatisticsData& val) { - this->statsData = val; -} +const char* ColumnStatisticsObj::ascii_fingerprint = "AC61AA8A229BA61CEF9C76AF509D9B0C"; +const uint8_t ColumnStatisticsObj::binary_fingerprint[16] = {0xAC,0x61,0xAA,0x8A,0x22,0x9B,0xA6,0x1C,0xEF,0x9C,0x76,0xAF,0x50,0x9D,0x9B,0x0C}; uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6937,7 +5200,6 @@ uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ColumnStatisticsObj::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ColumnStatisticsObj"); xfer += oprot->writeFieldBegin("colName", ::apache::thrift::protocol::T_STRING, 1); @@ -6964,56 +5226,11 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { swap(a.statsData, b.statsData); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other299) { - colName = other299.colName; - colType = other299.colType; - statsData = other299.statsData; -} -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other300) { - colName = other300.colName; - colType = other300.colType; - statsData = other300.statsData; - return *this; -} -void ColumnStatisticsObj::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ColumnStatisticsObj("; - out << "colName=" << to_string(colName); - out << ", " << "colType=" << to_string(colType); - out << ", " << "statsData=" << to_string(statsData); - out << ")"; -} - - -ColumnStatisticsDesc::~ColumnStatisticsDesc() throw() { -} - - -void ColumnStatisticsDesc::__set_isTblLevel(const bool val) { - this->isTblLevel = val; -} - -void ColumnStatisticsDesc::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void ColumnStatisticsDesc::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void ColumnStatisticsDesc::__set_partName(const std::string& val) { - this->partName = val; -__isset.partName = true; -} - -void ColumnStatisticsDesc::__set_lastAnalyzed(const int64_t val) { - this->lastAnalyzed = val; -__isset.lastAnalyzed = true; -} +const char* ColumnStatisticsDesc::ascii_fingerprint = "261759FF6F8FAB53F941453007FE18CB"; +const uint8_t ColumnStatisticsDesc::binary_fingerprint[16] = {0x26,0x17,0x59,0xFF,0x6F,0x8F,0xAB,0x53,0xF9,0x41,0x45,0x30,0x07,0xFE,0x18,0xCB}; uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7095,7 +5312,6 @@ uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot uint32_t ColumnStatisticsDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ColumnStatisticsDesc"); xfer += oprot->writeFieldBegin("isTblLevel", ::apache::thrift::protocol::T_BOOL, 1); @@ -7135,50 +5351,11 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other301) { - isTblLevel = other301.isTblLevel; - dbName = other301.dbName; - tableName = other301.tableName; - partName = other301.partName; - lastAnalyzed = other301.lastAnalyzed; - __isset = other301.__isset; -} -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other302) { - isTblLevel = other302.isTblLevel; - dbName = other302.dbName; - tableName = other302.tableName; - partName = other302.partName; - lastAnalyzed = other302.lastAnalyzed; - __isset = other302.__isset; - return *this; -} -void ColumnStatisticsDesc::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ColumnStatisticsDesc("; - out << "isTblLevel=" << to_string(isTblLevel); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "tableName=" << to_string(tableName); - out << ", " << "partName="; (__isset.partName ? (out << to_string(partName)) : (out << "")); - out << ", " << "lastAnalyzed="; (__isset.lastAnalyzed ? (out << to_string(lastAnalyzed)) : (out << "")); - out << ")"; -} - - -ColumnStatistics::~ColumnStatistics() throw() { -} - - -void ColumnStatistics::__set_statsDesc(const ColumnStatisticsDesc& val) { - this->statsDesc = val; -} - -void ColumnStatistics::__set_statsObj(const std::vector & val) { - this->statsObj = val; -} +const char* ColumnStatistics::ascii_fingerprint = "BE0B45303A037436CF3753DC8249AE24"; +const uint8_t ColumnStatistics::binary_fingerprint[16] = {0xBE,0x0B,0x45,0x30,0x3A,0x03,0x74,0x36,0xCF,0x37,0x53,0xDC,0x82,0x49,0xAE,0x24}; uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7211,14 +5388,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size303; - ::apache::thrift::protocol::TType _etype306; - xfer += iprot->readListBegin(_etype306, _size303); - this->statsObj.resize(_size303); - uint32_t _i307; - for (_i307 = 0; _i307 < _size303; ++_i307) + uint32_t _size219; + ::apache::thrift::protocol::TType _etype222; + xfer += iprot->readListBegin(_etype222, _size219); + this->statsObj.resize(_size219); + uint32_t _i223; + for (_i223 = 0; _i223 < _size219; ++_i223) { - xfer += this->statsObj[_i307].read(iprot); + xfer += this->statsObj[_i223].read(iprot); } xfer += iprot->readListEnd(); } @@ -7245,7 +5422,6 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ColumnStatistics"); xfer += oprot->writeFieldBegin("statsDesc", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7255,10 +5431,10 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter308; - for (_iter308 = this->statsObj.begin(); _iter308 != this->statsObj.end(); ++_iter308) + std::vector ::const_iterator _iter224; + for (_iter224 = this->statsObj.begin(); _iter224 != this->statsObj.end(); ++_iter224) { - xfer += (*_iter308).write(oprot); + xfer += (*_iter224).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7275,39 +5451,11 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other309) { - statsDesc = other309.statsDesc; - statsObj = other309.statsObj; -} -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other310) { - statsDesc = other310.statsDesc; - statsObj = other310.statsObj; - return *this; -} -void ColumnStatistics::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ColumnStatistics("; - out << "statsDesc=" << to_string(statsDesc); - out << ", " << "statsObj=" << to_string(statsObj); - out << ")"; -} - - -AggrStats::~AggrStats() throw() { -} - - -void AggrStats::__set_colStats(const std::vector & val) { - this->colStats = val; -} - -void AggrStats::__set_partsFound(const int64_t val) { - this->partsFound = val; -} +const char* AggrStats::ascii_fingerprint = "937689C687F353FC00A95AD6AAFB9481"; +const uint8_t AggrStats::binary_fingerprint[16] = {0x93,0x76,0x89,0xC6,0x87,0xF3,0x53,0xFC,0x00,0xA9,0x5A,0xD6,0xAA,0xFB,0x94,0x81}; uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7332,14 +5480,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size311; - ::apache::thrift::protocol::TType _etype314; - xfer += iprot->readListBegin(_etype314, _size311); - this->colStats.resize(_size311); - uint32_t _i315; - for (_i315 = 0; _i315 < _size311; ++_i315) + uint32_t _size225; + ::apache::thrift::protocol::TType _etype228; + xfer += iprot->readListBegin(_etype228, _size225); + this->colStats.resize(_size225); + uint32_t _i229; + for (_i229 = 0; _i229 < _size225; ++_i229) { - xfer += this->colStats[_i315].read(iprot); + xfer += this->colStats[_i229].read(iprot); } xfer += iprot->readListEnd(); } @@ -7374,16 +5522,15 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AggrStats"); xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter316; - for (_iter316 = this->colStats.begin(); _iter316 != this->colStats.end(); ++_iter316) + std::vector ::const_iterator _iter230; + for (_iter230 = this->colStats.begin(); _iter230 != this->colStats.end(); ++_iter230) { - xfer += (*_iter316).write(oprot); + xfer += (*_iter230).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7404,35 +5551,11 @@ void swap(AggrStats &a, AggrStats &b) { swap(a.partsFound, b.partsFound); } -AggrStats::AggrStats(const AggrStats& other317) { - colStats = other317.colStats; - partsFound = other317.partsFound; -} -AggrStats& AggrStats::operator=(const AggrStats& other318) { - colStats = other318.colStats; - partsFound = other318.partsFound; - return *this; -} -void AggrStats::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AggrStats("; - out << "colStats=" << to_string(colStats); - out << ", " << "partsFound=" << to_string(partsFound); - out << ")"; -} - - -SetPartitionsStatsRequest::~SetPartitionsStatsRequest() throw() { -} - - -void SetPartitionsStatsRequest::__set_colStats(const std::vector & val) { - this->colStats = val; -} +const char* SetPartitionsStatsRequest::ascii_fingerprint = "14062660DCB108DCEF5869E6D53CABC7"; +const uint8_t SetPartitionsStatsRequest::binary_fingerprint[16] = {0x14,0x06,0x26,0x60,0xDC,0xB1,0x08,0xDC,0xEF,0x58,0x69,0xE6,0xD5,0x3C,0xAB,0xC7}; uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7456,14 +5579,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size319; - ::apache::thrift::protocol::TType _etype322; - xfer += iprot->readListBegin(_etype322, _size319); - this->colStats.resize(_size319); - uint32_t _i323; - for (_i323 = 0; _i323 < _size319; ++_i323) + uint32_t _size231; + ::apache::thrift::protocol::TType _etype234; + xfer += iprot->readListBegin(_etype234, _size231); + this->colStats.resize(_size231); + uint32_t _i235; + for (_i235 = 0; _i235 < _size231; ++_i235) { - xfer += this->colStats[_i323].read(iprot); + xfer += this->colStats[_i235].read(iprot); } xfer += iprot->readListEnd(); } @@ -7488,16 +5611,15 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("SetPartitionsStatsRequest"); xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter324; - for (_iter324 = this->colStats.begin(); _iter324 != this->colStats.end(); ++_iter324) + std::vector ::const_iterator _iter236; + for (_iter236 = this->colStats.begin(); _iter236 != this->colStats.end(); ++_iter236) { - xfer += (*_iter324).write(oprot); + xfer += (*_iter236).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7513,36 +5635,11 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { swap(a.colStats, b.colStats); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other325) { - colStats = other325.colStats; -} -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other326) { - colStats = other326.colStats; - return *this; -} -void SetPartitionsStatsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "SetPartitionsStatsRequest("; - out << "colStats=" << to_string(colStats); - out << ")"; -} - - -Schema::~Schema() throw() { -} - - -void Schema::__set_fieldSchemas(const std::vector & val) { - this->fieldSchemas = val; -} - -void Schema::__set_properties(const std::map & val) { - this->properties = val; -} +const char* Schema::ascii_fingerprint = "5CFEE46C975F4E2368D905109B8E3B5B"; +const uint8_t Schema::binary_fingerprint[16] = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7565,14 +5662,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size327; - ::apache::thrift::protocol::TType _etype330; - xfer += iprot->readListBegin(_etype330, _size327); - this->fieldSchemas.resize(_size327); - uint32_t _i331; - for (_i331 = 0; _i331 < _size327; ++_i331) + uint32_t _size237; + ::apache::thrift::protocol::TType _etype240; + xfer += iprot->readListBegin(_etype240, _size237); + this->fieldSchemas.resize(_size237); + uint32_t _i241; + for (_i241 = 0; _i241 < _size237; ++_i241) { - xfer += this->fieldSchemas[_i331].read(iprot); + xfer += this->fieldSchemas[_i241].read(iprot); } xfer += iprot->readListEnd(); } @@ -7585,17 +5682,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size332; - ::apache::thrift::protocol::TType _ktype333; - ::apache::thrift::protocol::TType _vtype334; - xfer += iprot->readMapBegin(_ktype333, _vtype334, _size332); - uint32_t _i336; - for (_i336 = 0; _i336 < _size332; ++_i336) + uint32_t _size242; + ::apache::thrift::protocol::TType _ktype243; + ::apache::thrift::protocol::TType _vtype244; + xfer += iprot->readMapBegin(_ktype243, _vtype244, _size242); + uint32_t _i246; + for (_i246 = 0; _i246 < _size242; ++_i246) { - std::string _key337; - xfer += iprot->readString(_key337); - std::string& _val338 = this->properties[_key337]; - xfer += iprot->readString(_val338); + std::string _key247; + xfer += iprot->readString(_key247); + std::string& _val248 = this->properties[_key247]; + xfer += iprot->readString(_val248); } xfer += iprot->readMapEnd(); } @@ -7618,16 +5715,15 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Schema"); xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); - std::vector ::const_iterator _iter339; - for (_iter339 = this->fieldSchemas.begin(); _iter339 != this->fieldSchemas.end(); ++_iter339) + std::vector ::const_iterator _iter249; + for (_iter249 = this->fieldSchemas.begin(); _iter249 != this->fieldSchemas.end(); ++_iter249) { - xfer += (*_iter339).write(oprot); + xfer += (*_iter249).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7636,11 +5732,11 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter340; - for (_iter340 = this->properties.begin(); _iter340 != this->properties.end(); ++_iter340) + std::map ::const_iterator _iter250; + for (_iter250 = this->properties.begin(); _iter250 != this->properties.end(); ++_iter250) { - xfer += oprot->writeString(_iter340->first); - xfer += oprot->writeString(_iter340->second); + xfer += oprot->writeString(_iter250->first); + xfer += oprot->writeString(_iter250->second); } xfer += oprot->writeMapEnd(); } @@ -7658,37 +5754,11 @@ void swap(Schema &a, Schema &b) { swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other341) { - fieldSchemas = other341.fieldSchemas; - properties = other341.properties; - __isset = other341.__isset; -} -Schema& Schema::operator=(const Schema& other342) { - fieldSchemas = other342.fieldSchemas; - properties = other342.properties; - __isset = other342.__isset; - return *this; -} -void Schema::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Schema("; - out << "fieldSchemas=" << to_string(fieldSchemas); - out << ", " << "properties=" << to_string(properties); - out << ")"; -} - - -EnvironmentContext::~EnvironmentContext() throw() { -} - - -void EnvironmentContext::__set_properties(const std::map & val) { - this->properties = val; -} +const char* EnvironmentContext::ascii_fingerprint = "5EA2D527ECA3BA20C77AFC023EE8C05F"; +const uint8_t EnvironmentContext::binary_fingerprint[16] = {0x5E,0xA2,0xD5,0x27,0xEC,0xA3,0xBA,0x20,0xC7,0x7A,0xFC,0x02,0x3E,0xE8,0xC0,0x5F}; uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7711,17 +5781,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size343; - ::apache::thrift::protocol::TType _ktype344; - ::apache::thrift::protocol::TType _vtype345; - xfer += iprot->readMapBegin(_ktype344, _vtype345, _size343); - uint32_t _i347; - for (_i347 = 0; _i347 < _size343; ++_i347) + uint32_t _size251; + ::apache::thrift::protocol::TType _ktype252; + ::apache::thrift::protocol::TType _vtype253; + xfer += iprot->readMapBegin(_ktype252, _vtype253, _size251); + uint32_t _i255; + for (_i255 = 0; _i255 < _size251; ++_i255) { - std::string _key348; - xfer += iprot->readString(_key348); - std::string& _val349 = this->properties[_key348]; - xfer += iprot->readString(_val349); + std::string _key256; + xfer += iprot->readString(_key256); + std::string& _val257 = this->properties[_key256]; + xfer += iprot->readString(_val257); } xfer += iprot->readMapEnd(); } @@ -7744,17 +5814,16 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("EnvironmentContext"); xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter350; - for (_iter350 = this->properties.begin(); _iter350 != this->properties.end(); ++_iter350) + std::map ::const_iterator _iter258; + for (_iter258 = this->properties.begin(); _iter258 != this->properties.end(); ++_iter258) { - xfer += oprot->writeString(_iter350->first); - xfer += oprot->writeString(_iter350->second); + xfer += oprot->writeString(_iter258->first); + xfer += oprot->writeString(_iter258->second); } xfer += oprot->writeMapEnd(); } @@ -7771,38 +5840,11 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other351) { - properties = other351.properties; - __isset = other351.__isset; -} -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other352) { - properties = other352.properties; - __isset = other352.__isset; - return *this; -} -void EnvironmentContext::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "EnvironmentContext("; - out << "properties=" << to_string(properties); - out << ")"; -} - - -PartitionsByExprResult::~PartitionsByExprResult() throw() { -} - - -void PartitionsByExprResult::__set_partitions(const std::vector & val) { - this->partitions = val; -} - -void PartitionsByExprResult::__set_hasUnknownPartitions(const bool val) { - this->hasUnknownPartitions = val; -} +const char* PartitionsByExprResult::ascii_fingerprint = "40B789CC91B508FE36600A14E3F80425"; +const uint8_t PartitionsByExprResult::binary_fingerprint[16] = {0x40,0xB7,0x89,0xCC,0x91,0xB5,0x08,0xFE,0x36,0x60,0x0A,0x14,0xE3,0xF8,0x04,0x25}; uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7827,14 +5869,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size353; - ::apache::thrift::protocol::TType _etype356; - xfer += iprot->readListBegin(_etype356, _size353); - this->partitions.resize(_size353); - uint32_t _i357; - for (_i357 = 0; _i357 < _size353; ++_i357) + uint32_t _size259; + ::apache::thrift::protocol::TType _etype262; + xfer += iprot->readListBegin(_etype262, _size259); + this->partitions.resize(_size259); + uint32_t _i263; + for (_i263 = 0; _i263 < _size259; ++_i263) { - xfer += this->partitions[_i357].read(iprot); + xfer += this->partitions[_i263].read(iprot); } xfer += iprot->readListEnd(); } @@ -7869,16 +5911,15 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionsByExprResult"); xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter358; - for (_iter358 = this->partitions.begin(); _iter358 != this->partitions.end(); ++_iter358) + std::vector ::const_iterator _iter264; + for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) { - xfer += (*_iter358).write(oprot); + xfer += (*_iter264).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7899,53 +5940,11 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other359) { - partitions = other359.partitions; - hasUnknownPartitions = other359.hasUnknownPartitions; -} -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other360) { - partitions = other360.partitions; - hasUnknownPartitions = other360.hasUnknownPartitions; - return *this; -} -void PartitionsByExprResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionsByExprResult("; - out << "partitions=" << to_string(partitions); - out << ", " << "hasUnknownPartitions=" << to_string(hasUnknownPartitions); - out << ")"; -} - - -PartitionsByExprRequest::~PartitionsByExprRequest() throw() { -} - - -void PartitionsByExprRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionsByExprRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void PartitionsByExprRequest::__set_expr(const std::string& val) { - this->expr = val; -} - -void PartitionsByExprRequest::__set_defaultPartitionName(const std::string& val) { - this->defaultPartitionName = val; -__isset.defaultPartitionName = true; -} - -void PartitionsByExprRequest::__set_maxParts(const int16_t val) { - this->maxParts = val; -__isset.maxParts = true; -} +const char* PartitionsByExprRequest::ascii_fingerprint = "835944417A026FE6ABD0DF5A35BF52C5"; +const uint8_t PartitionsByExprRequest::binary_fingerprint[16] = {0x83,0x59,0x44,0x41,0x7A,0x02,0x6F,0xE6,0xAB,0xD0,0xDF,0x5A,0x35,0xBF,0x52,0xC5}; uint32_t PartitionsByExprRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8027,7 +6026,6 @@ uint32_t PartitionsByExprRequest::read(::apache::thrift::protocol::TProtocol* ip uint32_t PartitionsByExprRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionsByExprRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8067,46 +6065,11 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other361) { - dbName = other361.dbName; - tblName = other361.tblName; - expr = other361.expr; - defaultPartitionName = other361.defaultPartitionName; - maxParts = other361.maxParts; - __isset = other361.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other362) { - dbName = other362.dbName; - tblName = other362.tblName; - expr = other362.expr; - defaultPartitionName = other362.defaultPartitionName; - maxParts = other362.maxParts; - __isset = other362.__isset; - return *this; -} -void PartitionsByExprRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionsByExprRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "expr=" << to_string(expr); - out << ", " << "defaultPartitionName="; (__isset.defaultPartitionName ? (out << to_string(defaultPartitionName)) : (out << "")); - out << ", " << "maxParts="; (__isset.maxParts ? (out << to_string(maxParts)) : (out << "")); - out << ")"; -} - - -TableStatsResult::~TableStatsResult() throw() { -} - - -void TableStatsResult::__set_tableStats(const std::vector & val) { - this->tableStats = val; -} +const char* TableStatsResult::ascii_fingerprint = "CB0FA67A54583BE80593CCE0163C645D"; +const uint8_t TableStatsResult::binary_fingerprint[16] = {0xCB,0x0F,0xA6,0x7A,0x54,0x58,0x3B,0xE8,0x05,0x93,0xCC,0xE0,0x16,0x3C,0x64,0x5D}; uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8130,14 +6093,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size363; - ::apache::thrift::protocol::TType _etype366; - xfer += iprot->readListBegin(_etype366, _size363); - this->tableStats.resize(_size363); - uint32_t _i367; - for (_i367 = 0; _i367 < _size363; ++_i367) + uint32_t _size265; + ::apache::thrift::protocol::TType _etype268; + xfer += iprot->readListBegin(_etype268, _size265); + this->tableStats.resize(_size265); + uint32_t _i269; + for (_i269 = 0; _i269 < _size265; ++_i269) { - xfer += this->tableStats[_i367].read(iprot); + xfer += this->tableStats[_i269].read(iprot); } xfer += iprot->readListEnd(); } @@ -8162,16 +6125,15 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TableStatsResult"); xfer += oprot->writeFieldBegin("tableStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tableStats.size())); - std::vector ::const_iterator _iter368; - for (_iter368 = this->tableStats.begin(); _iter368 != this->tableStats.end(); ++_iter368) + std::vector ::const_iterator _iter270; + for (_iter270 = this->tableStats.begin(); _iter270 != this->tableStats.end(); ++_iter270) { - xfer += (*_iter368).write(oprot); + xfer += (*_iter270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8187,32 +6149,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other369) { - tableStats = other369.tableStats; -} -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other370) { - tableStats = other370.tableStats; - return *this; -} -void TableStatsResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TableStatsResult("; - out << "tableStats=" << to_string(tableStats); - out << ")"; -} - - -PartitionsStatsResult::~PartitionsStatsResult() throw() { -} - - -void PartitionsStatsResult::__set_partStats(const std::map > & val) { - this->partStats = val; -} +const char* PartitionsStatsResult::ascii_fingerprint = "D6186DD14062F8B4504E8FEF93423B89"; +const uint8_t PartitionsStatsResult::binary_fingerprint[16] = {0xD6,0x18,0x6D,0xD1,0x40,0x62,0xF8,0xB4,0x50,0x4E,0x8F,0xEF,0x93,0x42,0x3B,0x89}; uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8236,26 +6177,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size371; - ::apache::thrift::protocol::TType _ktype372; - ::apache::thrift::protocol::TType _vtype373; - xfer += iprot->readMapBegin(_ktype372, _vtype373, _size371); - uint32_t _i375; - for (_i375 = 0; _i375 < _size371; ++_i375) + uint32_t _size271; + ::apache::thrift::protocol::TType _ktype272; + ::apache::thrift::protocol::TType _vtype273; + xfer += iprot->readMapBegin(_ktype272, _vtype273, _size271); + uint32_t _i275; + for (_i275 = 0; _i275 < _size271; ++_i275) { - std::string _key376; - xfer += iprot->readString(_key376); - std::vector & _val377 = this->partStats[_key376]; + std::string _key276; + xfer += iprot->readString(_key276); + std::vector & _val277 = this->partStats[_key276]; { - _val377.clear(); - uint32_t _size378; - ::apache::thrift::protocol::TType _etype381; - xfer += iprot->readListBegin(_etype381, _size378); - _val377.resize(_size378); - uint32_t _i382; - for (_i382 = 0; _i382 < _size378; ++_i382) + _val277.clear(); + uint32_t _size278; + ::apache::thrift::protocol::TType _etype281; + xfer += iprot->readListBegin(_etype281, _size278); + _val277.resize(_size278); + uint32_t _i282; + for (_i282 = 0; _i282 < _size278; ++_i282) { - xfer += _val377[_i382].read(iprot); + xfer += _val277[_i282].read(iprot); } xfer += iprot->readListEnd(); } @@ -8283,22 +6224,21 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionsStatsResult"); xfer += oprot->writeFieldBegin("partStats", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->partStats.size())); - std::map > ::const_iterator _iter383; - for (_iter383 = this->partStats.begin(); _iter383 != this->partStats.end(); ++_iter383) + std::map > ::const_iterator _iter283; + for (_iter283 = this->partStats.begin(); _iter283 != this->partStats.end(); ++_iter283) { - xfer += oprot->writeString(_iter383->first); + xfer += oprot->writeString(_iter283->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter383->second.size())); - std::vector ::const_iterator _iter384; - for (_iter384 = _iter383->second.begin(); _iter384 != _iter383->second.end(); ++_iter384) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter283->second.size())); + std::vector ::const_iterator _iter284; + for (_iter284 = _iter283->second.begin(); _iter284 != _iter283->second.end(); ++_iter284) { - xfer += (*_iter384).write(oprot); + xfer += (*_iter284).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8317,40 +6257,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other385) { - partStats = other385.partStats; -} -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other386) { - partStats = other386.partStats; - return *this; -} -void PartitionsStatsResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionsStatsResult("; - out << "partStats=" << to_string(partStats); - out << ")"; -} - - -TableStatsRequest::~TableStatsRequest() throw() { -} - - -void TableStatsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void TableStatsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void TableStatsRequest::__set_colNames(const std::vector & val) { - this->colNames = val; -} +const char* TableStatsRequest::ascii_fingerprint = "8E2AD6401E83558ECFD6A13D74DD0A3F"; +const uint8_t TableStatsRequest::binary_fingerprint[16] = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8392,14 +6303,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - xfer += iprot->readListBegin(_etype390, _size387); - this->colNames.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size285; + ::apache::thrift::protocol::TType _etype288; + xfer += iprot->readListBegin(_etype288, _size285); + this->colNames.resize(_size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) { - xfer += iprot->readString(this->colNames[_i391]); + xfer += iprot->readString(this->colNames[_i289]); } xfer += iprot->readListEnd(); } @@ -8428,7 +6339,6 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TableStatsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8442,10 +6352,10 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter392; - for (_iter392 = this->colNames.begin(); _iter392 != this->colNames.end(); ++_iter392) + std::vector ::const_iterator _iter290; + for (_iter290 = this->colNames.begin(); _iter290 != this->colNames.end(); ++_iter290) { - xfer += oprot->writeString((*_iter392)); + xfer += oprot->writeString((*_iter290)); } xfer += oprot->writeListEnd(); } @@ -8463,50 +6373,11 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other393) { - dbName = other393.dbName; - tblName = other393.tblName; - colNames = other393.colNames; -} -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other394) { - dbName = other394.dbName; - tblName = other394.tblName; - colNames = other394.colNames; - return *this; -} -void TableStatsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TableStatsRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "colNames=" << to_string(colNames); - out << ")"; -} - - -PartitionsStatsRequest::~PartitionsStatsRequest() throw() { -} - - -void PartitionsStatsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionsStatsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void PartitionsStatsRequest::__set_colNames(const std::vector & val) { - this->colNames = val; -} - -void PartitionsStatsRequest::__set_partNames(const std::vector & val) { - this->partNames = val; -} +const char* PartitionsStatsRequest::ascii_fingerprint = "5F51D90BC323BCE4B704B7D98EDA0BD4"; +const uint8_t PartitionsStatsRequest::binary_fingerprint[16] = {0x5F,0x51,0xD9,0x0B,0xC3,0x23,0xBC,0xE4,0xB7,0x04,0xB7,0xD9,0x8E,0xDA,0x0B,0xD4}; uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8549,14 +6420,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size395; - ::apache::thrift::protocol::TType _etype398; - xfer += iprot->readListBegin(_etype398, _size395); - this->colNames.resize(_size395); - uint32_t _i399; - for (_i399 = 0; _i399 < _size395; ++_i399) + uint32_t _size291; + ::apache::thrift::protocol::TType _etype294; + xfer += iprot->readListBegin(_etype294, _size291); + this->colNames.resize(_size291); + uint32_t _i295; + for (_i295 = 0; _i295 < _size291; ++_i295) { - xfer += iprot->readString(this->colNames[_i399]); + xfer += iprot->readString(this->colNames[_i295]); } xfer += iprot->readListEnd(); } @@ -8569,14 +6440,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size400; - ::apache::thrift::protocol::TType _etype403; - xfer += iprot->readListBegin(_etype403, _size400); - this->partNames.resize(_size400); - uint32_t _i404; - for (_i404 = 0; _i404 < _size400; ++_i404) + uint32_t _size296; + ::apache::thrift::protocol::TType _etype299; + xfer += iprot->readListBegin(_etype299, _size296); + this->partNames.resize(_size296); + uint32_t _i300; + for (_i300 = 0; _i300 < _size296; ++_i300) { - xfer += iprot->readString(this->partNames[_i404]); + xfer += iprot->readString(this->partNames[_i300]); } xfer += iprot->readListEnd(); } @@ -8607,7 +6478,6 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PartitionsStatsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8621,10 +6491,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter405; - for (_iter405 = this->colNames.begin(); _iter405 != this->colNames.end(); ++_iter405) + std::vector ::const_iterator _iter301; + for (_iter301 = this->colNames.begin(); _iter301 != this->colNames.end(); ++_iter301) { - xfer += oprot->writeString((*_iter405)); + xfer += oprot->writeString((*_iter301)); } xfer += oprot->writeListEnd(); } @@ -8633,10 +6503,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter406; - for (_iter406 = this->partNames.begin(); _iter406 != this->partNames.end(); ++_iter406) + std::vector ::const_iterator _iter302; + for (_iter302 = this->partNames.begin(); _iter302 != this->partNames.end(); ++_iter302) { - xfer += oprot->writeString((*_iter406)); + xfer += oprot->writeString((*_iter302)); } xfer += oprot->writeListEnd(); } @@ -8655,42 +6525,11 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other407) { - dbName = other407.dbName; - tblName = other407.tblName; - colNames = other407.colNames; - partNames = other407.partNames; -} -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other408) { - dbName = other408.dbName; - tblName = other408.tblName; - colNames = other408.colNames; - partNames = other408.partNames; - return *this; -} -void PartitionsStatsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PartitionsStatsRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "colNames=" << to_string(colNames); - out << ", " << "partNames=" << to_string(partNames); - out << ")"; -} - - -AddPartitionsResult::~AddPartitionsResult() throw() { -} - - -void AddPartitionsResult::__set_partitions(const std::vector & val) { - this->partitions = val; -__isset.partitions = true; -} +const char* AddPartitionsResult::ascii_fingerprint = "5A689D0823E7BFBB60C799BA60065C31"; +const uint8_t AddPartitionsResult::binary_fingerprint[16] = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8713,14 +6552,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size409; - ::apache::thrift::protocol::TType _etype412; - xfer += iprot->readListBegin(_etype412, _size409); - this->partitions.resize(_size409); - uint32_t _i413; - for (_i413 = 0; _i413 < _size409; ++_i413) + uint32_t _size303; + ::apache::thrift::protocol::TType _etype306; + xfer += iprot->readListBegin(_etype306, _size303); + this->partitions.resize(_size303); + uint32_t _i307; + for (_i307 = 0; _i307 < _size303; ++_i307) { - xfer += this->partitions[_i413].read(iprot); + xfer += this->partitions[_i307].read(iprot); } xfer += iprot->readListEnd(); } @@ -8743,17 +6582,16 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AddPartitionsResult"); if (this->__isset.partitions) { xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter414; - for (_iter414 = this->partitions.begin(); _iter414 != this->partitions.end(); ++_iter414) + std::vector ::const_iterator _iter308; + for (_iter308 = this->partitions.begin(); _iter308 != this->partitions.end(); ++_iter308) { - xfer += (*_iter414).write(oprot); + xfer += (*_iter308).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8770,51 +6608,11 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other415) { - partitions = other415.partitions; - __isset = other415.__isset; -} -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other416) { - partitions = other416.partitions; - __isset = other416.__isset; - return *this; -} -void AddPartitionsResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AddPartitionsResult("; - out << "partitions="; (__isset.partitions ? (out << to_string(partitions)) : (out << "")); - out << ")"; -} - - -AddPartitionsRequest::~AddPartitionsRequest() throw() { -} - - -void AddPartitionsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void AddPartitionsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void AddPartitionsRequest::__set_parts(const std::vector & val) { - this->parts = val; -} - -void AddPartitionsRequest::__set_ifNotExists(const bool val) { - this->ifNotExists = val; -} - -void AddPartitionsRequest::__set_needResult(const bool val) { - this->needResult = val; -__isset.needResult = true; -} +const char* AddPartitionsRequest::ascii_fingerprint = "94F938D035892CF6873DEDB99358F069"; +const uint8_t AddPartitionsRequest::binary_fingerprint[16] = {0x94,0xF9,0x38,0xD0,0x35,0x89,0x2C,0xF6,0x87,0x3D,0xED,0xB9,0x93,0x58,0xF0,0x69}; uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8857,14 +6655,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size417; - ::apache::thrift::protocol::TType _etype420; - xfer += iprot->readListBegin(_etype420, _size417); - this->parts.resize(_size417); - uint32_t _i421; - for (_i421 = 0; _i421 < _size417; ++_i421) + uint32_t _size309; + ::apache::thrift::protocol::TType _etype312; + xfer += iprot->readListBegin(_etype312, _size309); + this->parts.resize(_size309); + uint32_t _i313; + for (_i313 = 0; _i313 < _size309; ++_i313) { - xfer += this->parts[_i421].read(iprot); + xfer += this->parts[_i313].read(iprot); } xfer += iprot->readListEnd(); } @@ -8911,7 +6709,6 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AddPartitionsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8925,10 +6722,10 @@ uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->parts.size())); - std::vector ::const_iterator _iter422; - for (_iter422 = this->parts.begin(); _iter422 != this->parts.end(); ++_iter422) + std::vector ::const_iterator _iter314; + for (_iter314 = this->parts.begin(); _iter314 != this->parts.end(); ++_iter314) { - xfer += (*_iter422).write(oprot); + xfer += (*_iter314).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8958,47 +6755,11 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other423) { - dbName = other423.dbName; - tblName = other423.tblName; - parts = other423.parts; - ifNotExists = other423.ifNotExists; - needResult = other423.needResult; - __isset = other423.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other424) { - dbName = other424.dbName; - tblName = other424.tblName; - parts = other424.parts; - ifNotExists = other424.ifNotExists; - needResult = other424.needResult; - __isset = other424.__isset; - return *this; -} -void AddPartitionsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AddPartitionsRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "parts=" << to_string(parts); - out << ", " << "ifNotExists=" << to_string(ifNotExists); - out << ", " << "needResult="; (__isset.needResult ? (out << to_string(needResult)) : (out << "")); - out << ")"; -} - - -DropPartitionsResult::~DropPartitionsResult() throw() { -} - - -void DropPartitionsResult::__set_partitions(const std::vector & val) { - this->partitions = val; -__isset.partitions = true; -} +const char* DropPartitionsResult::ascii_fingerprint = "5A689D0823E7BFBB60C799BA60065C31"; +const uint8_t DropPartitionsResult::binary_fingerprint[16] = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9021,14 +6782,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size425; - ::apache::thrift::protocol::TType _etype428; - xfer += iprot->readListBegin(_etype428, _size425); - this->partitions.resize(_size425); - uint32_t _i429; - for (_i429 = 0; _i429 < _size425; ++_i429) + uint32_t _size315; + ::apache::thrift::protocol::TType _etype318; + xfer += iprot->readListBegin(_etype318, _size315); + this->partitions.resize(_size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) { - xfer += this->partitions[_i429].read(iprot); + xfer += this->partitions[_i319].read(iprot); } xfer += iprot->readListEnd(); } @@ -9051,17 +6812,16 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DropPartitionsResult"); if (this->__isset.partitions) { xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter430; - for (_iter430 = this->partitions.begin(); _iter430 != this->partitions.end(); ++_iter430) + std::vector ::const_iterator _iter320; + for (_iter320 = this->partitions.begin(); _iter320 != this->partitions.end(); ++_iter320) { - xfer += (*_iter430).write(oprot); + xfer += (*_iter320).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9078,39 +6838,11 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other431) { - partitions = other431.partitions; - __isset = other431.__isset; -} -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other432) { - partitions = other432.partitions; - __isset = other432.__isset; - return *this; -} -void DropPartitionsResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DropPartitionsResult("; - out << "partitions="; (__isset.partitions ? (out << to_string(partitions)) : (out << "")); - out << ")"; -} - - -DropPartitionsExpr::~DropPartitionsExpr() throw() { -} - - -void DropPartitionsExpr::__set_expr(const std::string& val) { - this->expr = val; -} - -void DropPartitionsExpr::__set_partArchiveLevel(const int32_t val) { - this->partArchiveLevel = val; -__isset.partArchiveLevel = true; -} +const char* DropPartitionsExpr::ascii_fingerprint = "18B162B1D15D8D46509D3911A9F1C2AA"; +const uint8_t DropPartitionsExpr::binary_fingerprint[16] = {0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA}; uint32_t DropPartitionsExpr::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9162,7 +6894,6 @@ uint32_t DropPartitionsExpr::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t DropPartitionsExpr::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DropPartitionsExpr"); xfer += oprot->writeFieldBegin("expr", ::apache::thrift::protocol::T_STRING, 1); @@ -9186,41 +6917,11 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other433) { - expr = other433.expr; - partArchiveLevel = other433.partArchiveLevel; - __isset = other433.__isset; -} -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other434) { - expr = other434.expr; - partArchiveLevel = other434.partArchiveLevel; - __isset = other434.__isset; - return *this; -} -void DropPartitionsExpr::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DropPartitionsExpr("; - out << "expr=" << to_string(expr); - out << ", " << "partArchiveLevel="; (__isset.partArchiveLevel ? (out << to_string(partArchiveLevel)) : (out << "")); - out << ")"; -} - - -RequestPartsSpec::~RequestPartsSpec() throw() { -} - - -void RequestPartsSpec::__set_names(const std::vector & val) { - this->names = val; -} - -void RequestPartsSpec::__set_exprs(const std::vector & val) { - this->exprs = val; -} +const char* RequestPartsSpec::ascii_fingerprint = "864492ECAB27996CD222AACDA10C292E"; +const uint8_t RequestPartsSpec::binary_fingerprint[16] = {0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E}; uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9243,14 +6944,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size435; - ::apache::thrift::protocol::TType _etype438; - xfer += iprot->readListBegin(_etype438, _size435); - this->names.resize(_size435); - uint32_t _i439; - for (_i439 = 0; _i439 < _size435; ++_i439) + uint32_t _size321; + ::apache::thrift::protocol::TType _etype324; + xfer += iprot->readListBegin(_etype324, _size321); + this->names.resize(_size321); + uint32_t _i325; + for (_i325 = 0; _i325 < _size321; ++_i325) { - xfer += iprot->readString(this->names[_i439]); + xfer += iprot->readString(this->names[_i325]); } xfer += iprot->readListEnd(); } @@ -9263,14 +6964,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size440; - ::apache::thrift::protocol::TType _etype443; - xfer += iprot->readListBegin(_etype443, _size440); - this->exprs.resize(_size440); - uint32_t _i444; - for (_i444 = 0; _i444 < _size440; ++_i444) + uint32_t _size326; + ::apache::thrift::protocol::TType _etype329; + xfer += iprot->readListBegin(_etype329, _size326); + this->exprs.resize(_size326); + uint32_t _i330; + for (_i330 = 0; _i330 < _size326; ++_i330) { - xfer += this->exprs[_i444].read(iprot); + xfer += this->exprs[_i330].read(iprot); } xfer += iprot->readListEnd(); } @@ -9293,16 +6994,15 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("RequestPartsSpec"); xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter445; - for (_iter445 = this->names.begin(); _iter445 != this->names.end(); ++_iter445) + std::vector ::const_iterator _iter331; + for (_iter331 = this->names.begin(); _iter331 != this->names.end(); ++_iter331) { - xfer += oprot->writeString((*_iter445)); + xfer += oprot->writeString((*_iter331)); } xfer += oprot->writeListEnd(); } @@ -9311,10 +7011,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("exprs", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->exprs.size())); - std::vector ::const_iterator _iter446; - for (_iter446 = this->exprs.begin(); _iter446 != this->exprs.end(); ++_iter446) + std::vector ::const_iterator _iter332; + for (_iter332 = this->exprs.begin(); _iter332 != this->exprs.end(); ++_iter332) { - xfer += (*_iter446).write(oprot); + xfer += (*_iter332).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9332,70 +7032,11 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other447) { - names = other447.names; - exprs = other447.exprs; - __isset = other447.__isset; -} -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other448) { - names = other448.names; - exprs = other448.exprs; - __isset = other448.__isset; - return *this; -} -void RequestPartsSpec::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "RequestPartsSpec("; - out << "names=" << to_string(names); - out << ", " << "exprs=" << to_string(exprs); - out << ")"; -} - - -DropPartitionsRequest::~DropPartitionsRequest() throw() { -} - - -void DropPartitionsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void DropPartitionsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void DropPartitionsRequest::__set_parts(const RequestPartsSpec& val) { - this->parts = val; -} - -void DropPartitionsRequest::__set_deleteData(const bool val) { - this->deleteData = val; -__isset.deleteData = true; -} - -void DropPartitionsRequest::__set_ifExists(const bool val) { - this->ifExists = val; -__isset.ifExists = true; -} - -void DropPartitionsRequest::__set_ignoreProtection(const bool val) { - this->ignoreProtection = val; -__isset.ignoreProtection = true; -} - -void DropPartitionsRequest::__set_environmentContext(const EnvironmentContext& val) { - this->environmentContext = val; -__isset.environmentContext = true; -} - -void DropPartitionsRequest::__set_needResult(const bool val) { - this->needResult = val; -__isset.needResult = true; -} +const char* DropPartitionsRequest::ascii_fingerprint = "EB263FBA01215C480A9A24C11D69E672"; +const uint8_t DropPartitionsRequest::binary_fingerprint[16] = {0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72}; uint32_t DropPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9501,7 +7142,6 @@ uint32_t DropPartitionsRequest::read(::apache::thrift::protocol::TProtocol* ipro uint32_t DropPartitionsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("DropPartitionsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -9559,59 +7199,11 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other449) { - dbName = other449.dbName; - tblName = other449.tblName; - parts = other449.parts; - deleteData = other449.deleteData; - ifExists = other449.ifExists; - ignoreProtection = other449.ignoreProtection; - environmentContext = other449.environmentContext; - needResult = other449.needResult; - __isset = other449.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other450) { - dbName = other450.dbName; - tblName = other450.tblName; - parts = other450.parts; - deleteData = other450.deleteData; - ifExists = other450.ifExists; - ignoreProtection = other450.ignoreProtection; - environmentContext = other450.environmentContext; - needResult = other450.needResult; - __isset = other450.__isset; - return *this; -} -void DropPartitionsRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DropPartitionsRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "parts=" << to_string(parts); - out << ", " << "deleteData="; (__isset.deleteData ? (out << to_string(deleteData)) : (out << "")); - out << ", " << "ifExists="; (__isset.ifExists ? (out << to_string(ifExists)) : (out << "")); - out << ", " << "ignoreProtection="; (__isset.ignoreProtection ? (out << to_string(ignoreProtection)) : (out << "")); - out << ", " << "environmentContext="; (__isset.environmentContext ? (out << to_string(environmentContext)) : (out << "")); - out << ", " << "needResult="; (__isset.needResult ? (out << to_string(needResult)) : (out << "")); - out << ")"; -} - - -ResourceUri::~ResourceUri() throw() { -} - - -void ResourceUri::__set_resourceType(const ResourceType::type val) { - this->resourceType = val; -} - -void ResourceUri::__set_uri(const std::string& val) { - this->uri = val; -} +const char* ResourceUri::ascii_fingerprint = "19B5240589E680301A7E32DF3971EFBE"; +const uint8_t ResourceUri::binary_fingerprint[16] = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9632,9 +7224,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast451; - xfer += iprot->readI32(ecast451); - this->resourceType = (ResourceType::type)ecast451; + int32_t ecast333; + xfer += iprot->readI32(ecast333); + this->resourceType = (ResourceType::type)ecast333; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -9660,90 +7252,35 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { return xfer; } -uint32_t ResourceUri::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ResourceUri"); - - xfer += oprot->writeFieldBegin("resourceType", ::apache::thrift::protocol::T_I32, 1); - xfer += oprot->writeI32((int32_t)this->resourceType); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("uri", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->uri); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ResourceUri &a, ResourceUri &b) { - using ::std::swap; - swap(a.resourceType, b.resourceType); - swap(a.uri, b.uri); - swap(a.__isset, b.__isset); -} - -ResourceUri::ResourceUri(const ResourceUri& other452) { - resourceType = other452.resourceType; - uri = other452.uri; - __isset = other452.__isset; -} -ResourceUri& ResourceUri::operator=(const ResourceUri& other453) { - resourceType = other453.resourceType; - uri = other453.uri; - __isset = other453.__isset; - return *this; -} -void ResourceUri::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ResourceUri("; - out << "resourceType=" << to_string(resourceType); - out << ", " << "uri=" << to_string(uri); - out << ")"; -} - - -Function::~Function() throw() { -} - - -void Function::__set_functionName(const std::string& val) { - this->functionName = val; -} - -void Function::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Function::__set_className(const std::string& val) { - this->className = val; -} +uint32_t ResourceUri::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ResourceUri"); -void Function::__set_ownerName(const std::string& val) { - this->ownerName = val; -} + xfer += oprot->writeFieldBegin("resourceType", ::apache::thrift::protocol::T_I32, 1); + xfer += oprot->writeI32((int32_t)this->resourceType); + xfer += oprot->writeFieldEnd(); -void Function::__set_ownerType(const PrincipalType::type val) { - this->ownerType = val; -} + xfer += oprot->writeFieldBegin("uri", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->uri); + xfer += oprot->writeFieldEnd(); -void Function::__set_createTime(const int32_t val) { - this->createTime = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void Function::__set_functionType(const FunctionType::type val) { - this->functionType = val; +void swap(ResourceUri &a, ResourceUri &b) { + using ::std::swap; + swap(a.resourceType, b.resourceType); + swap(a.uri, b.uri); + swap(a.__isset, b.__isset); } -void Function::__set_resourceUris(const std::vector & val) { - this->resourceUris = val; -} +const char* Function::ascii_fingerprint = "72279C515E70F888568542F97616ADB8"; +const uint8_t Function::binary_fingerprint[16] = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9796,9 +7333,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast454; - xfer += iprot->readI32(ecast454); - this->ownerType = (PrincipalType::type)ecast454; + int32_t ecast334; + xfer += iprot->readI32(ecast334); + this->ownerType = (PrincipalType::type)ecast334; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -9814,9 +7351,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast455; - xfer += iprot->readI32(ecast455); - this->functionType = (FunctionType::type)ecast455; + int32_t ecast335; + xfer += iprot->readI32(ecast335); + this->functionType = (FunctionType::type)ecast335; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -9826,14 +7363,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size456; - ::apache::thrift::protocol::TType _etype459; - xfer += iprot->readListBegin(_etype459, _size456); - this->resourceUris.resize(_size456); - uint32_t _i460; - for (_i460 = 0; _i460 < _size456; ++_i460) + uint32_t _size336; + ::apache::thrift::protocol::TType _etype339; + xfer += iprot->readListBegin(_etype339, _size336); + this->resourceUris.resize(_size336); + uint32_t _i340; + for (_i340 = 0; _i340 < _size336; ++_i340) { - xfer += this->resourceUris[_i460].read(iprot); + xfer += this->resourceUris[_i340].read(iprot); } xfer += iprot->readListEnd(); } @@ -9856,7 +7393,6 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Function"); xfer += oprot->writeFieldBegin("functionName", ::apache::thrift::protocol::T_STRING, 1); @@ -9890,10 +7426,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); - std::vector ::const_iterator _iter461; - for (_iter461 = this->resourceUris.begin(); _iter461 != this->resourceUris.end(); ++_iter461) + std::vector ::const_iterator _iter341; + for (_iter341 = this->resourceUris.begin(); _iter341 != this->resourceUris.end(); ++_iter341) { - xfer += (*_iter461).write(oprot); + xfer += (*_iter341).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9917,67 +7453,11 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other462) { - functionName = other462.functionName; - dbName = other462.dbName; - className = other462.className; - ownerName = other462.ownerName; - ownerType = other462.ownerType; - createTime = other462.createTime; - functionType = other462.functionType; - resourceUris = other462.resourceUris; - __isset = other462.__isset; -} -Function& Function::operator=(const Function& other463) { - functionName = other463.functionName; - dbName = other463.dbName; - className = other463.className; - ownerName = other463.ownerName; - ownerType = other463.ownerType; - createTime = other463.createTime; - functionType = other463.functionType; - resourceUris = other463.resourceUris; - __isset = other463.__isset; - return *this; -} -void Function::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Function("; - out << "functionName=" << to_string(functionName); - out << ", " << "dbName=" << to_string(dbName); - out << ", " << "className=" << to_string(className); - out << ", " << "ownerName=" << to_string(ownerName); - out << ", " << "ownerType=" << to_string(ownerType); - out << ", " << "createTime=" << to_string(createTime); - out << ", " << "functionType=" << to_string(functionType); - out << ", " << "resourceUris=" << to_string(resourceUris); - out << ")"; -} - - -TxnInfo::~TxnInfo() throw() { -} - - -void TxnInfo::__set_id(const int64_t val) { - this->id = val; -} - -void TxnInfo::__set_state(const TxnState::type val) { - this->state = val; -} - -void TxnInfo::__set_user(const std::string& val) { - this->user = val; -} - -void TxnInfo::__set_hostname(const std::string& val) { - this->hostname = val; -} +const char* TxnInfo::ascii_fingerprint = "6C5C0773A901CCA3BE9D085B3B47A767"; +const uint8_t TxnInfo::binary_fingerprint[16] = {0x6C,0x5C,0x07,0x73,0xA9,0x01,0xCC,0xA3,0xBE,0x9D,0x08,0x5B,0x3B,0x47,0xA7,0x67}; uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10010,9 +7490,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast464; - xfer += iprot->readI32(ecast464); - this->state = (TxnState::type)ecast464; + int32_t ecast342; + xfer += iprot->readI32(ecast342); + this->state = (TxnState::type)ecast342; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -10056,7 +7536,6 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TxnInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TxnInfo"); xfer += oprot->writeFieldBegin("id", ::apache::thrift::protocol::T_I64, 1); @@ -10088,45 +7567,11 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.hostname, b.hostname); } -TxnInfo::TxnInfo(const TxnInfo& other465) { - id = other465.id; - state = other465.state; - user = other465.user; - hostname = other465.hostname; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other466) { - id = other466.id; - state = other466.state; - user = other466.user; - hostname = other466.hostname; - return *this; -} -void TxnInfo::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TxnInfo("; - out << "id=" << to_string(id); - out << ", " << "state=" << to_string(state); - out << ", " << "user=" << to_string(user); - out << ", " << "hostname=" << to_string(hostname); - out << ")"; -} - - -GetOpenTxnsInfoResponse::~GetOpenTxnsInfoResponse() throw() { -} - - -void GetOpenTxnsInfoResponse::__set_txn_high_water_mark(const int64_t val) { - this->txn_high_water_mark = val; -} - -void GetOpenTxnsInfoResponse::__set_open_txns(const std::vector & val) { - this->open_txns = val; -} +const char* GetOpenTxnsInfoResponse::ascii_fingerprint = "CCF769BBD33005B61F2079A6665E3B9C"; +const uint8_t GetOpenTxnsInfoResponse::binary_fingerprint[16] = {0xCC,0xF7,0x69,0xBB,0xD3,0x30,0x05,0xB6,0x1F,0x20,0x79,0xA6,0x66,0x5E,0x3B,0x9C}; uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10159,14 +7604,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size467; - ::apache::thrift::protocol::TType _etype470; - xfer += iprot->readListBegin(_etype470, _size467); - this->open_txns.resize(_size467); - uint32_t _i471; - for (_i471 = 0; _i471 < _size467; ++_i471) + uint32_t _size343; + ::apache::thrift::protocol::TType _etype346; + xfer += iprot->readListBegin(_etype346, _size343); + this->open_txns.resize(_size343); + uint32_t _i347; + for (_i347 = 0; _i347 < _size343; ++_i347) { - xfer += this->open_txns[_i471].read(iprot); + xfer += this->open_txns[_i347].read(iprot); } xfer += iprot->readListEnd(); } @@ -10193,7 +7638,6 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetOpenTxnsInfoResponse"); xfer += oprot->writeFieldBegin("txn_high_water_mark", ::apache::thrift::protocol::T_I64, 1); @@ -10203,10 +7647,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter472; - for (_iter472 = this->open_txns.begin(); _iter472 != this->open_txns.end(); ++_iter472) + std::vector ::const_iterator _iter348; + for (_iter348 = this->open_txns.begin(); _iter348 != this->open_txns.end(); ++_iter348) { - xfer += (*_iter472).write(oprot); + xfer += (*_iter348).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10223,39 +7667,11 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other473) { - txn_high_water_mark = other473.txn_high_water_mark; - open_txns = other473.open_txns; -} -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other474) { - txn_high_water_mark = other474.txn_high_water_mark; - open_txns = other474.open_txns; - return *this; -} -void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetOpenTxnsInfoResponse("; - out << "txn_high_water_mark=" << to_string(txn_high_water_mark); - out << ", " << "open_txns=" << to_string(open_txns); - out << ")"; -} - - -GetOpenTxnsResponse::~GetOpenTxnsResponse() throw() { -} - - -void GetOpenTxnsResponse::__set_txn_high_water_mark(const int64_t val) { - this->txn_high_water_mark = val; -} - -void GetOpenTxnsResponse::__set_open_txns(const std::set & val) { - this->open_txns = val; -} +const char* GetOpenTxnsResponse::ascii_fingerprint = "590531FF1BE8611678B255374F6109EE"; +const uint8_t GetOpenTxnsResponse::binary_fingerprint[16] = {0x59,0x05,0x31,0xFF,0x1B,0xE8,0x61,0x16,0x78,0xB2,0x55,0x37,0x4F,0x61,0x09,0xEE}; uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10288,15 +7704,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size475; - ::apache::thrift::protocol::TType _etype478; - xfer += iprot->readSetBegin(_etype478, _size475); - uint32_t _i479; - for (_i479 = 0; _i479 < _size475; ++_i479) + uint32_t _size349; + ::apache::thrift::protocol::TType _etype352; + xfer += iprot->readSetBegin(_etype352, _size349); + uint32_t _i353; + for (_i353 = 0; _i353 < _size349; ++_i353) { - int64_t _elem480; - xfer += iprot->readI64(_elem480); - this->open_txns.insert(_elem480); + int64_t _elem354; + xfer += iprot->readI64(_elem354); + this->open_txns.insert(_elem354); } xfer += iprot->readSetEnd(); } @@ -10323,7 +7739,6 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetOpenTxnsResponse"); xfer += oprot->writeFieldBegin("txn_high_water_mark", ::apache::thrift::protocol::T_I64, 1); @@ -10333,10 +7748,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); - std::set ::const_iterator _iter481; - for (_iter481 = this->open_txns.begin(); _iter481 != this->open_txns.end(); ++_iter481) + std::set ::const_iterator _iter355; + for (_iter355 = this->open_txns.begin(); _iter355 != this->open_txns.end(); ++_iter355) { - xfer += oprot->writeI64((*_iter481)); + xfer += oprot->writeI64((*_iter355)); } xfer += oprot->writeSetEnd(); } @@ -10353,43 +7768,11 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other482) { - txn_high_water_mark = other482.txn_high_water_mark; - open_txns = other482.open_txns; -} -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other483) { - txn_high_water_mark = other483.txn_high_water_mark; - open_txns = other483.open_txns; - return *this; -} -void GetOpenTxnsResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetOpenTxnsResponse("; - out << "txn_high_water_mark=" << to_string(txn_high_water_mark); - out << ", " << "open_txns=" << to_string(open_txns); - out << ")"; -} - - -OpenTxnRequest::~OpenTxnRequest() throw() { -} - - -void OpenTxnRequest::__set_num_txns(const int32_t val) { - this->num_txns = val; -} - -void OpenTxnRequest::__set_user(const std::string& val) { - this->user = val; -} - -void OpenTxnRequest::__set_hostname(const std::string& val) { - this->hostname = val; -} +const char* OpenTxnRequest::ascii_fingerprint = "3368C2F81F2FEF71F11EDACDB2A3ECEF"; +const uint8_t OpenTxnRequest::binary_fingerprint[16] = {0x33,0x68,0xC2,0xF8,0x1F,0x2F,0xEF,0x71,0xF1,0x1E,0xDA,0xCD,0xB2,0xA3,0xEC,0xEF}; uint32_t OpenTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10455,7 +7838,6 @@ uint32_t OpenTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t OpenTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("OpenTxnRequest"); xfer += oprot->writeFieldBegin("num_txns", ::apache::thrift::protocol::T_I32, 1); @@ -10482,38 +7864,11 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.hostname, b.hostname); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other484) { - num_txns = other484.num_txns; - user = other484.user; - hostname = other484.hostname; -} -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other485) { - num_txns = other485.num_txns; - user = other485.user; - hostname = other485.hostname; - return *this; -} -void OpenTxnRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "OpenTxnRequest("; - out << "num_txns=" << to_string(num_txns); - out << ", " << "user=" << to_string(user); - out << ", " << "hostname=" << to_string(hostname); - out << ")"; -} - - -OpenTxnsResponse::~OpenTxnsResponse() throw() { -} - - -void OpenTxnsResponse::__set_txn_ids(const std::vector & val) { - this->txn_ids = val; -} +const char* OpenTxnsResponse::ascii_fingerprint = "E49D7D1A9013CC81CD0F69D631EF82E4"; +const uint8_t OpenTxnsResponse::binary_fingerprint[16] = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10537,14 +7892,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size486; - ::apache::thrift::protocol::TType _etype489; - xfer += iprot->readListBegin(_etype489, _size486); - this->txn_ids.resize(_size486); - uint32_t _i490; - for (_i490 = 0; _i490 < _size486; ++_i490) + uint32_t _size356; + ::apache::thrift::protocol::TType _etype359; + xfer += iprot->readListBegin(_etype359, _size356); + this->txn_ids.resize(_size356); + uint32_t _i360; + for (_i360 = 0; _i360 < _size356; ++_i360) { - xfer += iprot->readI64(this->txn_ids[_i490]); + xfer += iprot->readI64(this->txn_ids[_i360]); } xfer += iprot->readListEnd(); } @@ -10569,16 +7924,15 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("OpenTxnsResponse"); xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter491; - for (_iter491 = this->txn_ids.begin(); _iter491 != this->txn_ids.end(); ++_iter491) + std::vector ::const_iterator _iter361; + for (_iter361 = this->txn_ids.begin(); _iter361 != this->txn_ids.end(); ++_iter361) { - xfer += oprot->writeI64((*_iter491)); + xfer += oprot->writeI64((*_iter361)); } xfer += oprot->writeListEnd(); } @@ -10594,32 +7948,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other492) { - txn_ids = other492.txn_ids; -} -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other493) { - txn_ids = other493.txn_ids; - return *this; -} -void OpenTxnsResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "OpenTxnsResponse("; - out << "txn_ids=" << to_string(txn_ids); - out << ")"; -} - - -AbortTxnRequest::~AbortTxnRequest() throw() { -} - - -void AbortTxnRequest::__set_txnid(const int64_t val) { - this->txnid = val; -} +const char* AbortTxnRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t AbortTxnRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t AbortTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10663,7 +7996,6 @@ uint32_t AbortTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t AbortTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AbortTxnRequest"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); @@ -10680,32 +8012,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other494) { - txnid = other494.txnid; -} -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other495) { - txnid = other495.txnid; - return *this; -} -void AbortTxnRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AbortTxnRequest("; - out << "txnid=" << to_string(txnid); - out << ")"; -} - - -CommitTxnRequest::~CommitTxnRequest() throw() { -} - - -void CommitTxnRequest::__set_txnid(const int64_t val) { - this->txnid = val; -} +const char* CommitTxnRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t CommitTxnRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10749,7 +8060,6 @@ uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CommitTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CommitTxnRequest"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); @@ -10766,50 +8076,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other496) { - txnid = other496.txnid; -} -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other497) { - txnid = other497.txnid; - return *this; -} -void CommitTxnRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CommitTxnRequest("; - out << "txnid=" << to_string(txnid); - out << ")"; -} - - -LockComponent::~LockComponent() throw() { -} - - -void LockComponent::__set_type(const LockType::type val) { - this->type = val; -} - -void LockComponent::__set_level(const LockLevel::type val) { - this->level = val; -} - -void LockComponent::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void LockComponent::__set_tablename(const std::string& val) { - this->tablename = val; -__isset.tablename = true; -} - -void LockComponent::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; -} +const char* LockComponent::ascii_fingerprint = "38B02531B0840AC9C72904A4649FD15F"; +const uint8_t LockComponent::binary_fingerprint[16] = {0x38,0xB0,0x25,0x31,0xB0,0x84,0x0A,0xC9,0xC7,0x29,0x04,0xA4,0x64,0x9F,0xD1,0x5F}; uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -10833,9 +8104,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast498; - xfer += iprot->readI32(ecast498); - this->type = (LockType::type)ecast498; + int32_t ecast362; + xfer += iprot->readI32(ecast362); + this->type = (LockType::type)ecast362; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -10843,9 +8114,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast499; - xfer += iprot->readI32(ecast499); - this->level = (LockLevel::type)ecast499; + int32_t ecast363; + xfer += iprot->readI32(ecast363); + this->level = (LockLevel::type)ecast363; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -10895,7 +8166,6 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockComponent::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("LockComponent"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); @@ -10935,59 +8205,11 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other500) { - type = other500.type; - level = other500.level; - dbname = other500.dbname; - tablename = other500.tablename; - partitionname = other500.partitionname; - __isset = other500.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other501) { - type = other501.type; - level = other501.level; - dbname = other501.dbname; - tablename = other501.tablename; - partitionname = other501.partitionname; - __isset = other501.__isset; - return *this; -} -void LockComponent::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "LockComponent("; - out << "type=" << to_string(type); - out << ", " << "level=" << to_string(level); - out << ", " << "dbname=" << to_string(dbname); - out << ", " << "tablename="; (__isset.tablename ? (out << to_string(tablename)) : (out << "")); - out << ", " << "partitionname="; (__isset.partitionname ? (out << to_string(partitionname)) : (out << "")); - out << ")"; -} - - -LockRequest::~LockRequest() throw() { -} - - -void LockRequest::__set_component(const std::vector & val) { - this->component = val; -} - -void LockRequest::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} - -void LockRequest::__set_user(const std::string& val) { - this->user = val; -} - -void LockRequest::__set_hostname(const std::string& val) { - this->hostname = val; -} +const char* LockRequest::ascii_fingerprint = "46BC5ED7196BC16CB216AD5CC67C6930"; +const uint8_t LockRequest::binary_fingerprint[16] = {0x46,0xBC,0x5E,0xD7,0x19,0x6B,0xC1,0x6C,0xB2,0x16,0xAD,0x5C,0xC6,0x7C,0x69,0x30}; uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11013,14 +8235,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size502; - ::apache::thrift::protocol::TType _etype505; - xfer += iprot->readListBegin(_etype505, _size502); - this->component.resize(_size502); - uint32_t _i506; - for (_i506 = 0; _i506 < _size502; ++_i506) + uint32_t _size364; + ::apache::thrift::protocol::TType _etype367; + xfer += iprot->readListBegin(_etype367, _size364); + this->component.resize(_size364); + uint32_t _i368; + for (_i368 = 0; _i368 < _size364; ++_i368) { - xfer += this->component[_i506].read(iprot); + xfer += this->component[_i368].read(iprot); } xfer += iprot->readListEnd(); } @@ -11073,16 +8295,15 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("LockRequest"); xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter507; - for (_iter507 = this->component.begin(); _iter507 != this->component.end(); ++_iter507) + std::vector ::const_iterator _iter369; + for (_iter369 = this->component.begin(); _iter369 != this->component.end(); ++_iter369) { - xfer += (*_iter507).write(oprot); + xfer += (*_iter369).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11115,47 +8336,11 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other508) { - component = other508.component; - txnid = other508.txnid; - user = other508.user; - hostname = other508.hostname; - __isset = other508.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other509) { - component = other509.component; - txnid = other509.txnid; - user = other509.user; - hostname = other509.hostname; - __isset = other509.__isset; - return *this; -} -void LockRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "LockRequest("; - out << "component=" << to_string(component); - out << ", " << "txnid="; (__isset.txnid ? (out << to_string(txnid)) : (out << "")); - out << ", " << "user=" << to_string(user); - out << ", " << "hostname=" << to_string(hostname); - out << ")"; -} - - -LockResponse::~LockResponse() throw() { -} - - -void LockResponse::__set_lockid(const int64_t val) { - this->lockid = val; -} - -void LockResponse::__set_state(const LockState::type val) { - this->state = val; -} +const char* LockResponse::ascii_fingerprint = "DFA40D9D2884599F3D1E7A57578F1384"; +const uint8_t LockResponse::binary_fingerprint[16] = {0xDF,0xA4,0x0D,0x9D,0x28,0x84,0x59,0x9F,0x3D,0x1E,0x7A,0x57,0x57,0x8F,0x13,0x84}; uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11186,9 +8371,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast510; - xfer += iprot->readI32(ecast510); - this->state = (LockState::type)ecast510; + int32_t ecast370; + xfer += iprot->readI32(ecast370); + this->state = (LockState::type)ecast370; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11212,7 +8397,6 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("LockResponse"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11234,35 +8418,11 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other511) { - lockid = other511.lockid; - state = other511.state; -} -LockResponse& LockResponse::operator=(const LockResponse& other512) { - lockid = other512.lockid; - state = other512.state; - return *this; -} -void LockResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "LockResponse("; - out << "lockid=" << to_string(lockid); - out << ", " << "state=" << to_string(state); - out << ")"; -} - - -CheckLockRequest::~CheckLockRequest() throw() { -} - - -void CheckLockRequest::__set_lockid(const int64_t val) { - this->lockid = val; -} +const char* CheckLockRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t CheckLockRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t CheckLockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11306,7 +8466,6 @@ uint32_t CheckLockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CheckLockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CheckLockRequest"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11323,32 +8482,11 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.lockid, b.lockid); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other513) { - lockid = other513.lockid; -} -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other514) { - lockid = other514.lockid; - return *this; -} -void CheckLockRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CheckLockRequest("; - out << "lockid=" << to_string(lockid); - out << ")"; -} - - -UnlockRequest::~UnlockRequest() throw() { -} - - -void UnlockRequest::__set_lockid(const int64_t val) { - this->lockid = val; -} +const char* UnlockRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t UnlockRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t UnlockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11392,7 +8530,6 @@ uint32_t UnlockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t UnlockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("UnlockRequest"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11409,28 +8546,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other515) { - lockid = other515.lockid; -} -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other516) { - lockid = other516.lockid; - return *this; -} -void UnlockRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "UnlockRequest("; - out << "lockid=" << to_string(lockid); - out << ")"; -} - - -ShowLocksRequest::~ShowLocksRequest() throw() { -} - +const char* ShowLocksRequest::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; +const uint8_t ShowLocksRequest::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; uint32_t ShowLocksRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11458,7 +8578,6 @@ uint32_t ShowLocksRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ShowLocksRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowLocksRequest"); xfer += oprot->writeFieldStop(); @@ -11472,75 +8591,11 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { (void) b; } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other517) { - (void) other517; -} -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other518) { - (void) other518; - return *this; -} -void ShowLocksRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowLocksRequest("; - out << ")"; -} - - -ShowLocksResponseElement::~ShowLocksResponseElement() throw() { -} - - -void ShowLocksResponseElement::__set_lockid(const int64_t val) { - this->lockid = val; -} - -void ShowLocksResponseElement::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void ShowLocksResponseElement::__set_tablename(const std::string& val) { - this->tablename = val; -__isset.tablename = true; -} - -void ShowLocksResponseElement::__set_partname(const std::string& val) { - this->partname = val; -__isset.partname = true; -} - -void ShowLocksResponseElement::__set_state(const LockState::type val) { - this->state = val; -} - -void ShowLocksResponseElement::__set_type(const LockType::type val) { - this->type = val; -} - -void ShowLocksResponseElement::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} - -void ShowLocksResponseElement::__set_lastheartbeat(const int64_t val) { - this->lastheartbeat = val; -} - -void ShowLocksResponseElement::__set_acquiredat(const int64_t val) { - this->acquiredat = val; -__isset.acquiredat = true; -} - -void ShowLocksResponseElement::__set_user(const std::string& val) { - this->user = val; -} - -void ShowLocksResponseElement::__set_hostname(const std::string& val) { - this->hostname = val; -} +const char* ShowLocksResponseElement::ascii_fingerprint = "5AD11F0E0EF1EE0A7C08B00FEFCFF24F"; +const uint8_t ShowLocksResponseElement::binary_fingerprint[16] = {0x5A,0xD1,0x1F,0x0E,0x0E,0xF1,0xEE,0x0A,0x7C,0x08,0xB0,0x0F,0xEF,0xCF,0xF2,0x4F}; uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11600,9 +8655,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast519; - xfer += iprot->readI32(ecast519); - this->state = (LockState::type)ecast519; + int32_t ecast371; + xfer += iprot->readI32(ecast371); + this->state = (LockState::type)ecast371; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11610,9 +8665,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast520; - xfer += iprot->readI32(ecast520); - this->type = (LockType::type)ecast520; + int32_t ecast372; + xfer += iprot->readI32(ecast372); + this->type = (LockType::type)ecast372; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -11686,7 +8741,6 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i uint32_t ShowLocksResponseElement::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowLocksResponseElement"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11758,64 +8812,11 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other521) { - lockid = other521.lockid; - dbname = other521.dbname; - tablename = other521.tablename; - partname = other521.partname; - state = other521.state; - type = other521.type; - txnid = other521.txnid; - lastheartbeat = other521.lastheartbeat; - acquiredat = other521.acquiredat; - user = other521.user; - hostname = other521.hostname; - __isset = other521.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other522) { - lockid = other522.lockid; - dbname = other522.dbname; - tablename = other522.tablename; - partname = other522.partname; - state = other522.state; - type = other522.type; - txnid = other522.txnid; - lastheartbeat = other522.lastheartbeat; - acquiredat = other522.acquiredat; - user = other522.user; - hostname = other522.hostname; - __isset = other522.__isset; - return *this; -} -void ShowLocksResponseElement::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowLocksResponseElement("; - out << "lockid=" << to_string(lockid); - out << ", " << "dbname=" << to_string(dbname); - out << ", " << "tablename="; (__isset.tablename ? (out << to_string(tablename)) : (out << "")); - out << ", " << "partname="; (__isset.partname ? (out << to_string(partname)) : (out << "")); - out << ", " << "state=" << to_string(state); - out << ", " << "type=" << to_string(type); - out << ", " << "txnid="; (__isset.txnid ? (out << to_string(txnid)) : (out << "")); - out << ", " << "lastheartbeat=" << to_string(lastheartbeat); - out << ", " << "acquiredat="; (__isset.acquiredat ? (out << to_string(acquiredat)) : (out << "")); - out << ", " << "user=" << to_string(user); - out << ", " << "hostname=" << to_string(hostname); - out << ")"; -} - - -ShowLocksResponse::~ShowLocksResponse() throw() { -} - - -void ShowLocksResponse::__set_locks(const std::vector & val) { - this->locks = val; -} +const char* ShowLocksResponse::ascii_fingerprint = "BD598AA60FE941361FB54C43973C011F"; +const uint8_t ShowLocksResponse::binary_fingerprint[16] = {0xBD,0x59,0x8A,0xA6,0x0F,0xE9,0x41,0x36,0x1F,0xB5,0x4C,0x43,0x97,0x3C,0x01,0x1F}; uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11838,14 +8839,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size523; - ::apache::thrift::protocol::TType _etype526; - xfer += iprot->readListBegin(_etype526, _size523); - this->locks.resize(_size523); - uint32_t _i527; - for (_i527 = 0; _i527 < _size523; ++_i527) + uint32_t _size373; + ::apache::thrift::protocol::TType _etype376; + xfer += iprot->readListBegin(_etype376, _size373); + this->locks.resize(_size373); + uint32_t _i377; + for (_i377 = 0; _i377 < _size373; ++_i377) { - xfer += this->locks[_i527].read(iprot); + xfer += this->locks[_i377].read(iprot); } xfer += iprot->readListEnd(); } @@ -11868,16 +8869,15 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowLocksResponse"); xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter528; - for (_iter528 = this->locks.begin(); _iter528 != this->locks.end(); ++_iter528) + std::vector ::const_iterator _iter378; + for (_iter378 = this->locks.begin(); _iter378 != this->locks.end(); ++_iter378) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter378).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11894,40 +8894,11 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other529) { - locks = other529.locks; - __isset = other529.__isset; -} -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other530) { - locks = other530.locks; - __isset = other530.__isset; - return *this; -} -void ShowLocksResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowLocksResponse("; - out << "locks=" << to_string(locks); - out << ")"; -} - - -HeartbeatRequest::~HeartbeatRequest() throw() { -} - - -void HeartbeatRequest::__set_lockid(const int64_t val) { - this->lockid = val; -__isset.lockid = true; -} - -void HeartbeatRequest::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} +const char* HeartbeatRequest::ascii_fingerprint = "0354D07C94CB8542872CA1277008860A"; +const uint8_t HeartbeatRequest::binary_fingerprint[16] = {0x03,0x54,0xD0,0x7C,0x94,0xCB,0x85,0x42,0x87,0x2C,0xA1,0x27,0x70,0x08,0x86,0x0A}; uint32_t HeartbeatRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -11976,7 +8947,6 @@ uint32_t HeartbeatRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HeartbeatRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HeartbeatRequest"); if (this->__isset.lockid) { @@ -12001,41 +8971,11 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other531) { - lockid = other531.lockid; - txnid = other531.txnid; - __isset = other531.__isset; -} -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other532) { - lockid = other532.lockid; - txnid = other532.txnid; - __isset = other532.__isset; - return *this; -} -void HeartbeatRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HeartbeatRequest("; - out << "lockid="; (__isset.lockid ? (out << to_string(lockid)) : (out << "")); - out << ", " << "txnid="; (__isset.txnid ? (out << to_string(txnid)) : (out << "")); - out << ")"; -} - - -HeartbeatTxnRangeRequest::~HeartbeatTxnRangeRequest() throw() { -} - - -void HeartbeatTxnRangeRequest::__set_min(const int64_t val) { - this->min = val; -} - -void HeartbeatTxnRangeRequest::__set_max(const int64_t val) { - this->max = val; -} +const char* HeartbeatTxnRangeRequest::ascii_fingerprint = "F33135321253DAEB67B0E79E416CA831"; +const uint8_t HeartbeatTxnRangeRequest::binary_fingerprint[16] = {0xF3,0x31,0x35,0x32,0x12,0x53,0xDA,0xEB,0x67,0xB0,0xE7,0x9E,0x41,0x6C,0xA8,0x31}; uint32_t HeartbeatTxnRangeRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12090,7 +9030,6 @@ uint32_t HeartbeatTxnRangeRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t HeartbeatTxnRangeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HeartbeatTxnRangeRequest"); xfer += oprot->writeFieldBegin("min", ::apache::thrift::protocol::T_I64, 1); @@ -12112,39 +9051,11 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other533) { - min = other533.min; - max = other533.max; -} -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other534) { - min = other534.min; - max = other534.max; - return *this; -} -void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HeartbeatTxnRangeRequest("; - out << "min=" << to_string(min); - out << ", " << "max=" << to_string(max); - out << ")"; -} - - -HeartbeatTxnRangeResponse::~HeartbeatTxnRangeResponse() throw() { -} - - -void HeartbeatTxnRangeResponse::__set_aborted(const std::set & val) { - this->aborted = val; -} - -void HeartbeatTxnRangeResponse::__set_nosuch(const std::set & val) { - this->nosuch = val; -} +const char* HeartbeatTxnRangeResponse::ascii_fingerprint = "33E49A70BD5C04262A0F407E3656E3CF"; +const uint8_t HeartbeatTxnRangeResponse::binary_fingerprint[16] = {0x33,0xE4,0x9A,0x70,0xBD,0x5C,0x04,0x26,0x2A,0x0F,0x40,0x7E,0x36,0x56,0xE3,0xCF}; uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12169,15 +9080,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size535; - ::apache::thrift::protocol::TType _etype538; - xfer += iprot->readSetBegin(_etype538, _size535); - uint32_t _i539; - for (_i539 = 0; _i539 < _size535; ++_i539) + uint32_t _size379; + ::apache::thrift::protocol::TType _etype382; + xfer += iprot->readSetBegin(_etype382, _size379); + uint32_t _i383; + for (_i383 = 0; _i383 < _size379; ++_i383) { - int64_t _elem540; - xfer += iprot->readI64(_elem540); - this->aborted.insert(_elem540); + int64_t _elem384; + xfer += iprot->readI64(_elem384); + this->aborted.insert(_elem384); } xfer += iprot->readSetEnd(); } @@ -12190,15 +9101,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _etype544; - xfer += iprot->readSetBegin(_etype544, _size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) + uint32_t _size385; + ::apache::thrift::protocol::TType _etype388; + xfer += iprot->readSetBegin(_etype388, _size385); + uint32_t _i389; + for (_i389 = 0; _i389 < _size385; ++_i389) { - int64_t _elem546; - xfer += iprot->readI64(_elem546); - this->nosuch.insert(_elem546); + int64_t _elem390; + xfer += iprot->readI64(_elem390); + this->nosuch.insert(_elem390); } xfer += iprot->readSetEnd(); } @@ -12225,16 +9136,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HeartbeatTxnRangeResponse"); xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter547; - for (_iter547 = this->aborted.begin(); _iter547 != this->aborted.end(); ++_iter547) + std::set ::const_iterator _iter391; + for (_iter391 = this->aborted.begin(); _iter391 != this->aborted.end(); ++_iter391) { - xfer += oprot->writeI64((*_iter547)); + xfer += oprot->writeI64((*_iter391)); } xfer += oprot->writeSetEnd(); } @@ -12243,10 +9153,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter548; - for (_iter548 = this->nosuch.begin(); _iter548 != this->nosuch.end(); ++_iter548) + std::set ::const_iterator _iter392; + for (_iter392 = this->nosuch.begin(); _iter392 != this->nosuch.end(); ++_iter392) { - xfer += oprot->writeI64((*_iter548)); + xfer += oprot->writeI64((*_iter392)); } xfer += oprot->writeSetEnd(); } @@ -12259,57 +9169,15 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { using ::std::swap; - swap(a.aborted, b.aborted); - swap(a.nosuch, b.nosuch); -} - -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other549) { - aborted = other549.aborted; - nosuch = other549.nosuch; -} -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other550) { - aborted = other550.aborted; - nosuch = other550.nosuch; - return *this; -} -void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HeartbeatTxnRangeResponse("; - out << "aborted=" << to_string(aborted); - out << ", " << "nosuch=" << to_string(nosuch); - out << ")"; -} - - -CompactionRequest::~CompactionRequest() throw() { -} - - -void CompactionRequest::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void CompactionRequest::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void CompactionRequest::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; -} - -void CompactionRequest::__set_type(const CompactionType::type val) { - this->type = val; + swap(a.aborted, b.aborted); + swap(a.nosuch, b.nosuch); } -void CompactionRequest::__set_runas(const std::string& val) { - this->runas = val; -__isset.runas = true; -} +const char* CompactionRequest::ascii_fingerprint = "899FD1F339D8318D628687CC2CE2864B"; +const uint8_t CompactionRequest::binary_fingerprint[16] = {0x89,0x9F,0xD1,0xF3,0x39,0xD8,0x31,0x8D,0x62,0x86,0x87,0xCC,0x2C,0xE2,0x86,0x4B}; uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12357,9 +9225,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast551; - xfer += iprot->readI32(ecast551); - this->type = (CompactionType::type)ecast551; + int32_t ecast393; + xfer += iprot->readI32(ecast393); + this->type = (CompactionType::type)ecast393; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12393,7 +9261,6 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CompactionRequest"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -12433,42 +9300,11 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other552) { - dbname = other552.dbname; - tablename = other552.tablename; - partitionname = other552.partitionname; - type = other552.type; - runas = other552.runas; - __isset = other552.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other553) { - dbname = other553.dbname; - tablename = other553.tablename; - partitionname = other553.partitionname; - type = other553.type; - runas = other553.runas; - __isset = other553.__isset; - return *this; -} -void CompactionRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CompactionRequest("; - out << "dbname=" << to_string(dbname); - out << ", " << "tablename=" << to_string(tablename); - out << ", " << "partitionname="; (__isset.partitionname ? (out << to_string(partitionname)) : (out << "")); - out << ", " << "type=" << to_string(type); - out << ", " << "runas="; (__isset.runas ? (out << to_string(runas)) : (out << "")); - out << ")"; -} - - -ShowCompactRequest::~ShowCompactRequest() throw() { -} - +const char* ShowCompactRequest::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; +const uint8_t ShowCompactRequest::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; uint32_t ShowCompactRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12496,7 +9332,6 @@ uint32_t ShowCompactRequest::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ShowCompactRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowCompactRequest"); xfer += oprot->writeFieldStop(); @@ -12510,63 +9345,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other554) { - (void) other554; -} -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other555) { - (void) other555; - return *this; -} -void ShowCompactRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowCompactRequest("; - out << ")"; -} - - -ShowCompactResponseElement::~ShowCompactResponseElement() throw() { -} - - -void ShowCompactResponseElement::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void ShowCompactResponseElement::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void ShowCompactResponseElement::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; -} - -void ShowCompactResponseElement::__set_type(const CompactionType::type val) { - this->type = val; -} - -void ShowCompactResponseElement::__set_state(const std::string& val) { - this->state = val; -} - -void ShowCompactResponseElement::__set_workerid(const std::string& val) { - this->workerid = val; -__isset.workerid = true; -} - -void ShowCompactResponseElement::__set_start(const int64_t val) { - this->start = val; -__isset.start = true; -} - -void ShowCompactResponseElement::__set_runAs(const std::string& val) { - this->runAs = val; -__isset.runAs = true; -} +const char* ShowCompactResponseElement::ascii_fingerprint = "2F338C265DC4FD82DD13F4966FE43F13"; +const uint8_t ShowCompactResponseElement::binary_fingerprint[16] = {0x2F,0x33,0x8C,0x26,0x5D,0xC4,0xFD,0x82,0xDD,0x13,0xF4,0x96,0x6F,0xE4,0x3F,0x13}; uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12615,9 +9398,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast556; - xfer += iprot->readI32(ecast556); - this->type = (CompactionType::type)ecast556; + int32_t ecast394; + xfer += iprot->readI32(ecast394); + this->type = (CompactionType::type)ecast394; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12677,7 +9460,6 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* uint32_t ShowCompactResponseElement::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowCompactResponseElement"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -12734,55 +9516,11 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other557) { - dbname = other557.dbname; - tablename = other557.tablename; - partitionname = other557.partitionname; - type = other557.type; - state = other557.state; - workerid = other557.workerid; - start = other557.start; - runAs = other557.runAs; - __isset = other557.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other558) { - dbname = other558.dbname; - tablename = other558.tablename; - partitionname = other558.partitionname; - type = other558.type; - state = other558.state; - workerid = other558.workerid; - start = other558.start; - runAs = other558.runAs; - __isset = other558.__isset; - return *this; -} -void ShowCompactResponseElement::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowCompactResponseElement("; - out << "dbname=" << to_string(dbname); - out << ", " << "tablename=" << to_string(tablename); - out << ", " << "partitionname="; (__isset.partitionname ? (out << to_string(partitionname)) : (out << "")); - out << ", " << "type=" << to_string(type); - out << ", " << "state=" << to_string(state); - out << ", " << "workerid="; (__isset.workerid ? (out << to_string(workerid)) : (out << "")); - out << ", " << "start="; (__isset.start ? (out << to_string(start)) : (out << "")); - out << ", " << "runAs="; (__isset.runAs ? (out << to_string(runAs)) : (out << "")); - out << ")"; -} - - -ShowCompactResponse::~ShowCompactResponse() throw() { -} - - -void ShowCompactResponse::__set_compacts(const std::vector & val) { - this->compacts = val; -} +const char* ShowCompactResponse::ascii_fingerprint = "915B7B8DB8966D65769C0F98707BBAE3"; +const uint8_t ShowCompactResponse::binary_fingerprint[16] = {0x91,0x5B,0x7B,0x8D,0xB8,0x96,0x6D,0x65,0x76,0x9C,0x0F,0x98,0x70,0x7B,0xBA,0xE3}; uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12806,14 +9544,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size559; - ::apache::thrift::protocol::TType _etype562; - xfer += iprot->readListBegin(_etype562, _size559); - this->compacts.resize(_size559); - uint32_t _i563; - for (_i563 = 0; _i563 < _size559; ++_i563) + uint32_t _size395; + ::apache::thrift::protocol::TType _etype398; + xfer += iprot->readListBegin(_etype398, _size395); + this->compacts.resize(_size395); + uint32_t _i399; + for (_i399 = 0; _i399 < _size395; ++_i399) { - xfer += this->compacts[_i563].read(iprot); + xfer += this->compacts[_i399].read(iprot); } xfer += iprot->readListEnd(); } @@ -12838,16 +9576,15 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ShowCompactResponse"); xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter564; - for (_iter564 = this->compacts.begin(); _iter564 != this->compacts.end(); ++_iter564) + std::vector ::const_iterator _iter400; + for (_iter400 = this->compacts.begin(); _iter400 != this->compacts.end(); ++_iter400) { - xfer += (*_iter564).write(oprot); + xfer += (*_iter400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12863,44 +9600,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other565) { - compacts = other565.compacts; -} -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other566) { - compacts = other566.compacts; - return *this; -} -void ShowCompactResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ShowCompactResponse("; - out << "compacts=" << to_string(compacts); - out << ")"; -} - - -AddDynamicPartitions::~AddDynamicPartitions() throw() { -} - - -void AddDynamicPartitions::__set_txnid(const int64_t val) { - this->txnid = val; -} - -void AddDynamicPartitions::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void AddDynamicPartitions::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void AddDynamicPartitions::__set_partitionnames(const std::vector & val) { - this->partitionnames = val; -} +const char* AddDynamicPartitions::ascii_fingerprint = "A53A2B050DCCFE6A2158480A24E33898"; +const uint8_t AddDynamicPartitions::binary_fingerprint[16] = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98}; uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -12951,14 +9655,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size567; - ::apache::thrift::protocol::TType _etype570; - xfer += iprot->readListBegin(_etype570, _size567); - this->partitionnames.resize(_size567); - uint32_t _i571; - for (_i571 = 0; _i571 < _size567; ++_i571) + uint32_t _size401; + ::apache::thrift::protocol::TType _etype404; + xfer += iprot->readListBegin(_etype404, _size401); + this->partitionnames.resize(_size401); + uint32_t _i405; + for (_i405 = 0; _i405 < _size401; ++_i405) { - xfer += iprot->readString(this->partitionnames[_i571]); + xfer += iprot->readString(this->partitionnames[_i405]); } xfer += iprot->readListEnd(); } @@ -12989,7 +9693,6 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AddDynamicPartitions"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); @@ -13007,10 +9710,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter572; - for (_iter572 = this->partitionnames.begin(); _iter572 != this->partitionnames.end(); ++_iter572) + std::vector ::const_iterator _iter406; + for (_iter406 = this->partitionnames.begin(); _iter406 != this->partitionnames.end(); ++_iter406) { - xfer += oprot->writeString((*_iter572)); + xfer += oprot->writeString((*_iter406)); } xfer += oprot->writeListEnd(); } @@ -13029,46 +9732,11 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.partitionnames, b.partitionnames); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other573) { - txnid = other573.txnid; - dbname = other573.dbname; - tablename = other573.tablename; - partitionnames = other573.partitionnames; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other574) { - txnid = other574.txnid; - dbname = other574.dbname; - tablename = other574.tablename; - partitionnames = other574.partitionnames; - return *this; -} -void AddDynamicPartitions::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AddDynamicPartitions("; - out << "txnid=" << to_string(txnid); - out << ", " << "dbname=" << to_string(dbname); - out << ", " << "tablename=" << to_string(tablename); - out << ", " << "partitionnames=" << to_string(partitionnames); - out << ")"; -} - - -NotificationEventRequest::~NotificationEventRequest() throw() { -} - - -void NotificationEventRequest::__set_lastEvent(const int64_t val) { - this->lastEvent = val; -} - -void NotificationEventRequest::__set_maxEvents(const int32_t val) { - this->maxEvents = val; -__isset.maxEvents = true; -} +const char* NotificationEventRequest::ascii_fingerprint = "6E578DA8AB10EED824A75534350EBAEF"; +const uint8_t NotificationEventRequest::binary_fingerprint[16] = {0x6E,0x57,0x8D,0xA8,0xAB,0x10,0xEE,0xD8,0x24,0xA7,0x55,0x34,0x35,0x0E,0xBA,0xEF}; uint32_t NotificationEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13120,7 +9788,6 @@ uint32_t NotificationEventRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t NotificationEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NotificationEventRequest"); xfer += oprot->writeFieldBegin("lastEvent", ::apache::thrift::protocol::T_I64, 1); @@ -13144,59 +9811,11 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other575) { - lastEvent = other575.lastEvent; - maxEvents = other575.maxEvents; - __isset = other575.__isset; -} -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other576) { - lastEvent = other576.lastEvent; - maxEvents = other576.maxEvents; - __isset = other576.__isset; - return *this; -} -void NotificationEventRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NotificationEventRequest("; - out << "lastEvent=" << to_string(lastEvent); - out << ", " << "maxEvents="; (__isset.maxEvents ? (out << to_string(maxEvents)) : (out << "")); - out << ")"; -} - - -NotificationEvent::~NotificationEvent() throw() { -} - - -void NotificationEvent::__set_eventId(const int64_t val) { - this->eventId = val; -} - -void NotificationEvent::__set_eventTime(const int32_t val) { - this->eventTime = val; -} - -void NotificationEvent::__set_eventType(const std::string& val) { - this->eventType = val; -} - -void NotificationEvent::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; -} - -void NotificationEvent::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; -} - -void NotificationEvent::__set_message(const std::string& val) { - this->message = val; -} +const char* NotificationEvent::ascii_fingerprint = "ACAF0036D9999F3A389F490F5E22D369"; +const uint8_t NotificationEvent::binary_fingerprint[16] = {0xAC,0xAF,0x00,0x36,0xD9,0x99,0x9F,0x3A,0x38,0x9F,0x49,0x0F,0x5E,0x22,0xD3,0x69}; uint32_t NotificationEvent::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13289,7 +9908,6 @@ uint32_t NotificationEvent::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t NotificationEvent::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NotificationEvent"); xfer += oprot->writeFieldBegin("eventId", ::apache::thrift::protocol::T_I64, 1); @@ -13334,49 +9952,11 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other577) { - eventId = other577.eventId; - eventTime = other577.eventTime; - eventType = other577.eventType; - dbName = other577.dbName; - tableName = other577.tableName; - message = other577.message; - __isset = other577.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other578) { - eventId = other578.eventId; - eventTime = other578.eventTime; - eventType = other578.eventType; - dbName = other578.dbName; - tableName = other578.tableName; - message = other578.message; - __isset = other578.__isset; - return *this; -} -void NotificationEvent::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NotificationEvent("; - out << "eventId=" << to_string(eventId); - out << ", " << "eventTime=" << to_string(eventTime); - out << ", " << "eventType=" << to_string(eventType); - out << ", " << "dbName="; (__isset.dbName ? (out << to_string(dbName)) : (out << "")); - out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); - out << ", " << "message=" << to_string(message); - out << ")"; -} - - -NotificationEventResponse::~NotificationEventResponse() throw() { -} - - -void NotificationEventResponse::__set_events(const std::vector & val) { - this->events = val; -} +const char* NotificationEventResponse::ascii_fingerprint = "EE3DB23399639114BCD1782A0FB01818"; +const uint8_t NotificationEventResponse::binary_fingerprint[16] = {0xEE,0x3D,0xB2,0x33,0x99,0x63,0x91,0x14,0xBC,0xD1,0x78,0x2A,0x0F,0xB0,0x18,0x18}; uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13400,14 +9980,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - this->events.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) + uint32_t _size407; + ::apache::thrift::protocol::TType _etype410; + xfer += iprot->readListBegin(_etype410, _size407); + this->events.resize(_size407); + uint32_t _i411; + for (_i411 = 0; _i411 < _size407; ++_i411) { - xfer += this->events[_i583].read(iprot); + xfer += this->events[_i411].read(iprot); } xfer += iprot->readListEnd(); } @@ -13432,16 +10012,15 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NotificationEventResponse"); xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter584; - for (_iter584 = this->events.begin(); _iter584 != this->events.end(); ++_iter584) + std::vector ::const_iterator _iter412; + for (_iter412 = this->events.begin(); _iter412 != this->events.end(); ++_iter412) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter412).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13457,32 +10036,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other585) { - events = other585.events; -} -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other586) { - events = other586.events; - return *this; -} -void NotificationEventResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NotificationEventResponse("; - out << "events=" << to_string(events); - out << ")"; -} - - -CurrentNotificationEventId::~CurrentNotificationEventId() throw() { -} - - -void CurrentNotificationEventId::__set_eventId(const int64_t val) { - this->eventId = val; -} +const char* CurrentNotificationEventId::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; +const uint8_t CurrentNotificationEventId::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; uint32_t CurrentNotificationEventId::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13526,7 +10084,6 @@ uint32_t CurrentNotificationEventId::read(::apache::thrift::protocol::TProtocol* uint32_t CurrentNotificationEventId::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CurrentNotificationEventId"); xfer += oprot->writeFieldBegin("eventId", ::apache::thrift::protocol::T_I64, 1); @@ -13543,32 +10100,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other587) { - eventId = other587.eventId; -} -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other588) { - eventId = other588.eventId; - return *this; -} -void CurrentNotificationEventId::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CurrentNotificationEventId("; - out << "eventId=" << to_string(eventId); - out << ")"; -} - - -InsertEventRequestData::~InsertEventRequestData() throw() { -} - - -void InsertEventRequestData::__set_filesAdded(const std::vector & val) { - this->filesAdded = val; -} +const char* InsertEventRequestData::ascii_fingerprint = "ACE4F644F0FDD289DDC4EE5B83BC13C0"; +const uint8_t InsertEventRequestData::binary_fingerprint[16] = {0xAC,0xE4,0xF6,0x44,0xF0,0xFD,0xD2,0x89,0xDD,0xC4,0xEE,0x5B,0x83,0xBC,0x13,0xC0}; uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13592,14 +10128,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size589; - ::apache::thrift::protocol::TType _etype592; - xfer += iprot->readListBegin(_etype592, _size589); - this->filesAdded.resize(_size589); - uint32_t _i593; - for (_i593 = 0; _i593 < _size589; ++_i593) + uint32_t _size413; + ::apache::thrift::protocol::TType _etype416; + xfer += iprot->readListBegin(_etype416, _size413); + this->filesAdded.resize(_size413); + uint32_t _i417; + for (_i417 = 0; _i417 < _size413; ++_i417) { - xfer += iprot->readString(this->filesAdded[_i593]); + xfer += iprot->readString(this->filesAdded[_i417]); } xfer += iprot->readListEnd(); } @@ -13624,16 +10160,15 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InsertEventRequestData"); xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter594; - for (_iter594 = this->filesAdded.begin(); _iter594 != this->filesAdded.end(); ++_iter594) + std::vector ::const_iterator _iter418; + for (_iter418 = this->filesAdded.begin(); _iter418 != this->filesAdded.end(); ++_iter418) { - xfer += oprot->writeString((*_iter594)); + xfer += oprot->writeString((*_iter418)); } xfer += oprot->writeListEnd(); } @@ -13649,32 +10184,11 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.filesAdded, b.filesAdded); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other595) { - filesAdded = other595.filesAdded; -} -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other596) { - filesAdded = other596.filesAdded; - return *this; -} -void InsertEventRequestData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InsertEventRequestData("; - out << "filesAdded=" << to_string(filesAdded); - out << ")"; -} - - -FireEventRequestData::~FireEventRequestData() throw() { -} - - -void FireEventRequestData::__set_insertData(const InsertEventRequestData& val) { - this->insertData = val; -} +const char* FireEventRequestData::ascii_fingerprint = "187E754B26707EE32451E6A27FB672CE"; +const uint8_t FireEventRequestData::binary_fingerprint[16] = {0x18,0x7E,0x75,0x4B,0x26,0x70,0x7E,0xE3,0x24,0x51,0xE6,0xA2,0x7F,0xB6,0x72,0xCE}; uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13715,7 +10229,6 @@ uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot uint32_t FireEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("FireEventRequestData"); xfer += oprot->writeFieldBegin("insertData", ::apache::thrift::protocol::T_STRUCT, 1); @@ -13733,53 +10246,11 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other597) { - insertData = other597.insertData; - __isset = other597.__isset; -} -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other598) { - insertData = other598.insertData; - __isset = other598.__isset; - return *this; -} -void FireEventRequestData::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "FireEventRequestData("; - out << "insertData=" << to_string(insertData); - out << ")"; -} - - -FireEventRequest::~FireEventRequest() throw() { -} - - -void FireEventRequest::__set_successful(const bool val) { - this->successful = val; -} - -void FireEventRequest::__set_data(const FireEventRequestData& val) { - this->data = val; -} - -void FireEventRequest::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; -} - -void FireEventRequest::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; -} - -void FireEventRequest::__set_partitionVals(const std::vector & val) { - this->partitionVals = val; -__isset.partitionVals = true; -} +const char* FireEventRequest::ascii_fingerprint = "1BA3A7F00159254072C3979B1429B50B"; +const uint8_t FireEventRequest::binary_fingerprint[16] = {0x1B,0xA3,0xA7,0xF0,0x01,0x59,0x25,0x40,0x72,0xC3,0x97,0x9B,0x14,0x29,0xB5,0x0B}; uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13836,14 +10307,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size599; - ::apache::thrift::protocol::TType _etype602; - xfer += iprot->readListBegin(_etype602, _size599); - this->partitionVals.resize(_size599); - uint32_t _i603; - for (_i603 = 0; _i603 < _size599; ++_i603) + uint32_t _size419; + ::apache::thrift::protocol::TType _etype422; + xfer += iprot->readListBegin(_etype422, _size419); + this->partitionVals.resize(_size419); + uint32_t _i423; + for (_i423 = 0; _i423 < _size419; ++_i423) { - xfer += iprot->readString(this->partitionVals[_i603]); + xfer += iprot->readString(this->partitionVals[_i423]); } xfer += iprot->readListEnd(); } @@ -13870,7 +10341,6 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("FireEventRequest"); xfer += oprot->writeFieldBegin("successful", ::apache::thrift::protocol::T_BOOL, 1); @@ -13895,10 +10365,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter604; - for (_iter604 = this->partitionVals.begin(); _iter604 != this->partitionVals.end(); ++_iter604) + std::vector ::const_iterator _iter424; + for (_iter424 = this->partitionVals.begin(); _iter424 != this->partitionVals.end(); ++_iter424) { - xfer += oprot->writeString((*_iter604)); + xfer += oprot->writeString((*_iter424)); } xfer += oprot->writeListEnd(); } @@ -13919,42 +10389,11 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other605) { - successful = other605.successful; - data = other605.data; - dbName = other605.dbName; - tableName = other605.tableName; - partitionVals = other605.partitionVals; - __isset = other605.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other606) { - successful = other606.successful; - data = other606.data; - dbName = other606.dbName; - tableName = other606.tableName; - partitionVals = other606.partitionVals; - __isset = other606.__isset; - return *this; -} -void FireEventRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "FireEventRequest("; - out << "successful=" << to_string(successful); - out << ", " << "data=" << to_string(data); - out << ", " << "dbName="; (__isset.dbName ? (out << to_string(dbName)) : (out << "")); - out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); - out << ", " << "partitionVals="; (__isset.partitionVals ? (out << to_string(partitionVals)) : (out << "")); - out << ")"; -} - - -FireEventResponse::~FireEventResponse() throw() { -} - +const char* FireEventResponse::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; +const uint8_t FireEventResponse::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -13982,7 +10421,6 @@ uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FireEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("FireEventResponse"); xfer += oprot->writeFieldStop(); @@ -13996,37 +10434,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other607) { - (void) other607; -} -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other608) { - (void) other608; - return *this; -} -void FireEventResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "FireEventResponse("; - out << ")"; -} - - -MetadataPpdResult::~MetadataPpdResult() throw() { -} - - -void MetadataPpdResult::__set_metadata(const std::string& val) { - this->metadata = val; -__isset.metadata = true; -} - -void MetadataPpdResult::__set_includeBitset(const std::string& val) { - this->includeBitset = val; -__isset.includeBitset = true; -} +const char* MetadataPpdResult::ascii_fingerprint = "D0297FC5011701BD87898CC36146A565"; +const uint8_t MetadataPpdResult::binary_fingerprint[16] = {0xD0,0x29,0x7F,0xC5,0x01,0x17,0x01,0xBD,0x87,0x89,0x8C,0xC3,0x61,0x46,0xA5,0x65}; uint32_t MetadataPpdResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14075,7 +10487,6 @@ uint32_t MetadataPpdResult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MetadataPpdResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("MetadataPpdResult"); if (this->__isset.metadata) { @@ -14100,41 +10511,11 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other609) { - metadata = other609.metadata; - includeBitset = other609.includeBitset; - __isset = other609.__isset; -} -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other610) { - metadata = other610.metadata; - includeBitset = other610.includeBitset; - __isset = other610.__isset; - return *this; -} -void MetadataPpdResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "MetadataPpdResult("; - out << "metadata="; (__isset.metadata ? (out << to_string(metadata)) : (out << "")); - out << ", " << "includeBitset="; (__isset.includeBitset ? (out << to_string(includeBitset)) : (out << "")); - out << ")"; -} - - -GetFileMetadataByExprResult::~GetFileMetadataByExprResult() throw() { -} - - -void GetFileMetadataByExprResult::__set_metadata(const std::map & val) { - this->metadata = val; -} - -void GetFileMetadataByExprResult::__set_isSupported(const bool val) { - this->isSupported = val; -} +const char* GetFileMetadataByExprResult::ascii_fingerprint = "9927698B8A2D476882C8F24E9919B943"; +const uint8_t GetFileMetadataByExprResult::binary_fingerprint[16] = {0x99,0x27,0x69,0x8B,0x8A,0x2D,0x47,0x68,0x82,0xC8,0xF2,0x4E,0x99,0x19,0xB9,0x43}; uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14159,17 +10540,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size611; - ::apache::thrift::protocol::TType _ktype612; - ::apache::thrift::protocol::TType _vtype613; - xfer += iprot->readMapBegin(_ktype612, _vtype613, _size611); - uint32_t _i615; - for (_i615 = 0; _i615 < _size611; ++_i615) + uint32_t _size425; + ::apache::thrift::protocol::TType _ktype426; + ::apache::thrift::protocol::TType _vtype427; + xfer += iprot->readMapBegin(_ktype426, _vtype427, _size425); + uint32_t _i429; + for (_i429 = 0; _i429 < _size425; ++_i429) { - int64_t _key616; - xfer += iprot->readI64(_key616); - MetadataPpdResult& _val617 = this->metadata[_key616]; - xfer += _val617.read(iprot); + int64_t _key430; + xfer += iprot->readI64(_key430); + MetadataPpdResult& _val431 = this->metadata[_key430]; + xfer += _val431.read(iprot); } xfer += iprot->readMapEnd(); } @@ -14204,17 +10585,16 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetFileMetadataByExprResult"); xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter618; - for (_iter618 = this->metadata.begin(); _iter618 != this->metadata.end(); ++_iter618) + std::map ::const_iterator _iter432; + for (_iter432 = this->metadata.begin(); _iter432 != this->metadata.end(); ++_iter432) { - xfer += oprot->writeI64(_iter618->first); - xfer += _iter618->second.write(oprot); + xfer += oprot->writeI64(_iter432->first); + xfer += _iter432->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -14235,49 +10615,11 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other619) { - metadata = other619.metadata; - isSupported = other619.isSupported; -} -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other620) { - metadata = other620.metadata; - isSupported = other620.isSupported; - return *this; -} -void GetFileMetadataByExprResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetFileMetadataByExprResult("; - out << "metadata=" << to_string(metadata); - out << ", " << "isSupported=" << to_string(isSupported); - out << ")"; -} - - -GetFileMetadataByExprRequest::~GetFileMetadataByExprRequest() throw() { -} - - -void GetFileMetadataByExprRequest::__set_fileIds(const std::vector & val) { - this->fileIds = val; -} - -void GetFileMetadataByExprRequest::__set_expr(const std::string& val) { - this->expr = val; -} - -void GetFileMetadataByExprRequest::__set_doGetFooters(const bool val) { - this->doGetFooters = val; -__isset.doGetFooters = true; -} - -void GetFileMetadataByExprRequest::__set_type(const FileMetadataExprType::type val) { - this->type = val; -__isset.type = true; -} +const char* GetFileMetadataByExprRequest::ascii_fingerprint = "0EC46840220832B58E8CCC6C1ABC857A"; +const uint8_t GetFileMetadataByExprRequest::binary_fingerprint[16] = {0x0E,0xC4,0x68,0x40,0x22,0x08,0x32,0xB5,0x8E,0x8C,0xCC,0x6C,0x1A,0xBC,0x85,0x7A}; uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14302,14 +10644,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size621; - ::apache::thrift::protocol::TType _etype624; - xfer += iprot->readListBegin(_etype624, _size621); - this->fileIds.resize(_size621); - uint32_t _i625; - for (_i625 = 0; _i625 < _size621; ++_i625) + uint32_t _size433; + ::apache::thrift::protocol::TType _etype436; + xfer += iprot->readListBegin(_etype436, _size433); + this->fileIds.resize(_size433); + uint32_t _i437; + for (_i437 = 0; _i437 < _size433; ++_i437) { - xfer += iprot->readI64(this->fileIds[_i625]); + xfer += iprot->readI64(this->fileIds[_i437]); } xfer += iprot->readListEnd(); } @@ -14336,9 +10678,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast626; - xfer += iprot->readI32(ecast626); - this->type = (FileMetadataExprType::type)ecast626; + int32_t ecast438; + xfer += iprot->readI32(ecast438); + this->type = (FileMetadataExprType::type)ecast438; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -14362,16 +10704,15 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetFileMetadataByExprRequest"); xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter627; - for (_iter627 = this->fileIds.begin(); _iter627 != this->fileIds.end(); ++_iter627) + std::vector ::const_iterator _iter439; + for (_iter439 = this->fileIds.begin(); _iter439 != this->fileIds.end(); ++_iter439) { - xfer += oprot->writeI64((*_iter627)); + xfer += oprot->writeI64((*_iter439)); } xfer += oprot->writeListEnd(); } @@ -14405,47 +10746,11 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other628) { - fileIds = other628.fileIds; - expr = other628.expr; - doGetFooters = other628.doGetFooters; - type = other628.type; - __isset = other628.__isset; -} -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other629) { - fileIds = other629.fileIds; - expr = other629.expr; - doGetFooters = other629.doGetFooters; - type = other629.type; - __isset = other629.__isset; - return *this; -} -void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetFileMetadataByExprRequest("; - out << "fileIds=" << to_string(fileIds); - out << ", " << "expr=" << to_string(expr); - out << ", " << "doGetFooters="; (__isset.doGetFooters ? (out << to_string(doGetFooters)) : (out << "")); - out << ", " << "type="; (__isset.type ? (out << to_string(type)) : (out << "")); - out << ")"; -} - - -GetFileMetadataResult::~GetFileMetadataResult() throw() { -} - - -void GetFileMetadataResult::__set_metadata(const std::map & val) { - this->metadata = val; -} - -void GetFileMetadataResult::__set_isSupported(const bool val) { - this->isSupported = val; -} +const char* GetFileMetadataResult::ascii_fingerprint = "D18BCBD4BA945E7F6500F5CD95205706"; +const uint8_t GetFileMetadataResult::binary_fingerprint[16] = {0xD1,0x8B,0xCB,0xD4,0xBA,0x94,0x5E,0x7F,0x65,0x00,0xF5,0xCD,0x95,0x20,0x57,0x06}; uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14470,17 +10775,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size630; - ::apache::thrift::protocol::TType _ktype631; - ::apache::thrift::protocol::TType _vtype632; - xfer += iprot->readMapBegin(_ktype631, _vtype632, _size630); - uint32_t _i634; - for (_i634 = 0; _i634 < _size630; ++_i634) + uint32_t _size440; + ::apache::thrift::protocol::TType _ktype441; + ::apache::thrift::protocol::TType _vtype442; + xfer += iprot->readMapBegin(_ktype441, _vtype442, _size440); + uint32_t _i444; + for (_i444 = 0; _i444 < _size440; ++_i444) { - int64_t _key635; - xfer += iprot->readI64(_key635); - std::string& _val636 = this->metadata[_key635]; - xfer += iprot->readBinary(_val636); + int64_t _key445; + xfer += iprot->readI64(_key445); + std::string& _val446 = this->metadata[_key445]; + xfer += iprot->readBinary(_val446); } xfer += iprot->readMapEnd(); } @@ -14515,17 +10820,16 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetFileMetadataResult"); xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter637; - for (_iter637 = this->metadata.begin(); _iter637 != this->metadata.end(); ++_iter637) + std::map ::const_iterator _iter447; + for (_iter447 = this->metadata.begin(); _iter447 != this->metadata.end(); ++_iter447) { - xfer += oprot->writeI64(_iter637->first); - xfer += oprot->writeBinary(_iter637->second); + xfer += oprot->writeI64(_iter447->first); + xfer += oprot->writeBinary(_iter447->second); } xfer += oprot->writeMapEnd(); } @@ -14546,35 +10850,11 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other638) { - metadata = other638.metadata; - isSupported = other638.isSupported; -} -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other639) { - metadata = other639.metadata; - isSupported = other639.isSupported; - return *this; -} -void GetFileMetadataResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetFileMetadataResult("; - out << "metadata=" << to_string(metadata); - out << ", " << "isSupported=" << to_string(isSupported); - out << ")"; -} - - -GetFileMetadataRequest::~GetFileMetadataRequest() throw() { -} - - -void GetFileMetadataRequest::__set_fileIds(const std::vector & val) { - this->fileIds = val; -} +const char* GetFileMetadataRequest::ascii_fingerprint = "E49D7D1A9013CC81CD0F69D631EF82E4"; +const uint8_t GetFileMetadataRequest::binary_fingerprint[16] = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14598,14 +10878,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size640; - ::apache::thrift::protocol::TType _etype643; - xfer += iprot->readListBegin(_etype643, _size640); - this->fileIds.resize(_size640); - uint32_t _i644; - for (_i644 = 0; _i644 < _size640; ++_i644) + uint32_t _size448; + ::apache::thrift::protocol::TType _etype451; + xfer += iprot->readListBegin(_etype451, _size448); + this->fileIds.resize(_size448); + uint32_t _i452; + for (_i452 = 0; _i452 < _size448; ++_i452) { - xfer += iprot->readI64(this->fileIds[_i644]); + xfer += iprot->readI64(this->fileIds[_i452]); } xfer += iprot->readListEnd(); } @@ -14630,16 +10910,15 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetFileMetadataRequest"); xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter645; - for (_iter645 = this->fileIds.begin(); _iter645 != this->fileIds.end(); ++_iter645) + std::vector ::const_iterator _iter453; + for (_iter453 = this->fileIds.begin(); _iter453 != this->fileIds.end(); ++_iter453) { - xfer += oprot->writeI64((*_iter645)); + xfer += oprot->writeI64((*_iter453)); } xfer += oprot->writeListEnd(); } @@ -14655,28 +10934,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other646) { - fileIds = other646.fileIds; -} -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other647) { - fileIds = other647.fileIds; - return *this; -} -void GetFileMetadataRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetFileMetadataRequest("; - out << "fileIds=" << to_string(fileIds); - out << ")"; -} - - -PutFileMetadataResult::~PutFileMetadataResult() throw() { -} - +const char* PutFileMetadataResult::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; +const uint8_t PutFileMetadataResult::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; uint32_t PutFileMetadataResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14704,7 +10966,6 @@ uint32_t PutFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro uint32_t PutFileMetadataResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PutFileMetadataResult"); xfer += oprot->writeFieldStop(); @@ -14718,40 +10979,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other648) { - (void) other648; -} -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other649) { - (void) other649; - return *this; -} -void PutFileMetadataResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PutFileMetadataResult("; - out << ")"; -} - - -PutFileMetadataRequest::~PutFileMetadataRequest() throw() { -} - - -void PutFileMetadataRequest::__set_fileIds(const std::vector & val) { - this->fileIds = val; -} - -void PutFileMetadataRequest::__set_metadata(const std::vector & val) { - this->metadata = val; -} - -void PutFileMetadataRequest::__set_type(const FileMetadataExprType::type val) { - this->type = val; -__isset.type = true; -} +const char* PutFileMetadataRequest::ascii_fingerprint = "84C9DF7C489B6AF0F0A15563B3AAB4A8"; +const uint8_t PutFileMetadataRequest::binary_fingerprint[16] = {0x84,0xC9,0xDF,0x7C,0x48,0x9B,0x6A,0xF0,0xF0,0xA1,0x55,0x63,0xB3,0xAA,0xB4,0xA8}; uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14776,14 +11008,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size650; - ::apache::thrift::protocol::TType _etype653; - xfer += iprot->readListBegin(_etype653, _size650); - this->fileIds.resize(_size650); - uint32_t _i654; - for (_i654 = 0; _i654 < _size650; ++_i654) + uint32_t _size454; + ::apache::thrift::protocol::TType _etype457; + xfer += iprot->readListBegin(_etype457, _size454); + this->fileIds.resize(_size454); + uint32_t _i458; + for (_i458 = 0; _i458 < _size454; ++_i458) { - xfer += iprot->readI64(this->fileIds[_i654]); + xfer += iprot->readI64(this->fileIds[_i458]); } xfer += iprot->readListEnd(); } @@ -14796,14 +11028,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size655; - ::apache::thrift::protocol::TType _etype658; - xfer += iprot->readListBegin(_etype658, _size655); - this->metadata.resize(_size655); - uint32_t _i659; - for (_i659 = 0; _i659 < _size655; ++_i659) + uint32_t _size459; + ::apache::thrift::protocol::TType _etype462; + xfer += iprot->readListBegin(_etype462, _size459); + this->metadata.resize(_size459); + uint32_t _i463; + for (_i463 = 0; _i463 < _size459; ++_i463) { - xfer += iprot->readBinary(this->metadata[_i659]); + xfer += iprot->readBinary(this->metadata[_i463]); } xfer += iprot->readListEnd(); } @@ -14814,9 +11046,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast660; - xfer += iprot->readI32(ecast660); - this->type = (FileMetadataExprType::type)ecast660; + int32_t ecast464; + xfer += iprot->readI32(ecast464); + this->type = (FileMetadataExprType::type)ecast464; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -14840,16 +11072,15 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PutFileMetadataRequest"); xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter661; - for (_iter661 = this->fileIds.begin(); _iter661 != this->fileIds.end(); ++_iter661) + std::vector ::const_iterator _iter465; + for (_iter465 = this->fileIds.begin(); _iter465 != this->fileIds.end(); ++_iter465) { - xfer += oprot->writeI64((*_iter661)); + xfer += oprot->writeI64((*_iter465)); } xfer += oprot->writeListEnd(); } @@ -14858,10 +11089,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter662; - for (_iter662 = this->metadata.begin(); _iter662 != this->metadata.end(); ++_iter662) + std::vector ::const_iterator _iter466; + for (_iter466 = this->metadata.begin(); _iter466 != this->metadata.end(); ++_iter466) { - xfer += oprot->writeBinary((*_iter662)); + xfer += oprot->writeBinary((*_iter466)); } xfer += oprot->writeListEnd(); } @@ -14885,36 +11116,11 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other663) { - fileIds = other663.fileIds; - metadata = other663.metadata; - type = other663.type; - __isset = other663.__isset; -} -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other664) { - fileIds = other664.fileIds; - metadata = other664.metadata; - type = other664.type; - __isset = other664.__isset; - return *this; -} -void PutFileMetadataRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PutFileMetadataRequest("; - out << "fileIds=" << to_string(fileIds); - out << ", " << "metadata=" << to_string(metadata); - out << ", " << "type="; (__isset.type ? (out << to_string(type)) : (out << "")); - out << ")"; -} - - -ClearFileMetadataResult::~ClearFileMetadataResult() throw() { -} - +const char* ClearFileMetadataResult::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; +const uint8_t ClearFileMetadataResult::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; uint32_t ClearFileMetadataResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -14942,7 +11148,6 @@ uint32_t ClearFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ip uint32_t ClearFileMetadataResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ClearFileMetadataResult"); xfer += oprot->writeFieldStop(); @@ -14950,37 +11155,17 @@ uint32_t ClearFileMetadataResult::write(::apache::thrift::protocol::TProtocol* o return xfer; } -void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { - using ::std::swap; - (void) a; - (void) b; -} - -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other665) { - (void) other665; -} -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other666) { - (void) other666; - return *this; -} -void ClearFileMetadataResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ClearFileMetadataResult("; - out << ")"; -} - - -ClearFileMetadataRequest::~ClearFileMetadataRequest() throw() { +void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { + using ::std::swap; + (void) a; + (void) b; } - -void ClearFileMetadataRequest::__set_fileIds(const std::vector & val) { - this->fileIds = val; -} +const char* ClearFileMetadataRequest::ascii_fingerprint = "E49D7D1A9013CC81CD0F69D631EF82E4"; +const uint8_t ClearFileMetadataRequest::binary_fingerprint[16] = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15004,14 +11189,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size667; - ::apache::thrift::protocol::TType _etype670; - xfer += iprot->readListBegin(_etype670, _size667); - this->fileIds.resize(_size667); - uint32_t _i671; - for (_i671 = 0; _i671 < _size667; ++_i671) + uint32_t _size467; + ::apache::thrift::protocol::TType _etype470; + xfer += iprot->readListBegin(_etype470, _size467); + this->fileIds.resize(_size467); + uint32_t _i471; + for (_i471 = 0; _i471 < _size467; ++_i471) { - xfer += iprot->readI64(this->fileIds[_i671]); + xfer += iprot->readI64(this->fileIds[_i471]); } xfer += iprot->readListEnd(); } @@ -15036,16 +11221,15 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ClearFileMetadataRequest"); xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter672; - for (_iter672 = this->fileIds.begin(); _iter672 != this->fileIds.end(); ++_iter672) + std::vector ::const_iterator _iter472; + for (_iter472 = this->fileIds.begin(); _iter472 != this->fileIds.end(); ++_iter472) { - xfer += oprot->writeI64((*_iter672)); + xfer += oprot->writeI64((*_iter472)); } xfer += oprot->writeListEnd(); } @@ -15061,32 +11245,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other673) { - fileIds = other673.fileIds; -} -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other674) { - fileIds = other674.fileIds; - return *this; -} -void ClearFileMetadataRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ClearFileMetadataRequest("; - out << "fileIds=" << to_string(fileIds); - out << ")"; -} - - -CacheFileMetadataResult::~CacheFileMetadataResult() throw() { -} - - -void CacheFileMetadataResult::__set_isSupported(const bool val) { - this->isSupported = val; -} +const char* CacheFileMetadataResult::ascii_fingerprint = "5892306F7B861249AE8E27C8ED619593"; +const uint8_t CacheFileMetadataResult::binary_fingerprint[16] = {0x58,0x92,0x30,0x6F,0x7B,0x86,0x12,0x49,0xAE,0x8E,0x27,0xC8,0xED,0x61,0x95,0x93}; uint32_t CacheFileMetadataResult::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15130,7 +11293,6 @@ uint32_t CacheFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ip uint32_t CacheFileMetadataResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CacheFileMetadataResult"); xfer += oprot->writeFieldBegin("isSupported", ::apache::thrift::protocol::T_BOOL, 1); @@ -15147,46 +11309,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other675) { - isSupported = other675.isSupported; -} -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other676) { - isSupported = other676.isSupported; - return *this; -} -void CacheFileMetadataResult::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CacheFileMetadataResult("; - out << "isSupported=" << to_string(isSupported); - out << ")"; -} - - -CacheFileMetadataRequest::~CacheFileMetadataRequest() throw() { -} - - -void CacheFileMetadataRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void CacheFileMetadataRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void CacheFileMetadataRequest::__set_partName(const std::string& val) { - this->partName = val; -__isset.partName = true; -} - -void CacheFileMetadataRequest::__set_isAllParts(const bool val) { - this->isAllParts = val; -__isset.isAllParts = true; -} +const char* CacheFileMetadataRequest::ascii_fingerprint = "5EE8D1150A9AC521F957F973D03D5878"; +const uint8_t CacheFileMetadataRequest::binary_fingerprint[16] = {0x5E,0xE8,0xD1,0x15,0x0A,0x9A,0xC5,0x21,0xF9,0x57,0xF9,0x73,0xD0,0x3D,0x58,0x78}; uint32_t CacheFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15257,7 +11384,6 @@ uint32_t CacheFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t CacheFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("CacheFileMetadataRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -15292,44 +11418,11 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other677) { - dbName = other677.dbName; - tblName = other677.tblName; - partName = other677.partName; - isAllParts = other677.isAllParts; - __isset = other677.__isset; -} -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other678) { - dbName = other678.dbName; - tblName = other678.tblName; - partName = other678.partName; - isAllParts = other678.isAllParts; - __isset = other678.__isset; - return *this; -} -void CacheFileMetadataRequest::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "CacheFileMetadataRequest("; - out << "dbName=" << to_string(dbName); - out << ", " << "tblName=" << to_string(tblName); - out << ", " << "partName="; (__isset.partName ? (out << to_string(partName)) : (out << "")); - out << ", " << "isAllParts="; (__isset.isAllParts ? (out << to_string(isAllParts)) : (out << "")); - out << ")"; -} - - -GetAllFunctionsResponse::~GetAllFunctionsResponse() throw() { -} - - -void GetAllFunctionsResponse::__set_functions(const std::vector & val) { - this->functions = val; -__isset.functions = true; -} +const char* GetAllFunctionsResponse::ascii_fingerprint = "CEE0CA1D7402D4135EF7F42C0F0E0A68"; +const uint8_t GetAllFunctionsResponse::binary_fingerprint[16] = {0xCE,0xE0,0xCA,0x1D,0x74,0x02,0xD4,0x13,0x5E,0xF7,0xF4,0x2C,0x0F,0x0E,0x0A,0x68}; uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15352,14 +11445,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size679; - ::apache::thrift::protocol::TType _etype682; - xfer += iprot->readListBegin(_etype682, _size679); - this->functions.resize(_size679); - uint32_t _i683; - for (_i683 = 0; _i683 < _size679; ++_i683) + uint32_t _size473; + ::apache::thrift::protocol::TType _etype476; + xfer += iprot->readListBegin(_etype476, _size473); + this->functions.resize(_size473); + uint32_t _i477; + for (_i477 = 0; _i477 < _size473; ++_i477) { - xfer += this->functions[_i683].read(iprot); + xfer += this->functions[_i477].read(iprot); } xfer += iprot->readListEnd(); } @@ -15382,17 +11475,16 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("GetAllFunctionsResponse"); if (this->__isset.functions) { xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter684; - for (_iter684 = this->functions.begin(); _iter684 != this->functions.end(); ++_iter684) + std::vector ::const_iterator _iter478; + for (_iter478 = this->functions.begin(); _iter478 != this->functions.end(); ++_iter478) { - xfer += (*_iter684).write(oprot); + xfer += (*_iter478).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15409,47 +11501,11 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other685) { - functions = other685.functions; - __isset = other685.__isset; -} -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other686) { - functions = other686.functions; - __isset = other686.__isset; - return *this; -} -void GetAllFunctionsResponse::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GetAllFunctionsResponse("; - out << "functions="; (__isset.functions ? (out << to_string(functions)) : (out << "")); - out << ")"; -} - - -TableMeta::~TableMeta() throw() { -} - - -void TableMeta::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void TableMeta::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void TableMeta::__set_tableType(const std::string& val) { - this->tableType = val; -} - -void TableMeta::__set_comments(const std::string& val) { - this->comments = val; -__isset.comments = true; -} +const char* TableMeta::ascii_fingerprint = "2748901DF3E03B56075825ABF0FCFD25"; +const uint8_t TableMeta::binary_fingerprint[16] = {0x27,0x48,0x90,0x1D,0xF3,0xE0,0x3B,0x56,0x07,0x58,0x25,0xAB,0xF0,0xFC,0xFD,0x25}; uint32_t TableMeta::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15523,7 +11579,6 @@ uint32_t TableMeta::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TableMeta::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TableMeta"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -15557,43 +11612,11 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other687) { - dbName = other687.dbName; - tableName = other687.tableName; - tableType = other687.tableType; - comments = other687.comments; - __isset = other687.__isset; -} -TableMeta& TableMeta::operator=(const TableMeta& other688) { - dbName = other688.dbName; - tableName = other688.tableName; - tableType = other688.tableType; - comments = other688.comments; - __isset = other688.__isset; - return *this; -} -void TableMeta::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TableMeta("; - out << "dbName=" << to_string(dbName); - out << ", " << "tableName=" << to_string(tableName); - out << ", " << "tableType=" << to_string(tableType); - out << ", " << "comments="; (__isset.comments ? (out << to_string(comments)) : (out << "")); - out << ")"; -} - - -MetaException::~MetaException() throw() { -} - - -void MetaException::__set_message(const std::string& val) { - this->message = val; -} +const char* MetaException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t MetaException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t MetaException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15634,7 +11657,6 @@ uint32_t MetaException::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MetaException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("MetaException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15652,45 +11674,11 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other689) : TException() { - message = other689.message; - __isset = other689.__isset; -} -MetaException& MetaException::operator=(const MetaException& other690) { - message = other690.message; - __isset = other690.__isset; - return *this; -} -void MetaException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "MetaException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* MetaException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: MetaException"; - } -} - - -UnknownTableException::~UnknownTableException() throw() { -} - - -void UnknownTableException::__set_message(const std::string& val) { - this->message = val; -} +const char* UnknownTableException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t UnknownTableException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t UnknownTableException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15731,7 +11719,6 @@ uint32_t UnknownTableException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t UnknownTableException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("UnknownTableException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15749,45 +11736,11 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other691) : TException() { - message = other691.message; - __isset = other691.__isset; -} -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other692) { - message = other692.message; - __isset = other692.__isset; - return *this; -} -void UnknownTableException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "UnknownTableException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* UnknownTableException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: UnknownTableException"; - } -} - - -UnknownDBException::~UnknownDBException() throw() { -} - - -void UnknownDBException::__set_message(const std::string& val) { - this->message = val; -} +const char* UnknownDBException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t UnknownDBException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t UnknownDBException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15828,7 +11781,6 @@ uint32_t UnknownDBException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t UnknownDBException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("UnknownDBException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15846,45 +11798,11 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other693) : TException() { - message = other693.message; - __isset = other693.__isset; -} -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other694) { - message = other694.message; - __isset = other694.__isset; - return *this; -} -void UnknownDBException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "UnknownDBException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* UnknownDBException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: UnknownDBException"; - } -} - - -AlreadyExistsException::~AlreadyExistsException() throw() { -} - - -void AlreadyExistsException::__set_message(const std::string& val) { - this->message = val; -} +const char* AlreadyExistsException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t AlreadyExistsException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t AlreadyExistsException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -15925,7 +11843,6 @@ uint32_t AlreadyExistsException::read(::apache::thrift::protocol::TProtocol* ipr uint32_t AlreadyExistsException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("AlreadyExistsException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15943,45 +11860,11 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other695) : TException() { - message = other695.message; - __isset = other695.__isset; -} -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other696) { - message = other696.message; - __isset = other696.__isset; - return *this; -} -void AlreadyExistsException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "AlreadyExistsException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* AlreadyExistsException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: AlreadyExistsException"; - } -} - - -InvalidPartitionException::~InvalidPartitionException() throw() { -} - - -void InvalidPartitionException::__set_message(const std::string& val) { - this->message = val; -} +const char* InvalidPartitionException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t InvalidPartitionException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t InvalidPartitionException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16022,7 +11905,6 @@ uint32_t InvalidPartitionException::read(::apache::thrift::protocol::TProtocol* uint32_t InvalidPartitionException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InvalidPartitionException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16040,45 +11922,11 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other697) : TException() { - message = other697.message; - __isset = other697.__isset; -} -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other698) { - message = other698.message; - __isset = other698.__isset; - return *this; -} -void InvalidPartitionException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InvalidPartitionException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* InvalidPartitionException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: InvalidPartitionException"; - } -} - - -UnknownPartitionException::~UnknownPartitionException() throw() { -} - - -void UnknownPartitionException::__set_message(const std::string& val) { - this->message = val; -} +const char* UnknownPartitionException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t UnknownPartitionException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t UnknownPartitionException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16119,7 +11967,6 @@ uint32_t UnknownPartitionException::read(::apache::thrift::protocol::TProtocol* uint32_t UnknownPartitionException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("UnknownPartitionException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16137,45 +11984,11 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other699) : TException() { - message = other699.message; - __isset = other699.__isset; -} -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other700) { - message = other700.message; - __isset = other700.__isset; - return *this; -} -void UnknownPartitionException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "UnknownPartitionException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* UnknownPartitionException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: UnknownPartitionException"; - } -} - - -InvalidObjectException::~InvalidObjectException() throw() { -} - - -void InvalidObjectException::__set_message(const std::string& val) { - this->message = val; -} +const char* InvalidObjectException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t InvalidObjectException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t InvalidObjectException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16216,7 +12029,6 @@ uint32_t InvalidObjectException::read(::apache::thrift::protocol::TProtocol* ipr uint32_t InvalidObjectException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InvalidObjectException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16234,45 +12046,11 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other701) : TException() { - message = other701.message; - __isset = other701.__isset; -} -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other702) { - message = other702.message; - __isset = other702.__isset; - return *this; -} -void InvalidObjectException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InvalidObjectException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* InvalidObjectException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: InvalidObjectException"; - } -} - - -NoSuchObjectException::~NoSuchObjectException() throw() { -} - - -void NoSuchObjectException::__set_message(const std::string& val) { - this->message = val; -} +const char* NoSuchObjectException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t NoSuchObjectException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t NoSuchObjectException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16313,7 +12091,6 @@ uint32_t NoSuchObjectException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t NoSuchObjectException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NoSuchObjectException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16331,45 +12108,11 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other703) : TException() { - message = other703.message; - __isset = other703.__isset; -} -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other704) { - message = other704.message; - __isset = other704.__isset; - return *this; -} -void NoSuchObjectException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NoSuchObjectException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* NoSuchObjectException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: NoSuchObjectException"; - } -} - - -IndexAlreadyExistsException::~IndexAlreadyExistsException() throw() { -} - - -void IndexAlreadyExistsException::__set_message(const std::string& val) { - this->message = val; -} +const char* IndexAlreadyExistsException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t IndexAlreadyExistsException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t IndexAlreadyExistsException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16410,7 +12153,6 @@ uint32_t IndexAlreadyExistsException::read(::apache::thrift::protocol::TProtocol uint32_t IndexAlreadyExistsException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("IndexAlreadyExistsException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16428,45 +12170,11 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other705) : TException() { - message = other705.message; - __isset = other705.__isset; -} -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other706) { - message = other706.message; - __isset = other706.__isset; - return *this; -} -void IndexAlreadyExistsException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "IndexAlreadyExistsException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* IndexAlreadyExistsException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: IndexAlreadyExistsException"; - } -} - - -InvalidOperationException::~InvalidOperationException() throw() { -} - - -void InvalidOperationException::__set_message(const std::string& val) { - this->message = val; -} +const char* InvalidOperationException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t InvalidOperationException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t InvalidOperationException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16507,7 +12215,6 @@ uint32_t InvalidOperationException::read(::apache::thrift::protocol::TProtocol* uint32_t InvalidOperationException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InvalidOperationException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16525,45 +12232,11 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other707) : TException() { - message = other707.message; - __isset = other707.__isset; -} -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other708) { - message = other708.message; - __isset = other708.__isset; - return *this; -} -void InvalidOperationException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InvalidOperationException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* InvalidOperationException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: InvalidOperationException"; - } -} - - -ConfigValSecurityException::~ConfigValSecurityException() throw() { -} - - -void ConfigValSecurityException::__set_message(const std::string& val) { - this->message = val; -} +const char* ConfigValSecurityException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t ConfigValSecurityException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t ConfigValSecurityException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16604,7 +12277,6 @@ uint32_t ConfigValSecurityException::read(::apache::thrift::protocol::TProtocol* uint32_t ConfigValSecurityException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ConfigValSecurityException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16622,45 +12294,11 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other709) : TException() { - message = other709.message; - __isset = other709.__isset; -} -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other710) { - message = other710.message; - __isset = other710.__isset; - return *this; -} -void ConfigValSecurityException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ConfigValSecurityException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* ConfigValSecurityException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: ConfigValSecurityException"; - } -} - - -InvalidInputException::~InvalidInputException() throw() { -} - - -void InvalidInputException::__set_message(const std::string& val) { - this->message = val; -} +const char* InvalidInputException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t InvalidInputException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t InvalidInputException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16701,7 +12339,6 @@ uint32_t InvalidInputException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t InvalidInputException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InvalidInputException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16719,45 +12356,11 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other711) : TException() { - message = other711.message; - __isset = other711.__isset; -} -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other712) { - message = other712.message; - __isset = other712.__isset; - return *this; -} -void InvalidInputException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InvalidInputException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* InvalidInputException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: InvalidInputException"; - } -} - - -NoSuchTxnException::~NoSuchTxnException() throw() { -} - - -void NoSuchTxnException::__set_message(const std::string& val) { - this->message = val; -} +const char* NoSuchTxnException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t NoSuchTxnException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t NoSuchTxnException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16798,7 +12401,6 @@ uint32_t NoSuchTxnException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t NoSuchTxnException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NoSuchTxnException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16816,45 +12418,11 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other713) : TException() { - message = other713.message; - __isset = other713.__isset; -} -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other714) { - message = other714.message; - __isset = other714.__isset; - return *this; -} -void NoSuchTxnException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NoSuchTxnException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* NoSuchTxnException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: NoSuchTxnException"; - } -} - - -TxnAbortedException::~TxnAbortedException() throw() { -} - - -void TxnAbortedException::__set_message(const std::string& val) { - this->message = val; -} +const char* TxnAbortedException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t TxnAbortedException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t TxnAbortedException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16895,7 +12463,6 @@ uint32_t TxnAbortedException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TxnAbortedException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TxnAbortedException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -16913,45 +12480,11 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other715) : TException() { - message = other715.message; - __isset = other715.__isset; -} -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other716) { - message = other716.message; - __isset = other716.__isset; - return *this; -} -void TxnAbortedException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TxnAbortedException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* TxnAbortedException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: TxnAbortedException"; - } -} - - -TxnOpenException::~TxnOpenException() throw() { -} - - -void TxnOpenException::__set_message(const std::string& val) { - this->message = val; -} +const char* TxnOpenException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t TxnOpenException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t TxnOpenException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -16992,7 +12525,6 @@ uint32_t TxnOpenException::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TxnOpenException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TxnOpenException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -17010,45 +12542,11 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other717) : TException() { - message = other717.message; - __isset = other717.__isset; -} -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other718) { - message = other718.message; - __isset = other718.__isset; - return *this; -} -void TxnOpenException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TxnOpenException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* TxnOpenException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: TxnOpenException"; - } -} - - -NoSuchLockException::~NoSuchLockException() throw() { -} - - -void NoSuchLockException::__set_message(const std::string& val) { - this->message = val; -} +const char* NoSuchLockException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t NoSuchLockException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t NoSuchLockException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -17089,7 +12587,6 @@ uint32_t NoSuchLockException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t NoSuchLockException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("NoSuchLockException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -17107,31 +12604,4 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other719) : TException() { - message = other719.message; - __isset = other719.__isset; -} -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other720) { - message = other720.message; - __isset = other720.__isset; - return *this; -} -void NoSuchLockException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "NoSuchLockException("; - out << "message=" << to_string(message); - out << ")"; -} - -const char* NoSuchLockException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: NoSuchLockException"; - } -} - }}} // namespace diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 97d3362..5d18863 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef hive_metastore_TYPES_H #define hive_metastore_TYPES_H -#include - #include #include #include #include -#include #include "fb303_types.h" @@ -145,271 +142,35 @@ struct FileMetadataExprType { extern const std::map _FileMetadataExprType_VALUES_TO_NAMES; -class Version; - -class FieldSchema; - -class Type; - -class HiveObjectRef; - -class PrivilegeGrantInfo; - -class HiveObjectPrivilege; - -class PrivilegeBag; - -class PrincipalPrivilegeSet; - -class GrantRevokePrivilegeRequest; - -class GrantRevokePrivilegeResponse; - -class Role; - -class RolePrincipalGrant; - -class GetRoleGrantsForPrincipalRequest; - -class GetRoleGrantsForPrincipalResponse; - -class GetPrincipalsInRoleRequest; - -class GetPrincipalsInRoleResponse; - -class GrantRevokeRoleRequest; - -class GrantRevokeRoleResponse; - -class Database; - -class SerDeInfo; - -class Order; - -class SkewedInfo; - -class StorageDescriptor; - -class Table; - -class Partition; - -class PartitionWithoutSD; - -class PartitionSpecWithSharedSD; - -class PartitionListComposingSpec; - -class PartitionSpec; - -class Index; - -class BooleanColumnStatsData; - -class DoubleColumnStatsData; - -class LongColumnStatsData; - -class StringColumnStatsData; - -class BinaryColumnStatsData; - -class Decimal; - -class DecimalColumnStatsData; - -class Date; - -class DateColumnStatsData; - -class ColumnStatisticsData; - -class ColumnStatisticsObj; - -class ColumnStatisticsDesc; - -class ColumnStatistics; - -class AggrStats; - -class SetPartitionsStatsRequest; - -class Schema; - -class EnvironmentContext; - -class PartitionsByExprResult; - -class PartitionsByExprRequest; - -class TableStatsResult; - -class PartitionsStatsResult; - -class TableStatsRequest; - -class PartitionsStatsRequest; - -class AddPartitionsResult; - -class AddPartitionsRequest; - -class DropPartitionsResult; - -class DropPartitionsExpr; - -class RequestPartsSpec; - -class DropPartitionsRequest; - -class ResourceUri; - -class Function; - -class TxnInfo; - -class GetOpenTxnsInfoResponse; - -class GetOpenTxnsResponse; - -class OpenTxnRequest; - -class OpenTxnsResponse; - -class AbortTxnRequest; - -class CommitTxnRequest; - -class LockComponent; - -class LockRequest; - -class LockResponse; - -class CheckLockRequest; - -class UnlockRequest; - -class ShowLocksRequest; - -class ShowLocksResponseElement; - -class ShowLocksResponse; - -class HeartbeatRequest; - -class HeartbeatTxnRangeRequest; - -class HeartbeatTxnRangeResponse; - -class CompactionRequest; - -class ShowCompactRequest; - -class ShowCompactResponseElement; - -class ShowCompactResponse; - -class AddDynamicPartitions; - -class NotificationEventRequest; - -class NotificationEvent; - -class NotificationEventResponse; - -class CurrentNotificationEventId; - -class InsertEventRequestData; - -class FireEventRequestData; - -class FireEventRequest; - -class FireEventResponse; - -class MetadataPpdResult; - -class GetFileMetadataByExprResult; - -class GetFileMetadataByExprRequest; - -class GetFileMetadataResult; - -class GetFileMetadataRequest; - -class PutFileMetadataResult; - -class PutFileMetadataRequest; - -class ClearFileMetadataResult; - -class ClearFileMetadataRequest; - -class CacheFileMetadataResult; - -class CacheFileMetadataRequest; - -class GetAllFunctionsResponse; - -class TableMeta; - -class MetaException; - -class UnknownTableException; - -class UnknownDBException; - -class AlreadyExistsException; - -class InvalidPartitionException; - -class UnknownPartitionException; - -class InvalidObjectException; - -class NoSuchObjectException; - -class IndexAlreadyExistsException; - -class InvalidOperationException; - -class ConfigValSecurityException; - -class InvalidInputException; - -class NoSuchTxnException; - -class TxnAbortedException; - -class TxnOpenException; - -class NoSuchLockException; - typedef struct _Version__isset { _Version__isset() : version(false), comments(false) {} - bool version :1; - bool comments :1; + bool version; + bool comments; } _Version__isset; class Version { public: - Version(const Version&); - Version& operator=(const Version&); + static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; + static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + Version() : version(), comments() { } - virtual ~Version() throw(); + virtual ~Version() throw() {} + std::string version; std::string comments; _Version__isset __isset; - void __set_version(const std::string& val); + void __set_version(const std::string& val) { + version = val; + } - void __set_comments(const std::string& val); + void __set_comments(const std::string& val) { + comments = val; + } bool operator == (const Version & rhs) const { @@ -428,44 +189,45 @@ class Version { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Version &a, Version &b); -inline std::ostream& operator<<(std::ostream& out, const Version& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _FieldSchema__isset { _FieldSchema__isset() : name(false), type(false), comment(false) {} - bool name :1; - bool type :1; - bool comment :1; + bool name; + bool type; + bool comment; } _FieldSchema__isset; class FieldSchema { public: - FieldSchema(const FieldSchema&); - FieldSchema& operator=(const FieldSchema&); + static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; + static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + FieldSchema() : name(), type(), comment() { } - virtual ~FieldSchema() throw(); + virtual ~FieldSchema() throw() {} + std::string name; std::string type; std::string comment; _FieldSchema__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_type(const std::string& val); + void __set_type(const std::string& val) { + type = val; + } - void __set_comment(const std::string& val); + void __set_comment(const std::string& val) { + comment = val; + } bool operator == (const FieldSchema & rhs) const { @@ -486,34 +248,29 @@ class FieldSchema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(FieldSchema &a, FieldSchema &b); -inline std::ostream& operator<<(std::ostream& out, const FieldSchema& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} - bool name :1; - bool type1 :1; - bool type2 :1; - bool fields :1; + bool name; + bool type1; + bool type2; + bool fields; } _Type__isset; class Type { public: - Type(const Type&); - Type& operator=(const Type&); + static const char* ascii_fingerprint; // = "20DF02DE523C27F7066C7BD4D9120842"; + static const uint8_t binary_fingerprint[16]; // = {0x20,0xDF,0x02,0xDE,0x52,0x3C,0x27,0xF7,0x06,0x6C,0x7B,0xD4,0xD9,0x12,0x08,0x42}; + Type() : name(), type1(), type2() { } - virtual ~Type() throw(); + virtual ~Type() throw() {} + std::string name; std::string type1; std::string type2; @@ -521,13 +278,24 @@ class Type { _Type__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_type1(const std::string& val); + void __set_type1(const std::string& val) { + type1 = val; + __isset.type1 = true; + } - void __set_type2(const std::string& val); + void __set_type2(const std::string& val) { + type2 = val; + __isset.type2 = true; + } - void __set_fields(const std::vector & val); + void __set_fields(const std::vector & val) { + fields = val; + __isset.fields = true; + } bool operator == (const Type & rhs) const { @@ -556,35 +324,30 @@ class Type { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Type &a, Type &b); -inline std::ostream& operator<<(std::ostream& out, const Type& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _HiveObjectRef__isset { _HiveObjectRef__isset() : objectType(false), dbName(false), objectName(false), partValues(false), columnName(false) {} - bool objectType :1; - bool dbName :1; - bool objectName :1; - bool partValues :1; - bool columnName :1; + bool objectType; + bool dbName; + bool objectName; + bool partValues; + bool columnName; } _HiveObjectRef__isset; class HiveObjectRef { public: - HiveObjectRef(const HiveObjectRef&); - HiveObjectRef& operator=(const HiveObjectRef&); + static const char* ascii_fingerprint; // = "205CD8311CF3AA9EC161BAEF8D7C933C"; + static const uint8_t binary_fingerprint[16]; // = {0x20,0x5C,0xD8,0x31,0x1C,0xF3,0xAA,0x9E,0xC1,0x61,0xBA,0xEF,0x8D,0x7C,0x93,0x3C}; + HiveObjectRef() : objectType((HiveObjectType::type)0), dbName(), objectName(), columnName() { } - virtual ~HiveObjectRef() throw(); + virtual ~HiveObjectRef() throw() {} + HiveObjectType::type objectType; std::string dbName; std::string objectName; @@ -593,15 +356,25 @@ class HiveObjectRef { _HiveObjectRef__isset __isset; - void __set_objectType(const HiveObjectType::type val); + void __set_objectType(const HiveObjectType::type val) { + objectType = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_objectName(const std::string& val); + void __set_objectName(const std::string& val) { + objectName = val; + } - void __set_partValues(const std::vector & val); + void __set_partValues(const std::vector & val) { + partValues = val; + } - void __set_columnName(const std::string& val); + void __set_columnName(const std::string& val) { + columnName = val; + } bool operator == (const HiveObjectRef & rhs) const { @@ -626,35 +399,30 @@ class HiveObjectRef { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HiveObjectRef &a, HiveObjectRef &b); -inline std::ostream& operator<<(std::ostream& out, const HiveObjectRef& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PrivilegeGrantInfo__isset { _PrivilegeGrantInfo__isset() : privilege(false), createTime(false), grantor(false), grantorType(false), grantOption(false) {} - bool privilege :1; - bool createTime :1; - bool grantor :1; - bool grantorType :1; - bool grantOption :1; + bool privilege; + bool createTime; + bool grantor; + bool grantorType; + bool grantOption; } _PrivilegeGrantInfo__isset; class PrivilegeGrantInfo { public: - PrivilegeGrantInfo(const PrivilegeGrantInfo&); - PrivilegeGrantInfo& operator=(const PrivilegeGrantInfo&); + static const char* ascii_fingerprint; // = "A58923AF7294BE492D6F90E07E8CEE1F"; + static const uint8_t binary_fingerprint[16]; // = {0xA5,0x89,0x23,0xAF,0x72,0x94,0xBE,0x49,0x2D,0x6F,0x90,0xE0,0x7E,0x8C,0xEE,0x1F}; + PrivilegeGrantInfo() : privilege(), createTime(0), grantor(), grantorType((PrincipalType::type)0), grantOption(0) { } - virtual ~PrivilegeGrantInfo() throw(); + virtual ~PrivilegeGrantInfo() throw() {} + std::string privilege; int32_t createTime; std::string grantor; @@ -663,15 +431,25 @@ class PrivilegeGrantInfo { _PrivilegeGrantInfo__isset __isset; - void __set_privilege(const std::string& val); + void __set_privilege(const std::string& val) { + privilege = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + } bool operator == (const PrivilegeGrantInfo & rhs) const { @@ -696,34 +474,29 @@ class PrivilegeGrantInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b); -inline std::ostream& operator<<(std::ostream& out, const PrivilegeGrantInfo& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _HiveObjectPrivilege__isset { _HiveObjectPrivilege__isset() : hiveObject(false), principalName(false), principalType(false), grantInfo(false) {} - bool hiveObject :1; - bool principalName :1; - bool principalType :1; - bool grantInfo :1; + bool hiveObject; + bool principalName; + bool principalType; + bool grantInfo; } _HiveObjectPrivilege__isset; class HiveObjectPrivilege { public: - HiveObjectPrivilege(const HiveObjectPrivilege&); - HiveObjectPrivilege& operator=(const HiveObjectPrivilege&); + static const char* ascii_fingerprint; // = "83D71969B23BD853E29DBA9D43B29AF8"; + static const uint8_t binary_fingerprint[16]; // = {0x83,0xD7,0x19,0x69,0xB2,0x3B,0xD8,0x53,0xE2,0x9D,0xBA,0x9D,0x43,0xB2,0x9A,0xF8}; + HiveObjectPrivilege() : principalName(), principalType((PrincipalType::type)0) { } - virtual ~HiveObjectPrivilege() throw(); + virtual ~HiveObjectPrivilege() throw() {} + HiveObjectRef hiveObject; std::string principalName; PrincipalType::type principalType; @@ -731,13 +504,21 @@ class HiveObjectPrivilege { _HiveObjectPrivilege__isset __isset; - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantInfo(const PrivilegeGrantInfo& val); + void __set_grantInfo(const PrivilegeGrantInfo& val) { + grantInfo = val; + } bool operator == (const HiveObjectPrivilege & rhs) const { @@ -760,36 +541,33 @@ class HiveObjectPrivilege { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b); -inline std::ostream& operator<<(std::ostream& out, const HiveObjectPrivilege& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PrivilegeBag__isset { _PrivilegeBag__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _PrivilegeBag__isset; class PrivilegeBag { public: - PrivilegeBag(const PrivilegeBag&); - PrivilegeBag& operator=(const PrivilegeBag&); + static const char* ascii_fingerprint; // = "BB89E4701B7B709B046A74C90B1147F2"; + static const uint8_t binary_fingerprint[16]; // = {0xBB,0x89,0xE4,0x70,0x1B,0x7B,0x70,0x9B,0x04,0x6A,0x74,0xC9,0x0B,0x11,0x47,0xF2}; + PrivilegeBag() { } - virtual ~PrivilegeBag() throw(); + virtual ~PrivilegeBag() throw() {} + std::vector privileges; _PrivilegeBag__isset __isset; - void __set_privileges(const std::vector & val); + void __set_privileges(const std::vector & val) { + privileges = val; + } bool operator == (const PrivilegeBag & rhs) const { @@ -806,44 +584,45 @@ class PrivilegeBag { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PrivilegeBag &a, PrivilegeBag &b); -inline std::ostream& operator<<(std::ostream& out, const PrivilegeBag& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PrincipalPrivilegeSet__isset { _PrincipalPrivilegeSet__isset() : userPrivileges(false), groupPrivileges(false), rolePrivileges(false) {} - bool userPrivileges :1; - bool groupPrivileges :1; - bool rolePrivileges :1; + bool userPrivileges; + bool groupPrivileges; + bool rolePrivileges; } _PrincipalPrivilegeSet__isset; class PrincipalPrivilegeSet { public: - PrincipalPrivilegeSet(const PrincipalPrivilegeSet&); - PrincipalPrivilegeSet& operator=(const PrincipalPrivilegeSet&); + static const char* ascii_fingerprint; // = "08F75D2533906EA87BE34EA640856683"; + static const uint8_t binary_fingerprint[16]; // = {0x08,0xF7,0x5D,0x25,0x33,0x90,0x6E,0xA8,0x7B,0xE3,0x4E,0xA6,0x40,0x85,0x66,0x83}; + PrincipalPrivilegeSet() { } - virtual ~PrincipalPrivilegeSet() throw(); + virtual ~PrincipalPrivilegeSet() throw() {} + std::map > userPrivileges; std::map > groupPrivileges; std::map > rolePrivileges; _PrincipalPrivilegeSet__isset __isset; - void __set_userPrivileges(const std::map > & val); + void __set_userPrivileges(const std::map > & val) { + userPrivileges = val; + } - void __set_groupPrivileges(const std::map > & val); + void __set_groupPrivileges(const std::map > & val) { + groupPrivileges = val; + } - void __set_rolePrivileges(const std::map > & val); + void __set_rolePrivileges(const std::map > & val) { + rolePrivileges = val; + } bool operator == (const PrincipalPrivilegeSet & rhs) const { @@ -864,44 +643,46 @@ class PrincipalPrivilegeSet { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b); -inline std::ostream& operator<<(std::ostream& out, const PrincipalPrivilegeSet& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GrantRevokePrivilegeRequest__isset { _GrantRevokePrivilegeRequest__isset() : requestType(false), privileges(false), revokeGrantOption(false) {} - bool requestType :1; - bool privileges :1; - bool revokeGrantOption :1; + bool requestType; + bool privileges; + bool revokeGrantOption; } _GrantRevokePrivilegeRequest__isset; class GrantRevokePrivilegeRequest { public: - GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest&); - GrantRevokePrivilegeRequest& operator=(const GrantRevokePrivilegeRequest&); + static const char* ascii_fingerprint; // = "DF474A3CB526AD40DC0F2C3702F7AA2C"; + static const uint8_t binary_fingerprint[16]; // = {0xDF,0x47,0x4A,0x3C,0xB5,0x26,0xAD,0x40,0xDC,0x0F,0x2C,0x37,0x02,0xF7,0xAA,0x2C}; + GrantRevokePrivilegeRequest() : requestType((GrantRevokeType::type)0), revokeGrantOption(0) { } - virtual ~GrantRevokePrivilegeRequest() throw(); + virtual ~GrantRevokePrivilegeRequest() throw() {} + GrantRevokeType::type requestType; PrivilegeBag privileges; bool revokeGrantOption; _GrantRevokePrivilegeRequest__isset __isset; - void __set_requestType(const GrantRevokeType::type val); + void __set_requestType(const GrantRevokeType::type val) { + requestType = val; + } - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } - void __set_revokeGrantOption(const bool val); + void __set_revokeGrantOption(const bool val) { + revokeGrantOption = val; + __isset.revokeGrantOption = true; + } bool operator == (const GrantRevokePrivilegeRequest & rhs) const { @@ -924,36 +705,34 @@ class GrantRevokePrivilegeRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GrantRevokePrivilegeResponse__isset { _GrantRevokePrivilegeResponse__isset() : success(false) {} - bool success :1; + bool success; } _GrantRevokePrivilegeResponse__isset; class GrantRevokePrivilegeResponse { public: - GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse&); - GrantRevokePrivilegeResponse& operator=(const GrantRevokePrivilegeResponse&); + static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; + static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; + GrantRevokePrivilegeResponse() : success(0) { } - virtual ~GrantRevokePrivilegeResponse() throw(); + virtual ~GrantRevokePrivilegeResponse() throw() {} + bool success; _GrantRevokePrivilegeResponse__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + __isset.success = true; + } bool operator == (const GrantRevokePrivilegeResponse & rhs) const { @@ -972,44 +751,45 @@ class GrantRevokePrivilegeResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Role__isset { _Role__isset() : roleName(false), createTime(false), ownerName(false) {} - bool roleName :1; - bool createTime :1; - bool ownerName :1; + bool roleName; + bool createTime; + bool ownerName; } _Role__isset; class Role { public: - Role(const Role&); - Role& operator=(const Role&); + static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26"; + static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; + Role() : roleName(), createTime(0), ownerName() { } - virtual ~Role() throw(); + virtual ~Role() throw() {} + std::string roleName; int32_t createTime; std::string ownerName; _Role__isset __isset; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + } bool operator == (const Role & rhs) const { @@ -1030,37 +810,32 @@ class Role { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Role &a, Role &b); -inline std::ostream& operator<<(std::ostream& out, const Role& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _RolePrincipalGrant__isset { _RolePrincipalGrant__isset() : roleName(false), principalName(false), principalType(false), grantOption(false), grantTime(false), grantorName(false), grantorPrincipalType(false) {} - bool roleName :1; - bool principalName :1; - bool principalType :1; - bool grantOption :1; - bool grantTime :1; - bool grantorName :1; - bool grantorPrincipalType :1; + bool roleName; + bool principalName; + bool principalType; + bool grantOption; + bool grantTime; + bool grantorName; + bool grantorPrincipalType; } _RolePrincipalGrant__isset; class RolePrincipalGrant { public: - RolePrincipalGrant(const RolePrincipalGrant&); - RolePrincipalGrant& operator=(const RolePrincipalGrant&); + static const char* ascii_fingerprint; // = "899BA3F6214DD1B79D27206BA857C772"; + static const uint8_t binary_fingerprint[16]; // = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; + RolePrincipalGrant() : roleName(), principalName(), principalType((PrincipalType::type)0), grantOption(0), grantTime(0), grantorName(), grantorPrincipalType((PrincipalType::type)0) { } - virtual ~RolePrincipalGrant() throw(); + virtual ~RolePrincipalGrant() throw() {} + std::string roleName; std::string principalName; PrincipalType::type principalType; @@ -1071,19 +846,33 @@ class RolePrincipalGrant { _RolePrincipalGrant__isset __isset; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + } - void __set_grantTime(const int32_t val); + void __set_grantTime(const int32_t val) { + grantTime = val; + } - void __set_grantorName(const std::string& val); + void __set_grantorName(const std::string& val) { + grantorName = val; + } - void __set_grantorPrincipalType(const PrincipalType::type val); + void __set_grantorPrincipalType(const PrincipalType::type val) { + grantorPrincipalType = val; + } bool operator == (const RolePrincipalGrant & rhs) const { @@ -1112,33 +901,32 @@ class RolePrincipalGrant { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(RolePrincipalGrant &a, RolePrincipalGrant &b); -inline std::ostream& operator<<(std::ostream& out, const RolePrincipalGrant& obj) -{ - obj.printTo(out); - return out; -} - class GetRoleGrantsForPrincipalRequest { public: - GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest&); - GetRoleGrantsForPrincipalRequest& operator=(const GetRoleGrantsForPrincipalRequest&); + static const char* ascii_fingerprint; // = "D6FD826D949221396F4FFC3ECCD3D192"; + static const uint8_t binary_fingerprint[16]; // = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; + GetRoleGrantsForPrincipalRequest() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~GetRoleGrantsForPrincipalRequest() throw(); + virtual ~GetRoleGrantsForPrincipalRequest() throw() {} + std::string principal_name; PrincipalType::type principal_type; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const GetRoleGrantsForPrincipalRequest & rhs) const { @@ -1157,30 +945,27 @@ class GetRoleGrantsForPrincipalRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalRequest& obj) -{ - obj.printTo(out); - return out; -} - class GetRoleGrantsForPrincipalResponse { public: - GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse&); - GetRoleGrantsForPrincipalResponse& operator=(const GetRoleGrantsForPrincipalResponse&); + static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690"; + static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; + GetRoleGrantsForPrincipalResponse() { } - virtual ~GetRoleGrantsForPrincipalResponse() throw(); + virtual ~GetRoleGrantsForPrincipalResponse() throw() {} + std::vector principalGrants; - void __set_principalGrants(const std::vector & val); + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } bool operator == (const GetRoleGrantsForPrincipalResponse & rhs) const { @@ -1197,30 +982,27 @@ class GetRoleGrantsForPrincipalResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalResponse& obj) -{ - obj.printTo(out); - return out; -} - class GetPrincipalsInRoleRequest { public: - GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest&); - GetPrincipalsInRoleRequest& operator=(const GetPrincipalsInRoleRequest&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + GetPrincipalsInRoleRequest() : roleName() { } - virtual ~GetPrincipalsInRoleRequest() throw(); + virtual ~GetPrincipalsInRoleRequest() throw() {} + std::string roleName; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } bool operator == (const GetPrincipalsInRoleRequest & rhs) const { @@ -1237,30 +1019,27 @@ class GetPrincipalsInRoleRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleRequest& obj) -{ - obj.printTo(out); - return out; -} - class GetPrincipalsInRoleResponse { public: - GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse&); - GetPrincipalsInRoleResponse& operator=(const GetPrincipalsInRoleResponse&); + static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690"; + static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; + GetPrincipalsInRoleResponse() { } - virtual ~GetPrincipalsInRoleResponse() throw(); + virtual ~GetPrincipalsInRoleResponse() throw() {} + std::vector principalGrants; - void __set_principalGrants(const std::vector & val); + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } bool operator == (const GetPrincipalsInRoleResponse & rhs) const { @@ -1277,37 +1056,32 @@ class GetPrincipalsInRoleResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GrantRevokeRoleRequest__isset { _GrantRevokeRoleRequest__isset() : requestType(false), roleName(false), principalName(false), principalType(false), grantor(false), grantorType(false), grantOption(false) {} - bool requestType :1; - bool roleName :1; - bool principalName :1; - bool principalType :1; - bool grantor :1; - bool grantorType :1; - bool grantOption :1; + bool requestType; + bool roleName; + bool principalName; + bool principalType; + bool grantor; + bool grantorType; + bool grantOption; } _GrantRevokeRoleRequest__isset; class GrantRevokeRoleRequest { public: - GrantRevokeRoleRequest(const GrantRevokeRoleRequest&); - GrantRevokeRoleRequest& operator=(const GrantRevokeRoleRequest&); + static const char* ascii_fingerprint; // = "907DEA796F2BA7AF76DC2566E75FAEE7"; + static const uint8_t binary_fingerprint[16]; // = {0x90,0x7D,0xEA,0x79,0x6F,0x2B,0xA7,0xAF,0x76,0xDC,0x25,0x66,0xE7,0x5F,0xAE,0xE7}; + GrantRevokeRoleRequest() : requestType((GrantRevokeType::type)0), roleName(), principalName(), principalType((PrincipalType::type)0), grantor(), grantorType((PrincipalType::type)0), grantOption(0) { } - virtual ~GrantRevokeRoleRequest() throw(); + virtual ~GrantRevokeRoleRequest() throw() {} + GrantRevokeType::type requestType; std::string roleName; std::string principalName; @@ -1318,19 +1092,36 @@ class GrantRevokeRoleRequest { _GrantRevokeRoleRequest__isset __isset; - void __set_requestType(const GrantRevokeType::type val); + void __set_requestType(const GrantRevokeType::type val) { + requestType = val; + } - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + __isset.grantor = true; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + __isset.grantorType = true; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + __isset.grantOption = true; + } bool operator == (const GrantRevokeRoleRequest & rhs) const { @@ -1365,36 +1156,34 @@ class GrantRevokeRoleRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GrantRevokeRoleResponse__isset { _GrantRevokeRoleResponse__isset() : success(false) {} - bool success :1; + bool success; } _GrantRevokeRoleResponse__isset; class GrantRevokeRoleResponse { public: - GrantRevokeRoleResponse(const GrantRevokeRoleResponse&); - GrantRevokeRoleResponse& operator=(const GrantRevokeRoleResponse&); + static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; + static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; + GrantRevokeRoleResponse() : success(0) { } - virtual ~GrantRevokeRoleResponse() throw(); + virtual ~GrantRevokeRoleResponse() throw() {} + bool success; _GrantRevokeRoleResponse__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + __isset.success = true; + } bool operator == (const GrantRevokeRoleResponse & rhs) const { @@ -1413,37 +1202,32 @@ class GrantRevokeRoleResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Database__isset { _Database__isset() : name(false), description(false), locationUri(false), parameters(false), privileges(false), ownerName(false), ownerType(false) {} - bool name :1; - bool description :1; - bool locationUri :1; - bool parameters :1; - bool privileges :1; - bool ownerName :1; - bool ownerType :1; + bool name; + bool description; + bool locationUri; + bool parameters; + bool privileges; + bool ownerName; + bool ownerType; } _Database__isset; class Database { public: - Database(const Database&); - Database& operator=(const Database&); + static const char* ascii_fingerprint; // = "553495CAE243A1C583D5C3DD990AED53"; + static const uint8_t binary_fingerprint[16]; // = {0x55,0x34,0x95,0xCA,0xE2,0x43,0xA1,0xC5,0x83,0xD5,0xC3,0xDD,0x99,0x0A,0xED,0x53}; + Database() : name(), description(), locationUri(), ownerName(), ownerType((PrincipalType::type)0) { } - virtual ~Database() throw(); + virtual ~Database() throw() {} + std::string name; std::string description; std::string locationUri; @@ -1454,19 +1238,36 @@ class Database { _Database__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_description(const std::string& val); + void __set_description(const std::string& val) { + description = val; + } - void __set_locationUri(const std::string& val); + void __set_locationUri(const std::string& val) { + locationUri = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + __isset.ownerName = true; + } - void __set_ownerType(const PrincipalType::type val); + void __set_ownerType(const PrincipalType::type val) { + ownerType = val; + __isset.ownerType = true; + } bool operator == (const Database & rhs) const { @@ -1501,44 +1302,45 @@ class Database { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Database &a, Database &b); -inline std::ostream& operator<<(std::ostream& out, const Database& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _SerDeInfo__isset { _SerDeInfo__isset() : name(false), serializationLib(false), parameters(false) {} - bool name :1; - bool serializationLib :1; - bool parameters :1; + bool name; + bool serializationLib; + bool parameters; } _SerDeInfo__isset; class SerDeInfo { public: - SerDeInfo(const SerDeInfo&); - SerDeInfo& operator=(const SerDeInfo&); + static const char* ascii_fingerprint; // = "B1021C32A35A2AEFCD2F57A5424159A7"; + static const uint8_t binary_fingerprint[16]; // = {0xB1,0x02,0x1C,0x32,0xA3,0x5A,0x2A,0xEF,0xCD,0x2F,0x57,0xA5,0x42,0x41,0x59,0xA7}; + SerDeInfo() : name(), serializationLib() { } - virtual ~SerDeInfo() throw(); + virtual ~SerDeInfo() throw() {} + std::string name; std::string serializationLib; std::map parameters; _SerDeInfo__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_serializationLib(const std::string& val); + void __set_serializationLib(const std::string& val) { + serializationLib = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } bool operator == (const SerDeInfo & rhs) const { @@ -1559,40 +1361,39 @@ class SerDeInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(SerDeInfo &a, SerDeInfo &b); -inline std::ostream& operator<<(std::ostream& out, const SerDeInfo& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Order__isset { _Order__isset() : col(false), order(false) {} - bool col :1; - bool order :1; + bool col; + bool order; } _Order__isset; class Order { public: - Order(const Order&); - Order& operator=(const Order&); + static const char* ascii_fingerprint; // = "EEBC915CE44901401D881E6091423036"; + static const uint8_t binary_fingerprint[16]; // = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36}; + Order() : col(), order(0) { } - virtual ~Order() throw(); + virtual ~Order() throw() {} + std::string col; int32_t order; _Order__isset __isset; - void __set_col(const std::string& val); + void __set_col(const std::string& val) { + col = val; + } - void __set_order(const int32_t val); + void __set_order(const int32_t val) { + order = val; + } bool operator == (const Order & rhs) const { @@ -1611,44 +1412,45 @@ class Order { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Order &a, Order &b); -inline std::ostream& operator<<(std::ostream& out, const Order& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _SkewedInfo__isset { _SkewedInfo__isset() : skewedColNames(false), skewedColValues(false), skewedColValueLocationMaps(false) {} - bool skewedColNames :1; - bool skewedColValues :1; - bool skewedColValueLocationMaps :1; + bool skewedColNames; + bool skewedColValues; + bool skewedColValueLocationMaps; } _SkewedInfo__isset; class SkewedInfo { public: - SkewedInfo(const SkewedInfo&); - SkewedInfo& operator=(const SkewedInfo&); + static const char* ascii_fingerprint; // = "4BF2ED84BC3C3EB297A2AE2FA8427EB1"; + static const uint8_t binary_fingerprint[16]; // = {0x4B,0xF2,0xED,0x84,0xBC,0x3C,0x3E,0xB2,0x97,0xA2,0xAE,0x2F,0xA8,0x42,0x7E,0xB1}; + SkewedInfo() { } - virtual ~SkewedInfo() throw(); + virtual ~SkewedInfo() throw() {} + std::vector skewedColNames; std::vector > skewedColValues; std::map , std::string> skewedColValueLocationMaps; _SkewedInfo__isset __isset; - void __set_skewedColNames(const std::vector & val); + void __set_skewedColNames(const std::vector & val) { + skewedColNames = val; + } - void __set_skewedColValues(const std::vector > & val); + void __set_skewedColValues(const std::vector > & val) { + skewedColValues = val; + } - void __set_skewedColValueLocationMaps(const std::map , std::string> & val); + void __set_skewedColValueLocationMaps(const std::map , std::string> & val) { + skewedColValueLocationMaps = val; + } bool operator == (const SkewedInfo & rhs) const { @@ -1669,42 +1471,37 @@ class SkewedInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(SkewedInfo &a, SkewedInfo &b); -inline std::ostream& operator<<(std::ostream& out, const SkewedInfo& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _StorageDescriptor__isset { _StorageDescriptor__isset() : cols(false), location(false), inputFormat(false), outputFormat(false), compressed(false), numBuckets(false), serdeInfo(false), bucketCols(false), sortCols(false), parameters(false), skewedInfo(false), storedAsSubDirectories(false) {} - bool cols :1; - bool location :1; - bool inputFormat :1; - bool outputFormat :1; - bool compressed :1; - bool numBuckets :1; - bool serdeInfo :1; - bool bucketCols :1; - bool sortCols :1; - bool parameters :1; - bool skewedInfo :1; - bool storedAsSubDirectories :1; + bool cols; + bool location; + bool inputFormat; + bool outputFormat; + bool compressed; + bool numBuckets; + bool serdeInfo; + bool bucketCols; + bool sortCols; + bool parameters; + bool skewedInfo; + bool storedAsSubDirectories; } _StorageDescriptor__isset; class StorageDescriptor { public: - StorageDescriptor(const StorageDescriptor&); - StorageDescriptor& operator=(const StorageDescriptor&); + static const char* ascii_fingerprint; // = "CA8C9AA5FE4C32643757D8639CEF0CD7"; + static const uint8_t binary_fingerprint[16]; // = {0xCA,0x8C,0x9A,0xA5,0xFE,0x4C,0x32,0x64,0x37,0x57,0xD8,0x63,0x9C,0xEF,0x0C,0xD7}; + StorageDescriptor() : location(), inputFormat(), outputFormat(), compressed(0), numBuckets(0), storedAsSubDirectories(0) { } - virtual ~StorageDescriptor() throw(); + virtual ~StorageDescriptor() throw() {} + std::vector cols; std::string location; std::string inputFormat; @@ -1720,29 +1517,55 @@ class StorageDescriptor { _StorageDescriptor__isset __isset; - void __set_cols(const std::vector & val); + void __set_cols(const std::vector & val) { + cols = val; + } - void __set_location(const std::string& val); + void __set_location(const std::string& val) { + location = val; + } - void __set_inputFormat(const std::string& val); + void __set_inputFormat(const std::string& val) { + inputFormat = val; + } - void __set_outputFormat(const std::string& val); + void __set_outputFormat(const std::string& val) { + outputFormat = val; + } - void __set_compressed(const bool val); + void __set_compressed(const bool val) { + compressed = val; + } - void __set_numBuckets(const int32_t val); + void __set_numBuckets(const int32_t val) { + numBuckets = val; + } - void __set_serdeInfo(const SerDeInfo& val); + void __set_serdeInfo(const SerDeInfo& val) { + serdeInfo = val; + } - void __set_bucketCols(const std::vector & val); + void __set_bucketCols(const std::vector & val) { + bucketCols = val; + } - void __set_sortCols(const std::vector & val); + void __set_sortCols(const std::vector & val) { + sortCols = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_skewedInfo(const SkewedInfo& val); + void __set_skewedInfo(const SkewedInfo& val) { + skewedInfo = val; + __isset.skewedInfo = true; + } - void __set_storedAsSubDirectories(const bool val); + void __set_storedAsSubDirectories(const bool val) { + storedAsSubDirectories = val; + __isset.storedAsSubDirectories = true; + } bool operator == (const StorageDescriptor & rhs) const { @@ -1785,44 +1608,39 @@ class StorageDescriptor { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(StorageDescriptor &a, StorageDescriptor &b); -inline std::ostream& operator<<(std::ostream& out, const StorageDescriptor& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Table__isset { _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true) {} - bool tableName :1; - bool dbName :1; - bool owner :1; - bool createTime :1; - bool lastAccessTime :1; - bool retention :1; - bool sd :1; - bool partitionKeys :1; - bool parameters :1; - bool viewOriginalText :1; - bool viewExpandedText :1; - bool tableType :1; - bool privileges :1; - bool temporary :1; + bool tableName; + bool dbName; + bool owner; + bool createTime; + bool lastAccessTime; + bool retention; + bool sd; + bool partitionKeys; + bool parameters; + bool viewOriginalText; + bool viewExpandedText; + bool tableType; + bool privileges; + bool temporary; } _Table__isset; class Table { public: - Table(const Table&); - Table& operator=(const Table&); + static const char* ascii_fingerprint; // = "29EFB2A5970EF572039E5D94CC78AA85"; + static const uint8_t binary_fingerprint[16]; // = {0x29,0xEF,0xB2,0xA5,0x97,0x0E,0xF5,0x72,0x03,0x9E,0x5D,0x94,0xCC,0x78,0xAA,0x85}; + Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false) { } - virtual ~Table() throw(); + virtual ~Table() throw() {} + std::string tableName; std::string dbName; std::string owner; @@ -1840,33 +1658,63 @@ class Table { _Table__isset __isset; - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_owner(const std::string& val); + void __set_owner(const std::string& val) { + owner = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_retention(const int32_t val); + void __set_retention(const int32_t val) { + retention = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_partitionKeys(const std::vector & val); + void __set_partitionKeys(const std::vector & val) { + partitionKeys = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_viewOriginalText(const std::string& val); + void __set_viewOriginalText(const std::string& val) { + viewOriginalText = val; + } - void __set_viewExpandedText(const std::string& val); + void __set_viewExpandedText(const std::string& val) { + viewExpandedText = val; + } - void __set_tableType(const std::string& val); + void __set_tableType(const std::string& val) { + tableType = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } - void __set_temporary(const bool val); + void __set_temporary(const bool val) { + temporary = val; + __isset.temporary = true; + } bool operator == (const Table & rhs) const { @@ -1913,38 +1761,33 @@ class Table { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Table &a, Table &b); -inline std::ostream& operator<<(std::ostream& out, const Table& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Partition__isset { _Partition__isset() : values(false), dbName(false), tableName(false), createTime(false), lastAccessTime(false), sd(false), parameters(false), privileges(false) {} - bool values :1; - bool dbName :1; - bool tableName :1; - bool createTime :1; - bool lastAccessTime :1; - bool sd :1; - bool parameters :1; - bool privileges :1; + bool values; + bool dbName; + bool tableName; + bool createTime; + bool lastAccessTime; + bool sd; + bool parameters; + bool privileges; } _Partition__isset; class Partition { public: - Partition(const Partition&); - Partition& operator=(const Partition&); + static const char* ascii_fingerprint; // = "31A52241B88A426C34087FE38343FF51"; + static const uint8_t binary_fingerprint[16]; // = {0x31,0xA5,0x22,0x41,0xB8,0x8A,0x42,0x6C,0x34,0x08,0x7F,0xE3,0x83,0x43,0xFF,0x51}; + Partition() : dbName(), tableName(), createTime(0), lastAccessTime(0) { } - virtual ~Partition() throw(); + virtual ~Partition() throw() {} + std::vector values; std::string dbName; std::string tableName; @@ -1956,21 +1799,38 @@ class Partition { _Partition__isset __isset; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } bool operator == (const Partition & rhs) const { @@ -2003,36 +1863,31 @@ class Partition { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Partition &a, Partition &b); -inline std::ostream& operator<<(std::ostream& out, const Partition& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PartitionWithoutSD__isset { _PartitionWithoutSD__isset() : values(false), createTime(false), lastAccessTime(false), relativePath(false), parameters(false), privileges(false) {} - bool values :1; - bool createTime :1; - bool lastAccessTime :1; - bool relativePath :1; - bool parameters :1; - bool privileges :1; + bool values; + bool createTime; + bool lastAccessTime; + bool relativePath; + bool parameters; + bool privileges; } _PartitionWithoutSD__isset; class PartitionWithoutSD { public: - PartitionWithoutSD(const PartitionWithoutSD&); - PartitionWithoutSD& operator=(const PartitionWithoutSD&); + static const char* ascii_fingerprint; // = "D79FA44499888D0E50B5625E0C536DEA"; + static const uint8_t binary_fingerprint[16]; // = {0xD7,0x9F,0xA4,0x44,0x99,0x88,0x8D,0x0E,0x50,0xB5,0x62,0x5E,0x0C,0x53,0x6D,0xEA}; + PartitionWithoutSD() : createTime(0), lastAccessTime(0), relativePath() { } - virtual ~PartitionWithoutSD() throw(); + virtual ~PartitionWithoutSD() throw() {} + std::vector values; int32_t createTime; int32_t lastAccessTime; @@ -2042,17 +1897,30 @@ class PartitionWithoutSD { _PartitionWithoutSD__isset __isset; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_relativePath(const std::string& val); + void __set_relativePath(const std::string& val) { + relativePath = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } bool operator == (const PartitionWithoutSD & rhs) const { @@ -2081,40 +1949,39 @@ class PartitionWithoutSD { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionWithoutSD &a, PartitionWithoutSD &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionWithoutSD& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PartitionSpecWithSharedSD__isset { _PartitionSpecWithSharedSD__isset() : partitions(false), sd(false) {} - bool partitions :1; - bool sd :1; + bool partitions; + bool sd; } _PartitionSpecWithSharedSD__isset; class PartitionSpecWithSharedSD { public: - PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD&); - PartitionSpecWithSharedSD& operator=(const PartitionSpecWithSharedSD&); + static const char* ascii_fingerprint; // = "7BEE9305B42DCD083FF06BEE6DDC61CF"; + static const uint8_t binary_fingerprint[16]; // = {0x7B,0xEE,0x93,0x05,0xB4,0x2D,0xCD,0x08,0x3F,0xF0,0x6B,0xEE,0x6D,0xDC,0x61,0xCF}; + PartitionSpecWithSharedSD() { } - virtual ~PartitionSpecWithSharedSD() throw(); + virtual ~PartitionSpecWithSharedSD() throw() {} + std::vector partitions; StorageDescriptor sd; _PartitionSpecWithSharedSD__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } bool operator == (const PartitionSpecWithSharedSD & rhs) const { @@ -2133,36 +2000,33 @@ class PartitionSpecWithSharedSD { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionSpecWithSharedSD& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PartitionListComposingSpec__isset { _PartitionListComposingSpec__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _PartitionListComposingSpec__isset; class PartitionListComposingSpec { public: - PartitionListComposingSpec(const PartitionListComposingSpec&); - PartitionListComposingSpec& operator=(const PartitionListComposingSpec&); + static const char* ascii_fingerprint; // = "A048235CB9A257C8A74E3691BEFE0674"; + static const uint8_t binary_fingerprint[16]; // = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; + PartitionListComposingSpec() { } - virtual ~PartitionListComposingSpec() throw(); + virtual ~PartitionListComposingSpec() throw() {} + std::vector partitions; _PartitionListComposingSpec__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } bool operator == (const PartitionListComposingSpec & rhs) const { @@ -2179,35 +2043,30 @@ class PartitionListComposingSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionListComposingSpec& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PartitionSpec__isset { _PartitionSpec__isset() : dbName(false), tableName(false), rootPath(false), sharedSDPartitionSpec(false), partitionList(false) {} - bool dbName :1; - bool tableName :1; - bool rootPath :1; - bool sharedSDPartitionSpec :1; - bool partitionList :1; + bool dbName; + bool tableName; + bool rootPath; + bool sharedSDPartitionSpec; + bool partitionList; } _PartitionSpec__isset; class PartitionSpec { public: - PartitionSpec(const PartitionSpec&); - PartitionSpec& operator=(const PartitionSpec&); + static const char* ascii_fingerprint; // = "C3F548C24D072CF6422F25096143E3E8"; + static const uint8_t binary_fingerprint[16]; // = {0xC3,0xF5,0x48,0xC2,0x4D,0x07,0x2C,0xF6,0x42,0x2F,0x25,0x09,0x61,0x43,0xE3,0xE8}; + PartitionSpec() : dbName(), tableName(), rootPath() { } - virtual ~PartitionSpec() throw(); + virtual ~PartitionSpec() throw() {} + std::string dbName; std::string tableName; std::string rootPath; @@ -2216,15 +2075,27 @@ class PartitionSpec { _PartitionSpec__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_rootPath(const std::string& val); + void __set_rootPath(const std::string& val) { + rootPath = val; + } - void __set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val); + void __set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val) { + sharedSDPartitionSpec = val; + __isset.sharedSDPartitionSpec = true; + } - void __set_partitionList(const PartitionListComposingSpec& val); + void __set_partitionList(const PartitionListComposingSpec& val) { + partitionList = val; + __isset.partitionList = true; + } bool operator == (const PartitionSpec & rhs) const { @@ -2253,40 +2124,35 @@ class PartitionSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionSpec &a, PartitionSpec &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionSpec& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Index__isset { _Index__isset() : indexName(false), indexHandlerClass(false), dbName(false), origTableName(false), createTime(false), lastAccessTime(false), indexTableName(false), sd(false), parameters(false), deferredRebuild(false) {} - bool indexName :1; - bool indexHandlerClass :1; - bool dbName :1; - bool origTableName :1; - bool createTime :1; - bool lastAccessTime :1; - bool indexTableName :1; - bool sd :1; - bool parameters :1; - bool deferredRebuild :1; + bool indexName; + bool indexHandlerClass; + bool dbName; + bool origTableName; + bool createTime; + bool lastAccessTime; + bool indexTableName; + bool sd; + bool parameters; + bool deferredRebuild; } _Index__isset; class Index { public: - Index(const Index&); - Index& operator=(const Index&); + static const char* ascii_fingerprint; // = "09EEF655216AC81802850988D6C470A6"; + static const uint8_t binary_fingerprint[16]; // = {0x09,0xEE,0xF6,0x55,0x21,0x6A,0xC8,0x18,0x02,0x85,0x09,0x88,0xD6,0xC4,0x70,0xA6}; + Index() : indexName(), indexHandlerClass(), dbName(), origTableName(), createTime(0), lastAccessTime(0), indexTableName(), deferredRebuild(0) { } - virtual ~Index() throw(); + virtual ~Index() throw() {} + std::string indexName; std::string indexHandlerClass; std::string dbName; @@ -2300,25 +2166,45 @@ class Index { _Index__isset __isset; - void __set_indexName(const std::string& val); + void __set_indexName(const std::string& val) { + indexName = val; + } - void __set_indexHandlerClass(const std::string& val); + void __set_indexHandlerClass(const std::string& val) { + indexHandlerClass = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_origTableName(const std::string& val); + void __set_origTableName(const std::string& val) { + origTableName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_indexTableName(const std::string& val); + void __set_indexTableName(const std::string& val) { + indexTableName = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_deferredRebuild(const bool val); + void __set_deferredRebuild(const bool val) { + deferredRebuild = val; + } bool operator == (const Index & rhs) const { @@ -2353,36 +2239,42 @@ class Index { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Index &a, Index &b); -inline std::ostream& operator<<(std::ostream& out, const Index& obj) -{ - obj.printTo(out); - return out; -} - class BooleanColumnStatsData { public: - BooleanColumnStatsData(const BooleanColumnStatsData&); - BooleanColumnStatsData& operator=(const BooleanColumnStatsData&); - BooleanColumnStatsData() : numTrues(0), numFalses(0), numNulls(0) { + static const char* ascii_fingerprint; // = "4A712C500E54918CFBA57A70D875BC7B"; + static const uint8_t binary_fingerprint[16]; // = {0x4A,0x71,0x2C,0x50,0x0E,0x54,0x91,0x8C,0xFB,0xA5,0x7A,0x70,0xD8,0x75,0xBC,0x7B}; + + BooleanColumnStatsData() : numTrues(0), numFalses(0), numNulls(0), bitVectors() { } - virtual ~BooleanColumnStatsData() throw(); + virtual ~BooleanColumnStatsData() throw() {} + int64_t numTrues; int64_t numFalses; int64_t numNulls; + std::string bitVectors; - void __set_numTrues(const int64_t val); + void __set_numTrues(const int64_t val) { + numTrues = val; + } - void __set_numFalses(const int64_t val); + void __set_numFalses(const int64_t val) { + numFalses = val; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } + + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const BooleanColumnStatsData & rhs) const { @@ -2392,6 +2284,8 @@ class BooleanColumnStatsData { return false; if (!(numNulls == rhs.numNulls)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const BooleanColumnStatsData &rhs) const { @@ -2403,46 +2297,56 @@ class BooleanColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const BooleanColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DoubleColumnStatsData__isset { _DoubleColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DoubleColumnStatsData__isset; class DoubleColumnStatsData { public: - DoubleColumnStatsData(const DoubleColumnStatsData&); - DoubleColumnStatsData& operator=(const DoubleColumnStatsData&); - DoubleColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0) { + static const char* ascii_fingerprint; // = "BEA28DCF4FBA2D1FBDC6C7D92C7D259C"; + static const uint8_t binary_fingerprint[16]; // = {0xBE,0xA2,0x8D,0xCF,0x4F,0xBA,0x2D,0x1F,0xBD,0xC6,0xC7,0xD9,0x2C,0x7D,0x25,0x9C}; + + DoubleColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0), bitVectors() { } - virtual ~DoubleColumnStatsData() throw(); + virtual ~DoubleColumnStatsData() throw() {} + double lowValue; double highValue; int64_t numNulls; int64_t numDVs; + std::string bitVectors; _DoubleColumnStatsData__isset __isset; - void __set_lowValue(const double val); + void __set_lowValue(const double val) { + lowValue = val; + __isset.lowValue = true; + } + + void __set_highValue(const double val) { + highValue = val; + __isset.highValue = true; + } - void __set_highValue(const double val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } - void __set_numDVs(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const DoubleColumnStatsData & rhs) const { @@ -2458,6 +2362,8 @@ class DoubleColumnStatsData { return false; if (!(numDVs == rhs.numDVs)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const DoubleColumnStatsData &rhs) const { @@ -2469,46 +2375,56 @@ class DoubleColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const DoubleColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _LongColumnStatsData__isset { _LongColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _LongColumnStatsData__isset; class LongColumnStatsData { public: - LongColumnStatsData(const LongColumnStatsData&); - LongColumnStatsData& operator=(const LongColumnStatsData&); - LongColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0) { + static const char* ascii_fingerprint; // = "7C75730F0483BF798B623579F05EB7A0"; + static const uint8_t binary_fingerprint[16]; // = {0x7C,0x75,0x73,0x0F,0x04,0x83,0xBF,0x79,0x8B,0x62,0x35,0x79,0xF0,0x5E,0xB7,0xA0}; + + LongColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0), bitVectors() { } - virtual ~LongColumnStatsData() throw(); + virtual ~LongColumnStatsData() throw() {} + int64_t lowValue; int64_t highValue; int64_t numNulls; int64_t numDVs; + std::string bitVectors; _LongColumnStatsData__isset __isset; - void __set_lowValue(const int64_t val); + void __set_lowValue(const int64_t val) { + lowValue = val; + __isset.lowValue = true; + } + + void __set_highValue(const int64_t val) { + highValue = val; + __isset.highValue = true; + } - void __set_highValue(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } - void __set_numDVs(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const LongColumnStatsData & rhs) const { @@ -2524,6 +2440,8 @@ class LongColumnStatsData { return false; if (!(numDVs == rhs.numDVs)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const LongColumnStatsData &rhs) const { @@ -2535,39 +2453,47 @@ class LongColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(LongColumnStatsData &a, LongColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const LongColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - class StringColumnStatsData { public: - StringColumnStatsData(const StringColumnStatsData&); - StringColumnStatsData& operator=(const StringColumnStatsData&); - StringColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0), numDVs(0) { + static const char* ascii_fingerprint; // = "40245D2EED7A451D09BD995AED6A5343"; + static const uint8_t binary_fingerprint[16]; // = {0x40,0x24,0x5D,0x2E,0xED,0x7A,0x45,0x1D,0x09,0xBD,0x99,0x5A,0xED,0x6A,0x53,0x43}; + + StringColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0), numDVs(0), bitVectors() { } - virtual ~StringColumnStatsData() throw(); + virtual ~StringColumnStatsData() throw() {} + int64_t maxColLen; double avgColLen; int64_t numNulls; int64_t numDVs; + std::string bitVectors; - void __set_maxColLen(const int64_t val); + void __set_maxColLen(const int64_t val) { + maxColLen = val; + } + + void __set_avgColLen(const double val) { + avgColLen = val; + } - void __set_avgColLen(const double val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } - void __set_numDVs(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const StringColumnStatsData & rhs) const { @@ -2579,6 +2505,8 @@ class StringColumnStatsData { return false; if (!(numDVs == rhs.numDVs)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const StringColumnStatsData &rhs) const { @@ -2590,36 +2518,42 @@ class StringColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(StringColumnStatsData &a, StringColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const StringColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - class BinaryColumnStatsData { public: - BinaryColumnStatsData(const BinaryColumnStatsData&); - BinaryColumnStatsData& operator=(const BinaryColumnStatsData&); - BinaryColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0) { + static const char* ascii_fingerprint; // = "F8DFB1C0A86CEF465C06983269A441E3"; + static const uint8_t binary_fingerprint[16]; // = {0xF8,0xDF,0xB1,0xC0,0xA8,0x6C,0xEF,0x46,0x5C,0x06,0x98,0x32,0x69,0xA4,0x41,0xE3}; + + BinaryColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0), bitVectors() { } - virtual ~BinaryColumnStatsData() throw(); + virtual ~BinaryColumnStatsData() throw() {} + int64_t maxColLen; double avgColLen; int64_t numNulls; + std::string bitVectors; + + void __set_maxColLen(const int64_t val) { + maxColLen = val; + } - void __set_maxColLen(const int64_t val); + void __set_avgColLen(const double val) { + avgColLen = val; + } - void __set_avgColLen(const double val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const BinaryColumnStatsData & rhs) const { @@ -2629,6 +2563,8 @@ class BinaryColumnStatsData { return false; if (!(numNulls == rhs.numNulls)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const BinaryColumnStatsData &rhs) const { @@ -2640,33 +2576,32 @@ class BinaryColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const BinaryColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - class Decimal { public: - Decimal(const Decimal&); - Decimal& operator=(const Decimal&); + static const char* ascii_fingerprint; // = "C4DDF6759F9B17C5C380806CE743DE8E"; + static const uint8_t binary_fingerprint[16]; // = {0xC4,0xDD,0xF6,0x75,0x9F,0x9B,0x17,0xC5,0xC3,0x80,0x80,0x6C,0xE7,0x43,0xDE,0x8E}; + Decimal() : unscaled(), scale(0) { } - virtual ~Decimal() throw(); + virtual ~Decimal() throw() {} + std::string unscaled; int16_t scale; - void __set_unscaled(const std::string& val); + void __set_unscaled(const std::string& val) { + unscaled = val; + } - void __set_scale(const int16_t val); + void __set_scale(const int16_t val) { + scale = val; + } bool operator == (const Decimal & rhs) const { @@ -2685,46 +2620,56 @@ class Decimal { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Decimal &a, Decimal &b); -inline std::ostream& operator<<(std::ostream& out, const Decimal& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DecimalColumnStatsData__isset { _DecimalColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DecimalColumnStatsData__isset; class DecimalColumnStatsData { public: - DecimalColumnStatsData(const DecimalColumnStatsData&); - DecimalColumnStatsData& operator=(const DecimalColumnStatsData&); - DecimalColumnStatsData() : numNulls(0), numDVs(0) { + static const char* ascii_fingerprint; // = "86EE58DEC40D54A444081A7330B9DB0E"; + static const uint8_t binary_fingerprint[16]; // = {0x86,0xEE,0x58,0xDE,0xC4,0x0D,0x54,0xA4,0x44,0x08,0x1A,0x73,0x30,0xB9,0xDB,0x0E}; + + DecimalColumnStatsData() : numNulls(0), numDVs(0), bitVectors() { } - virtual ~DecimalColumnStatsData() throw(); + virtual ~DecimalColumnStatsData() throw() {} + Decimal lowValue; Decimal highValue; int64_t numNulls; int64_t numDVs; + std::string bitVectors; _DecimalColumnStatsData__isset __isset; - void __set_lowValue(const Decimal& val); + void __set_lowValue(const Decimal& val) { + lowValue = val; + __isset.lowValue = true; + } + + void __set_highValue(const Decimal& val) { + highValue = val; + __isset.highValue = true; + } - void __set_highValue(const Decimal& val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } - void __set_numDVs(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const DecimalColumnStatsData & rhs) const { @@ -2740,6 +2685,8 @@ class DecimalColumnStatsData { return false; if (!(numDVs == rhs.numDVs)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const DecimalColumnStatsData &rhs) const { @@ -2751,30 +2698,27 @@ class DecimalColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const DecimalColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - class Date { public: - Date(const Date&); - Date& operator=(const Date&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + Date() : daysSinceEpoch(0) { } - virtual ~Date() throw(); + virtual ~Date() throw() {} + int64_t daysSinceEpoch; - void __set_daysSinceEpoch(const int64_t val); + void __set_daysSinceEpoch(const int64_t val) { + daysSinceEpoch = val; + } bool operator == (const Date & rhs) const { @@ -2791,46 +2735,56 @@ class Date { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Date &a, Date &b); -inline std::ostream& operator<<(std::ostream& out, const Date& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DateColumnStatsData__isset { _DateColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DateColumnStatsData__isset; class DateColumnStatsData { public: - DateColumnStatsData(const DateColumnStatsData&); - DateColumnStatsData& operator=(const DateColumnStatsData&); - DateColumnStatsData() : numNulls(0), numDVs(0) { + static const char* ascii_fingerprint; // = "78F305E316F70F8634B447C2194FCEAD"; + static const uint8_t binary_fingerprint[16]; // = {0x78,0xF3,0x05,0xE3,0x16,0xF7,0x0F,0x86,0x34,0xB4,0x47,0xC2,0x19,0x4F,0xCE,0xAD}; + + DateColumnStatsData() : numNulls(0), numDVs(0), bitVectors() { } - virtual ~DateColumnStatsData() throw(); + virtual ~DateColumnStatsData() throw() {} + Date lowValue; Date highValue; int64_t numNulls; int64_t numDVs; + std::string bitVectors; _DateColumnStatsData__isset __isset; - void __set_lowValue(const Date& val); + void __set_lowValue(const Date& val) { + lowValue = val; + __isset.lowValue = true; + } + + void __set_highValue(const Date& val) { + highValue = val; + __isset.highValue = true; + } - void __set_highValue(const Date& val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numNulls(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } - void __set_numDVs(const int64_t val); + void __set_bitVectors(const std::string& val) { + bitVectors = val; + } bool operator == (const DateColumnStatsData & rhs) const { @@ -2846,6 +2800,8 @@ class DateColumnStatsData { return false; if (!(numDVs == rhs.numDVs)) return false; + if (!(bitVectors == rhs.bitVectors)) + return false; return true; } bool operator != (const DateColumnStatsData &rhs) const { @@ -2857,37 +2813,32 @@ class DateColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DateColumnStatsData &a, DateColumnStatsData &b); -inline std::ostream& operator<<(std::ostream& out, const DateColumnStatsData& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ColumnStatisticsData__isset { _ColumnStatisticsData__isset() : booleanStats(false), longStats(false), doubleStats(false), stringStats(false), binaryStats(false), decimalStats(false), dateStats(false) {} - bool booleanStats :1; - bool longStats :1; - bool doubleStats :1; - bool stringStats :1; - bool binaryStats :1; - bool decimalStats :1; - bool dateStats :1; + bool booleanStats; + bool longStats; + bool doubleStats; + bool stringStats; + bool binaryStats; + bool decimalStats; + bool dateStats; } _ColumnStatisticsData__isset; class ColumnStatisticsData { public: - ColumnStatisticsData(const ColumnStatisticsData&); - ColumnStatisticsData& operator=(const ColumnStatisticsData&); + static const char* ascii_fingerprint; // = "CBBB717E6584839F4DE24460AD08215A"; + static const uint8_t binary_fingerprint[16]; // = {0xCB,0xBB,0x71,0x7E,0x65,0x84,0x83,0x9F,0x4D,0xE2,0x44,0x60,0xAD,0x08,0x21,0x5A}; + ColumnStatisticsData() { } - virtual ~ColumnStatisticsData() throw(); + virtual ~ColumnStatisticsData() throw() {} + BooleanColumnStatsData booleanStats; LongColumnStatsData longStats; DoubleColumnStatsData doubleStats; @@ -2898,19 +2849,33 @@ class ColumnStatisticsData { _ColumnStatisticsData__isset __isset; - void __set_booleanStats(const BooleanColumnStatsData& val); + void __set_booleanStats(const BooleanColumnStatsData& val) { + booleanStats = val; + } - void __set_longStats(const LongColumnStatsData& val); + void __set_longStats(const LongColumnStatsData& val) { + longStats = val; + } - void __set_doubleStats(const DoubleColumnStatsData& val); + void __set_doubleStats(const DoubleColumnStatsData& val) { + doubleStats = val; + } - void __set_stringStats(const StringColumnStatsData& val); + void __set_stringStats(const StringColumnStatsData& val) { + stringStats = val; + } - void __set_binaryStats(const BinaryColumnStatsData& val); + void __set_binaryStats(const BinaryColumnStatsData& val) { + binaryStats = val; + } - void __set_decimalStats(const DecimalColumnStatsData& val); + void __set_decimalStats(const DecimalColumnStatsData& val) { + decimalStats = val; + } - void __set_dateStats(const DateColumnStatsData& val); + void __set_dateStats(const DateColumnStatsData& val) { + dateStats = val; + } bool operator == (const ColumnStatisticsData & rhs) const { @@ -2939,36 +2904,37 @@ class ColumnStatisticsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ColumnStatisticsData &a, ColumnStatisticsData &b); -inline std::ostream& operator<<(std::ostream& out, const ColumnStatisticsData& obj) -{ - obj.printTo(out); - return out; -} - class ColumnStatisticsObj { public: - ColumnStatisticsObj(const ColumnStatisticsObj&); - ColumnStatisticsObj& operator=(const ColumnStatisticsObj&); + static const char* ascii_fingerprint; // = "AC61AA8A229BA61CEF9C76AF509D9B0C"; + static const uint8_t binary_fingerprint[16]; // = {0xAC,0x61,0xAA,0x8A,0x22,0x9B,0xA6,0x1C,0xEF,0x9C,0x76,0xAF,0x50,0x9D,0x9B,0x0C}; + ColumnStatisticsObj() : colName(), colType() { } - virtual ~ColumnStatisticsObj() throw(); + virtual ~ColumnStatisticsObj() throw() {} + std::string colName; std::string colType; ColumnStatisticsData statsData; - void __set_colName(const std::string& val); + void __set_colName(const std::string& val) { + colName = val; + } - void __set_colType(const std::string& val); + void __set_colType(const std::string& val) { + colType = val; + } - void __set_statsData(const ColumnStatisticsData& val); + void __set_statsData(const ColumnStatisticsData& val) { + statsData = val; + } bool operator == (const ColumnStatisticsObj & rhs) const { @@ -2989,32 +2955,27 @@ class ColumnStatisticsObj { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b); -inline std::ostream& operator<<(std::ostream& out, const ColumnStatisticsObj& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ColumnStatisticsDesc__isset { _ColumnStatisticsDesc__isset() : partName(false), lastAnalyzed(false) {} - bool partName :1; - bool lastAnalyzed :1; + bool partName; + bool lastAnalyzed; } _ColumnStatisticsDesc__isset; class ColumnStatisticsDesc { public: - ColumnStatisticsDesc(const ColumnStatisticsDesc&); - ColumnStatisticsDesc& operator=(const ColumnStatisticsDesc&); + static const char* ascii_fingerprint; // = "261759FF6F8FAB53F941453007FE18CB"; + static const uint8_t binary_fingerprint[16]; // = {0x26,0x17,0x59,0xFF,0x6F,0x8F,0xAB,0x53,0xF9,0x41,0x45,0x30,0x07,0xFE,0x18,0xCB}; + ColumnStatisticsDesc() : isTblLevel(0), dbName(), tableName(), partName(), lastAnalyzed(0) { } - virtual ~ColumnStatisticsDesc() throw(); + virtual ~ColumnStatisticsDesc() throw() {} + bool isTblLevel; std::string dbName; std::string tableName; @@ -3023,15 +2984,27 @@ class ColumnStatisticsDesc { _ColumnStatisticsDesc__isset __isset; - void __set_isTblLevel(const bool val); + void __set_isTblLevel(const bool val) { + isTblLevel = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_partName(const std::string& val); + void __set_partName(const std::string& val) { + partName = val; + __isset.partName = true; + } - void __set_lastAnalyzed(const int64_t val); + void __set_lastAnalyzed(const int64_t val) { + lastAnalyzed = val; + __isset.lastAnalyzed = true; + } bool operator == (const ColumnStatisticsDesc & rhs) const { @@ -3060,33 +3033,32 @@ class ColumnStatisticsDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b); -inline std::ostream& operator<<(std::ostream& out, const ColumnStatisticsDesc& obj) -{ - obj.printTo(out); - return out; -} - class ColumnStatistics { public: - ColumnStatistics(const ColumnStatistics&); - ColumnStatistics& operator=(const ColumnStatistics&); + static const char* ascii_fingerprint; // = "BE0B45303A037436CF3753DC8249AE24"; + static const uint8_t binary_fingerprint[16]; // = {0xBE,0x0B,0x45,0x30,0x3A,0x03,0x74,0x36,0xCF,0x37,0x53,0xDC,0x82,0x49,0xAE,0x24}; + ColumnStatistics() { } - virtual ~ColumnStatistics() throw(); + virtual ~ColumnStatistics() throw() {} + ColumnStatisticsDesc statsDesc; std::vector statsObj; - void __set_statsDesc(const ColumnStatisticsDesc& val); + void __set_statsDesc(const ColumnStatisticsDesc& val) { + statsDesc = val; + } - void __set_statsObj(const std::vector & val); + void __set_statsObj(const std::vector & val) { + statsObj = val; + } bool operator == (const ColumnStatistics & rhs) const { @@ -3105,33 +3077,32 @@ class ColumnStatistics { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ColumnStatistics &a, ColumnStatistics &b); -inline std::ostream& operator<<(std::ostream& out, const ColumnStatistics& obj) -{ - obj.printTo(out); - return out; -} - class AggrStats { public: - AggrStats(const AggrStats&); - AggrStats& operator=(const AggrStats&); + static const char* ascii_fingerprint; // = "937689C687F353FC00A95AD6AAFB9481"; + static const uint8_t binary_fingerprint[16]; // = {0x93,0x76,0x89,0xC6,0x87,0xF3,0x53,0xFC,0x00,0xA9,0x5A,0xD6,0xAA,0xFB,0x94,0x81}; + AggrStats() : partsFound(0) { } - virtual ~AggrStats() throw(); + virtual ~AggrStats() throw() {} + std::vector colStats; int64_t partsFound; - void __set_colStats(const std::vector & val); + void __set_colStats(const std::vector & val) { + colStats = val; + } - void __set_partsFound(const int64_t val); + void __set_partsFound(const int64_t val) { + partsFound = val; + } bool operator == (const AggrStats & rhs) const { @@ -3150,30 +3121,27 @@ class AggrStats { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(AggrStats &a, AggrStats &b); -inline std::ostream& operator<<(std::ostream& out, const AggrStats& obj) -{ - obj.printTo(out); - return out; -} - class SetPartitionsStatsRequest { public: - SetPartitionsStatsRequest(const SetPartitionsStatsRequest&); - SetPartitionsStatsRequest& operator=(const SetPartitionsStatsRequest&); + static const char* ascii_fingerprint; // = "14062660DCB108DCEF5869E6D53CABC7"; + static const uint8_t binary_fingerprint[16]; // = {0x14,0x06,0x26,0x60,0xDC,0xB1,0x08,0xDC,0xEF,0x58,0x69,0xE6,0xD5,0x3C,0xAB,0xC7}; + SetPartitionsStatsRequest() { } - virtual ~SetPartitionsStatsRequest() throw(); + virtual ~SetPartitionsStatsRequest() throw() {} + std::vector colStats; - void __set_colStats(const std::vector & val); + void __set_colStats(const std::vector & val) { + colStats = val; + } bool operator == (const SetPartitionsStatsRequest & rhs) const { @@ -3190,40 +3158,39 @@ class SetPartitionsStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b); -inline std::ostream& operator<<(std::ostream& out, const SetPartitionsStatsRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Schema__isset { _Schema__isset() : fieldSchemas(false), properties(false) {} - bool fieldSchemas :1; - bool properties :1; + bool fieldSchemas; + bool properties; } _Schema__isset; class Schema { public: - Schema(const Schema&); - Schema& operator=(const Schema&); + static const char* ascii_fingerprint; // = "5CFEE46C975F4E2368D905109B8E3B5B"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; + Schema() { } - virtual ~Schema() throw(); + virtual ~Schema() throw() {} + std::vector fieldSchemas; std::map properties; _Schema__isset __isset; - void __set_fieldSchemas(const std::vector & val); + void __set_fieldSchemas(const std::vector & val) { + fieldSchemas = val; + } - void __set_properties(const std::map & val); + void __set_properties(const std::map & val) { + properties = val; + } bool operator == (const Schema & rhs) const { @@ -3242,36 +3209,33 @@ class Schema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Schema &a, Schema &b); -inline std::ostream& operator<<(std::ostream& out, const Schema& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _EnvironmentContext__isset { _EnvironmentContext__isset() : properties(false) {} - bool properties :1; + bool properties; } _EnvironmentContext__isset; class EnvironmentContext { public: - EnvironmentContext(const EnvironmentContext&); - EnvironmentContext& operator=(const EnvironmentContext&); + static const char* ascii_fingerprint; // = "5EA2D527ECA3BA20C77AFC023EE8C05F"; + static const uint8_t binary_fingerprint[16]; // = {0x5E,0xA2,0xD5,0x27,0xEC,0xA3,0xBA,0x20,0xC7,0x7A,0xFC,0x02,0x3E,0xE8,0xC0,0x5F}; + EnvironmentContext() { } - virtual ~EnvironmentContext() throw(); + virtual ~EnvironmentContext() throw() {} + std::map properties; _EnvironmentContext__isset __isset; - void __set_properties(const std::map & val); + void __set_properties(const std::map & val) { + properties = val; + } bool operator == (const EnvironmentContext & rhs) const { @@ -3288,33 +3252,32 @@ class EnvironmentContext { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(EnvironmentContext &a, EnvironmentContext &b); -inline std::ostream& operator<<(std::ostream& out, const EnvironmentContext& obj) -{ - obj.printTo(out); - return out; -} - class PartitionsByExprResult { public: - PartitionsByExprResult(const PartitionsByExprResult&); - PartitionsByExprResult& operator=(const PartitionsByExprResult&); + static const char* ascii_fingerprint; // = "40B789CC91B508FE36600A14E3F80425"; + static const uint8_t binary_fingerprint[16]; // = {0x40,0xB7,0x89,0xCC,0x91,0xB5,0x08,0xFE,0x36,0x60,0x0A,0x14,0xE3,0xF8,0x04,0x25}; + PartitionsByExprResult() : hasUnknownPartitions(0) { } - virtual ~PartitionsByExprResult() throw(); + virtual ~PartitionsByExprResult() throw() {} + std::vector partitions; bool hasUnknownPartitions; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } - void __set_hasUnknownPartitions(const bool val); + void __set_hasUnknownPartitions(const bool val) { + hasUnknownPartitions = val; + } bool operator == (const PartitionsByExprResult & rhs) const { @@ -3333,32 +3296,27 @@ class PartitionsByExprResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionsByExprResult &a, PartitionsByExprResult &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionsByExprResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PartitionsByExprRequest__isset { _PartitionsByExprRequest__isset() : defaultPartitionName(false), maxParts(true) {} - bool defaultPartitionName :1; - bool maxParts :1; + bool defaultPartitionName; + bool maxParts; } _PartitionsByExprRequest__isset; class PartitionsByExprRequest { public: - PartitionsByExprRequest(const PartitionsByExprRequest&); - PartitionsByExprRequest& operator=(const PartitionsByExprRequest&); + static const char* ascii_fingerprint; // = "835944417A026FE6ABD0DF5A35BF52C5"; + static const uint8_t binary_fingerprint[16]; // = {0x83,0x59,0x44,0x41,0x7A,0x02,0x6F,0xE6,0xAB,0xD0,0xDF,0x5A,0x35,0xBF,0x52,0xC5}; + PartitionsByExprRequest() : dbName(), tblName(), expr(), defaultPartitionName(), maxParts(-1) { } - virtual ~PartitionsByExprRequest() throw(); + virtual ~PartitionsByExprRequest() throw() {} + std::string dbName; std::string tblName; std::string expr; @@ -3367,15 +3325,27 @@ class PartitionsByExprRequest { _PartitionsByExprRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_expr(const std::string& val); + void __set_expr(const std::string& val) { + expr = val; + } - void __set_defaultPartitionName(const std::string& val); + void __set_defaultPartitionName(const std::string& val) { + defaultPartitionName = val; + __isset.defaultPartitionName = true; + } - void __set_maxParts(const int16_t val); + void __set_maxParts(const int16_t val) { + maxParts = val; + __isset.maxParts = true; + } bool operator == (const PartitionsByExprRequest & rhs) const { @@ -3404,30 +3374,27 @@ class PartitionsByExprRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionsByExprRequest& obj) -{ - obj.printTo(out); - return out; -} - class TableStatsResult { public: - TableStatsResult(const TableStatsResult&); - TableStatsResult& operator=(const TableStatsResult&); + static const char* ascii_fingerprint; // = "CB0FA67A54583BE80593CCE0163C645D"; + static const uint8_t binary_fingerprint[16]; // = {0xCB,0x0F,0xA6,0x7A,0x54,0x58,0x3B,0xE8,0x05,0x93,0xCC,0xE0,0x16,0x3C,0x64,0x5D}; + TableStatsResult() { } - virtual ~TableStatsResult() throw(); + virtual ~TableStatsResult() throw() {} + std::vector tableStats; - void __set_tableStats(const std::vector & val); + void __set_tableStats(const std::vector & val) { + tableStats = val; + } bool operator == (const TableStatsResult & rhs) const { @@ -3444,30 +3411,27 @@ class TableStatsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TableStatsResult &a, TableStatsResult &b); -inline std::ostream& operator<<(std::ostream& out, const TableStatsResult& obj) -{ - obj.printTo(out); - return out; -} - class PartitionsStatsResult { public: - PartitionsStatsResult(const PartitionsStatsResult&); - PartitionsStatsResult& operator=(const PartitionsStatsResult&); + static const char* ascii_fingerprint; // = "D6186DD14062F8B4504E8FEF93423B89"; + static const uint8_t binary_fingerprint[16]; // = {0xD6,0x18,0x6D,0xD1,0x40,0x62,0xF8,0xB4,0x50,0x4E,0x8F,0xEF,0x93,0x42,0x3B,0x89}; + PartitionsStatsResult() { } - virtual ~PartitionsStatsResult() throw(); + virtual ~PartitionsStatsResult() throw() {} + std::map > partStats; - void __set_partStats(const std::map > & val); + void __set_partStats(const std::map > & val) { + partStats = val; + } bool operator == (const PartitionsStatsResult & rhs) const { @@ -3484,36 +3448,37 @@ class PartitionsStatsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionsStatsResult &a, PartitionsStatsResult &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionsStatsResult& obj) -{ - obj.printTo(out); - return out; -} - class TableStatsRequest { public: - TableStatsRequest(const TableStatsRequest&); - TableStatsRequest& operator=(const TableStatsRequest&); + static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; + static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; + TableStatsRequest() : dbName(), tblName() { } - virtual ~TableStatsRequest() throw(); + virtual ~TableStatsRequest() throw() {} + std::string dbName; std::string tblName; std::vector colNames; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_colNames(const std::vector & val); + void __set_colNames(const std::vector & val) { + colNames = val; + } bool operator == (const TableStatsRequest & rhs) const { @@ -3534,39 +3499,42 @@ class TableStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TableStatsRequest &a, TableStatsRequest &b); -inline std::ostream& operator<<(std::ostream& out, const TableStatsRequest& obj) -{ - obj.printTo(out); - return out; -} - class PartitionsStatsRequest { public: - PartitionsStatsRequest(const PartitionsStatsRequest&); - PartitionsStatsRequest& operator=(const PartitionsStatsRequest&); + static const char* ascii_fingerprint; // = "5F51D90BC323BCE4B704B7D98EDA0BD4"; + static const uint8_t binary_fingerprint[16]; // = {0x5F,0x51,0xD9,0x0B,0xC3,0x23,0xBC,0xE4,0xB7,0x04,0xB7,0xD9,0x8E,0xDA,0x0B,0xD4}; + PartitionsStatsRequest() : dbName(), tblName() { } - virtual ~PartitionsStatsRequest() throw(); + virtual ~PartitionsStatsRequest() throw() {} + std::string dbName; std::string tblName; std::vector colNames; std::vector partNames; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_colNames(const std::vector & val); + void __set_colNames(const std::vector & val) { + colNames = val; + } - void __set_partNames(const std::vector & val); + void __set_partNames(const std::vector & val) { + partNames = val; + } bool operator == (const PartitionsStatsRequest & rhs) const { @@ -3589,36 +3557,34 @@ class PartitionsStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b); -inline std::ostream& operator<<(std::ostream& out, const PartitionsStatsRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _AddPartitionsResult__isset { _AddPartitionsResult__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _AddPartitionsResult__isset; class AddPartitionsResult { public: - AddPartitionsResult(const AddPartitionsResult&); - AddPartitionsResult& operator=(const AddPartitionsResult&); + static const char* ascii_fingerprint; // = "5A689D0823E7BFBB60C799BA60065C31"; + static const uint8_t binary_fingerprint[16]; // = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; + AddPartitionsResult() { } - virtual ~AddPartitionsResult() throw(); + virtual ~AddPartitionsResult() throw() {} + std::vector partitions; _AddPartitionsResult__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + __isset.partitions = true; + } bool operator == (const AddPartitionsResult & rhs) const { @@ -3637,31 +3603,26 @@ class AddPartitionsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(AddPartitionsResult &a, AddPartitionsResult &b); -inline std::ostream& operator<<(std::ostream& out, const AddPartitionsResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _AddPartitionsRequest__isset { _AddPartitionsRequest__isset() : needResult(true) {} - bool needResult :1; + bool needResult; } _AddPartitionsRequest__isset; class AddPartitionsRequest { public: - AddPartitionsRequest(const AddPartitionsRequest&); - AddPartitionsRequest& operator=(const AddPartitionsRequest&); + static const char* ascii_fingerprint; // = "94F938D035892CF6873DEDB99358F069"; + static const uint8_t binary_fingerprint[16]; // = {0x94,0xF9,0x38,0xD0,0x35,0x89,0x2C,0xF6,0x87,0x3D,0xED,0xB9,0x93,0x58,0xF0,0x69}; + AddPartitionsRequest() : dbName(), tblName(), ifNotExists(0), needResult(true) { } - virtual ~AddPartitionsRequest() throw(); + virtual ~AddPartitionsRequest() throw() {} + std::string dbName; std::string tblName; std::vector parts; @@ -3670,15 +3631,26 @@ class AddPartitionsRequest { _AddPartitionsRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_parts(const std::vector & val); + void __set_parts(const std::vector & val) { + parts = val; + } - void __set_ifNotExists(const bool val); + void __set_ifNotExists(const bool val) { + ifNotExists = val; + } - void __set_needResult(const bool val); + void __set_needResult(const bool val) { + needResult = val; + __isset.needResult = true; + } bool operator == (const AddPartitionsRequest & rhs) const { @@ -3705,36 +3677,34 @@ class AddPartitionsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(AddPartitionsRequest &a, AddPartitionsRequest &b); -inline std::ostream& operator<<(std::ostream& out, const AddPartitionsRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DropPartitionsResult__isset { _DropPartitionsResult__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _DropPartitionsResult__isset; class DropPartitionsResult { public: - DropPartitionsResult(const DropPartitionsResult&); - DropPartitionsResult& operator=(const DropPartitionsResult&); + static const char* ascii_fingerprint; // = "5A689D0823E7BFBB60C799BA60065C31"; + static const uint8_t binary_fingerprint[16]; // = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; + DropPartitionsResult() { } - virtual ~DropPartitionsResult() throw(); + virtual ~DropPartitionsResult() throw() {} + std::vector partitions; _DropPartitionsResult__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + __isset.partitions = true; + } bool operator == (const DropPartitionsResult & rhs) const { @@ -3753,39 +3723,39 @@ class DropPartitionsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DropPartitionsResult &a, DropPartitionsResult &b); -inline std::ostream& operator<<(std::ostream& out, const DropPartitionsResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DropPartitionsExpr__isset { _DropPartitionsExpr__isset() : partArchiveLevel(false) {} - bool partArchiveLevel :1; + bool partArchiveLevel; } _DropPartitionsExpr__isset; class DropPartitionsExpr { public: - DropPartitionsExpr(const DropPartitionsExpr&); - DropPartitionsExpr& operator=(const DropPartitionsExpr&); + static const char* ascii_fingerprint; // = "18B162B1D15D8D46509D3911A9F1C2AA"; + static const uint8_t binary_fingerprint[16]; // = {0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA}; + DropPartitionsExpr() : expr(), partArchiveLevel(0) { } - virtual ~DropPartitionsExpr() throw(); + virtual ~DropPartitionsExpr() throw() {} + std::string expr; int32_t partArchiveLevel; _DropPartitionsExpr__isset __isset; - void __set_expr(const std::string& val); + void __set_expr(const std::string& val) { + expr = val; + } - void __set_partArchiveLevel(const int32_t val); + void __set_partArchiveLevel(const int32_t val) { + partArchiveLevel = val; + __isset.partArchiveLevel = true; + } bool operator == (const DropPartitionsExpr & rhs) const { @@ -3806,40 +3776,39 @@ class DropPartitionsExpr { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DropPartitionsExpr &a, DropPartitionsExpr &b); -inline std::ostream& operator<<(std::ostream& out, const DropPartitionsExpr& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _RequestPartsSpec__isset { _RequestPartsSpec__isset() : names(false), exprs(false) {} - bool names :1; - bool exprs :1; + bool names; + bool exprs; } _RequestPartsSpec__isset; class RequestPartsSpec { public: - RequestPartsSpec(const RequestPartsSpec&); - RequestPartsSpec& operator=(const RequestPartsSpec&); + static const char* ascii_fingerprint; // = "864492ECAB27996CD222AACDA10C292E"; + static const uint8_t binary_fingerprint[16]; // = {0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E}; + RequestPartsSpec() { } - virtual ~RequestPartsSpec() throw(); + virtual ~RequestPartsSpec() throw() {} + std::vector names; std::vector exprs; _RequestPartsSpec__isset __isset; - void __set_names(const std::vector & val); + void __set_names(const std::vector & val) { + names = val; + } - void __set_exprs(const std::vector & val); + void __set_exprs(const std::vector & val) { + exprs = val; + } bool operator == (const RequestPartsSpec & rhs) const { @@ -3858,35 +3827,30 @@ class RequestPartsSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(RequestPartsSpec &a, RequestPartsSpec &b); -inline std::ostream& operator<<(std::ostream& out, const RequestPartsSpec& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _DropPartitionsRequest__isset { _DropPartitionsRequest__isset() : deleteData(false), ifExists(true), ignoreProtection(false), environmentContext(false), needResult(true) {} - bool deleteData :1; - bool ifExists :1; - bool ignoreProtection :1; - bool environmentContext :1; - bool needResult :1; + bool deleteData; + bool ifExists; + bool ignoreProtection; + bool environmentContext; + bool needResult; } _DropPartitionsRequest__isset; class DropPartitionsRequest { public: - DropPartitionsRequest(const DropPartitionsRequest&); - DropPartitionsRequest& operator=(const DropPartitionsRequest&); + static const char* ascii_fingerprint; // = "EB263FBA01215C480A9A24C11D69E672"; + static const uint8_t binary_fingerprint[16]; // = {0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72}; + DropPartitionsRequest() : dbName(), tblName(), deleteData(0), ifExists(true), ignoreProtection(0), needResult(true) { } - virtual ~DropPartitionsRequest() throw(); + virtual ~DropPartitionsRequest() throw() {} + std::string dbName; std::string tblName; RequestPartsSpec parts; @@ -3898,21 +3862,42 @@ class DropPartitionsRequest { _DropPartitionsRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_parts(const RequestPartsSpec& val); + void __set_parts(const RequestPartsSpec& val) { + parts = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + __isset.deleteData = true; + } - void __set_ifExists(const bool val); + void __set_ifExists(const bool val) { + ifExists = val; + __isset.ifExists = true; + } - void __set_ignoreProtection(const bool val); + void __set_ignoreProtection(const bool val) { + ignoreProtection = val; + __isset.ignoreProtection = true; + } - void __set_environmentContext(const EnvironmentContext& val); + void __set_environmentContext(const EnvironmentContext& val) { + environmentContext = val; + __isset.environmentContext = true; + } - void __set_needResult(const bool val); + void __set_needResult(const bool val) { + needResult = val; + __isset.needResult = true; + } bool operator == (const DropPartitionsRequest & rhs) const { @@ -3953,40 +3938,39 @@ class DropPartitionsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(DropPartitionsRequest &a, DropPartitionsRequest &b); -inline std::ostream& operator<<(std::ostream& out, const DropPartitionsRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ResourceUri__isset { _ResourceUri__isset() : resourceType(false), uri(false) {} - bool resourceType :1; - bool uri :1; + bool resourceType; + bool uri; } _ResourceUri__isset; class ResourceUri { public: - ResourceUri(const ResourceUri&); - ResourceUri& operator=(const ResourceUri&); + static const char* ascii_fingerprint; // = "19B5240589E680301A7E32DF3971EFBE"; + static const uint8_t binary_fingerprint[16]; // = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; + ResourceUri() : resourceType((ResourceType::type)0), uri() { } - virtual ~ResourceUri() throw(); + virtual ~ResourceUri() throw() {} + ResourceType::type resourceType; std::string uri; _ResourceUri__isset __isset; - void __set_resourceType(const ResourceType::type val); + void __set_resourceType(const ResourceType::type val) { + resourceType = val; + } - void __set_uri(const std::string& val); + void __set_uri(const std::string& val) { + uri = val; + } bool operator == (const ResourceUri & rhs) const { @@ -4005,38 +3989,33 @@ class ResourceUri { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ResourceUri &a, ResourceUri &b); -inline std::ostream& operator<<(std::ostream& out, const ResourceUri& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Function__isset { _Function__isset() : functionName(false), dbName(false), className(false), ownerName(false), ownerType(false), createTime(false), functionType(false), resourceUris(false) {} - bool functionName :1; - bool dbName :1; - bool className :1; - bool ownerName :1; - bool ownerType :1; - bool createTime :1; - bool functionType :1; - bool resourceUris :1; + bool functionName; + bool dbName; + bool className; + bool ownerName; + bool ownerType; + bool createTime; + bool functionType; + bool resourceUris; } _Function__isset; class Function { public: - Function(const Function&); - Function& operator=(const Function&); + static const char* ascii_fingerprint; // = "72279C515E70F888568542F97616ADB8"; + static const uint8_t binary_fingerprint[16]; // = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; + Function() : functionName(), dbName(), className(), ownerName(), ownerType((PrincipalType::type)0), createTime(0), functionType((FunctionType::type)0) { } - virtual ~Function() throw(); + virtual ~Function() throw() {} + std::string functionName; std::string dbName; std::string className; @@ -4048,21 +4027,37 @@ class Function { _Function__isset __isset; - void __set_functionName(const std::string& val); + void __set_functionName(const std::string& val) { + functionName = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_className(const std::string& val); + void __set_className(const std::string& val) { + className = val; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + } - void __set_ownerType(const PrincipalType::type val); + void __set_ownerType(const PrincipalType::type val) { + ownerType = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_functionType(const FunctionType::type val); + void __set_functionType(const FunctionType::type val) { + functionType = val; + } - void __set_resourceUris(const std::vector & val); + void __set_resourceUris(const std::vector & val) { + resourceUris = val; + } bool operator == (const Function & rhs) const { @@ -4093,39 +4088,42 @@ class Function { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Function &a, Function &b); -inline std::ostream& operator<<(std::ostream& out, const Function& obj) -{ - obj.printTo(out); - return out; -} - class TxnInfo { public: - TxnInfo(const TxnInfo&); - TxnInfo& operator=(const TxnInfo&); + static const char* ascii_fingerprint; // = "6C5C0773A901CCA3BE9D085B3B47A767"; + static const uint8_t binary_fingerprint[16]; // = {0x6C,0x5C,0x07,0x73,0xA9,0x01,0xCC,0xA3,0xBE,0x9D,0x08,0x5B,0x3B,0x47,0xA7,0x67}; + TxnInfo() : id(0), state((TxnState::type)0), user(), hostname() { } - virtual ~TxnInfo() throw(); + virtual ~TxnInfo() throw() {} + int64_t id; TxnState::type state; std::string user; std::string hostname; - void __set_id(const int64_t val); + void __set_id(const int64_t val) { + id = val; + } - void __set_state(const TxnState::type val); + void __set_state(const TxnState::type val) { + state = val; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const TxnInfo & rhs) const { @@ -4148,33 +4146,32 @@ class TxnInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TxnInfo &a, TxnInfo &b); -inline std::ostream& operator<<(std::ostream& out, const TxnInfo& obj) -{ - obj.printTo(out); - return out; -} - class GetOpenTxnsInfoResponse { public: - GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse&); - GetOpenTxnsInfoResponse& operator=(const GetOpenTxnsInfoResponse&); + static const char* ascii_fingerprint; // = "CCF769BBD33005B61F2079A6665E3B9C"; + static const uint8_t binary_fingerprint[16]; // = {0xCC,0xF7,0x69,0xBB,0xD3,0x30,0x05,0xB6,0x1F,0x20,0x79,0xA6,0x66,0x5E,0x3B,0x9C}; + GetOpenTxnsInfoResponse() : txn_high_water_mark(0) { } - virtual ~GetOpenTxnsInfoResponse() throw(); + virtual ~GetOpenTxnsInfoResponse() throw() {} + int64_t txn_high_water_mark; std::vector open_txns; - void __set_txn_high_water_mark(const int64_t val); + void __set_txn_high_water_mark(const int64_t val) { + txn_high_water_mark = val; + } - void __set_open_txns(const std::vector & val); + void __set_open_txns(const std::vector & val) { + open_txns = val; + } bool operator == (const GetOpenTxnsInfoResponse & rhs) const { @@ -4193,33 +4190,32 @@ class GetOpenTxnsInfoResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GetOpenTxnsInfoResponse& obj) -{ - obj.printTo(out); - return out; -} - class GetOpenTxnsResponse { public: - GetOpenTxnsResponse(const GetOpenTxnsResponse&); - GetOpenTxnsResponse& operator=(const GetOpenTxnsResponse&); + static const char* ascii_fingerprint; // = "590531FF1BE8611678B255374F6109EE"; + static const uint8_t binary_fingerprint[16]; // = {0x59,0x05,0x31,0xFF,0x1B,0xE8,0x61,0x16,0x78,0xB2,0x55,0x37,0x4F,0x61,0x09,0xEE}; + GetOpenTxnsResponse() : txn_high_water_mark(0) { } - virtual ~GetOpenTxnsResponse() throw(); + virtual ~GetOpenTxnsResponse() throw() {} + int64_t txn_high_water_mark; std::set open_txns; - void __set_txn_high_water_mark(const int64_t val); + void __set_txn_high_water_mark(const int64_t val) { + txn_high_water_mark = val; + } - void __set_open_txns(const std::set & val); + void __set_open_txns(const std::set & val) { + open_txns = val; + } bool operator == (const GetOpenTxnsResponse & rhs) const { @@ -4238,36 +4234,37 @@ class GetOpenTxnsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GetOpenTxnsResponse& obj) -{ - obj.printTo(out); - return out; -} - class OpenTxnRequest { public: - OpenTxnRequest(const OpenTxnRequest&); - OpenTxnRequest& operator=(const OpenTxnRequest&); + static const char* ascii_fingerprint; // = "3368C2F81F2FEF71F11EDACDB2A3ECEF"; + static const uint8_t binary_fingerprint[16]; // = {0x33,0x68,0xC2,0xF8,0x1F,0x2F,0xEF,0x71,0xF1,0x1E,0xDA,0xCD,0xB2,0xA3,0xEC,0xEF}; + OpenTxnRequest() : num_txns(0), user(), hostname() { } - virtual ~OpenTxnRequest() throw(); + virtual ~OpenTxnRequest() throw() {} + int32_t num_txns; std::string user; std::string hostname; - void __set_num_txns(const int32_t val); + void __set_num_txns(const int32_t val) { + num_txns = val; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const OpenTxnRequest & rhs) const { @@ -4288,30 +4285,27 @@ class OpenTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(OpenTxnRequest &a, OpenTxnRequest &b); -inline std::ostream& operator<<(std::ostream& out, const OpenTxnRequest& obj) -{ - obj.printTo(out); - return out; -} - class OpenTxnsResponse { public: - OpenTxnsResponse(const OpenTxnsResponse&); - OpenTxnsResponse& operator=(const OpenTxnsResponse&); + static const char* ascii_fingerprint; // = "E49D7D1A9013CC81CD0F69D631EF82E4"; + static const uint8_t binary_fingerprint[16]; // = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; + OpenTxnsResponse() { } - virtual ~OpenTxnsResponse() throw(); + virtual ~OpenTxnsResponse() throw() {} + std::vector txn_ids; - void __set_txn_ids(const std::vector & val); + void __set_txn_ids(const std::vector & val) { + txn_ids = val; + } bool operator == (const OpenTxnsResponse & rhs) const { @@ -4328,30 +4322,27 @@ class OpenTxnsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(OpenTxnsResponse &a, OpenTxnsResponse &b); -inline std::ostream& operator<<(std::ostream& out, const OpenTxnsResponse& obj) -{ - obj.printTo(out); - return out; -} - class AbortTxnRequest { public: - AbortTxnRequest(const AbortTxnRequest&); - AbortTxnRequest& operator=(const AbortTxnRequest&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + AbortTxnRequest() : txnid(0) { } - virtual ~AbortTxnRequest() throw(); + virtual ~AbortTxnRequest() throw() {} + int64_t txnid; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } bool operator == (const AbortTxnRequest & rhs) const { @@ -4368,30 +4359,27 @@ class AbortTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(AbortTxnRequest &a, AbortTxnRequest &b); -inline std::ostream& operator<<(std::ostream& out, const AbortTxnRequest& obj) -{ - obj.printTo(out); - return out; -} - class CommitTxnRequest { public: - CommitTxnRequest(const CommitTxnRequest&); - CommitTxnRequest& operator=(const CommitTxnRequest&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + CommitTxnRequest() : txnid(0) { } - virtual ~CommitTxnRequest() throw(); + virtual ~CommitTxnRequest() throw() {} + int64_t txnid; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } bool operator == (const CommitTxnRequest & rhs) const { @@ -4408,32 +4396,27 @@ class CommitTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CommitTxnRequest &a, CommitTxnRequest &b); -inline std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _LockComponent__isset { _LockComponent__isset() : tablename(false), partitionname(false) {} - bool tablename :1; - bool partitionname :1; + bool tablename; + bool partitionname; } _LockComponent__isset; class LockComponent { public: - LockComponent(const LockComponent&); - LockComponent& operator=(const LockComponent&); + static const char* ascii_fingerprint; // = "38B02531B0840AC9C72904A4649FD15F"; + static const uint8_t binary_fingerprint[16]; // = {0x38,0xB0,0x25,0x31,0xB0,0x84,0x0A,0xC9,0xC7,0x29,0x04,0xA4,0x64,0x9F,0xD1,0x5F}; + LockComponent() : type((LockType::type)0), level((LockLevel::type)0), dbname(), tablename(), partitionname() { } - virtual ~LockComponent() throw(); + virtual ~LockComponent() throw() {} + LockType::type type; LockLevel::type level; std::string dbname; @@ -4442,15 +4425,27 @@ class LockComponent { _LockComponent__isset __isset; - void __set_type(const LockType::type val); + void __set_type(const LockType::type val) { + type = val; + } - void __set_level(const LockLevel::type val); + void __set_level(const LockLevel::type val) { + level = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + __isset.tablename = true; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } bool operator == (const LockComponent & rhs) const { @@ -4479,31 +4474,26 @@ class LockComponent { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(LockComponent &a, LockComponent &b); -inline std::ostream& operator<<(std::ostream& out, const LockComponent& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _LockRequest__isset { _LockRequest__isset() : txnid(false) {} - bool txnid :1; + bool txnid; } _LockRequest__isset; class LockRequest { public: - LockRequest(const LockRequest&); - LockRequest& operator=(const LockRequest&); + static const char* ascii_fingerprint; // = "46BC5ED7196BC16CB216AD5CC67C6930"; + static const uint8_t binary_fingerprint[16]; // = {0x46,0xBC,0x5E,0xD7,0x19,0x6B,0xC1,0x6C,0xB2,0x16,0xAD,0x5C,0xC6,0x7C,0x69,0x30}; + LockRequest() : txnid(0), user(), hostname() { } - virtual ~LockRequest() throw(); + virtual ~LockRequest() throw() {} + std::vector component; int64_t txnid; std::string user; @@ -4511,13 +4501,22 @@ class LockRequest { _LockRequest__isset __isset; - void __set_component(const std::vector & val); + void __set_component(const std::vector & val) { + component = val; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const LockRequest & rhs) const { @@ -4542,33 +4541,32 @@ class LockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(LockRequest &a, LockRequest &b); -inline std::ostream& operator<<(std::ostream& out, const LockRequest& obj) -{ - obj.printTo(out); - return out; -} - class LockResponse { public: - LockResponse(const LockResponse&); - LockResponse& operator=(const LockResponse&); + static const char* ascii_fingerprint; // = "DFA40D9D2884599F3D1E7A57578F1384"; + static const uint8_t binary_fingerprint[16]; // = {0xDF,0xA4,0x0D,0x9D,0x28,0x84,0x59,0x9F,0x3D,0x1E,0x7A,0x57,0x57,0x8F,0x13,0x84}; + LockResponse() : lockid(0), state((LockState::type)0) { } - virtual ~LockResponse() throw(); + virtual ~LockResponse() throw() {} + int64_t lockid; LockState::type state; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } - void __set_state(const LockState::type val); + void __set_state(const LockState::type val) { + state = val; + } bool operator == (const LockResponse & rhs) const { @@ -4587,30 +4585,27 @@ class LockResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(LockResponse &a, LockResponse &b); -inline std::ostream& operator<<(std::ostream& out, const LockResponse& obj) -{ - obj.printTo(out); - return out; -} - class CheckLockRequest { public: - CheckLockRequest(const CheckLockRequest&); - CheckLockRequest& operator=(const CheckLockRequest&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + CheckLockRequest() : lockid(0) { } - virtual ~CheckLockRequest() throw(); + virtual ~CheckLockRequest() throw() {} + int64_t lockid; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } bool operator == (const CheckLockRequest & rhs) const { @@ -4627,30 +4622,27 @@ class CheckLockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CheckLockRequest &a, CheckLockRequest &b); -inline std::ostream& operator<<(std::ostream& out, const CheckLockRequest& obj) -{ - obj.printTo(out); - return out; -} - class UnlockRequest { public: - UnlockRequest(const UnlockRequest&); - UnlockRequest& operator=(const UnlockRequest&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + UnlockRequest() : lockid(0) { } - virtual ~UnlockRequest() throw(); + virtual ~UnlockRequest() throw() {} + int64_t lockid; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } bool operator == (const UnlockRequest & rhs) const { @@ -4667,27 +4659,22 @@ class UnlockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(UnlockRequest &a, UnlockRequest &b); -inline std::ostream& operator<<(std::ostream& out, const UnlockRequest& obj) -{ - obj.printTo(out); - return out; -} - class ShowLocksRequest { public: - ShowLocksRequest(const ShowLocksRequest&); - ShowLocksRequest& operator=(const ShowLocksRequest&); + static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + ShowLocksRequest() { } - virtual ~ShowLocksRequest() throw(); + virtual ~ShowLocksRequest() throw() {} + bool operator == (const ShowLocksRequest & /* rhs */) const { @@ -4702,34 +4689,29 @@ class ShowLocksRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowLocksRequest &a, ShowLocksRequest &b); -inline std::ostream& operator<<(std::ostream& out, const ShowLocksRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ShowLocksResponseElement__isset { _ShowLocksResponseElement__isset() : tablename(false), partname(false), txnid(false), acquiredat(false) {} - bool tablename :1; - bool partname :1; - bool txnid :1; - bool acquiredat :1; + bool tablename; + bool partname; + bool txnid; + bool acquiredat; } _ShowLocksResponseElement__isset; class ShowLocksResponseElement { public: - ShowLocksResponseElement(const ShowLocksResponseElement&); - ShowLocksResponseElement& operator=(const ShowLocksResponseElement&); + static const char* ascii_fingerprint; // = "5AD11F0E0EF1EE0A7C08B00FEFCFF24F"; + static const uint8_t binary_fingerprint[16]; // = {0x5A,0xD1,0x1F,0x0E,0x0E,0xF1,0xEE,0x0A,0x7C,0x08,0xB0,0x0F,0xEF,0xCF,0xF2,0x4F}; + ShowLocksResponseElement() : lockid(0), dbname(), tablename(), partname(), state((LockState::type)0), type((LockType::type)0), txnid(0), lastheartbeat(0), acquiredat(0), user(), hostname() { } - virtual ~ShowLocksResponseElement() throw(); + virtual ~ShowLocksResponseElement() throw() {} + int64_t lockid; std::string dbname; std::string tablename; @@ -4744,27 +4726,53 @@ class ShowLocksResponseElement { _ShowLocksResponseElement__isset __isset; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + __isset.tablename = true; + } - void __set_partname(const std::string& val); + void __set_partname(const std::string& val) { + partname = val; + __isset.partname = true; + } - void __set_state(const LockState::type val); + void __set_state(const LockState::type val) { + state = val; + } - void __set_type(const LockType::type val); + void __set_type(const LockType::type val) { + type = val; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } - void __set_lastheartbeat(const int64_t val); + void __set_lastheartbeat(const int64_t val) { + lastheartbeat = val; + } - void __set_acquiredat(const int64_t val); + void __set_acquiredat(const int64_t val) { + acquiredat = val; + __isset.acquiredat = true; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const ShowLocksResponseElement & rhs) const { @@ -4809,36 +4817,33 @@ class ShowLocksResponseElement { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b); -inline std::ostream& operator<<(std::ostream& out, const ShowLocksResponseElement& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ShowLocksResponse__isset { _ShowLocksResponse__isset() : locks(false) {} - bool locks :1; + bool locks; } _ShowLocksResponse__isset; class ShowLocksResponse { public: - ShowLocksResponse(const ShowLocksResponse&); - ShowLocksResponse& operator=(const ShowLocksResponse&); + static const char* ascii_fingerprint; // = "BD598AA60FE941361FB54C43973C011F"; + static const uint8_t binary_fingerprint[16]; // = {0xBD,0x59,0x8A,0xA6,0x0F,0xE9,0x41,0x36,0x1F,0xB5,0x4C,0x43,0x97,0x3C,0x01,0x1F}; + ShowLocksResponse() { } - virtual ~ShowLocksResponse() throw(); + virtual ~ShowLocksResponse() throw() {} + std::vector locks; _ShowLocksResponse__isset __isset; - void __set_locks(const std::vector & val); + void __set_locks(const std::vector & val) { + locks = val; + } bool operator == (const ShowLocksResponse & rhs) const { @@ -4855,40 +4860,41 @@ class ShowLocksResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowLocksResponse &a, ShowLocksResponse &b); -inline std::ostream& operator<<(std::ostream& out, const ShowLocksResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _HeartbeatRequest__isset { _HeartbeatRequest__isset() : lockid(false), txnid(false) {} - bool lockid :1; - bool txnid :1; + bool lockid; + bool txnid; } _HeartbeatRequest__isset; class HeartbeatRequest { public: - HeartbeatRequest(const HeartbeatRequest&); - HeartbeatRequest& operator=(const HeartbeatRequest&); + static const char* ascii_fingerprint; // = "0354D07C94CB8542872CA1277008860A"; + static const uint8_t binary_fingerprint[16]; // = {0x03,0x54,0xD0,0x7C,0x94,0xCB,0x85,0x42,0x87,0x2C,0xA1,0x27,0x70,0x08,0x86,0x0A}; + HeartbeatRequest() : lockid(0), txnid(0) { } - virtual ~HeartbeatRequest() throw(); + virtual ~HeartbeatRequest() throw() {} + int64_t lockid; int64_t txnid; _HeartbeatRequest__isset __isset; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + __isset.lockid = true; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } bool operator == (const HeartbeatRequest & rhs) const { @@ -4911,33 +4917,32 @@ class HeartbeatRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HeartbeatRequest &a, HeartbeatRequest &b); -inline std::ostream& operator<<(std::ostream& out, const HeartbeatRequest& obj) -{ - obj.printTo(out); - return out; -} - class HeartbeatTxnRangeRequest { public: - HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest&); - HeartbeatTxnRangeRequest& operator=(const HeartbeatTxnRangeRequest&); + static const char* ascii_fingerprint; // = "F33135321253DAEB67B0E79E416CA831"; + static const uint8_t binary_fingerprint[16]; // = {0xF3,0x31,0x35,0x32,0x12,0x53,0xDA,0xEB,0x67,0xB0,0xE7,0x9E,0x41,0x6C,0xA8,0x31}; + HeartbeatTxnRangeRequest() : min(0), max(0) { } - virtual ~HeartbeatTxnRangeRequest() throw(); + virtual ~HeartbeatTxnRangeRequest() throw() {} + int64_t min; int64_t max; - void __set_min(const int64_t val); + void __set_min(const int64_t val) { + min = val; + } - void __set_max(const int64_t val); + void __set_max(const int64_t val) { + max = val; + } bool operator == (const HeartbeatTxnRangeRequest & rhs) const { @@ -4956,33 +4961,32 @@ class HeartbeatTxnRangeRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b); -inline std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeRequest& obj) -{ - obj.printTo(out); - return out; -} - class HeartbeatTxnRangeResponse { public: - HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse&); - HeartbeatTxnRangeResponse& operator=(const HeartbeatTxnRangeResponse&); + static const char* ascii_fingerprint; // = "33E49A70BD5C04262A0F407E3656E3CF"; + static const uint8_t binary_fingerprint[16]; // = {0x33,0xE4,0x9A,0x70,0xBD,0x5C,0x04,0x26,0x2A,0x0F,0x40,0x7E,0x36,0x56,0xE3,0xCF}; + HeartbeatTxnRangeResponse() { } - virtual ~HeartbeatTxnRangeResponse() throw(); + virtual ~HeartbeatTxnRangeResponse() throw() {} + std::set aborted; std::set nosuch; - void __set_aborted(const std::set & val); + void __set_aborted(const std::set & val) { + aborted = val; + } - void __set_nosuch(const std::set & val); + void __set_nosuch(const std::set & val) { + nosuch = val; + } bool operator == (const HeartbeatTxnRangeResponse & rhs) const { @@ -5001,32 +5005,27 @@ class HeartbeatTxnRangeResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b); -inline std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _CompactionRequest__isset { _CompactionRequest__isset() : partitionname(false), runas(false) {} - bool partitionname :1; - bool runas :1; + bool partitionname; + bool runas; } _CompactionRequest__isset; class CompactionRequest { public: - CompactionRequest(const CompactionRequest&); - CompactionRequest& operator=(const CompactionRequest&); + static const char* ascii_fingerprint; // = "899FD1F339D8318D628687CC2CE2864B"; + static const uint8_t binary_fingerprint[16]; // = {0x89,0x9F,0xD1,0xF3,0x39,0xD8,0x31,0x8D,0x62,0x86,0x87,0xCC,0x2C,0xE2,0x86,0x4B}; + CompactionRequest() : dbname(), tablename(), partitionname(), type((CompactionType::type)0), runas() { } - virtual ~CompactionRequest() throw(); + virtual ~CompactionRequest() throw() {} + std::string dbname; std::string tablename; std::string partitionname; @@ -5035,15 +5034,27 @@ class CompactionRequest { _CompactionRequest__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } - void __set_type(const CompactionType::type val); + void __set_type(const CompactionType::type val) { + type = val; + } - void __set_runas(const std::string& val); + void __set_runas(const std::string& val) { + runas = val; + __isset.runas = true; + } bool operator == (const CompactionRequest & rhs) const { @@ -5072,27 +5083,22 @@ class CompactionRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CompactionRequest &a, CompactionRequest &b); -inline std::ostream& operator<<(std::ostream& out, const CompactionRequest& obj) -{ - obj.printTo(out); - return out; -} - class ShowCompactRequest { public: - ShowCompactRequest(const ShowCompactRequest&); - ShowCompactRequest& operator=(const ShowCompactRequest&); + static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + ShowCompactRequest() { } - virtual ~ShowCompactRequest() throw(); + virtual ~ShowCompactRequest() throw() {} + bool operator == (const ShowCompactRequest & /* rhs */) const { @@ -5107,34 +5113,29 @@ class ShowCompactRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowCompactRequest &a, ShowCompactRequest &b); -inline std::ostream& operator<<(std::ostream& out, const ShowCompactRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ShowCompactResponseElement__isset { _ShowCompactResponseElement__isset() : partitionname(false), workerid(false), start(false), runAs(false) {} - bool partitionname :1; - bool workerid :1; - bool start :1; - bool runAs :1; + bool partitionname; + bool workerid; + bool start; + bool runAs; } _ShowCompactResponseElement__isset; class ShowCompactResponseElement { public: - ShowCompactResponseElement(const ShowCompactResponseElement&); - ShowCompactResponseElement& operator=(const ShowCompactResponseElement&); + static const char* ascii_fingerprint; // = "2F338C265DC4FD82DD13F4966FE43F13"; + static const uint8_t binary_fingerprint[16]; // = {0x2F,0x33,0x8C,0x26,0x5D,0xC4,0xFD,0x82,0xDD,0x13,0xF4,0x96,0x6F,0xE4,0x3F,0x13}; + ShowCompactResponseElement() : dbname(), tablename(), partitionname(), type((CompactionType::type)0), state(), workerid(), start(0), runAs() { } - virtual ~ShowCompactResponseElement() throw(); + virtual ~ShowCompactResponseElement() throw() {} + std::string dbname; std::string tablename; std::string partitionname; @@ -5146,21 +5147,41 @@ class ShowCompactResponseElement { _ShowCompactResponseElement__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } - void __set_type(const CompactionType::type val); + void __set_type(const CompactionType::type val) { + type = val; + } - void __set_state(const std::string& val); + void __set_state(const std::string& val) { + state = val; + } - void __set_workerid(const std::string& val); + void __set_workerid(const std::string& val) { + workerid = val; + __isset.workerid = true; + } - void __set_start(const int64_t val); + void __set_start(const int64_t val) { + start = val; + __isset.start = true; + } - void __set_runAs(const std::string& val); + void __set_runAs(const std::string& val) { + runAs = val; + __isset.runAs = true; + } bool operator == (const ShowCompactResponseElement & rhs) const { @@ -5199,30 +5220,27 @@ class ShowCompactResponseElement { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b); -inline std::ostream& operator<<(std::ostream& out, const ShowCompactResponseElement& obj) -{ - obj.printTo(out); - return out; -} - class ShowCompactResponse { public: - ShowCompactResponse(const ShowCompactResponse&); - ShowCompactResponse& operator=(const ShowCompactResponse&); + static const char* ascii_fingerprint; // = "915B7B8DB8966D65769C0F98707BBAE3"; + static const uint8_t binary_fingerprint[16]; // = {0x91,0x5B,0x7B,0x8D,0xB8,0x96,0x6D,0x65,0x76,0x9C,0x0F,0x98,0x70,0x7B,0xBA,0xE3}; + ShowCompactResponse() { } - virtual ~ShowCompactResponse() throw(); + virtual ~ShowCompactResponse() throw() {} + std::vector compacts; - void __set_compacts(const std::vector & val); + void __set_compacts(const std::vector & val) { + compacts = val; + } bool operator == (const ShowCompactResponse & rhs) const { @@ -5239,39 +5257,42 @@ class ShowCompactResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ShowCompactResponse &a, ShowCompactResponse &b); -inline std::ostream& operator<<(std::ostream& out, const ShowCompactResponse& obj) -{ - obj.printTo(out); - return out; -} - class AddDynamicPartitions { public: - AddDynamicPartitions(const AddDynamicPartitions&); - AddDynamicPartitions& operator=(const AddDynamicPartitions&); + static const char* ascii_fingerprint; // = "A53A2B050DCCFE6A2158480A24E33898"; + static const uint8_t binary_fingerprint[16]; // = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98}; + AddDynamicPartitions() : txnid(0), dbname(), tablename() { } - virtual ~AddDynamicPartitions() throw(); + virtual ~AddDynamicPartitions() throw() {} + int64_t txnid; std::string dbname; std::string tablename; std::vector partitionnames; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionnames(const std::vector & val); + void __set_partitionnames(const std::vector & val) { + partitionnames = val; + } bool operator == (const AddDynamicPartitions & rhs) const { @@ -5294,39 +5315,39 @@ class AddDynamicPartitions { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(AddDynamicPartitions &a, AddDynamicPartitions &b); -inline std::ostream& operator<<(std::ostream& out, const AddDynamicPartitions& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _NotificationEventRequest__isset { _NotificationEventRequest__isset() : maxEvents(false) {} - bool maxEvents :1; + bool maxEvents; } _NotificationEventRequest__isset; class NotificationEventRequest { public: - NotificationEventRequest(const NotificationEventRequest&); - NotificationEventRequest& operator=(const NotificationEventRequest&); + static const char* ascii_fingerprint; // = "6E578DA8AB10EED824A75534350EBAEF"; + static const uint8_t binary_fingerprint[16]; // = {0x6E,0x57,0x8D,0xA8,0xAB,0x10,0xEE,0xD8,0x24,0xA7,0x55,0x34,0x35,0x0E,0xBA,0xEF}; + NotificationEventRequest() : lastEvent(0), maxEvents(0) { } - virtual ~NotificationEventRequest() throw(); + virtual ~NotificationEventRequest() throw() {} + int64_t lastEvent; int32_t maxEvents; _NotificationEventRequest__isset __isset; - void __set_lastEvent(const int64_t val); + void __set_lastEvent(const int64_t val) { + lastEvent = val; + } - void __set_maxEvents(const int32_t val); + void __set_maxEvents(const int32_t val) { + maxEvents = val; + __isset.maxEvents = true; + } bool operator == (const NotificationEventRequest & rhs) const { @@ -5347,32 +5368,27 @@ class NotificationEventRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(NotificationEventRequest &a, NotificationEventRequest &b); -inline std::ostream& operator<<(std::ostream& out, const NotificationEventRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _NotificationEvent__isset { _NotificationEvent__isset() : dbName(false), tableName(false) {} - bool dbName :1; - bool tableName :1; + bool dbName; + bool tableName; } _NotificationEvent__isset; class NotificationEvent { public: - NotificationEvent(const NotificationEvent&); - NotificationEvent& operator=(const NotificationEvent&); + static const char* ascii_fingerprint; // = "ACAF0036D9999F3A389F490F5E22D369"; + static const uint8_t binary_fingerprint[16]; // = {0xAC,0xAF,0x00,0x36,0xD9,0x99,0x9F,0x3A,0x38,0x9F,0x49,0x0F,0x5E,0x22,0xD3,0x69}; + NotificationEvent() : eventId(0), eventTime(0), eventType(), dbName(), tableName(), message() { } - virtual ~NotificationEvent() throw(); + virtual ~NotificationEvent() throw() {} + int64_t eventId; int32_t eventTime; std::string eventType; @@ -5382,17 +5398,31 @@ class NotificationEvent { _NotificationEvent__isset __isset; - void __set_eventId(const int64_t val); + void __set_eventId(const int64_t val) { + eventId = val; + } - void __set_eventTime(const int32_t val); + void __set_eventTime(const int32_t val) { + eventTime = val; + } - void __set_eventType(const std::string& val); + void __set_eventType(const std::string& val) { + eventType = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + __isset.dbName = true; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + __isset.tableName = true; + } - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NotificationEvent & rhs) const { @@ -5423,30 +5453,27 @@ class NotificationEvent { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(NotificationEvent &a, NotificationEvent &b); -inline std::ostream& operator<<(std::ostream& out, const NotificationEvent& obj) -{ - obj.printTo(out); - return out; -} - class NotificationEventResponse { public: - NotificationEventResponse(const NotificationEventResponse&); - NotificationEventResponse& operator=(const NotificationEventResponse&); + static const char* ascii_fingerprint; // = "EE3DB23399639114BCD1782A0FB01818"; + static const uint8_t binary_fingerprint[16]; // = {0xEE,0x3D,0xB2,0x33,0x99,0x63,0x91,0x14,0xBC,0xD1,0x78,0x2A,0x0F,0xB0,0x18,0x18}; + NotificationEventResponse() { } - virtual ~NotificationEventResponse() throw(); + virtual ~NotificationEventResponse() throw() {} + std::vector events; - void __set_events(const std::vector & val); + void __set_events(const std::vector & val) { + events = val; + } bool operator == (const NotificationEventResponse & rhs) const { @@ -5463,30 +5490,27 @@ class NotificationEventResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(NotificationEventResponse &a, NotificationEventResponse &b); -inline std::ostream& operator<<(std::ostream& out, const NotificationEventResponse& obj) -{ - obj.printTo(out); - return out; -} - class CurrentNotificationEventId { public: - CurrentNotificationEventId(const CurrentNotificationEventId&); - CurrentNotificationEventId& operator=(const CurrentNotificationEventId&); + static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; + static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; + CurrentNotificationEventId() : eventId(0) { } - virtual ~CurrentNotificationEventId() throw(); + virtual ~CurrentNotificationEventId() throw() {} + int64_t eventId; - void __set_eventId(const int64_t val); + void __set_eventId(const int64_t val) { + eventId = val; + } bool operator == (const CurrentNotificationEventId & rhs) const { @@ -5503,30 +5527,27 @@ class CurrentNotificationEventId { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b); -inline std::ostream& operator<<(std::ostream& out, const CurrentNotificationEventId& obj) -{ - obj.printTo(out); - return out; -} - class InsertEventRequestData { public: - InsertEventRequestData(const InsertEventRequestData&); - InsertEventRequestData& operator=(const InsertEventRequestData&); + static const char* ascii_fingerprint; // = "ACE4F644F0FDD289DDC4EE5B83BC13C0"; + static const uint8_t binary_fingerprint[16]; // = {0xAC,0xE4,0xF6,0x44,0xF0,0xFD,0xD2,0x89,0xDD,0xC4,0xEE,0x5B,0x83,0xBC,0x13,0xC0}; + InsertEventRequestData() { } - virtual ~InsertEventRequestData() throw(); + virtual ~InsertEventRequestData() throw() {} + std::vector filesAdded; - void __set_filesAdded(const std::vector & val); + void __set_filesAdded(const std::vector & val) { + filesAdded = val; + } bool operator == (const InsertEventRequestData & rhs) const { @@ -5543,36 +5564,33 @@ class InsertEventRequestData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(InsertEventRequestData &a, InsertEventRequestData &b); -inline std::ostream& operator<<(std::ostream& out, const InsertEventRequestData& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _FireEventRequestData__isset { _FireEventRequestData__isset() : insertData(false) {} - bool insertData :1; + bool insertData; } _FireEventRequestData__isset; class FireEventRequestData { public: - FireEventRequestData(const FireEventRequestData&); - FireEventRequestData& operator=(const FireEventRequestData&); + static const char* ascii_fingerprint; // = "187E754B26707EE32451E6A27FB672CE"; + static const uint8_t binary_fingerprint[16]; // = {0x18,0x7E,0x75,0x4B,0x26,0x70,0x7E,0xE3,0x24,0x51,0xE6,0xA2,0x7F,0xB6,0x72,0xCE}; + FireEventRequestData() { } - virtual ~FireEventRequestData() throw(); + virtual ~FireEventRequestData() throw() {} + InsertEventRequestData insertData; _FireEventRequestData__isset __isset; - void __set_insertData(const InsertEventRequestData& val); + void __set_insertData(const InsertEventRequestData& val) { + insertData = val; + } bool operator == (const FireEventRequestData & rhs) const { @@ -5589,33 +5607,28 @@ class FireEventRequestData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(FireEventRequestData &a, FireEventRequestData &b); -inline std::ostream& operator<<(std::ostream& out, const FireEventRequestData& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _FireEventRequest__isset { _FireEventRequest__isset() : dbName(false), tableName(false), partitionVals(false) {} - bool dbName :1; - bool tableName :1; - bool partitionVals :1; + bool dbName; + bool tableName; + bool partitionVals; } _FireEventRequest__isset; class FireEventRequest { public: - FireEventRequest(const FireEventRequest&); - FireEventRequest& operator=(const FireEventRequest&); + static const char* ascii_fingerprint; // = "1BA3A7F00159254072C3979B1429B50B"; + static const uint8_t binary_fingerprint[16]; // = {0x1B,0xA3,0xA7,0xF0,0x01,0x59,0x25,0x40,0x72,0xC3,0x97,0x9B,0x14,0x29,0xB5,0x0B}; + FireEventRequest() : successful(0), dbName(), tableName() { } - virtual ~FireEventRequest() throw(); + virtual ~FireEventRequest() throw() {} + bool successful; FireEventRequestData data; std::string dbName; @@ -5624,15 +5637,28 @@ class FireEventRequest { _FireEventRequest__isset __isset; - void __set_successful(const bool val); + void __set_successful(const bool val) { + successful = val; + } - void __set_data(const FireEventRequestData& val); + void __set_data(const FireEventRequestData& val) { + data = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + __isset.dbName = true; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + __isset.tableName = true; + } - void __set_partitionVals(const std::vector & val); + void __set_partitionVals(const std::vector & val) { + partitionVals = val; + __isset.partitionVals = true; + } bool operator == (const FireEventRequest & rhs) const { @@ -5663,27 +5689,22 @@ class FireEventRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(FireEventRequest &a, FireEventRequest &b); -inline std::ostream& operator<<(std::ostream& out, const FireEventRequest& obj) -{ - obj.printTo(out); - return out; -} - class FireEventResponse { public: - FireEventResponse(const FireEventResponse&); - FireEventResponse& operator=(const FireEventResponse&); + static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + FireEventResponse() { } - virtual ~FireEventResponse() throw(); + virtual ~FireEventResponse() throw() {} + bool operator == (const FireEventResponse & /* rhs */) const { @@ -5698,40 +5719,41 @@ class FireEventResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(FireEventResponse &a, FireEventResponse &b); -inline std::ostream& operator<<(std::ostream& out, const FireEventResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _MetadataPpdResult__isset { _MetadataPpdResult__isset() : metadata(false), includeBitset(false) {} - bool metadata :1; - bool includeBitset :1; + bool metadata; + bool includeBitset; } _MetadataPpdResult__isset; class MetadataPpdResult { public: - MetadataPpdResult(const MetadataPpdResult&); - MetadataPpdResult& operator=(const MetadataPpdResult&); + static const char* ascii_fingerprint; // = "D0297FC5011701BD87898CC36146A565"; + static const uint8_t binary_fingerprint[16]; // = {0xD0,0x29,0x7F,0xC5,0x01,0x17,0x01,0xBD,0x87,0x89,0x8C,0xC3,0x61,0x46,0xA5,0x65}; + MetadataPpdResult() : metadata(), includeBitset() { } - virtual ~MetadataPpdResult() throw(); + virtual ~MetadataPpdResult() throw() {} + std::string metadata; std::string includeBitset; _MetadataPpdResult__isset __isset; - void __set_metadata(const std::string& val); + void __set_metadata(const std::string& val) { + metadata = val; + __isset.metadata = true; + } - void __set_includeBitset(const std::string& val); + void __set_includeBitset(const std::string& val) { + includeBitset = val; + __isset.includeBitset = true; + } bool operator == (const MetadataPpdResult & rhs) const { @@ -5754,33 +5776,32 @@ class MetadataPpdResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(MetadataPpdResult &a, MetadataPpdResult &b); -inline std::ostream& operator<<(std::ostream& out, const MetadataPpdResult& obj) -{ - obj.printTo(out); - return out; -} - class GetFileMetadataByExprResult { public: - GetFileMetadataByExprResult(const GetFileMetadataByExprResult&); - GetFileMetadataByExprResult& operator=(const GetFileMetadataByExprResult&); + static const char* ascii_fingerprint; // = "9927698B8A2D476882C8F24E9919B943"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x27,0x69,0x8B,0x8A,0x2D,0x47,0x68,0x82,0xC8,0xF2,0x4E,0x99,0x19,0xB9,0x43}; + GetFileMetadataByExprResult() : isSupported(0) { } - virtual ~GetFileMetadataByExprResult() throw(); + virtual ~GetFileMetadataByExprResult() throw() {} + std::map metadata; bool isSupported; - void __set_metadata(const std::map & val); + void __set_metadata(const std::map & val) { + metadata = val; + } - void __set_isSupported(const bool val); + void __set_isSupported(const bool val) { + isSupported = val; + } bool operator == (const GetFileMetadataByExprResult & rhs) const { @@ -5799,32 +5820,27 @@ class GetFileMetadataByExprResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b); -inline std::ostream& operator<<(std::ostream& out, const GetFileMetadataByExprResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GetFileMetadataByExprRequest__isset { _GetFileMetadataByExprRequest__isset() : doGetFooters(false), type(false) {} - bool doGetFooters :1; - bool type :1; + bool doGetFooters; + bool type; } _GetFileMetadataByExprRequest__isset; class GetFileMetadataByExprRequest { public: - GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest&); - GetFileMetadataByExprRequest& operator=(const GetFileMetadataByExprRequest&); + static const char* ascii_fingerprint; // = "0EC46840220832B58E8CCC6C1ABC857A"; + static const uint8_t binary_fingerprint[16]; // = {0x0E,0xC4,0x68,0x40,0x22,0x08,0x32,0xB5,0x8E,0x8C,0xCC,0x6C,0x1A,0xBC,0x85,0x7A}; + GetFileMetadataByExprRequest() : expr(), doGetFooters(0), type((FileMetadataExprType::type)0) { } - virtual ~GetFileMetadataByExprRequest() throw(); + virtual ~GetFileMetadataByExprRequest() throw() {} + std::vector fileIds; std::string expr; bool doGetFooters; @@ -5832,13 +5848,23 @@ class GetFileMetadataByExprRequest { _GetFileMetadataByExprRequest__isset __isset; - void __set_fileIds(const std::vector & val); + void __set_fileIds(const std::vector & val) { + fileIds = val; + } - void __set_expr(const std::string& val); + void __set_expr(const std::string& val) { + expr = val; + } - void __set_doGetFooters(const bool val); + void __set_doGetFooters(const bool val) { + doGetFooters = val; + __isset.doGetFooters = true; + } - void __set_type(const FileMetadataExprType::type val); + void __set_type(const FileMetadataExprType::type val) { + type = val; + __isset.type = true; + } bool operator == (const GetFileMetadataByExprRequest & rhs) const { @@ -5865,33 +5891,32 @@ class GetFileMetadataByExprRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GetFileMetadataByExprRequest& obj) -{ - obj.printTo(out); - return out; -} - class GetFileMetadataResult { public: - GetFileMetadataResult(const GetFileMetadataResult&); - GetFileMetadataResult& operator=(const GetFileMetadataResult&); + static const char* ascii_fingerprint; // = "D18BCBD4BA945E7F6500F5CD95205706"; + static const uint8_t binary_fingerprint[16]; // = {0xD1,0x8B,0xCB,0xD4,0xBA,0x94,0x5E,0x7F,0x65,0x00,0xF5,0xCD,0x95,0x20,0x57,0x06}; + GetFileMetadataResult() : isSupported(0) { } - virtual ~GetFileMetadataResult() throw(); + virtual ~GetFileMetadataResult() throw() {} + std::map metadata; bool isSupported; - void __set_metadata(const std::map & val); + void __set_metadata(const std::map & val) { + metadata = val; + } - void __set_isSupported(const bool val); + void __set_isSupported(const bool val) { + isSupported = val; + } bool operator == (const GetFileMetadataResult & rhs) const { @@ -5910,30 +5935,27 @@ class GetFileMetadataResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetFileMetadataResult &a, GetFileMetadataResult &b); -inline std::ostream& operator<<(std::ostream& out, const GetFileMetadataResult& obj) -{ - obj.printTo(out); - return out; -} - class GetFileMetadataRequest { public: - GetFileMetadataRequest(const GetFileMetadataRequest&); - GetFileMetadataRequest& operator=(const GetFileMetadataRequest&); + static const char* ascii_fingerprint; // = "E49D7D1A9013CC81CD0F69D631EF82E4"; + static const uint8_t binary_fingerprint[16]; // = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; + GetFileMetadataRequest() { } - virtual ~GetFileMetadataRequest() throw(); + virtual ~GetFileMetadataRequest() throw() {} + std::vector fileIds; - void __set_fileIds(const std::vector & val); + void __set_fileIds(const std::vector & val) { + fileIds = val; + } bool operator == (const GetFileMetadataRequest & rhs) const { @@ -5950,27 +5972,22 @@ class GetFileMetadataRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b); -inline std::ostream& operator<<(std::ostream& out, const GetFileMetadataRequest& obj) -{ - obj.printTo(out); - return out; -} - class PutFileMetadataResult { public: - PutFileMetadataResult(const PutFileMetadataResult&); - PutFileMetadataResult& operator=(const PutFileMetadataResult&); + static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + PutFileMetadataResult() { } - virtual ~PutFileMetadataResult() throw(); + virtual ~PutFileMetadataResult() throw() {} + bool operator == (const PutFileMetadataResult & /* rhs */) const { @@ -5985,42 +6002,44 @@ class PutFileMetadataResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PutFileMetadataResult &a, PutFileMetadataResult &b); -inline std::ostream& operator<<(std::ostream& out, const PutFileMetadataResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _PutFileMetadataRequest__isset { _PutFileMetadataRequest__isset() : type(false) {} - bool type :1; + bool type; } _PutFileMetadataRequest__isset; class PutFileMetadataRequest { public: - PutFileMetadataRequest(const PutFileMetadataRequest&); - PutFileMetadataRequest& operator=(const PutFileMetadataRequest&); + static const char* ascii_fingerprint; // = "84C9DF7C489B6AF0F0A15563B3AAB4A8"; + static const uint8_t binary_fingerprint[16]; // = {0x84,0xC9,0xDF,0x7C,0x48,0x9B,0x6A,0xF0,0xF0,0xA1,0x55,0x63,0xB3,0xAA,0xB4,0xA8}; + PutFileMetadataRequest() : type((FileMetadataExprType::type)0) { } - virtual ~PutFileMetadataRequest() throw(); + virtual ~PutFileMetadataRequest() throw() {} + std::vector fileIds; std::vector metadata; FileMetadataExprType::type type; _PutFileMetadataRequest__isset __isset; - void __set_fileIds(const std::vector & val); + void __set_fileIds(const std::vector & val) { + fileIds = val; + } - void __set_metadata(const std::vector & val); + void __set_metadata(const std::vector & val) { + metadata = val; + } - void __set_type(const FileMetadataExprType::type val); + void __set_type(const FileMetadataExprType::type val) { + type = val; + __isset.type = true; + } bool operator == (const PutFileMetadataRequest & rhs) const { @@ -6043,27 +6062,22 @@ class PutFileMetadataRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b); -inline std::ostream& operator<<(std::ostream& out, const PutFileMetadataRequest& obj) -{ - obj.printTo(out); - return out; -} - class ClearFileMetadataResult { public: - ClearFileMetadataResult(const ClearFileMetadataResult&); - ClearFileMetadataResult& operator=(const ClearFileMetadataResult&); + static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + ClearFileMetadataResult() { } - virtual ~ClearFileMetadataResult() throw(); + virtual ~ClearFileMetadataResult() throw() {} + bool operator == (const ClearFileMetadataResult & /* rhs */) const { @@ -6078,30 +6092,27 @@ class ClearFileMetadataResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b); -inline std::ostream& operator<<(std::ostream& out, const ClearFileMetadataResult& obj) -{ - obj.printTo(out); - return out; -} - class ClearFileMetadataRequest { public: - ClearFileMetadataRequest(const ClearFileMetadataRequest&); - ClearFileMetadataRequest& operator=(const ClearFileMetadataRequest&); + static const char* ascii_fingerprint; // = "E49D7D1A9013CC81CD0F69D631EF82E4"; + static const uint8_t binary_fingerprint[16]; // = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; + ClearFileMetadataRequest() { } - virtual ~ClearFileMetadataRequest() throw(); + virtual ~ClearFileMetadataRequest() throw() {} + std::vector fileIds; - void __set_fileIds(const std::vector & val); + void __set_fileIds(const std::vector & val) { + fileIds = val; + } bool operator == (const ClearFileMetadataRequest & rhs) const { @@ -6118,30 +6129,27 @@ class ClearFileMetadataRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b); -inline std::ostream& operator<<(std::ostream& out, const ClearFileMetadataRequest& obj) -{ - obj.printTo(out); - return out; -} - class CacheFileMetadataResult { public: - CacheFileMetadataResult(const CacheFileMetadataResult&); - CacheFileMetadataResult& operator=(const CacheFileMetadataResult&); + static const char* ascii_fingerprint; // = "5892306F7B861249AE8E27C8ED619593"; + static const uint8_t binary_fingerprint[16]; // = {0x58,0x92,0x30,0x6F,0x7B,0x86,0x12,0x49,0xAE,0x8E,0x27,0xC8,0xED,0x61,0x95,0x93}; + CacheFileMetadataResult() : isSupported(0) { } - virtual ~CacheFileMetadataResult() throw(); + virtual ~CacheFileMetadataResult() throw() {} + bool isSupported; - void __set_isSupported(const bool val); + void __set_isSupported(const bool val) { + isSupported = val; + } bool operator == (const CacheFileMetadataResult & rhs) const { @@ -6158,32 +6166,27 @@ class CacheFileMetadataResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b); -inline std::ostream& operator<<(std::ostream& out, const CacheFileMetadataResult& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _CacheFileMetadataRequest__isset { _CacheFileMetadataRequest__isset() : partName(false), isAllParts(false) {} - bool partName :1; - bool isAllParts :1; + bool partName; + bool isAllParts; } _CacheFileMetadataRequest__isset; class CacheFileMetadataRequest { public: - CacheFileMetadataRequest(const CacheFileMetadataRequest&); - CacheFileMetadataRequest& operator=(const CacheFileMetadataRequest&); + static const char* ascii_fingerprint; // = "5EE8D1150A9AC521F957F973D03D5878"; + static const uint8_t binary_fingerprint[16]; // = {0x5E,0xE8,0xD1,0x15,0x0A,0x9A,0xC5,0x21,0xF9,0x57,0xF9,0x73,0xD0,0x3D,0x58,0x78}; + CacheFileMetadataRequest() : dbName(), tblName(), partName(), isAllParts(0) { } - virtual ~CacheFileMetadataRequest() throw(); + virtual ~CacheFileMetadataRequest() throw() {} + std::string dbName; std::string tblName; std::string partName; @@ -6191,13 +6194,23 @@ class CacheFileMetadataRequest { _CacheFileMetadataRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_partName(const std::string& val); + void __set_partName(const std::string& val) { + partName = val; + __isset.partName = true; + } - void __set_isAllParts(const bool val); + void __set_isAllParts(const bool val) { + isAllParts = val; + __isset.isAllParts = true; + } bool operator == (const CacheFileMetadataRequest & rhs) const { @@ -6224,36 +6237,34 @@ class CacheFileMetadataRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b); -inline std::ostream& operator<<(std::ostream& out, const CacheFileMetadataRequest& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _GetAllFunctionsResponse__isset { _GetAllFunctionsResponse__isset() : functions(false) {} - bool functions :1; + bool functions; } _GetAllFunctionsResponse__isset; class GetAllFunctionsResponse { public: - GetAllFunctionsResponse(const GetAllFunctionsResponse&); - GetAllFunctionsResponse& operator=(const GetAllFunctionsResponse&); + static const char* ascii_fingerprint; // = "CEE0CA1D7402D4135EF7F42C0F0E0A68"; + static const uint8_t binary_fingerprint[16]; // = {0xCE,0xE0,0xCA,0x1D,0x74,0x02,0xD4,0x13,0x5E,0xF7,0xF4,0x2C,0x0F,0x0E,0x0A,0x68}; + GetAllFunctionsResponse() { } - virtual ~GetAllFunctionsResponse() throw(); + virtual ~GetAllFunctionsResponse() throw() {} + std::vector functions; _GetAllFunctionsResponse__isset __isset; - void __set_functions(const std::vector & val); + void __set_functions(const std::vector & val) { + functions = val; + __isset.functions = true; + } bool operator == (const GetAllFunctionsResponse & rhs) const { @@ -6272,31 +6283,26 @@ class GetAllFunctionsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b); -inline std::ostream& operator<<(std::ostream& out, const GetAllFunctionsResponse& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TableMeta__isset { _TableMeta__isset() : comments(false) {} - bool comments :1; + bool comments; } _TableMeta__isset; class TableMeta { public: - TableMeta(const TableMeta&); - TableMeta& operator=(const TableMeta&); + static const char* ascii_fingerprint; // = "2748901DF3E03B56075825ABF0FCFD25"; + static const uint8_t binary_fingerprint[16]; // = {0x27,0x48,0x90,0x1D,0xF3,0xE0,0x3B,0x56,0x07,0x58,0x25,0xAB,0xF0,0xFC,0xFD,0x25}; + TableMeta() : dbName(), tableName(), tableType(), comments() { } - virtual ~TableMeta() throw(); + virtual ~TableMeta() throw() {} + std::string dbName; std::string tableName; std::string tableType; @@ -6304,13 +6310,22 @@ class TableMeta { _TableMeta__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_tableType(const std::string& val); + void __set_tableType(const std::string& val) { + tableType = val; + } - void __set_comments(const std::string& val); + void __set_comments(const std::string& val) { + comments = val; + __isset.comments = true; + } bool operator == (const TableMeta & rhs) const { @@ -6335,36 +6350,33 @@ class TableMeta { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TableMeta &a, TableMeta &b); -inline std::ostream& operator<<(std::ostream& out, const TableMeta& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _MetaException__isset { _MetaException__isset() : message(false) {} - bool message :1; + bool message; } _MetaException__isset; class MetaException : public ::apache::thrift::TException { public: - MetaException(const MetaException&); - MetaException& operator=(const MetaException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + MetaException() : message() { } - virtual ~MetaException() throw(); + virtual ~MetaException() throw() {} + std::string message; _MetaException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const MetaException & rhs) const { @@ -6381,38 +6393,33 @@ class MetaException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(MetaException &a, MetaException &b); -inline std::ostream& operator<<(std::ostream& out, const MetaException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _UnknownTableException__isset { _UnknownTableException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownTableException__isset; class UnknownTableException : public ::apache::thrift::TException { public: - UnknownTableException(const UnknownTableException&); - UnknownTableException& operator=(const UnknownTableException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + UnknownTableException() : message() { } - virtual ~UnknownTableException() throw(); + virtual ~UnknownTableException() throw() {} + std::string message; _UnknownTableException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownTableException & rhs) const { @@ -6429,38 +6436,33 @@ class UnknownTableException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(UnknownTableException &a, UnknownTableException &b); -inline std::ostream& operator<<(std::ostream& out, const UnknownTableException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _UnknownDBException__isset { _UnknownDBException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownDBException__isset; class UnknownDBException : public ::apache::thrift::TException { public: - UnknownDBException(const UnknownDBException&); - UnknownDBException& operator=(const UnknownDBException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + UnknownDBException() : message() { } - virtual ~UnknownDBException() throw(); + virtual ~UnknownDBException() throw() {} + std::string message; _UnknownDBException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownDBException & rhs) const { @@ -6477,38 +6479,33 @@ class UnknownDBException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(UnknownDBException &a, UnknownDBException &b); -inline std::ostream& operator<<(std::ostream& out, const UnknownDBException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _AlreadyExistsException__isset { _AlreadyExistsException__isset() : message(false) {} - bool message :1; + bool message; } _AlreadyExistsException__isset; class AlreadyExistsException : public ::apache::thrift::TException { public: - AlreadyExistsException(const AlreadyExistsException&); - AlreadyExistsException& operator=(const AlreadyExistsException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + AlreadyExistsException() : message() { } - virtual ~AlreadyExistsException() throw(); + virtual ~AlreadyExistsException() throw() {} + std::string message; _AlreadyExistsException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const AlreadyExistsException & rhs) const { @@ -6525,38 +6522,33 @@ class AlreadyExistsException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(AlreadyExistsException &a, AlreadyExistsException &b); -inline std::ostream& operator<<(std::ostream& out, const AlreadyExistsException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _InvalidPartitionException__isset { _InvalidPartitionException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidPartitionException__isset; class InvalidPartitionException : public ::apache::thrift::TException { public: - InvalidPartitionException(const InvalidPartitionException&); - InvalidPartitionException& operator=(const InvalidPartitionException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + InvalidPartitionException() : message() { } - virtual ~InvalidPartitionException() throw(); + virtual ~InvalidPartitionException() throw() {} + std::string message; _InvalidPartitionException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidPartitionException & rhs) const { @@ -6573,38 +6565,33 @@ class InvalidPartitionException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(InvalidPartitionException &a, InvalidPartitionException &b); -inline std::ostream& operator<<(std::ostream& out, const InvalidPartitionException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _UnknownPartitionException__isset { _UnknownPartitionException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownPartitionException__isset; class UnknownPartitionException : public ::apache::thrift::TException { public: - UnknownPartitionException(const UnknownPartitionException&); - UnknownPartitionException& operator=(const UnknownPartitionException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + UnknownPartitionException() : message() { } - virtual ~UnknownPartitionException() throw(); + virtual ~UnknownPartitionException() throw() {} + std::string message; _UnknownPartitionException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownPartitionException & rhs) const { @@ -6621,38 +6608,33 @@ class UnknownPartitionException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(UnknownPartitionException &a, UnknownPartitionException &b); -inline std::ostream& operator<<(std::ostream& out, const UnknownPartitionException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _InvalidObjectException__isset { _InvalidObjectException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidObjectException__isset; class InvalidObjectException : public ::apache::thrift::TException { public: - InvalidObjectException(const InvalidObjectException&); - InvalidObjectException& operator=(const InvalidObjectException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + InvalidObjectException() : message() { } - virtual ~InvalidObjectException() throw(); + virtual ~InvalidObjectException() throw() {} + std::string message; _InvalidObjectException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidObjectException & rhs) const { @@ -6669,38 +6651,33 @@ class InvalidObjectException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(InvalidObjectException &a, InvalidObjectException &b); -inline std::ostream& operator<<(std::ostream& out, const InvalidObjectException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _NoSuchObjectException__isset { _NoSuchObjectException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchObjectException__isset; class NoSuchObjectException : public ::apache::thrift::TException { public: - NoSuchObjectException(const NoSuchObjectException&); - NoSuchObjectException& operator=(const NoSuchObjectException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + NoSuchObjectException() : message() { } - virtual ~NoSuchObjectException() throw(); + virtual ~NoSuchObjectException() throw() {} + std::string message; _NoSuchObjectException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchObjectException & rhs) const { @@ -6717,38 +6694,33 @@ class NoSuchObjectException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(NoSuchObjectException &a, NoSuchObjectException &b); -inline std::ostream& operator<<(std::ostream& out, const NoSuchObjectException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _IndexAlreadyExistsException__isset { _IndexAlreadyExistsException__isset() : message(false) {} - bool message :1; + bool message; } _IndexAlreadyExistsException__isset; class IndexAlreadyExistsException : public ::apache::thrift::TException { public: - IndexAlreadyExistsException(const IndexAlreadyExistsException&); - IndexAlreadyExistsException& operator=(const IndexAlreadyExistsException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + IndexAlreadyExistsException() : message() { } - virtual ~IndexAlreadyExistsException() throw(); + virtual ~IndexAlreadyExistsException() throw() {} + std::string message; _IndexAlreadyExistsException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const IndexAlreadyExistsException & rhs) const { @@ -6765,38 +6737,33 @@ class IndexAlreadyExistsException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b); -inline std::ostream& operator<<(std::ostream& out, const IndexAlreadyExistsException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _InvalidOperationException__isset { _InvalidOperationException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidOperationException__isset; class InvalidOperationException : public ::apache::thrift::TException { public: - InvalidOperationException(const InvalidOperationException&); - InvalidOperationException& operator=(const InvalidOperationException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + InvalidOperationException() : message() { } - virtual ~InvalidOperationException() throw(); + virtual ~InvalidOperationException() throw() {} + std::string message; _InvalidOperationException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidOperationException & rhs) const { @@ -6813,38 +6780,33 @@ class InvalidOperationException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(InvalidOperationException &a, InvalidOperationException &b); -inline std::ostream& operator<<(std::ostream& out, const InvalidOperationException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ConfigValSecurityException__isset { _ConfigValSecurityException__isset() : message(false) {} - bool message :1; + bool message; } _ConfigValSecurityException__isset; class ConfigValSecurityException : public ::apache::thrift::TException { public: - ConfigValSecurityException(const ConfigValSecurityException&); - ConfigValSecurityException& operator=(const ConfigValSecurityException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + ConfigValSecurityException() : message() { } - virtual ~ConfigValSecurityException() throw(); + virtual ~ConfigValSecurityException() throw() {} + std::string message; _ConfigValSecurityException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const ConfigValSecurityException & rhs) const { @@ -6861,38 +6823,33 @@ class ConfigValSecurityException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(ConfigValSecurityException &a, ConfigValSecurityException &b); -inline std::ostream& operator<<(std::ostream& out, const ConfigValSecurityException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _InvalidInputException__isset { _InvalidInputException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidInputException__isset; class InvalidInputException : public ::apache::thrift::TException { public: - InvalidInputException(const InvalidInputException&); - InvalidInputException& operator=(const InvalidInputException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + InvalidInputException() : message() { } - virtual ~InvalidInputException() throw(); + virtual ~InvalidInputException() throw() {} + std::string message; _InvalidInputException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidInputException & rhs) const { @@ -6909,38 +6866,33 @@ class InvalidInputException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(InvalidInputException &a, InvalidInputException &b); -inline std::ostream& operator<<(std::ostream& out, const InvalidInputException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _NoSuchTxnException__isset { _NoSuchTxnException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchTxnException__isset; class NoSuchTxnException : public ::apache::thrift::TException { public: - NoSuchTxnException(const NoSuchTxnException&); - NoSuchTxnException& operator=(const NoSuchTxnException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + NoSuchTxnException() : message() { } - virtual ~NoSuchTxnException() throw(); + virtual ~NoSuchTxnException() throw() {} + std::string message; _NoSuchTxnException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchTxnException & rhs) const { @@ -6957,38 +6909,33 @@ class NoSuchTxnException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(NoSuchTxnException &a, NoSuchTxnException &b); -inline std::ostream& operator<<(std::ostream& out, const NoSuchTxnException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TxnAbortedException__isset { _TxnAbortedException__isset() : message(false) {} - bool message :1; + bool message; } _TxnAbortedException__isset; class TxnAbortedException : public ::apache::thrift::TException { public: - TxnAbortedException(const TxnAbortedException&); - TxnAbortedException& operator=(const TxnAbortedException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + TxnAbortedException() : message() { } - virtual ~TxnAbortedException() throw(); + virtual ~TxnAbortedException() throw() {} + std::string message; _TxnAbortedException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const TxnAbortedException & rhs) const { @@ -7005,38 +6952,33 @@ class TxnAbortedException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(TxnAbortedException &a, TxnAbortedException &b); -inline std::ostream& operator<<(std::ostream& out, const TxnAbortedException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TxnOpenException__isset { _TxnOpenException__isset() : message(false) {} - bool message :1; + bool message; } _TxnOpenException__isset; class TxnOpenException : public ::apache::thrift::TException { public: - TxnOpenException(const TxnOpenException&); - TxnOpenException& operator=(const TxnOpenException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + TxnOpenException() : message() { } - virtual ~TxnOpenException() throw(); + virtual ~TxnOpenException() throw() {} + std::string message; _TxnOpenException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const TxnOpenException & rhs) const { @@ -7053,38 +6995,33 @@ class TxnOpenException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(TxnOpenException &a, TxnOpenException &b); -inline std::ostream& operator<<(std::ostream& out, const TxnOpenException& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _NoSuchLockException__isset { _NoSuchLockException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchLockException__isset; class NoSuchLockException : public ::apache::thrift::TException { public: - NoSuchLockException(const NoSuchLockException&); - NoSuchLockException& operator=(const NoSuchLockException&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + NoSuchLockException() : message() { } - virtual ~NoSuchLockException() throw(); + virtual ~NoSuchLockException() throw() {} + std::string message; _NoSuchLockException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchLockException & rhs) const { @@ -7101,19 +7038,10 @@ class NoSuchLockException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(NoSuchLockException &a, NoSuchLockException &b); -inline std::ostream& operator<<(std::ostream& out, const NoSuchLockException& obj) -{ - obj.printTo(out); - return out; -} - }}} // namespace #endif diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java index 8e3a0ae..5d44585 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AbortTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AbortTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AbortTxnRequest"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(AbortTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AbortTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AbortTxnRequest typedOther = (AbortTxnRequest)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index bb6e584..ab14d74 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AddDynamicPartitions implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddDynamicPartitions implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddDynamicPartitions"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -170,7 +166,10 @@ public AddDynamicPartitions(AddDynamicPartitions other) { this.tablename = other.tablename; } if (other.isSetPartitionnames()) { - List __this__partitionnames = new ArrayList(other.partitionnames); + List __this__partitionnames = new ArrayList(); + for (String other_element : other.partitionnames) { + __this__partitionnames.add(other_element); + } this.partitionnames = __this__partitionnames; } } @@ -334,7 +333,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); case DBNAME: return getDbname(); @@ -422,75 +421,75 @@ public boolean equals(AddDynamicPartitions that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionnames = true && (isSetPartitionnames()); - list.add(present_partitionnames); + builder.append(present_partitionnames); if (present_partitionnames) - list.add(partitionnames); + builder.append(partitionnames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddDynamicPartitions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddDynamicPartitions typedOther = (AddDynamicPartitions)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(other.isSetPartitionnames()); + lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(typedOther.isSetPartitionnames()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionnames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, other.partitionnames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, typedOther.partitionnames); if (lastComparison != 0) { return lastComparison; } @@ -632,11 +631,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition { org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); struct.partitionnames = new ArrayList(_list492.size); - String _elem493; - for (int _i494 = 0; _i494 < _list492.size; ++_i494) + for (int _i493 = 0; _i493 < _list492.size; ++_i493) { - _elem493 = iprot.readString(); - struct.partitionnames.add(_elem493); + String _elem494; // required + _elem494 = iprot.readString(); + struct.partitionnames.add(_elem494); } iprot.readListEnd(); } @@ -724,11 +723,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions { org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionnames = new ArrayList(_list497.size); - String _elem498; - for (int _i499 = 0; _i499 < _list497.size; ++_i499) + for (int _i498 = 0; _i498 < _list497.size; ++_i498) { - _elem498 = iprot.readString(); - struct.partitionnames.add(_elem498); + String _elem499; // required + _elem499 = iprot.readString(); + struct.partitionnames.add(_elem499); } } struct.setPartitionnamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index 083d340..ced8d4a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AddPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPartitionsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -130,7 +126,7 @@ public String getFieldName() { private static final int __IFNOTEXISTS_ISSET_ID = 0; private static final int __NEEDRESULT_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.NEED_RESULT}; + private _Fields optionals[] = {_Fields.NEED_RESULT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -180,7 +176,7 @@ public AddPartitionsRequest(AddPartitionsRequest other) { this.tblName = other.tblName; } if (other.isSetParts()) { - List __this__parts = new ArrayList(other.parts.size()); + List __this__parts = new ArrayList(); for (Partition other_element : other.parts) { __this__parts.add(new Partition(other_element)); } @@ -390,10 +386,10 @@ public Object getFieldValue(_Fields field) { return getParts(); case IF_NOT_EXISTS: - return isIfNotExists(); + return Boolean.valueOf(isIfNotExists()); case NEED_RESULT: - return isNeedResult(); + return Boolean.valueOf(isNeedResult()); } throw new IllegalStateException(); @@ -483,90 +479,90 @@ public boolean equals(AddPartitionsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_parts = true && (isSetParts()); - list.add(present_parts); + builder.append(present_parts); if (present_parts) - list.add(parts); + builder.append(parts); boolean present_ifNotExists = true; - list.add(present_ifNotExists); + builder.append(present_ifNotExists); if (present_ifNotExists) - list.add(ifNotExists); + builder.append(ifNotExists); boolean present_needResult = true && (isSetNeedResult()); - list.add(present_needResult); + builder.append(present_needResult); if (present_needResult) - list.add(needResult); + builder.append(needResult); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddPartitionsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddPartitionsRequest typedOther = (AddPartitionsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); + lastComparison = Boolean.valueOf(isSetParts()).compareTo(typedOther.isSetParts()); if (lastComparison != 0) { return lastComparison; } if (isSetParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, other.parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, typedOther.parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIfNotExists()).compareTo(other.isSetIfNotExists()); + lastComparison = Boolean.valueOf(isSetIfNotExists()).compareTo(typedOther.isSetIfNotExists()); if (lastComparison != 0) { return lastComparison; } if (isSetIfNotExists()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifNotExists, other.ifNotExists); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifNotExists, typedOther.ifNotExists); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(other.isSetNeedResult()); + lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(typedOther.isSetNeedResult()); if (lastComparison != 0) { return lastComparison; } if (isSetNeedResult()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, other.needResult); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, typedOther.needResult); if (lastComparison != 0) { return lastComparison; } @@ -706,12 +702,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsReques { org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); struct.parts = new ArrayList(_list388.size); - Partition _elem389; - for (int _i390 = 0; _i390 < _list388.size; ++_i390) + for (int _i389 = 0; _i389 < _list388.size; ++_i389) { - _elem389 = new Partition(); - _elem389.read(iprot); - struct.parts.add(_elem389); + Partition _elem390; // required + _elem390 = new Partition(); + _elem390.read(iprot); + struct.parts.add(_elem390); } iprot.readListEnd(); } @@ -826,12 +822,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest { org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.parts = new ArrayList(_list393.size); - Partition _elem394; - for (int _i395 = 0; _i395 < _list393.size; ++_i395) + for (int _i394 = 0; _i394 < _list393.size; ++_i394) { - _elem394 = new Partition(); - _elem394.read(iprot); - struct.parts.add(_elem394); + Partition _elem395; // required + _elem395 = new Partition(); + _elem395.read(iprot); + struct.parts.add(_elem395); } } struct.setPartsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 9004457..86c6fa2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AddPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPartitionsResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONS}; + private _Fields optionals[] = {_Fields.PARTITIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -126,7 +122,7 @@ public AddPartitionsResult() { */ public AddPartitionsResult(AddPartitionsResult other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(AddPartitionsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddPartitionsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddPartitionsResult typedOther = (AddPartitionsResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult { org.apache.thrift.protocol.TList _list380 = iprot.readListBegin(); struct.partitions = new ArrayList(_list380.size); - Partition _elem381; - for (int _i382 = 0; _i382 < _list380.size; ++_i382) + for (int _i381 = 0; _i381 < _list380.size; ++_i381) { - _elem381 = new Partition(); - _elem381.read(iprot); - struct.partitions.add(_elem381); + Partition _elem382; // required + _elem382 = new Partition(); + _elem382.read(iprot); + struct.partitions.add(_elem382); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult { org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list385.size); - Partition _elem386; - for (int _i387 = 0; _i387 < _list385.size; ++_i387) + for (int _i386 = 0; _i386 < _list385.size; ++_i386) { - _elem386 = new Partition(); - _elem386.read(iprot); - struct.partitions.add(_elem386); + Partition _elem387; // required + _elem387 = new Partition(); + _elem387.read(iprot); + struct.partitions.add(_elem387); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java index bfd1206..8e0f757 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AggrStats implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AggrStats implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AggrStats"); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public AggrStats( public AggrStats(AggrStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetColStats()) { - List __this__colStats = new ArrayList(other.colStats.size()); + List __this__colStats = new ArrayList(); for (ColumnStatisticsObj other_element : other.colStats) { __this__colStats.add(new ColumnStatisticsObj(other_element)); } @@ -252,7 +248,7 @@ public Object getFieldValue(_Fields field) { return getColStats(); case PARTS_FOUND: - return getPartsFound(); + return Long.valueOf(getPartsFound()); } throw new IllegalStateException(); @@ -309,45 +305,45 @@ public boolean equals(AggrStats that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colStats = true && (isSetColStats()); - list.add(present_colStats); + builder.append(present_colStats); if (present_colStats) - list.add(colStats); + builder.append(colStats); boolean present_partsFound = true; - list.add(present_partsFound); + builder.append(present_partsFound); if (present_partsFound) - list.add(partsFound); + builder.append(partsFound); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AggrStats other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AggrStats typedOther = (AggrStats)other; - lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats()); + lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats()); if (lastComparison != 0) { return lastComparison; } if (isSetColStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartsFound()).compareTo(other.isSetPartsFound()); + lastComparison = Boolean.valueOf(isSetPartsFound()).compareTo(typedOther.isSetPartsFound()); if (lastComparison != 0) { return lastComparison; } if (isSetPartsFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partsFound, other.partsFound); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partsFound, typedOther.partsFound); if (lastComparison != 0) { return lastComparison; } @@ -441,12 +437,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AggrStats struct) t { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); struct.colStats = new ArrayList(_list278.size); - ColumnStatisticsObj _elem279; - for (int _i280 = 0; _i280 < _list278.size; ++_i280) + for (int _i279 = 0; _i279 < _list278.size; ++_i279) { - _elem279 = new ColumnStatisticsObj(); - _elem279.read(iprot); - struct.colStats.add(_elem279); + ColumnStatisticsObj _elem280; // required + _elem280 = new ColumnStatisticsObj(); + _elem280.read(iprot); + struct.colStats.add(_elem280); } iprot.readListEnd(); } @@ -524,12 +520,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) th { org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colStats = new ArrayList(_list283.size); - ColumnStatisticsObj _elem284; - for (int _i285 = 0; _i285 < _list283.size; ++_i285) + for (int _i284 = 0; _i284 < _list283.size; ++_i284) { - _elem284 = new ColumnStatisticsObj(); - _elem284.read(iprot); - struct.colStats.add(_elem284); + ColumnStatisticsObj _elem285; // required + _elem285 = new ColumnStatisticsObj(); + _elem285.read(iprot); + struct.colStats.add(_elem285); } } struct.setColStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java index 4032f19..2a5e58f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class AlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExistsException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(AlreadyExistsException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AlreadyExistsException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AlreadyExistsException typedOther = (AlreadyExistsException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java index 84e393c..3d7f714 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,18 +28,16 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class BinaryColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class BinaryColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BinaryColumnStatsData"); private static final org.apache.thrift.protocol.TField MAX_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("maxColLen", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField AVG_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("avgColLen", org.apache.thrift.protocol.TType.DOUBLE, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -51,12 +48,14 @@ private long maxColLen; // required private double avgColLen; // required private long numNulls; // required + private String bitVectors; // 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 { MAX_COL_LEN((short)1, "maxColLen"), AVG_COL_LEN((short)2, "avgColLen"), - NUM_NULLS((short)3, "numNulls"); + NUM_NULLS((short)3, "numNulls"), + BIT_VECTORS((short)4, "bitVectors"); private static final Map byName = new HashMap(); @@ -77,6 +76,8 @@ public static _Fields findByThriftId(int fieldId) { return AVG_COL_LEN; case 3: // NUM_NULLS return NUM_NULLS; + case 4: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -130,6 +131,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))); tmpMap.put(_Fields.NUM_NULLS, new org.apache.thrift.meta_data.FieldMetaData("numNulls", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BinaryColumnStatsData.class, metaDataMap); } @@ -140,7 +143,8 @@ public BinaryColumnStatsData() { public BinaryColumnStatsData( long maxColLen, double avgColLen, - long numNulls) + long numNulls, + String bitVectors) { this(); this.maxColLen = maxColLen; @@ -149,6 +153,7 @@ public BinaryColumnStatsData( setAvgColLenIsSet(true); this.numNulls = numNulls; setNumNullsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -159,6 +164,9 @@ public BinaryColumnStatsData(BinaryColumnStatsData other) { this.maxColLen = other.maxColLen; this.avgColLen = other.avgColLen; this.numNulls = other.numNulls; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public BinaryColumnStatsData deepCopy() { @@ -173,6 +181,7 @@ public void clear() { this.avgColLen = 0.0; setNumNullsIsSet(false); this.numNulls = 0; + this.bitVectors = null; } public long getMaxColLen() { @@ -241,6 +250,29 @@ public void setNumNullsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMNULLS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case MAX_COL_LEN: @@ -267,19 +299,30 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case MAX_COL_LEN: - return getMaxColLen(); + return Long.valueOf(getMaxColLen()); case AVG_COL_LEN: - return getAvgColLen(); + return Double.valueOf(getAvgColLen()); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -298,6 +341,8 @@ public boolean isSet(_Fields field) { return isSetAvgColLen(); case NUM_NULLS: return isSetNumNulls(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -342,65 +387,89 @@ public boolean equals(BinaryColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_maxColLen = true; - list.add(present_maxColLen); + builder.append(present_maxColLen); if (present_maxColLen) - list.add(maxColLen); + builder.append(maxColLen); boolean present_avgColLen = true; - list.add(present_avgColLen); + builder.append(present_avgColLen); if (present_avgColLen) - list.add(avgColLen); + builder.append(avgColLen); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(BinaryColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + BinaryColumnStatsData typedOther = (BinaryColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(other.isSetMaxColLen()); + lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(typedOther.isSetMaxColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, other.maxColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, typedOther.maxColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(other.isSetAvgColLen()); + lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(typedOther.isSetAvgColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetAvgColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, other.avgColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, typedOther.avgColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -436,6 +505,14 @@ public String toString() { sb.append("numNulls:"); sb.append(this.numNulls); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -454,6 +531,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numNulls' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -517,6 +598,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, BinaryColumnStatsDa org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -539,6 +628,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryColumnStatsD oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC); oprot.writeI64(struct.numNulls); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -559,6 +653,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, BinaryColumnStatsDa oprot.writeI64(struct.maxColLen); oprot.writeDouble(struct.avgColLen); oprot.writeI64(struct.numNulls); + oprot.writeString(struct.bitVectors); } @Override @@ -570,6 +665,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, BinaryColumnStatsDat struct.setAvgColLenIsSet(true); struct.numNulls = iprot.readI64(); struct.setNumNullsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java index 6aa4668..07960b3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,18 +28,16 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class BooleanColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class BooleanColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BooleanColumnStatsData"); private static final org.apache.thrift.protocol.TField NUM_TRUES_FIELD_DESC = new org.apache.thrift.protocol.TField("numTrues", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField NUM_FALSES_FIELD_DESC = new org.apache.thrift.protocol.TField("numFalses", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -51,12 +48,14 @@ private long numTrues; // required private long numFalses; // required private long numNulls; // required + private String bitVectors; // 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 { NUM_TRUES((short)1, "numTrues"), NUM_FALSES((short)2, "numFalses"), - NUM_NULLS((short)3, "numNulls"); + NUM_NULLS((short)3, "numNulls"), + BIT_VECTORS((short)4, "bitVectors"); private static final Map byName = new HashMap(); @@ -77,6 +76,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_FALSES; case 3: // NUM_NULLS return NUM_NULLS; + case 4: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -130,6 +131,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_NULLS, new org.apache.thrift.meta_data.FieldMetaData("numNulls", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BooleanColumnStatsData.class, metaDataMap); } @@ -140,7 +143,8 @@ public BooleanColumnStatsData() { public BooleanColumnStatsData( long numTrues, long numFalses, - long numNulls) + long numNulls, + String bitVectors) { this(); this.numTrues = numTrues; @@ -149,6 +153,7 @@ public BooleanColumnStatsData( setNumFalsesIsSet(true); this.numNulls = numNulls; setNumNullsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -159,6 +164,9 @@ public BooleanColumnStatsData(BooleanColumnStatsData other) { this.numTrues = other.numTrues; this.numFalses = other.numFalses; this.numNulls = other.numNulls; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public BooleanColumnStatsData deepCopy() { @@ -173,6 +181,7 @@ public void clear() { this.numFalses = 0; setNumNullsIsSet(false); this.numNulls = 0; + this.bitVectors = null; } public long getNumTrues() { @@ -241,6 +250,29 @@ public void setNumNullsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMNULLS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case NUM_TRUES: @@ -267,19 +299,30 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case NUM_TRUES: - return getNumTrues(); + return Long.valueOf(getNumTrues()); case NUM_FALSES: - return getNumFalses(); + return Long.valueOf(getNumFalses()); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -298,6 +341,8 @@ public boolean isSet(_Fields field) { return isSetNumFalses(); case NUM_NULLS: return isSetNumNulls(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -342,65 +387,89 @@ public boolean equals(BooleanColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_numTrues = true; - list.add(present_numTrues); + builder.append(present_numTrues); if (present_numTrues) - list.add(numTrues); + builder.append(numTrues); boolean present_numFalses = true; - list.add(present_numFalses); + builder.append(present_numFalses); if (present_numFalses) - list.add(numFalses); + builder.append(numFalses); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(BooleanColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + BooleanColumnStatsData typedOther = (BooleanColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetNumTrues()).compareTo(other.isSetNumTrues()); + lastComparison = Boolean.valueOf(isSetNumTrues()).compareTo(typedOther.isSetNumTrues()); if (lastComparison != 0) { return lastComparison; } if (isSetNumTrues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numTrues, other.numTrues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numTrues, typedOther.numTrues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumFalses()).compareTo(other.isSetNumFalses()); + lastComparison = Boolean.valueOf(isSetNumFalses()).compareTo(typedOther.isSetNumFalses()); if (lastComparison != 0) { return lastComparison; } if (isSetNumFalses()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numFalses, other.numFalses); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numFalses, typedOther.numFalses); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -436,6 +505,14 @@ public String toString() { sb.append("numNulls:"); sb.append(this.numNulls); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -454,6 +531,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numNulls' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -517,6 +598,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, BooleanColumnStatsD org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -539,6 +628,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, BooleanColumnStats oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC); oprot.writeI64(struct.numNulls); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -559,6 +653,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, BooleanColumnStatsD oprot.writeI64(struct.numTrues); oprot.writeI64(struct.numFalses); oprot.writeI64(struct.numNulls); + oprot.writeString(struct.bitVectors); } @Override @@ -570,6 +665,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, BooleanColumnStatsDa struct.setNumFalsesIsSet(true); struct.numNulls = iprot.readI64(); struct.setNumNullsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataRequest.java index a008acc..40e66cd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CacheFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CacheFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CacheFileMetadataRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __ISALLPARTS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PART_NAME,_Fields.IS_ALL_PARTS}; + private _Fields optionals[] = {_Fields.PART_NAME,_Fields.IS_ALL_PARTS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -322,7 +318,7 @@ public Object getFieldValue(_Fields field) { return getPartName(); case IS_ALL_PARTS: - return isIsAllParts(); + return Boolean.valueOf(isIsAllParts()); } throw new IllegalStateException(); @@ -401,75 +397,75 @@ public boolean equals(CacheFileMetadataRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_partName = true && (isSetPartName()); - list.add(present_partName); + builder.append(present_partName); if (present_partName) - list.add(partName); + builder.append(partName); boolean present_isAllParts = true && (isSetIsAllParts()); - list.add(present_isAllParts); + builder.append(present_isAllParts); if (present_isAllParts) - list.add(isAllParts); + builder.append(isAllParts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CacheFileMetadataRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CacheFileMetadataRequest typedOther = (CacheFileMetadataRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartName()).compareTo(other.isSetPartName()); + lastComparison = Boolean.valueOf(isSetPartName()).compareTo(typedOther.isSetPartName()); if (lastComparison != 0) { return lastComparison; } if (isSetPartName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, other.partName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, typedOther.partName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsAllParts()).compareTo(other.isSetIsAllParts()); + lastComparison = Boolean.valueOf(isSetIsAllParts()).compareTo(typedOther.isSetIsAllParts()); if (lastComparison != 0) { return lastComparison; } if (isSetIsAllParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAllParts, other.isAllParts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAllParts, typedOther.isAllParts); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataResult.java index a1466ae..286d6c0 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CacheFileMetadataResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CacheFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CacheFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CacheFileMetadataResult"); private static final org.apache.thrift.protocol.TField IS_SUPPORTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isSupported", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case IS_SUPPORTED: - return isIsSupported(); + return Boolean.valueOf(isIsSupported()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(CacheFileMetadataResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_isSupported = true; - list.add(present_isSupported); + builder.append(present_isSupported); if (present_isSupported) - list.add(isSupported); + builder.append(isSupported); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CacheFileMetadataResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CacheFileMetadataResult typedOther = (CacheFileMetadataResult)other; - lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(other.isSetIsSupported()); + lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(typedOther.isSetIsSupported()); if (lastComparison != 0) { return lastComparison; } if (isSetIsSupported()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, other.isSupported); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, typedOther.isSupported); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java index 430be03..ae34203 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CheckLockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CheckLockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CheckLockRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LOCKID: - return getLockid(); + return Long.valueOf(getLockid()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(CheckLockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CheckLockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CheckLockRequest typedOther = (CheckLockRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 657bb7b..02517c7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ClearFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ClearFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ClearFileMetadataRequest"); private static final org.apache.thrift.protocol.TField FILE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fileIds", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public ClearFileMetadataRequest( */ public ClearFileMetadataRequest(ClearFileMetadataRequest other) { if (other.isSetFileIds()) { - List __this__fileIds = new ArrayList(other.fileIds); + List __this__fileIds = new ArrayList(); + for (Long other_element : other.fileIds) { + __this__fileIds.add(other_element); + } this.fileIds = __this__fileIds; } } @@ -246,30 +245,30 @@ public boolean equals(ClearFileMetadataRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fileIds = true && (isSetFileIds()); - list.add(present_fileIds); + builder.append(present_fileIds); if (present_fileIds) - list.add(fileIds); + builder.append(fileIds); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ClearFileMetadataRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ClearFileMetadataRequest typedOther = (ClearFileMetadataRequest)other; - lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(other.isSetFileIds()); + lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(typedOther.isSetFileIds()); if (lastComparison != 0) { return lastComparison; } if (isSetFileIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, other.fileIds); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, typedOther.fileIds); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe { org.apache.thrift.protocol.TList _list576 = iprot.readListBegin(); struct.fileIds = new ArrayList(_list576.size); - long _elem577; - for (int _i578 = 0; _i578 < _list576.size; ++_i578) + for (int _i577 = 0; _i577 < _list576.size; ++_i577) { - _elem577 = iprot.readI64(); - struct.fileIds.add(_elem577); + long _elem578; // required + _elem578 = iprot.readI64(); + struct.fileIds.add(_elem578); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataReq { org.apache.thrift.protocol.TList _list581 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList(_list581.size); - long _elem582; - for (int _i583 = 0; _i583 < _list581.size; ++_i583) + for (int _i582 = 0; _i582 < _list581.size; ++_i582) { - _elem582 = iprot.readI64(); - struct.fileIds.add(_elem582); + long _elem583; // required + _elem583 = iprot.readI64(); + struct.fileIds.add(_elem583); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataResult.java index 8e46d83..2be859f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ClearFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ClearFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ClearFileMetadataResult"); @@ -165,18 +161,18 @@ public boolean equals(ClearFileMetadataResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ClearFileMetadataResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ClearFileMetadataResult typedOther = (ClearFileMetadataResult)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index ba059fe..a695645 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ColumnStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatistics"); private static final org.apache.thrift.protocol.TField STATS_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("statsDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144,7 +140,7 @@ public ColumnStatistics(ColumnStatistics other) { this.statsDesc = new ColumnStatisticsDesc(other.statsDesc); } if (other.isSetStatsObj()) { - List __this__statsObj = new ArrayList(other.statsObj.size()); + List __this__statsObj = new ArrayList(); for (ColumnStatisticsObj other_element : other.statsObj) { __this__statsObj.add(new ColumnStatisticsObj(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(ColumnStatistics that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_statsDesc = true && (isSetStatsDesc()); - list.add(present_statsDesc); + builder.append(present_statsDesc); if (present_statsDesc) - list.add(statsDesc); + builder.append(statsDesc); boolean present_statsObj = true && (isSetStatsObj()); - list.add(present_statsObj); + builder.append(present_statsObj); if (present_statsObj) - list.add(statsObj); + builder.append(statsObj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatistics other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatistics typedOther = (ColumnStatistics)other; - lastComparison = Boolean.valueOf(isSetStatsDesc()).compareTo(other.isSetStatsDesc()); + lastComparison = Boolean.valueOf(isSetStatsDesc()).compareTo(typedOther.isSetStatsDesc()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsDesc, other.statsDesc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsDesc, typedOther.statsDesc); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(other.isSetStatsObj()); + lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(typedOther.isSetStatsObj()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsObj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, other.statsObj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, typedOther.statsObj); if (lastComparison != 0) { return lastComparison; } @@ -453,12 +449,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st { org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); struct.statsObj = new ArrayList(_list270.size); - ColumnStatisticsObj _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + for (int _i271 = 0; _i271 < _list270.size; ++_i271) { - _elem271 = new ColumnStatisticsObj(); - _elem271.read(iprot); - struct.statsObj.add(_elem271); + ColumnStatisticsObj _elem272; // required + _elem272 = new ColumnStatisticsObj(); + _elem272.read(iprot); + struct.statsObj.add(_elem272); } iprot.readListEnd(); } @@ -533,12 +529,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str { org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.statsObj = new ArrayList(_list275.size); - ColumnStatisticsObj _elem276; - for (int _i277 = 0; _i277 < _list275.size; ++_i277) + for (int _i276 = 0; _i276 < _list275.size; ++_i276) { - _elem276 = new ColumnStatisticsObj(); - _elem276.read(iprot); - struct.statsObj.add(_elem276); + ColumnStatisticsObj _elem277; // required + _elem277 = new ColumnStatisticsObj(); + _elem277.read(iprot); + struct.statsObj.add(_elem277); } } struct.setStatsObjIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java index 036d438..58177e5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class ColumnStatisticsData extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsData"); private static final org.apache.thrift.protocol.TField BOOLEAN_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("booleanStats", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -321,7 +318,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -640,19 +636,19 @@ public int compareTo(ColumnStatisticsData other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java index daf3d10..e951d04 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ColumnStatisticsDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatisticsDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsDesc"); private static final org.apache.thrift.protocol.TField IS_TBL_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("isTblLevel", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -130,7 +126,7 @@ public String getFieldName() { private static final int __ISTBLLEVEL_ISSET_ID = 0; private static final int __LASTANALYZED_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PART_NAME,_Fields.LAST_ANALYZED}; + private _Fields optionals[] = {_Fields.PART_NAME,_Fields.LAST_ANALYZED}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -357,7 +353,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case IS_TBL_LEVEL: - return isIsTblLevel(); + return Boolean.valueOf(isIsTblLevel()); case DB_NAME: return getDbName(); @@ -369,7 +365,7 @@ public Object getFieldValue(_Fields field) { return getPartName(); case LAST_ANALYZED: - return getLastAnalyzed(); + return Long.valueOf(getLastAnalyzed()); } throw new IllegalStateException(); @@ -459,90 +455,90 @@ public boolean equals(ColumnStatisticsDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_isTblLevel = true; - list.add(present_isTblLevel); + builder.append(present_isTblLevel); if (present_isTblLevel) - list.add(isTblLevel); + builder.append(isTblLevel); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_partName = true && (isSetPartName()); - list.add(present_partName); + builder.append(present_partName); if (present_partName) - list.add(partName); + builder.append(partName); boolean present_lastAnalyzed = true && (isSetLastAnalyzed()); - list.add(present_lastAnalyzed); + builder.append(present_lastAnalyzed); if (present_lastAnalyzed) - list.add(lastAnalyzed); + builder.append(lastAnalyzed); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatisticsDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatisticsDesc typedOther = (ColumnStatisticsDesc)other; - lastComparison = Boolean.valueOf(isSetIsTblLevel()).compareTo(other.isSetIsTblLevel()); + lastComparison = Boolean.valueOf(isSetIsTblLevel()).compareTo(typedOther.isSetIsTblLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetIsTblLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTblLevel, other.isTblLevel); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTblLevel, typedOther.isTblLevel); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartName()).compareTo(other.isSetPartName()); + lastComparison = Boolean.valueOf(isSetPartName()).compareTo(typedOther.isSetPartName()); if (lastComparison != 0) { return lastComparison; } if (isSetPartName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, other.partName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, typedOther.partName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(other.isSetLastAnalyzed()); + lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(typedOther.isSetLastAnalyzed()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAnalyzed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, other.lastAnalyzed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, typedOther.lastAnalyzed); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java index 4191beb..f1257fd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ColumnStatisticsObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatisticsObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsObj"); private static final org.apache.thrift.protocol.TField COL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("colName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -345,60 +341,60 @@ public boolean equals(ColumnStatisticsObj that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colName = true && (isSetColName()); - list.add(present_colName); + builder.append(present_colName); if (present_colName) - list.add(colName); + builder.append(colName); boolean present_colType = true && (isSetColType()); - list.add(present_colType); + builder.append(present_colType); if (present_colType) - list.add(colType); + builder.append(colType); boolean present_statsData = true && (isSetStatsData()); - list.add(present_statsData); + builder.append(present_statsData); if (present_statsData) - list.add(statsData); + builder.append(statsData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatisticsObj other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatisticsObj typedOther = (ColumnStatisticsObj)other; - lastComparison = Boolean.valueOf(isSetColName()).compareTo(other.isSetColName()); + lastComparison = Boolean.valueOf(isSetColName()).compareTo(typedOther.isSetColName()); if (lastComparison != 0) { return lastComparison; } if (isSetColName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colName, other.colName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colName, typedOther.colName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColType()).compareTo(other.isSetColType()); + lastComparison = Boolean.valueOf(isSetColType()).compareTo(typedOther.isSetColType()); if (lastComparison != 0) { return lastComparison; } if (isSetColType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, other.colType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, typedOther.colType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatsData()).compareTo(other.isSetStatsData()); + lastComparison = Boolean.valueOf(isSetStatsData()).compareTo(typedOther.isSetStatsData()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsData, other.statsData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsData, typedOther.statsData); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java index 77554b7..aeb2421 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CommitTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CommitTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CommitTxnRequest"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(CommitTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CommitTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CommitTxnRequest typedOther = (CommitTxnRequest)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index e028ecb..939c15a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CompactionRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CompactionRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CompactionRequest"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,7 +127,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; + private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -470,90 +466,90 @@ public boolean equals(CompactionRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_runas = true && (isSetRunas()); - list.add(present_runas); + builder.append(present_runas); if (present_runas) - list.add(runas); + builder.append(runas); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CompactionRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CompactionRequest typedOther = (CompactionRequest)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunas()).compareTo(other.isSetRunas()); + lastComparison = Boolean.valueOf(isSetRunas()).compareTo(typedOther.isSetRunas()); if (lastComparison != 0) { return lastComparison; } if (isSetRunas()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, other.runas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, typedOther.runas); if (lastComparison != 0) { return lastComparison; } @@ -702,7 +698,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionRequest s break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -801,7 +797,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionRequest st struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java index 7450b27..e4ecbcc 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java index d454a96..bdcf21d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ConfigValSecurityException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(ConfigValSecurityException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ConfigValSecurityException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ConfigValSecurityException typedOther = (ConfigValSecurityException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java index 2565a08..8b8e5c4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class CurrentNotificationEventId implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CurrentNotificationEventId implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CurrentNotificationEventId"); private static final org.apache.thrift.protocol.TField EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("eventId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case EVENT_ID: - return getEventId(); + return Long.valueOf(getEventId()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(CurrentNotificationEventId that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_eventId = true; - list.add(present_eventId); + builder.append(present_eventId); if (present_eventId) - list.add(eventId); + builder.append(eventId); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CurrentNotificationEventId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CurrentNotificationEventId typedOther = (CurrentNotificationEventId)other; - lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); + lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; } if (isSetEventId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java index 2769845..c3c531d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Database implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Database implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Database"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -141,7 +137,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; + private _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -195,7 +191,18 @@ public Database(Database other) { this.locationUri = other.locationUri; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -598,120 +605,120 @@ public boolean equals(Database that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_description = true && (isSetDescription()); - list.add(present_description); + builder.append(present_description); if (present_description) - list.add(description); + builder.append(description); boolean present_locationUri = true && (isSetLocationUri()); - list.add(present_locationUri); + builder.append(present_locationUri); if (present_locationUri) - list.add(locationUri); + builder.append(locationUri); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); boolean present_ownerType = true && (isSetOwnerType()); - list.add(present_ownerType); + builder.append(present_ownerType); if (present_ownerType) - list.add(ownerType.getValue()); + builder.append(ownerType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Database other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Database typedOther = (Database)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(other.isSetLocationUri()); + lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(typedOther.isSetLocationUri()); if (lastComparison != 0) { return lastComparison; } if (isSetLocationUri()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, other.locationUri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, typedOther.locationUri); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(other.isSetOwnerType()); + lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(typedOther.isSetOwnerType()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, other.ownerType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, typedOther.ownerType); if (lastComparison != 0) { return lastComparison; } @@ -872,13 +879,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Database struct) th { org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map94.size); - String _key95; - String _val96; - for (int _i97 = 0; _i97 < _map94.size; ++_i97) + for (int _i95 = 0; _i95 < _map94.size; ++_i95) { - _key95 = iprot.readString(); - _val96 = iprot.readString(); - struct.parameters.put(_key95, _val96); + String _key96; // required + String _val97; // required + _key96 = iprot.readString(); + _val97 = iprot.readString(); + struct.parameters.put(_key96, _val97); } iprot.readMapEnd(); } @@ -906,7 +913,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Database struct) th break; case 7: // OWNER_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1064,13 +1071,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Database struct) thr { org.apache.thrift.protocol.TMap _map100 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map100.size); - String _key101; - String _val102; - for (int _i103 = 0; _i103 < _map100.size; ++_i103) + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - _key101 = iprot.readString(); - _val102 = iprot.readString(); - struct.parameters.put(_key101, _val102); + String _key102; // required + String _val103; // required + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.parameters.put(_key102, _val103); } } struct.setParametersIsSet(true); @@ -1085,7 +1092,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Database struct) thr struct.setOwnerNameIsSet(true); } if (incoming.get(6)) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java index bf064e5..3e02db5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Date implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Date implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Date"); private static final org.apache.thrift.protocol.TField DAYS_SINCE_EPOCH_FIELD_DESC = new org.apache.thrift.protocol.TField("daysSinceEpoch", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case DAYS_SINCE_EPOCH: - return getDaysSinceEpoch(); + return Long.valueOf(getDaysSinceEpoch()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(Date that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_daysSinceEpoch = true; - list.add(present_daysSinceEpoch); + builder.append(present_daysSinceEpoch); if (present_daysSinceEpoch) - list.add(daysSinceEpoch); + builder.append(daysSinceEpoch); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Date other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Date typedOther = (Date)other; - lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(other.isSetDaysSinceEpoch()); + lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(typedOther.isSetDaysSinceEpoch()); if (lastComparison != 0) { return lastComparison; } if (isSetDaysSinceEpoch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, other.daysSinceEpoch); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, typedOther.daysSinceEpoch); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java index 2ebb811..bee0b43 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,19 +28,17 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DateColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DateColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DateColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField HIGH_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("highValue", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField NUM_DVS_FIELD_DESC = new org.apache.thrift.protocol.TField("numDVs", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +50,15 @@ private Date highValue; // optional private long numNulls; // required private long numDVs; // required + private String bitVectors; // 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 { LOW_VALUE((short)1, "lowValue"), HIGH_VALUE((short)2, "highValue"), NUM_NULLS((short)3, "numNulls"), - NUM_DVS((short)4, "numDVs"); + NUM_DVS((short)4, "numDVs"), + BIT_VECTORS((short)5, "bitVectors"); private static final Map byName = new HashMap(); @@ -82,6 +81,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_NULLS; case 4: // NUM_DVS return NUM_DVS; + case 5: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -125,7 +126,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -137,6 +138,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_DVS, new org.apache.thrift.meta_data.FieldMetaData("numDVs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DateColumnStatsData.class, metaDataMap); } @@ -146,13 +149,15 @@ public DateColumnStatsData() { public DateColumnStatsData( long numNulls, - long numDVs) + long numDVs, + String bitVectors) { this(); this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -168,6 +173,9 @@ public DateColumnStatsData(DateColumnStatsData other) { } this.numNulls = other.numNulls; this.numDVs = other.numDVs; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public DateColumnStatsData deepCopy() { @@ -182,6 +190,7 @@ public void clear() { this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; + this.bitVectors = null; } public Date getLowValue() { @@ -274,6 +283,29 @@ public void setNumDVsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMDVS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LOW_VALUE: @@ -308,6 +340,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } @@ -320,10 +360,13 @@ public Object getFieldValue(_Fields field) { return getHighValue(); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); case NUM_DVS: - return getNumDVs(); + return Long.valueOf(getNumDVs()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -344,6 +387,8 @@ public boolean isSet(_Fields field) { return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -397,80 +442,104 @@ public boolean equals(DateColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DateColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DateColumnStatsData typedOther = (DateColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -522,6 +591,14 @@ public String toString() { sb.append("numDVs:"); sb.append(this.numDVs); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -536,6 +613,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numDVs' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity if (lowValue != null) { lowValue.validate(); @@ -615,6 +696,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DateColumnStatsData org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -648,6 +737,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DateColumnStatsDat oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -667,6 +761,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); + oprot.writeString(struct.bitVectors); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); @@ -690,6 +785,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.lowValue = new Date(); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java index 5b23dba..ed8bb18 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Decimal implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Decimal implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Decimal"); private static final org.apache.thrift.protocol.TField UNSCALED_FIELD_DESC = new org.apache.thrift.protocol.TField("unscaled", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -133,7 +129,7 @@ public Decimal( short scale) { this(); - this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); + this.unscaled = unscaled; this.scale = scale; setScaleIsSet(true); } @@ -145,6 +141,7 @@ public Decimal(Decimal other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetUnscaled()) { this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(other.unscaled); +; } this.scale = other.scale; } @@ -166,15 +163,15 @@ public void clear() { } public ByteBuffer bufferForUnscaled() { - return org.apache.thrift.TBaseHelper.copyBinary(unscaled); + return unscaled; } public void setUnscaled(byte[] unscaled) { - this.unscaled = unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(unscaled, unscaled.length)); + setUnscaled(unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(unscaled)); } public void setUnscaled(ByteBuffer unscaled) { - this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); + this.unscaled = unscaled; } public void unsetUnscaled() { @@ -241,7 +238,7 @@ public Object getFieldValue(_Fields field) { return getUnscaled(); case SCALE: - return getScale(); + return Short.valueOf(getScale()); } throw new IllegalStateException(); @@ -298,45 +295,45 @@ public boolean equals(Decimal that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_unscaled = true && (isSetUnscaled()); - list.add(present_unscaled); + builder.append(present_unscaled); if (present_unscaled) - list.add(unscaled); + builder.append(unscaled); boolean present_scale = true; - list.add(present_scale); + builder.append(present_scale); if (present_scale) - list.add(scale); + builder.append(scale); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Decimal other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Decimal typedOther = (Decimal)other; - lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(other.isSetUnscaled()); + lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(typedOther.isSetUnscaled()); if (lastComparison != 0) { return lastComparison; } if (isSetUnscaled()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, other.unscaled); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, typedOther.unscaled); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetScale()).compareTo(other.isSetScale()); + lastComparison = Boolean.valueOf(isSetScale()).compareTo(typedOther.isSetScale()); if (lastComparison != 0) { return lastComparison; } if (isSetScale()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, other.scale); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, typedOther.scale); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java index 720176a..d2cb5a7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,19 +28,17 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DecimalColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DecimalColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DecimalColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField HIGH_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("highValue", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField NUM_DVS_FIELD_DESC = new org.apache.thrift.protocol.TField("numDVs", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +50,15 @@ private Decimal highValue; // optional private long numNulls; // required private long numDVs; // required + private String bitVectors; // 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 { LOW_VALUE((short)1, "lowValue"), HIGH_VALUE((short)2, "highValue"), NUM_NULLS((short)3, "numNulls"), - NUM_DVS((short)4, "numDVs"); + NUM_DVS((short)4, "numDVs"), + BIT_VECTORS((short)5, "bitVectors"); private static final Map byName = new HashMap(); @@ -82,6 +81,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_NULLS; case 4: // NUM_DVS return NUM_DVS; + case 5: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -125,7 +126,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -137,6 +138,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_DVS, new org.apache.thrift.meta_data.FieldMetaData("numDVs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DecimalColumnStatsData.class, metaDataMap); } @@ -146,13 +149,15 @@ public DecimalColumnStatsData() { public DecimalColumnStatsData( long numNulls, - long numDVs) + long numDVs, + String bitVectors) { this(); this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -168,6 +173,9 @@ public DecimalColumnStatsData(DecimalColumnStatsData other) { } this.numNulls = other.numNulls; this.numDVs = other.numDVs; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public DecimalColumnStatsData deepCopy() { @@ -182,6 +190,7 @@ public void clear() { this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; + this.bitVectors = null; } public Decimal getLowValue() { @@ -274,6 +283,29 @@ public void setNumDVsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMDVS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LOW_VALUE: @@ -308,6 +340,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } @@ -320,10 +360,13 @@ public Object getFieldValue(_Fields field) { return getHighValue(); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); case NUM_DVS: - return getNumDVs(); + return Long.valueOf(getNumDVs()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -344,6 +387,8 @@ public boolean isSet(_Fields field) { return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -397,80 +442,104 @@ public boolean equals(DecimalColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DecimalColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DecimalColumnStatsData typedOther = (DecimalColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -522,6 +591,14 @@ public String toString() { sb.append("numDVs:"); sb.append(this.numDVs); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -536,6 +613,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numDVs' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity if (lowValue != null) { lowValue.validate(); @@ -615,6 +696,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DecimalColumnStatsD org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -648,6 +737,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DecimalColumnStats oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -667,6 +761,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DecimalColumnStatsD TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); + oprot.writeString(struct.bitVectors); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); @@ -690,6 +785,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DecimalColumnStatsDa struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.lowValue = new Decimal(); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java index 5d48b5d..022e92b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,19 +28,17 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DoubleColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DoubleColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DoubleColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.DOUBLE, (short)1); private static final org.apache.thrift.protocol.TField HIGH_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("highValue", org.apache.thrift.protocol.TType.DOUBLE, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField NUM_DVS_FIELD_DESC = new org.apache.thrift.protocol.TField("numDVs", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +50,15 @@ private double highValue; // optional private long numNulls; // required private long numDVs; // required + private String bitVectors; // 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 { LOW_VALUE((short)1, "lowValue"), HIGH_VALUE((short)2, "highValue"), NUM_NULLS((short)3, "numNulls"), - NUM_DVS((short)4, "numDVs"); + NUM_DVS((short)4, "numDVs"), + BIT_VECTORS((short)5, "bitVectors"); private static final Map byName = new HashMap(); @@ -82,6 +81,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_NULLS; case 4: // NUM_DVS return NUM_DVS; + case 5: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -127,7 +128,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 2; private static final int __NUMDVS_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -139,6 +140,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_DVS, new org.apache.thrift.meta_data.FieldMetaData("numDVs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DoubleColumnStatsData.class, metaDataMap); } @@ -148,13 +151,15 @@ public DoubleColumnStatsData() { public DoubleColumnStatsData( long numNulls, - long numDVs) + long numDVs, + String bitVectors) { this(); this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -166,6 +171,9 @@ public DoubleColumnStatsData(DoubleColumnStatsData other) { this.highValue = other.highValue; this.numNulls = other.numNulls; this.numDVs = other.numDVs; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public DoubleColumnStatsData deepCopy() { @@ -182,6 +190,7 @@ public void clear() { this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; + this.bitVectors = null; } public double getLowValue() { @@ -272,6 +281,29 @@ public void setNumDVsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMDVS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LOW_VALUE: @@ -306,22 +338,33 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case LOW_VALUE: - return getLowValue(); + return Double.valueOf(getLowValue()); case HIGH_VALUE: - return getHighValue(); + return Double.valueOf(getHighValue()); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); case NUM_DVS: - return getNumDVs(); + return Long.valueOf(getNumDVs()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -342,6 +385,8 @@ public boolean isSet(_Fields field) { return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -395,80 +440,104 @@ public boolean equals(DoubleColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DoubleColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DoubleColumnStatsData typedOther = (DoubleColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -512,6 +581,14 @@ public String toString() { sb.append("numDVs:"); sb.append(this.numDVs); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -526,6 +603,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numDVs' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -597,6 +678,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DoubleColumnStatsDa org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -626,6 +715,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DoubleColumnStatsD oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -645,6 +739,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DoubleColumnStatsDa TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); + oprot.writeString(struct.bitVectors); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); @@ -668,6 +763,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DoubleColumnStatsDat struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.lowValue = iprot.readDouble(); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java index ac97aa3..59a66f3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DropPartitionsExpr implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsExpr implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsExpr"); private static final org.apache.thrift.protocol.TField EXPR_FIELD_DESC = new org.apache.thrift.protocol.TField("expr", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -114,7 +110,7 @@ public String getFieldName() { // isset id assignments private static final int __PARTARCHIVELEVEL_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; + private _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -133,7 +129,7 @@ public DropPartitionsExpr( ByteBuffer expr) { this(); - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } /** @@ -143,6 +139,7 @@ public DropPartitionsExpr(DropPartitionsExpr other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); +; } this.partArchiveLevel = other.partArchiveLevel; } @@ -164,15 +161,15 @@ public void clear() { } public ByteBuffer bufferForExpr() { - return org.apache.thrift.TBaseHelper.copyBinary(expr); + return expr; } public void setExpr(byte[] expr) { - this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); + setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); } public void setExpr(ByteBuffer expr) { - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } public void unsetExpr() { @@ -239,7 +236,7 @@ public Object getFieldValue(_Fields field) { return getExpr(); case PART_ARCHIVE_LEVEL: - return getPartArchiveLevel(); + return Integer.valueOf(getPartArchiveLevel()); } throw new IllegalStateException(); @@ -296,45 +293,45 @@ public boolean equals(DropPartitionsExpr that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_expr = true && (isSetExpr()); - list.add(present_expr); + builder.append(present_expr); if (present_expr) - list.add(expr); + builder.append(expr); boolean present_partArchiveLevel = true && (isSetPartArchiveLevel()); - list.add(present_partArchiveLevel); + builder.append(present_partArchiveLevel); if (present_partArchiveLevel) - list.add(partArchiveLevel); + builder.append(partArchiveLevel); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsExpr other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsExpr typedOther = (DropPartitionsExpr)other; - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(other.isSetPartArchiveLevel()); + lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(typedOther.isSetPartArchiveLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetPartArchiveLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, other.partArchiveLevel); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, typedOther.partArchiveLevel); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java index 2dbde0c..1923f38 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DropPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -147,7 +143,7 @@ public String getFieldName() { private static final int __IGNOREPROTECTION_ISSET_ID = 2; private static final int __NEEDRESULT_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; + private _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -493,19 +489,19 @@ public Object getFieldValue(_Fields field) { return getParts(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); case IF_EXISTS: - return isIfExists(); + return Boolean.valueOf(isIfExists()); case IGNORE_PROTECTION: - return isIgnoreProtection(); + return Boolean.valueOf(isIgnoreProtection()); case ENVIRONMENT_CONTEXT: return getEnvironmentContext(); case NEED_RESULT: - return isNeedResult(); + return Boolean.valueOf(isNeedResult()); } throw new IllegalStateException(); @@ -628,135 +624,135 @@ public boolean equals(DropPartitionsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_parts = true && (isSetParts()); - list.add(present_parts); + builder.append(present_parts); if (present_parts) - list.add(parts); + builder.append(parts); boolean present_deleteData = true && (isSetDeleteData()); - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_ifExists = true && (isSetIfExists()); - list.add(present_ifExists); + builder.append(present_ifExists); if (present_ifExists) - list.add(ifExists); + builder.append(ifExists); boolean present_ignoreProtection = true && (isSetIgnoreProtection()); - list.add(present_ignoreProtection); + builder.append(present_ignoreProtection); if (present_ignoreProtection) - list.add(ignoreProtection); + builder.append(ignoreProtection); boolean present_environmentContext = true && (isSetEnvironmentContext()); - list.add(present_environmentContext); + builder.append(present_environmentContext); if (present_environmentContext) - list.add(environmentContext); + builder.append(environmentContext); boolean present_needResult = true && (isSetNeedResult()); - list.add(present_needResult); + builder.append(present_needResult); if (present_needResult) - list.add(needResult); + builder.append(needResult); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsRequest typedOther = (DropPartitionsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); + lastComparison = Boolean.valueOf(isSetParts()).compareTo(typedOther.isSetParts()); if (lastComparison != 0) { return lastComparison; } if (isSetParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, other.parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, typedOther.parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(other.isSetIfExists()); + lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(typedOther.isSetIfExists()); if (lastComparison != 0) { return lastComparison; } if (isSetIfExists()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, other.ifExists); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, typedOther.ifExists); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(other.isSetIgnoreProtection()); + lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(typedOther.isSetIgnoreProtection()); if (lastComparison != 0) { return lastComparison; } if (isSetIgnoreProtection()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, other.ignoreProtection); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, typedOther.ignoreProtection); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(other.isSetEnvironmentContext()); + lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(typedOther.isSetEnvironmentContext()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironmentContext()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, other.environmentContext); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, typedOther.environmentContext); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(other.isSetNeedResult()); + lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(typedOther.isSetNeedResult()); if (lastComparison != 0) { return lastComparison; } if (isSetNeedResult()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, other.needResult); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, typedOther.needResult); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index adef415..156338a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class DropPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONS}; + private _Fields optionals[] = {_Fields.PARTITIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -126,7 +122,7 @@ public DropPartitionsResult() { */ public DropPartitionsResult(DropPartitionsResult other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(DropPartitionsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsResult typedOther = (DropPartitionsResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DropPartitionsResul { org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); struct.partitions = new ArrayList(_list396.size); - Partition _elem397; - for (int _i398 = 0; _i398 < _list396.size; ++_i398) + for (int _i397 = 0; _i397 < _list396.size; ++_i397) { - _elem397 = new Partition(); - _elem397.read(iprot); - struct.partitions.add(_elem397); + Partition _elem398; // required + _elem398 = new Partition(); + _elem398.read(iprot); + struct.partitions.add(_elem398); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResult { org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list401.size); - Partition _elem402; - for (int _i403 = 0; _i403 < _list401.size; ++_i403) + for (int _i402 = 0; _i402 < _list401.size; ++_i402) { - _elem402 = new Partition(); - _elem402.read(iprot); - struct.partitions.add(_elem402); + Partition _elem403; // required + _elem403 = new Partition(); + _elem403.read(iprot); + struct.partitions.add(_elem403); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index de588e2..ab0b399 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class EnvironmentContext implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class EnvironmentContext implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EnvironmentContext"); private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,18 @@ public EnvironmentContext( */ public EnvironmentContext(EnvironmentContext other) { if (other.isSetProperties()) { - Map __this__properties = new HashMap(other.properties); + Map __this__properties = new HashMap(); + for (Map.Entry other_element : other.properties.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__properties_copy_key = other_element_key; + + String __this__properties_copy_value = other_element_value; + + __this__properties.put(__this__properties_copy_key, __this__properties_copy_value); + } this.properties = __this__properties; } } @@ -243,30 +250,30 @@ public boolean equals(EnvironmentContext that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_properties = true && (isSetProperties()); - list.add(present_properties); + builder.append(present_properties); if (present_properties) - list.add(properties); + builder.append(properties); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(EnvironmentContext other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + EnvironmentContext typedOther = (EnvironmentContext)other; - lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties()); + lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties()); if (lastComparison != 0) { return lastComparison; } if (isSetProperties()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties); if (lastComparison != 0) { return lastComparison; } @@ -346,13 +353,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EnvironmentContext { org.apache.thrift.protocol.TMap _map312 = iprot.readMapBegin(); struct.properties = new HashMap(2*_map312.size); - String _key313; - String _val314; - for (int _i315 = 0; _i315 < _map312.size; ++_i315) + for (int _i313 = 0; _i313 < _map312.size; ++_i313) { - _key313 = iprot.readString(); - _val314 = iprot.readString(); - struct.properties.put(_key313, _val314); + String _key314; // required + String _val315; // required + _key314 = iprot.readString(); + _val315 = iprot.readString(); + struct.properties.put(_key314, _val315); } iprot.readMapEnd(); } @@ -429,13 +436,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext s { org.apache.thrift.protocol.TMap _map318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.properties = new HashMap(2*_map318.size); - String _key319; - String _val320; - for (int _i321 = 0; _i321 < _map318.size; ++_i321) + for (int _i319 = 0; _i319 < _map318.size; ++_i319) { - _key319 = iprot.readString(); - _val320 = iprot.readString(); - struct.properties.put(_key319, _val320); + String _key320; // required + String _val321; // required + _key320 = iprot.readString(); + _val321 = iprot.readString(); + struct.properties.put(_key320, _val321); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java index 4295046..084c3ee 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java index 06a7b4d..c84fa29 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class FieldSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FieldSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FieldSchema"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -345,60 +341,60 @@ public boolean equals(FieldSchema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type); + builder.append(type); boolean present_comment = true && (isSetComment()); - list.add(present_comment); + builder.append(present_comment); if (present_comment) - list.add(comment); + builder.append(comment); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FieldSchema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FieldSchema typedOther = (FieldSchema)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); + lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FileMetadataExprType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FileMetadataExprType.java index 4e393e2..83f67b9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FileMetadataExprType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FileMetadataExprType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 6b08234..4eacfa9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class FireEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FireEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventRequest"); private static final org.apache.thrift.protocol.TField SUCCESSFUL_FIELD_DESC = new org.apache.thrift.protocol.TField("successful", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESSFUL_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.PARTITION_VALS}; + private _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.PARTITION_VALS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -177,7 +173,10 @@ public FireEventRequest(FireEventRequest other) { this.tableName = other.tableName; } if (other.isSetPartitionVals()) { - List __this__partitionVals = new ArrayList(other.partitionVals); + List __this__partitionVals = new ArrayList(); + for (String other_element : other.partitionVals) { + __this__partitionVals.add(other_element); + } this.partitionVals = __this__partitionVals; } } @@ -373,7 +372,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESSFUL: - return isSuccessful(); + return Boolean.valueOf(isSuccessful()); case DATA: return getData(); @@ -475,90 +474,90 @@ public boolean equals(FireEventRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_successful = true; - list.add(present_successful); + builder.append(present_successful); if (present_successful) - list.add(successful); + builder.append(successful); boolean present_data = true && (isSetData()); - list.add(present_data); + builder.append(present_data); if (present_data) - list.add(data); + builder.append(data); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_partitionVals = true && (isSetPartitionVals()); - list.add(present_partitionVals); + builder.append(present_partitionVals); if (present_partitionVals) - list.add(partitionVals); + builder.append(partitionVals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FireEventRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FireEventRequest typedOther = (FireEventRequest)other; - lastComparison = Boolean.valueOf(isSetSuccessful()).compareTo(other.isSetSuccessful()); + lastComparison = Boolean.valueOf(isSetSuccessful()).compareTo(typedOther.isSetSuccessful()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccessful()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successful, other.successful); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successful, typedOther.successful); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetData()).compareTo(other.isSetData()); + lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData()); if (lastComparison != 0) { return lastComparison; } if (isSetData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionVals()).compareTo(other.isSetPartitionVals()); + lastComparison = Boolean.valueOf(isSetPartitionVals()).compareTo(typedOther.isSetPartitionVals()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionVals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionVals, other.partitionVals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionVals, typedOther.partitionVals); if (lastComparison != 0) { return lastComparison; } @@ -715,11 +714,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st { org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); struct.partitionVals = new ArrayList(_list516.size); - String _elem517; - for (int _i518 = 0; _i518 < _list516.size; ++_i518) + for (int _i517 = 0; _i517 < _list516.size; ++_i517) { - _elem517 = iprot.readString(); - struct.partitionVals.add(_elem517); + String _elem518; // required + _elem518 = iprot.readString(); + struct.partitionVals.add(_elem518); } iprot.readListEnd(); } @@ -845,11 +844,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str { org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionVals = new ArrayList(_list521.size); - String _elem522; - for (int _i523 = 0; _i523 < _list521.size; ++_i523) + for (int _i522 = 0; _i522 < _list521.size; ++_i522) { - _elem522 = iprot.readString(); - struct.partitionVals.add(_elem522); + String _elem523; // required + _elem523 = iprot.readString(); + struct.partitionVals.add(_elem523); } } struct.setPartitionValsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java index db8dc8b..008682e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class FireEventRequestData extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventRequestData"); private static final org.apache.thrift.protocol.TField INSERT_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("insertData", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -159,7 +156,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -274,19 +270,19 @@ public int compareTo(FireEventRequestData other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java index 9a86ed5..051f411 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class FireEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FireEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventResponse"); @@ -165,18 +161,18 @@ public boolean equals(FireEventResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FireEventResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FireEventResponse typedOther = (FireEventResponse)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 5f8ce0d..182fbf4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Function implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Function implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Function"); private static final org.apache.thrift.protocol.TField FUNCTION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("functionName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -226,7 +222,7 @@ public Function(Function other) { this.functionType = other.functionType; } if (other.isSetResourceUris()) { - List __this__resourceUris = new ArrayList(other.resourceUris.size()); + List __this__resourceUris = new ArrayList(); for (ResourceUri other_element : other.resourceUris) { __this__resourceUris.add(new ResourceUri(other_element)); } @@ -552,7 +548,7 @@ public Object getFieldValue(_Fields field) { return getOwnerType(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case FUNCTION_TYPE: return getFunctionType(); @@ -681,135 +677,135 @@ public boolean equals(Function that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_functionName = true && (isSetFunctionName()); - list.add(present_functionName); + builder.append(present_functionName); if (present_functionName) - list.add(functionName); + builder.append(functionName); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_className = true && (isSetClassName()); - list.add(present_className); + builder.append(present_className); if (present_className) - list.add(className); + builder.append(className); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); boolean present_ownerType = true && (isSetOwnerType()); - list.add(present_ownerType); + builder.append(present_ownerType); if (present_ownerType) - list.add(ownerType.getValue()); + builder.append(ownerType.getValue()); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_functionType = true && (isSetFunctionType()); - list.add(present_functionType); + builder.append(present_functionType); if (present_functionType) - list.add(functionType.getValue()); + builder.append(functionType.getValue()); boolean present_resourceUris = true && (isSetResourceUris()); - list.add(present_resourceUris); + builder.append(present_resourceUris); if (present_resourceUris) - list.add(resourceUris); + builder.append(resourceUris); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Function other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Function typedOther = (Function)other; - lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(other.isSetFunctionName()); + lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(typedOther.isSetFunctionName()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetClassName()).compareTo(other.isSetClassName()); + lastComparison = Boolean.valueOf(isSetClassName()).compareTo(typedOther.isSetClassName()); if (lastComparison != 0) { return lastComparison; } if (isSetClassName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.className, other.className); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.className, typedOther.className); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(other.isSetOwnerType()); + lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(typedOther.isSetOwnerType()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, other.ownerType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, typedOther.ownerType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFunctionType()).compareTo(other.isSetFunctionType()); + lastComparison = Boolean.valueOf(isSetFunctionType()).compareTo(typedOther.isSetFunctionType()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionType, other.functionType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionType, typedOther.functionType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetResourceUris()).compareTo(other.isSetResourceUris()); + lastComparison = Boolean.valueOf(isSetResourceUris()).compareTo(typedOther.isSetResourceUris()); if (lastComparison != 0) { return lastComparison; } if (isSetResourceUris()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceUris, other.resourceUris); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceUris, typedOther.resourceUris); if (lastComparison != 0) { return lastComparison; } @@ -972,7 +968,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th break; case 5: // OWNER_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -988,7 +984,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th break; case 7: // FUNCTION_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.functionType = org.apache.hadoop.hive.metastore.api.FunctionType.findByValue(iprot.readI32()); + struct.functionType = FunctionType.findByValue(iprot.readI32()); struct.setFunctionTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -999,12 +995,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th { org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); struct.resourceUris = new ArrayList(_list420.size); - ResourceUri _elem421; - for (int _i422 = 0; _i422 < _list420.size; ++_i422) + for (int _i421 = 0; _i421 < _list420.size; ++_i421) { - _elem421 = new ResourceUri(); - _elem421.read(iprot); - struct.resourceUris.add(_elem421); + ResourceUri _elem422; // required + _elem422 = new ResourceUri(); + _elem422.read(iprot); + struct.resourceUris.add(_elem422); } iprot.readListEnd(); } @@ -1167,7 +1163,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr struct.setOwnerNameIsSet(true); } if (incoming.get(4)) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } if (incoming.get(5)) { @@ -1175,19 +1171,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr struct.setCreateTimeIsSet(true); } if (incoming.get(6)) { - struct.functionType = org.apache.hadoop.hive.metastore.api.FunctionType.findByValue(iprot.readI32()); + struct.functionType = FunctionType.findByValue(iprot.readI32()); struct.setFunctionTypeIsSet(true); } if (incoming.get(7)) { { org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.resourceUris = new ArrayList(_list425.size); - ResourceUri _elem426; - for (int _i427 = 0; _i427 < _list425.size; ++_i427) + for (int _i426 = 0; _i426 < _list425.size; ++_i426) { - _elem426 = new ResourceUri(); - _elem426.read(iprot); - struct.resourceUris.add(_elem426); + ResourceUri _elem427; // required + _elem427 = new ResourceUri(); + _elem427.read(iprot); + struct.resourceUris.add(_elem427); } } struct.setResourceUrisIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java index 1116f88..8f5b9b1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index f88e279..25b2398 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetAllFunctionsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetAllFunctionsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetAllFunctionsResponse"); private static final org.apache.thrift.protocol.TField FUNCTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("functions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.FUNCTIONS}; + private _Fields optionals[] = {_Fields.FUNCTIONS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -126,7 +122,7 @@ public GetAllFunctionsResponse() { */ public GetAllFunctionsResponse(GetAllFunctionsResponse other) { if (other.isSetFunctions()) { - List __this__functions = new ArrayList(other.functions.size()); + List __this__functions = new ArrayList(); for (Function other_element : other.functions) { __this__functions.add(new Function(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(GetAllFunctionsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_functions = true && (isSetFunctions()); - list.add(present_functions); + builder.append(present_functions); if (present_functions) - list.add(functions); + builder.append(functions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetAllFunctionsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetAllFunctionsResponse typedOther = (GetAllFunctionsResponse)other; - lastComparison = Boolean.valueOf(isSetFunctions()).compareTo(other.isSetFunctions()); + lastComparison = Boolean.valueOf(isSetFunctions()).compareTo(typedOther.isSetFunctions()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functions, other.functions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functions, typedOther.functions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp { org.apache.thrift.protocol.TList _list584 = iprot.readListBegin(); struct.functions = new ArrayList(_list584.size); - Function _elem585; - for (int _i586 = 0; _i586 < _list584.size; ++_i586) + for (int _i585 = 0; _i585 < _list584.size; ++_i585) { - _elem585 = new Function(); - _elem585.read(iprot); - struct.functions.add(_elem585); + Function _elem586; // required + _elem586 = new Function(); + _elem586.read(iprot); + struct.functions.add(_elem586); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo { org.apache.thrift.protocol.TList _list589 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.functions = new ArrayList(_list589.size); - Function _elem590; - for (int _i591 = 0; _i591 < _list589.size; ++_i591) + for (int _i590 = 0; _i590 < _list589.size; ++_i590) { - _elem590 = new Function(); - _elem590.read(iprot); - struct.functions.add(_elem590); + Function _elem591; // required + _elem591 = new Function(); + _elem591.read(iprot); + struct.functions.add(_elem591); } } struct.setFunctionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 0236b4a..03ccc2c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetFileMetadataByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFileMetadataByExprRequest"); private static final org.apache.thrift.protocol.TField FILE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fileIds", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -128,7 +124,7 @@ public String getFieldName() { // isset id assignments private static final int __DOGETFOOTERS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DO_GET_FOOTERS,_Fields.TYPE}; + private _Fields optionals[] = {_Fields.DO_GET_FOOTERS,_Fields.TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -154,7 +150,7 @@ public GetFileMetadataByExprRequest( { this(); this.fileIds = fileIds; - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } /** @@ -163,11 +159,15 @@ public GetFileMetadataByExprRequest( public GetFileMetadataByExprRequest(GetFileMetadataByExprRequest other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFileIds()) { - List __this__fileIds = new ArrayList(other.fileIds); + List __this__fileIds = new ArrayList(); + for (Long other_element : other.fileIds) { + __this__fileIds.add(other_element); + } this.fileIds = __this__fileIds; } if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); +; } this.doGetFooters = other.doGetFooters; if (other.isSetType()) { @@ -232,15 +232,15 @@ public void setFileIdsIsSet(boolean value) { } public ByteBuffer bufferForExpr() { - return org.apache.thrift.TBaseHelper.copyBinary(expr); + return expr; } public void setExpr(byte[] expr) { - this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); + setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); } public void setExpr(ByteBuffer expr) { - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } public void unsetExpr() { @@ -357,7 +357,7 @@ public Object getFieldValue(_Fields field) { return getExpr(); case DO_GET_FOOTERS: - return isDoGetFooters(); + return Boolean.valueOf(isDoGetFooters()); case TYPE: return getType(); @@ -439,75 +439,75 @@ public boolean equals(GetFileMetadataByExprRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fileIds = true && (isSetFileIds()); - list.add(present_fileIds); + builder.append(present_fileIds); if (present_fileIds) - list.add(fileIds); + builder.append(fileIds); boolean present_expr = true && (isSetExpr()); - list.add(present_expr); + builder.append(present_expr); if (present_expr) - list.add(expr); + builder.append(expr); boolean present_doGetFooters = true && (isSetDoGetFooters()); - list.add(present_doGetFooters); + builder.append(present_doGetFooters); if (present_doGetFooters) - list.add(doGetFooters); + builder.append(doGetFooters); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFileMetadataByExprRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFileMetadataByExprRequest typedOther = (GetFileMetadataByExprRequest)other; - lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(other.isSetFileIds()); + lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(typedOther.isSetFileIds()); if (lastComparison != 0) { return lastComparison; } if (isSetFileIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, other.fileIds); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, typedOther.fileIds); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDoGetFooters()).compareTo(other.isSetDoGetFooters()); + lastComparison = Boolean.valueOf(isSetDoGetFooters()).compareTo(typedOther.isSetDoGetFooters()); if (lastComparison != 0) { return lastComparison; } if (isSetDoGetFooters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doGetFooters, other.doGetFooters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doGetFooters, typedOther.doGetFooters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -621,11 +621,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx { org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); struct.fileIds = new ArrayList(_list534.size); - long _elem535; - for (int _i536 = 0; _i536 < _list534.size; ++_i536) + for (int _i535 = 0; _i535 < _list534.size; ++_i535) { - _elem535 = iprot.readI64(); - struct.fileIds.add(_elem535); + long _elem536; // required + _elem536 = iprot.readI64(); + struct.fileIds.add(_elem536); } iprot.readListEnd(); } @@ -652,7 +652,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.FileMetadataExprType.findByValue(iprot.readI32()); + struct.type = FileMetadataExprType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -747,11 +747,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExp { org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList(_list539.size); - long _elem540; - for (int _i541 = 0; _i541 < _list539.size; ++_i541) + for (int _i540 = 0; _i540 < _list539.size; ++_i540) { - _elem540 = iprot.readI64(); - struct.fileIds.add(_elem540); + long _elem541; // required + _elem541 = iprot.readI64(); + struct.fileIds.add(_elem541); } } struct.setFileIdsIsSet(true); @@ -763,7 +763,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExp struct.setDoGetFootersIsSet(true); } if (incoming.get(1)) { - struct.type = org.apache.hadoop.hive.metastore.api.FileMetadataExprType.findByValue(iprot.readI32()); + struct.type = FileMetadataExprType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index 89eb819..b392ced 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetFileMetadataByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetFileMetadataByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFileMetadataByExprResult"); private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -146,7 +142,7 @@ public GetFileMetadataByExprResult( public GetFileMetadataByExprResult(GetFileMetadataByExprResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMetadata()) { - Map __this__metadata = new HashMap(other.metadata.size()); + Map __this__metadata = new HashMap(); for (Map.Entry other_element : other.metadata.entrySet()) { Long other_element_key = other_element.getKey(); @@ -257,7 +253,7 @@ public Object getFieldValue(_Fields field) { return getMetadata(); case IS_SUPPORTED: - return isIsSupported(); + return Boolean.valueOf(isIsSupported()); } throw new IllegalStateException(); @@ -314,45 +310,45 @@ public boolean equals(GetFileMetadataByExprResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_metadata = true && (isSetMetadata()); - list.add(present_metadata); + builder.append(present_metadata); if (present_metadata) - list.add(metadata); + builder.append(metadata); boolean present_isSupported = true; - list.add(present_isSupported); + builder.append(present_isSupported); if (present_isSupported) - list.add(isSupported); + builder.append(isSupported); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFileMetadataByExprResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFileMetadataByExprResult typedOther = (GetFileMetadataByExprResult)other; - lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(other.isSetMetadata()); + lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata()); if (lastComparison != 0) { return lastComparison; } if (isSetMetadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, other.metadata); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(other.isSetIsSupported()); + lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(typedOther.isSetIsSupported()); if (lastComparison != 0) { return lastComparison; } if (isSetIsSupported()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, other.isSupported); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, typedOther.isSupported); if (lastComparison != 0) { return lastComparison; } @@ -446,14 +442,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx { org.apache.thrift.protocol.TMap _map524 = iprot.readMapBegin(); struct.metadata = new HashMap(2*_map524.size); - long _key525; - MetadataPpdResult _val526; - for (int _i527 = 0; _i527 < _map524.size; ++_i527) + for (int _i525 = 0; _i525 < _map524.size; ++_i525) { - _key525 = iprot.readI64(); - _val526 = new MetadataPpdResult(); - _val526.read(iprot); - struct.metadata.put(_key525, _val526); + long _key526; // required + MetadataPpdResult _val527; // required + _key526 = iprot.readI64(); + _val527 = new MetadataPpdResult(); + _val527.read(iprot); + struct.metadata.put(_key526, _val527); } iprot.readMapEnd(); } @@ -533,14 +529,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExp { org.apache.thrift.protocol.TMap _map530 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.metadata = new HashMap(2*_map530.size); - long _key531; - MetadataPpdResult _val532; - for (int _i533 = 0; _i533 < _map530.size; ++_i533) + for (int _i531 = 0; _i531 < _map530.size; ++_i531) { - _key531 = iprot.readI64(); - _val532 = new MetadataPpdResult(); - _val532.read(iprot); - struct.metadata.put(_key531, _val532); + long _key532; // required + MetadataPpdResult _val533; // required + _key532 = iprot.readI64(); + _val533 = new MetadataPpdResult(); + _val533.read(iprot); + struct.metadata.put(_key532, _val533); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 2408ad1..68795ef 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFileMetadataRequest"); private static final org.apache.thrift.protocol.TField FILE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fileIds", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public GetFileMetadataRequest( */ public GetFileMetadataRequest(GetFileMetadataRequest other) { if (other.isSetFileIds()) { - List __this__fileIds = new ArrayList(other.fileIds); + List __this__fileIds = new ArrayList(); + for (Long other_element : other.fileIds) { + __this__fileIds.add(other_element); + } this.fileIds = __this__fileIds; } } @@ -246,30 +245,30 @@ public boolean equals(GetFileMetadataRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fileIds = true && (isSetFileIds()); - list.add(present_fileIds); + builder.append(present_fileIds); if (present_fileIds) - list.add(fileIds); + builder.append(fileIds); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFileMetadataRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFileMetadataRequest typedOther = (GetFileMetadataRequest)other; - lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(other.isSetFileIds()); + lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(typedOther.isSetFileIds()); if (lastComparison != 0) { return lastComparison; } if (isSetFileIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, other.fileIds); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, typedOther.fileIds); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ { org.apache.thrift.protocol.TList _list552 = iprot.readListBegin(); struct.fileIds = new ArrayList(_list552.size); - long _elem553; - for (int _i554 = 0; _i554 < _list552.size; ++_i554) + for (int _i553 = 0; _i553 < _list552.size; ++_i553) { - _elem553 = iprot.readI64(); - struct.fileIds.add(_elem553); + long _elem554; // required + _elem554 = iprot.readI64(); + struct.fileIds.add(_elem554); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataReque { org.apache.thrift.protocol.TList _list557 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList(_list557.size); - long _elem558; - for (int _i559 = 0; _i559 < _list557.size; ++_i559) + for (int _i558 = 0; _i558 < _list557.size; ++_i558) { - _elem558 = iprot.readI64(); - struct.fileIds.add(_elem558); + long _elem559; // required + _elem559 = iprot.readI64(); + struct.fileIds.add(_elem559); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index 8946635..198a61c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFileMetadataResult"); private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -146,7 +142,19 @@ public GetFileMetadataResult( public GetFileMetadataResult(GetFileMetadataResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMetadata()) { - Map __this__metadata = new HashMap(other.metadata); + Map __this__metadata = new HashMap(); + for (Map.Entry other_element : other.metadata.entrySet()) { + + Long other_element_key = other_element.getKey(); + ByteBuffer other_element_value = other_element.getValue(); + + Long __this__metadata_copy_key = other_element_key; + + ByteBuffer __this__metadata_copy_value = org.apache.thrift.TBaseHelper.copyBinary(other_element_value); +; + + __this__metadata.put(__this__metadata_copy_key, __this__metadata_copy_value); + } this.metadata = __this__metadata; } this.isSupported = other.isSupported; @@ -246,7 +254,7 @@ public Object getFieldValue(_Fields field) { return getMetadata(); case IS_SUPPORTED: - return isIsSupported(); + return Boolean.valueOf(isIsSupported()); } throw new IllegalStateException(); @@ -303,45 +311,45 @@ public boolean equals(GetFileMetadataResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_metadata = true && (isSetMetadata()); - list.add(present_metadata); + builder.append(present_metadata); if (present_metadata) - list.add(metadata); + builder.append(metadata); boolean present_isSupported = true; - list.add(present_isSupported); + builder.append(present_isSupported); if (present_isSupported) - list.add(isSupported); + builder.append(isSupported); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFileMetadataResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFileMetadataResult typedOther = (GetFileMetadataResult)other; - lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(other.isSetMetadata()); + lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata()); if (lastComparison != 0) { return lastComparison; } if (isSetMetadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, other.metadata); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(other.isSetIsSupported()); + lastComparison = Boolean.valueOf(isSetIsSupported()).compareTo(typedOther.isSetIsSupported()); if (lastComparison != 0) { return lastComparison; } if (isSetIsSupported()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, other.isSupported); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSupported, typedOther.isSupported); if (lastComparison != 0) { return lastComparison; } @@ -435,13 +443,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu { org.apache.thrift.protocol.TMap _map542 = iprot.readMapBegin(); struct.metadata = new HashMap(2*_map542.size); - long _key543; - ByteBuffer _val544; - for (int _i545 = 0; _i545 < _map542.size; ++_i545) + for (int _i543 = 0; _i543 < _map542.size; ++_i543) { - _key543 = iprot.readI64(); - _val544 = iprot.readBinary(); - struct.metadata.put(_key543, _val544); + long _key544; // required + ByteBuffer _val545; // required + _key544 = iprot.readI64(); + _val545 = iprot.readBinary(); + struct.metadata.put(_key544, _val545); } iprot.readMapEnd(); } @@ -521,13 +529,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResul { org.apache.thrift.protocol.TMap _map548 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.metadata = new HashMap(2*_map548.size); - long _key549; - ByteBuffer _val550; - for (int _i551 = 0; _i551 < _map548.size; ++_i551) + for (int _i549 = 0; _i549 < _map548.size; ++_i549) { - _key549 = iprot.readI64(); - _val550 = iprot.readBinary(); - struct.metadata.put(_key549, _val550); + long _key550; // required + ByteBuffer _val551; // required + _key550 = iprot.readI64(); + _val551 = iprot.readBinary(); + struct.metadata.put(_key550, _val551); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index 629c042..a84c0cb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOpenTxnsInfoResponse"); private static final org.apache.thrift.protocol.TField TXN_HIGH_WATER_MARK_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_high_water_mark", org.apache.thrift.protocol.TType.I64, (short)1); @@ -146,7 +142,7 @@ public GetOpenTxnsInfoResponse(GetOpenTxnsInfoResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { - List __this__open_txns = new ArrayList(other.open_txns.size()); + List __this__open_txns = new ArrayList(); for (TxnInfo other_element : other.open_txns) { __this__open_txns.add(new TxnInfo(other_element)); } @@ -249,7 +245,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TXN_HIGH_WATER_MARK: - return getTxn_high_water_mark(); + return Long.valueOf(getTxn_high_water_mark()); case OPEN_TXNS: return getOpen_txns(); @@ -309,45 +305,45 @@ public boolean equals(GetOpenTxnsInfoResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; - list.add(present_txn_high_water_mark); + builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) - list.add(txn_high_water_mark); + builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); - list.add(present_open_txns); + builder.append(present_open_txns); if (present_open_txns) - list.add(open_txns); + builder.append(open_txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOpenTxnsInfoResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOpenTxnsInfoResponse typedOther = (GetOpenTxnsInfoResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); + lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); + lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } @@ -449,12 +445,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp { org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); struct.open_txns = new ArrayList(_list428.size); - TxnInfo _elem429; - for (int _i430 = 0; _i430 < _list428.size; ++_i430) + for (int _i429 = 0; _i429 < _list428.size; ++_i429) { - _elem429 = new TxnInfo(); - _elem429.read(iprot); - struct.open_txns.add(_elem429); + TxnInfo _elem430; // required + _elem430 = new TxnInfo(); + _elem430.read(iprot); + struct.open_txns.add(_elem430); } iprot.readListEnd(); } @@ -526,12 +522,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo { org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.open_txns = new ArrayList(_list433.size); - TxnInfo _elem434; - for (int _i435 = 0; _i435 < _list433.size; ++_i435) + for (int _i434 = 0; _i434 < _list433.size; ++_i434) { - _elem434 = new TxnInfo(); - _elem434.read(iprot); - struct.open_txns.add(_elem434); + TxnInfo _elem435; // required + _elem435 = new TxnInfo(); + _elem435.read(iprot); + struct.open_txns.add(_elem435); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index 9f57a4a..23dea5b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetOpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetOpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOpenTxnsResponse"); private static final org.apache.thrift.protocol.TField TXN_HIGH_WATER_MARK_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_high_water_mark", org.apache.thrift.protocol.TType.I64, (short)1); @@ -146,7 +142,10 @@ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { - Set __this__open_txns = new HashSet(other.open_txns); + Set __this__open_txns = new HashSet(); + for (Long other_element : other.open_txns) { + __this__open_txns.add(other_element); + } this.open_txns = __this__open_txns; } } @@ -246,7 +245,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TXN_HIGH_WATER_MARK: - return getTxn_high_water_mark(); + return Long.valueOf(getTxn_high_water_mark()); case OPEN_TXNS: return getOpen_txns(); @@ -306,45 +305,45 @@ public boolean equals(GetOpenTxnsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; - list.add(present_txn_high_water_mark); + builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) - list.add(txn_high_water_mark); + builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); - list.add(present_open_txns); + builder.append(present_open_txns); if (present_open_txns) - list.add(open_txns); + builder.append(open_txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOpenTxnsResponse typedOther = (GetOpenTxnsResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); + lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); + lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } @@ -446,11 +445,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse { org.apache.thrift.protocol.TSet _set436 = iprot.readSetBegin(); struct.open_txns = new HashSet(2*_set436.size); - long _elem437; - for (int _i438 = 0; _i438 < _set436.size; ++_i438) + for (int _i437 = 0; _i437 < _set436.size; ++_i437) { - _elem437 = iprot.readI64(); - struct.open_txns.add(_elem437); + long _elem438; // required + _elem438 = iprot.readI64(); + struct.open_txns.add(_elem438); } iprot.readSetEnd(); } @@ -522,11 +521,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse { org.apache.thrift.protocol.TSet _set441 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.open_txns = new HashSet(2*_set441.size); - long _elem442; - for (int _i443 = 0; _i443 < _set441.size; ++_i443) + for (int _i442 = 0; _i442 < _set441.size; ++_i442) { - _elem442 = iprot.readI64(); - struct.open_txns.add(_elem442); + long _elem443; // required + _elem443 = iprot.readI64(); + struct.open_txns.add(_elem443); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java index 342b268..565eba9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetPrincipalsInRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetPrincipalsInRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleRequest"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(GetPrincipalsInRoleRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetPrincipalsInRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java index 02c652a..083699b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetPrincipalsInRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetPrincipalsInRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleResponse"); private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public GetPrincipalsInRoleResponse( */ public GetPrincipalsInRoleResponse(GetPrincipalsInRoleResponse other) { if (other.isSetPrincipalGrants()) { - List __this__principalGrants = new ArrayList(other.principalGrants.size()); + List __this__principalGrants = new ArrayList(); for (RolePrincipalGrant other_element : other.principalGrants) { __this__principalGrants.add(new RolePrincipalGrant(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(GetPrincipalsInRoleResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principalGrants = true && (isSetPrincipalGrants()); - list.add(present_principalGrants); + builder.append(present_principalGrants); if (present_principalGrants) - list.add(principalGrants); + builder.append(principalGrants); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetPrincipalsInRoleResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetPrincipalsInRoleResponse typedOther = (GetPrincipalsInRoleResponse)other; - lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(other.isSetPrincipalGrants()); + lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalGrants()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, other.principalGrants); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRole { org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); struct.principalGrants = new ArrayList(_list86.size); - RolePrincipalGrant _elem87; - for (int _i88 = 0; _i88 < _list86.size; ++_i88) + for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - _elem87 = new RolePrincipalGrant(); - _elem87.read(iprot); - struct.principalGrants.add(_elem87); + RolePrincipalGrant _elem88; // required + _elem88 = new RolePrincipalGrant(); + _elem88.read(iprot); + struct.principalGrants.add(_elem88); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleR { org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.principalGrants = new ArrayList(_list91.size); - RolePrincipalGrant _elem92; - for (int _i93 = 0; _i93 < _list91.size; ++_i93) + for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - _elem92 = new RolePrincipalGrant(); - _elem92.read(iprot); - struct.principalGrants.add(_elem92); + RolePrincipalGrant _elem93; // required + _elem93 = new RolePrincipalGrant(); + _elem93.read(iprot); + struct.principalGrants.add(_elem93); } } struct.setPrincipalGrantsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java index ea667d3..84b73c3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetRoleGrantsForPrincipalRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetRoleGrantsForPrincipalRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalRequest"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -299,45 +295,45 @@ public boolean equals(GetRoleGrantsForPrincipalRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetRoleGrantsForPrincipalRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetRoleGrantsForPrincipalRequest typedOther = (GetRoleGrantsForPrincipalRequest)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -438,7 +434,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPri break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -493,7 +489,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrin TTupleProtocol iprot = (TTupleProtocol) prot; struct.principal_name = iprot.readString(); struct.setPrincipal_nameIsSet(true); - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java index c013e0e..f745c08 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GetRoleGrantsForPrincipalResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetRoleGrantsForPrincipalResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalResponse"); private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public GetRoleGrantsForPrincipalResponse( */ public GetRoleGrantsForPrincipalResponse(GetRoleGrantsForPrincipalResponse other) { if (other.isSetPrincipalGrants()) { - List __this__principalGrants = new ArrayList(other.principalGrants.size()); + List __this__principalGrants = new ArrayList(); for (RolePrincipalGrant other_element : other.principalGrants) { __this__principalGrants.add(new RolePrincipalGrant(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(GetRoleGrantsForPrincipalResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principalGrants = true && (isSetPrincipalGrants()); - list.add(present_principalGrants); + builder.append(present_principalGrants); if (present_principalGrants) - list.add(principalGrants); + builder.append(principalGrants); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetRoleGrantsForPrincipalResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetRoleGrantsForPrincipalResponse typedOther = (GetRoleGrantsForPrincipalResponse)other; - lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(other.isSetPrincipalGrants()); + lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalGrants()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, other.principalGrants); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPri { org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); struct.principalGrants = new ArrayList(_list78.size); - RolePrincipalGrant _elem79; - for (int _i80 = 0; _i80 < _list78.size; ++_i80) + for (int _i79 = 0; _i79 < _list78.size; ++_i79) { - _elem79 = new RolePrincipalGrant(); - _elem79.read(iprot); - struct.principalGrants.add(_elem79); + RolePrincipalGrant _elem80; // required + _elem80 = new RolePrincipalGrant(); + _elem80.read(iprot); + struct.principalGrants.add(_elem80); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrin { org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.principalGrants = new ArrayList(_list83.size); - RolePrincipalGrant _elem84; - for (int _i85 = 0; _i85 < _list83.size; ++_i85) + for (int _i84 = 0; _i84 < _list83.size; ++_i84) { - _elem84 = new RolePrincipalGrant(); - _elem84.read(iprot); - struct.principalGrants.add(_elem84); + RolePrincipalGrant _elem85; // required + _elem85 = new RolePrincipalGrant(); + _elem85.read(iprot); + struct.principalGrants.add(_elem85); } } struct.setPrincipalGrantsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java index 014c857..29ce977 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GrantRevokePrivilegeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokePrivilegeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokePrivilegeRequest"); private static final org.apache.thrift.protocol.TField REQUEST_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("requestType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -123,7 +119,7 @@ public String getFieldName() { // isset id assignments private static final int __REVOKEGRANTOPTION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.REVOKE_GRANT_OPTION}; + private _Fields optionals[] = {_Fields.REVOKE_GRANT_OPTION}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -289,7 +285,7 @@ public Object getFieldValue(_Fields field) { return getPrivileges(); case REVOKE_GRANT_OPTION: - return isRevokeGrantOption(); + return Boolean.valueOf(isRevokeGrantOption()); } throw new IllegalStateException(); @@ -357,60 +353,60 @@ public boolean equals(GrantRevokePrivilegeRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); - list.add(present_requestType); + builder.append(present_requestType); if (present_requestType) - list.add(requestType.getValue()); + builder.append(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); - list.add(present_revokeGrantOption); + builder.append(present_revokeGrantOption); if (present_revokeGrantOption) - list.add(revokeGrantOption); + builder.append(revokeGrantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokePrivilegeRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokePrivilegeRequest typedOther = (GrantRevokePrivilegeRequest)other; - lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(other.isSetRequestType()); + lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(typedOther.isSetRequestType()); if (lastComparison != 0) { return lastComparison; } if (isSetRequestType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, other.requestType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, typedOther.requestType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRevokeGrantOption()).compareTo(other.isSetRevokeGrantOption()); + lastComparison = Boolean.valueOf(isSetRevokeGrantOption()).compareTo(typedOther.isSetRevokeGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetRevokeGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revokeGrantOption, other.revokeGrantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revokeGrantOption, typedOther.revokeGrantOption); if (lastComparison != 0) { return lastComparison; } @@ -506,7 +502,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokePrivileg switch (schemeField.id) { case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -601,7 +597,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokePrivilege TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } if (incoming.get(1)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java index ddbc4c3..f86bf9f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GrantRevokePrivilegeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokePrivilegeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokePrivilegeResponse"); 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)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SUCCESS}; + private _Fields optionals[] = {_Fields.SUCCESS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(GrantRevokePrivilegeResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokePrivilegeResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokePrivilegeResponse typedOther = (GrantRevokePrivilegeResponse)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java index adbd345..db17aef 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GrantRevokeRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokeRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokeRoleRequest"); private static final org.apache.thrift.protocol.TField REQUEST_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("requestType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -151,7 +147,7 @@ public String getFieldName() { // isset id assignments private static final int __GRANTOPTION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.GRANTOR,_Fields.GRANTOR_TYPE,_Fields.GRANT_OPTION}; + private _Fields optionals[] = {_Fields.GRANTOR,_Fields.GRANTOR_TYPE,_Fields.GRANT_OPTION}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -497,7 +493,7 @@ public Object getFieldValue(_Fields field) { return getGrantorType(); case GRANT_OPTION: - return isGrantOption(); + return Boolean.valueOf(isGrantOption()); } throw new IllegalStateException(); @@ -609,120 +605,120 @@ public boolean equals(GrantRevokeRoleRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); - list.add(present_requestType); + builder.append(present_requestType); if (present_requestType) - list.add(requestType.getValue()); + builder.append(requestType.getValue()); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grantOption = true && (isSetGrantOption()); - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokeRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokeRoleRequest typedOther = (GrantRevokeRoleRequest)other; - lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(other.isSetRequestType()); + lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(typedOther.isSetRequestType()); if (lastComparison != 0) { return lastComparison; } if (isSetRequestType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, other.requestType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, typedOther.requestType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } @@ -851,7 +847,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ switch (schemeField.id) { case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -875,7 +871,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ break; case 4: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -891,7 +887,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ break; case 6: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1025,7 +1021,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } if (incoming.get(1)) { @@ -1037,7 +1033,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque struct.setPrincipalNameIsSet(true); } if (incoming.get(3)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(4)) { @@ -1045,7 +1041,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque struct.setGrantorIsSet(true); } if (incoming.get(5)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(6)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java index 541ac21..b9acbb5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class GrantRevokeRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokeRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokeRoleResponse"); 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)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SUCCESS}; + private _Fields optionals[] = {_Fields.SUCCESS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(GrantRevokeRoleResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokeRoleResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokeRoleResponse typedOther = (GrantRevokeRoleResponse)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java index ac65ec7..c949637 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java index 0d36f22..04439b9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HeartbeatRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -115,7 +111,7 @@ public String getFieldName() { private static final int __LOCKID_ISSET_ID = 0; private static final int __TXNID_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOCKID,_Fields.TXNID}; + private _Fields optionals[] = {_Fields.LOCKID,_Fields.TXNID}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -219,10 +215,10 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LOCKID: - return getLockid(); + return Long.valueOf(getLockid()); case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); } throw new IllegalStateException(); @@ -279,45 +275,45 @@ public boolean equals(HeartbeatRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true && (isSetLockid()); - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatRequest typedOther = (HeartbeatRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java index f15d7a9..062449a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HeartbeatTxnRangeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatTxnRangeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatTxnRangeRequest"); private static final org.apache.thrift.protocol.TField MIN_FIELD_DESC = new org.apache.thrift.protocol.TField("min", org.apache.thrift.protocol.TType.I64, (short)1); @@ -229,10 +225,10 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case MIN: - return getMin(); + return Long.valueOf(getMin()); case MAX: - return getMax(); + return Long.valueOf(getMax()); } throw new IllegalStateException(); @@ -289,45 +285,45 @@ public boolean equals(HeartbeatTxnRangeRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_min = true; - list.add(present_min); + builder.append(present_min); if (present_min) - list.add(min); + builder.append(min); boolean present_max = true; - list.add(present_max); + builder.append(present_max); if (present_max) - list.add(max); + builder.append(max); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatTxnRangeRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatTxnRangeRequest typedOther = (HeartbeatTxnRangeRequest)other; - lastComparison = Boolean.valueOf(isSetMin()).compareTo(other.isSetMin()); + lastComparison = Boolean.valueOf(isSetMin()).compareTo(typedOther.isSetMin()); if (lastComparison != 0) { return lastComparison; } if (isSetMin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, other.min); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, typedOther.min); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax()).compareTo(other.isSetMax()); + lastComparison = Boolean.valueOf(isSetMax()).compareTo(typedOther.isSetMax()); if (lastComparison != 0) { return lastComparison; } if (isSetMax()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, other.max); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, typedOther.max); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index b00fb9c..6f5327c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatTxnRangeResponse"); private static final org.apache.thrift.protocol.TField ABORTED_FIELD_DESC = new org.apache.thrift.protocol.TField("aborted", org.apache.thrift.protocol.TType.SET, (short)1); @@ -142,11 +138,17 @@ public HeartbeatTxnRangeResponse( */ public HeartbeatTxnRangeResponse(HeartbeatTxnRangeResponse other) { if (other.isSetAborted()) { - Set __this__aborted = new HashSet(other.aborted); + Set __this__aborted = new HashSet(); + for (Long other_element : other.aborted) { + __this__aborted.add(other_element); + } this.aborted = __this__aborted; } if (other.isSetNosuch()) { - Set __this__nosuch = new HashSet(other.nosuch); + Set __this__nosuch = new HashSet(); + for (Long other_element : other.nosuch) { + __this__nosuch.add(other_element); + } this.nosuch = __this__nosuch; } } @@ -321,45 +323,45 @@ public boolean equals(HeartbeatTxnRangeResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_aborted = true && (isSetAborted()); - list.add(present_aborted); + builder.append(present_aborted); if (present_aborted) - list.add(aborted); + builder.append(aborted); boolean present_nosuch = true && (isSetNosuch()); - list.add(present_nosuch); + builder.append(present_nosuch); if (present_nosuch) - list.add(nosuch); + builder.append(nosuch); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatTxnRangeResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatTxnRangeResponse typedOther = (HeartbeatTxnRangeResponse)other; - lastComparison = Boolean.valueOf(isSetAborted()).compareTo(other.isSetAborted()); + lastComparison = Boolean.valueOf(isSetAborted()).compareTo(typedOther.isSetAborted()); if (lastComparison != 0) { return lastComparison; } if (isSetAborted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aborted, other.aborted); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aborted, typedOther.aborted); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNosuch()).compareTo(other.isSetNosuch()); + lastComparison = Boolean.valueOf(isSetNosuch()).compareTo(typedOther.isSetNosuch()); if (lastComparison != 0) { return lastComparison; } if (isSetNosuch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nosuch, other.nosuch); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nosuch, typedOther.nosuch); if (lastComparison != 0) { return lastComparison; } @@ -455,11 +457,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe { org.apache.thrift.protocol.TSet _set468 = iprot.readSetBegin(); struct.aborted = new HashSet(2*_set468.size); - long _elem469; - for (int _i470 = 0; _i470 < _set468.size; ++_i470) + for (int _i469 = 0; _i469 < _set468.size; ++_i469) { - _elem469 = iprot.readI64(); - struct.aborted.add(_elem469); + long _elem470; // required + _elem470 = iprot.readI64(); + struct.aborted.add(_elem470); } iprot.readSetEnd(); } @@ -473,11 +475,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe { org.apache.thrift.protocol.TSet _set471 = iprot.readSetBegin(); struct.nosuch = new HashSet(2*_set471.size); - long _elem472; - for (int _i473 = 0; _i473 < _set471.size; ++_i473) + for (int _i472 = 0; _i472 < _set471.size; ++_i472) { - _elem472 = iprot.readI64(); - struct.nosuch.add(_elem472); + long _elem473; // required + _elem473 = iprot.readI64(); + struct.nosuch.add(_elem473); } iprot.readSetEnd(); } @@ -562,22 +564,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRes { org.apache.thrift.protocol.TSet _set478 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.aborted = new HashSet(2*_set478.size); - long _elem479; - for (int _i480 = 0; _i480 < _set478.size; ++_i480) + for (int _i479 = 0; _i479 < _set478.size; ++_i479) { - _elem479 = iprot.readI64(); - struct.aborted.add(_elem479); + long _elem480; // required + _elem480 = iprot.readI64(); + struct.aborted.add(_elem480); } } struct.setAbortedIsSet(true); { org.apache.thrift.protocol.TSet _set481 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.nosuch = new HashSet(2*_set481.size); - long _elem482; - for (int _i483 = 0; _i483 < _set481.size; ++_i483) + for (int _i482 = 0; _i482 < _set481.size; ++_i482) { - _elem482 = iprot.readI64(); - struct.nosuch.add(_elem482); + long _elem483; // required + _elem483 = iprot.readI64(); + struct.nosuch.add(_elem483); } } struct.setNosuchIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java index 3b818ab..bd7641d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HiveObjectPrivilege implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveObjectPrivilege implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectPrivilege"); private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -415,75 +411,75 @@ public boolean equals(HiveObjectPrivilege that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantInfo = true && (isSetGrantInfo()); - list.add(present_grantInfo); + builder.append(present_grantInfo); if (present_grantInfo) - list.add(grantInfo); + builder.append(grantInfo); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveObjectPrivilege other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveObjectPrivilege typedOther = (HiveObjectPrivilege)other; - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantInfo()).compareTo(other.isSetGrantInfo()); + lastComparison = Boolean.valueOf(isSetGrantInfo()).compareTo(typedOther.isSetGrantInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantInfo, other.grantInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantInfo, typedOther.grantInfo); if (lastComparison != 0) { return lastComparison; } @@ -607,7 +603,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectPrivilege break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -714,7 +710,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct.setPrincipalNameIsSet(true); } if (incoming.get(2)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(3)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java index d7dd8ec..997060f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HiveObjectRef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveObjectRef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectRef"); private static final org.apache.thrift.protocol.TField OBJECT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("objectType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -181,7 +177,10 @@ public HiveObjectRef(HiveObjectRef other) { this.objectName = other.objectName; } if (other.isSetPartValues()) { - List __this__partValues = new ArrayList(other.partValues); + List __this__partValues = new ArrayList(); + for (String other_element : other.partValues) { + __this__partValues.add(other_element); + } this.partValues = __this__partValues; } if (other.isSetColumnName()) { @@ -490,90 +489,90 @@ public boolean equals(HiveObjectRef that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_objectType = true && (isSetObjectType()); - list.add(present_objectType); + builder.append(present_objectType); if (present_objectType) - list.add(objectType.getValue()); + builder.append(objectType.getValue()); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_objectName = true && (isSetObjectName()); - list.add(present_objectName); + builder.append(present_objectName); if (present_objectName) - list.add(objectName); + builder.append(objectName); boolean present_partValues = true && (isSetPartValues()); - list.add(present_partValues); + builder.append(present_partValues); if (present_partValues) - list.add(partValues); + builder.append(partValues); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveObjectRef other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveObjectRef typedOther = (HiveObjectRef)other; - lastComparison = Boolean.valueOf(isSetObjectType()).compareTo(other.isSetObjectType()); + lastComparison = Boolean.valueOf(isSetObjectType()).compareTo(typedOther.isSetObjectType()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectType, other.objectType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectType, typedOther.objectType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetObjectName()).compareTo(other.isSetObjectName()); + lastComparison = Boolean.valueOf(isSetObjectName()).compareTo(typedOther.isSetObjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectName, other.objectName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectName, typedOther.objectName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartValues()).compareTo(other.isSetPartValues()); + lastComparison = Boolean.valueOf(isSetPartValues()).compareTo(typedOther.isSetPartValues()); if (lastComparison != 0) { return lastComparison; } if (isSetPartValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partValues, other.partValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partValues, typedOther.partValues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } @@ -682,7 +681,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectRef struc switch (schemeField.id) { case 1: // OBJECT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.objectType = org.apache.hadoop.hive.metastore.api.HiveObjectType.findByValue(iprot.readI32()); + struct.objectType = HiveObjectType.findByValue(iprot.readI32()); struct.setObjectTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -709,11 +708,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectRef struc { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.partValues = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.partValues.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.partValues.add(_elem10); } iprot.readListEnd(); } @@ -837,7 +836,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectRef struct TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.objectType = org.apache.hadoop.hive.metastore.api.HiveObjectType.findByValue(iprot.readI32()); + struct.objectType = HiveObjectType.findByValue(iprot.readI32()); struct.setObjectTypeIsSet(true); } if (incoming.get(1)) { @@ -852,11 +851,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectRef struct { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partValues = new ArrayList(_list13.size); - String _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - _elem14 = iprot.readString(); - struct.partValues.add(_elem14); + String _elem15; // required + _elem15 = iprot.readString(); + struct.partValues.add(_elem15); } } struct.setPartValuesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java index f5b1d0e..995331e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java index 44d99c7..cb3a435 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Index implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Index implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Index"); private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("indexName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -242,7 +238,18 @@ public Index(Index other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } this.deferredRebuild = other.deferredRebuild; @@ -607,10 +614,10 @@ public Object getFieldValue(_Fields field) { return getOrigTableName(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return getLastAccessTime(); + return Integer.valueOf(getLastAccessTime()); case INDEX_TABLE_NAME: return getIndexTableName(); @@ -622,7 +629,7 @@ public Object getFieldValue(_Fields field) { return getParameters(); case DEFERRED_REBUILD: - return isDeferredRebuild(); + return Boolean.valueOf(isDeferredRebuild()); } throw new IllegalStateException(); @@ -767,165 +774,165 @@ public boolean equals(Index that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_indexName = true && (isSetIndexName()); - list.add(present_indexName); + builder.append(present_indexName); if (present_indexName) - list.add(indexName); + builder.append(indexName); boolean present_indexHandlerClass = true && (isSetIndexHandlerClass()); - list.add(present_indexHandlerClass); + builder.append(present_indexHandlerClass); if (present_indexHandlerClass) - list.add(indexHandlerClass); + builder.append(indexHandlerClass); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_origTableName = true && (isSetOrigTableName()); - list.add(present_origTableName); + builder.append(present_origTableName); if (present_origTableName) - list.add(origTableName); + builder.append(origTableName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_indexTableName = true && (isSetIndexTableName()); - list.add(present_indexTableName); + builder.append(present_indexTableName); if (present_indexTableName) - list.add(indexTableName); + builder.append(indexTableName); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_deferredRebuild = true; - list.add(present_deferredRebuild); + builder.append(present_deferredRebuild); if (present_deferredRebuild) - list.add(deferredRebuild); + builder.append(deferredRebuild); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Index other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Index typedOther = (Index)other; - lastComparison = Boolean.valueOf(isSetIndexName()).compareTo(other.isSetIndexName()); + lastComparison = Boolean.valueOf(isSetIndexName()).compareTo(typedOther.isSetIndexName()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexName, other.indexName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexName, typedOther.indexName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndexHandlerClass()).compareTo(other.isSetIndexHandlerClass()); + lastComparison = Boolean.valueOf(isSetIndexHandlerClass()).compareTo(typedOther.isSetIndexHandlerClass()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexHandlerClass()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexHandlerClass, other.indexHandlerClass); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexHandlerClass, typedOther.indexHandlerClass); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrigTableName()).compareTo(other.isSetOrigTableName()); + lastComparison = Boolean.valueOf(isSetOrigTableName()).compareTo(typedOther.isSetOrigTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetOrigTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.origTableName, other.origTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.origTableName, typedOther.origTableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndexTableName()).compareTo(other.isSetIndexTableName()); + lastComparison = Boolean.valueOf(isSetIndexTableName()).compareTo(typedOther.isSetIndexTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexTableName, other.indexTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexTableName, typedOther.indexTableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeferredRebuild()).compareTo(other.isSetDeferredRebuild()); + lastComparison = Boolean.valueOf(isSetDeferredRebuild()).compareTo(typedOther.isSetDeferredRebuild()); if (lastComparison != 0) { return lastComparison; } if (isSetDeferredRebuild()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deferredRebuild, other.deferredRebuild); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deferredRebuild, typedOther.deferredRebuild); if (lastComparison != 0) { return lastComparison; } @@ -1135,13 +1142,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Index struct) throw { org.apache.thrift.protocol.TMap _map260 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map260.size); - String _key261; - String _val262; - for (int _i263 = 0; _i263 < _map260.size; ++_i263) + for (int _i261 = 0; _i261 < _map260.size; ++_i261) { - _key261 = iprot.readString(); - _val262 = iprot.readString(); - struct.parameters.put(_key261, _val262); + String _key262; // required + String _val263; // required + _key262 = iprot.readString(); + _val263 = iprot.readString(); + struct.parameters.put(_key262, _val263); } iprot.readMapEnd(); } @@ -1352,13 +1359,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Index struct) throws { org.apache.thrift.protocol.TMap _map266 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map266.size); - String _key267; - String _val268; - for (int _i269 = 0; _i269 < _map266.size; ++_i269) + for (int _i267 = 0; _i267 < _map266.size; ++_i267) { - _key267 = iprot.readString(); - _val268 = iprot.readString(); - struct.parameters.put(_key267, _val268); + String _key268; // required + String _val269; // required + _key268 = iprot.readString(); + _val269 = iprot.readString(); + struct.parameters.put(_key268, _val269); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java index 2588524..f90a65d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class IndexAlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class IndexAlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IndexAlreadyExistsException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(IndexAlreadyExistsException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(IndexAlreadyExistsException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + IndexAlreadyExistsException typedOther = (IndexAlreadyExistsException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 488d3a0..24dacf5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InsertEventRequestData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InsertEventRequestData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InsertEventRequestData"); private static final org.apache.thrift.protocol.TField FILES_ADDED_FIELD_DESC = new org.apache.thrift.protocol.TField("filesAdded", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public InsertEventRequestData( */ public InsertEventRequestData(InsertEventRequestData other) { if (other.isSetFilesAdded()) { - List __this__filesAdded = new ArrayList(other.filesAdded); + List __this__filesAdded = new ArrayList(); + for (String other_element : other.filesAdded) { + __this__filesAdded.add(other_element); + } this.filesAdded = __this__filesAdded; } } @@ -246,30 +245,30 @@ public boolean equals(InsertEventRequestData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_filesAdded = true && (isSetFilesAdded()); - list.add(present_filesAdded); + builder.append(present_filesAdded); if (present_filesAdded) - list.add(filesAdded); + builder.append(filesAdded); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InsertEventRequestData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InsertEventRequestData typedOther = (InsertEventRequestData)other; - lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(other.isSetFilesAdded()); + lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(typedOther.isSetFilesAdded()); if (lastComparison != 0) { return lastComparison; } if (isSetFilesAdded()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, other.filesAdded); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, typedOther.filesAdded); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD { org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); struct.filesAdded = new ArrayList(_list508.size); - String _elem509; - for (int _i510 = 0; _i510 < _list508.size; ++_i510) + for (int _i509 = 0; _i509 < _list508.size; ++_i509) { - _elem509 = iprot.readString(); - struct.filesAdded.add(_elem509); + String _elem510; // required + _elem510 = iprot.readString(); + struct.filesAdded.add(_elem510); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa { org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.filesAdded = new ArrayList(_list513.size); - String _elem514; - for (int _i515 = 0; _i515 < _list513.size; ++_i515) + for (int _i514 = 0; _i514 < _list513.size; ++_i514) { - _elem514 = iprot.readString(); - struct.filesAdded.add(_elem514); + String _elem515; // required + _elem515 = iprot.readString(); + struct.filesAdded.add(_elem515); } } struct.setFilesAddedIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java index 7c7e000..4b63e3f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InvalidInputException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidInputException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidInputException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidInputException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidInputException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidInputException typedOther = (InvalidInputException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java index 957aca0..2f1414e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InvalidObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidObjectException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidObjectException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidObjectException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidObjectException typedOther = (InvalidObjectException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java index 6217bb8..9b6acb8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InvalidOperationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidOperationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperationException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidOperationException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidOperationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidOperationException typedOther = (InvalidOperationException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java index ef71511..99ffddb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InvalidPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidPartitionException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidPartitionException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidPartitionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidPartitionException typedOther = (InvalidPartitionException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java index adb0c44..59c8199 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class LockComponent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockComponent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockComponent"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTITIONNAME}; + private _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTITIONNAME}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -482,90 +478,90 @@ public boolean equals(LockComponent that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_level = true && (isSetLevel()); - list.add(present_level); + builder.append(present_level); if (present_level) - list.add(level.getValue()); + builder.append(level.getValue()); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockComponent other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockComponent typedOther = (LockComponent)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLevel()).compareTo(other.isSetLevel()); + lastComparison = Boolean.valueOf(isSetLevel()).compareTo(typedOther.isSetLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, other.level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, typedOther.level); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } @@ -690,7 +686,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockComponent struc switch (schemeField.id) { case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -698,7 +694,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockComponent struc break; case 2: // LEVEL if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.level = org.apache.hadoop.hive.metastore.api.LockLevel.findByValue(iprot.readI32()); + struct.level = LockLevel.findByValue(iprot.readI32()); struct.setLevelIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -809,9 +805,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); - struct.level = org.apache.hadoop.hive.metastore.api.LockLevel.findByValue(iprot.readI32()); + struct.level = LockLevel.findByValue(iprot.readI32()); struct.setLevelIsSet(true); struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java index e58ea46..ca5d30a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index eada4ee..7f70f98 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class LockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockRequest"); private static final org.apache.thrift.protocol.TField COMPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("component", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __TXNID_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.TXNID}; + private _Fields optionals[] = {_Fields.TXNID}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -161,7 +157,7 @@ public LockRequest( public LockRequest(LockRequest other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetComponent()) { - List __this__component = new ArrayList(other.component.size()); + List __this__component = new ArrayList(); for (LockComponent other_element : other.component) { __this__component.add(new LockComponent(other_element)); } @@ -338,7 +334,7 @@ public Object getFieldValue(_Fields field) { return getComponent(); case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); case USER: return getUser(); @@ -423,75 +419,75 @@ public boolean equals(LockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_component = true && (isSetComponent()); - list.add(present_component); + builder.append(present_component); if (present_component) - list.add(component); + builder.append(component); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockRequest typedOther = (LockRequest)other; - lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent()); + lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent()); if (lastComparison != 0) { return lastComparison; } if (isSetComponent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -607,12 +603,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) { org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); struct.component = new ArrayList(_list452.size); - LockComponent _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + for (int _i453 = 0; _i453 < _list452.size; ++_i453) { - _elem453 = new LockComponent(); - _elem453.read(iprot); - struct.component.add(_elem453); + LockComponent _elem454; // required + _elem454 = new LockComponent(); + _elem454.read(iprot); + struct.component.add(_elem454); } iprot.readListEnd(); } @@ -727,12 +723,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) { org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.component = new ArrayList(_list457.size); - LockComponent _elem458; - for (int _i459 = 0; _i459 < _list457.size; ++_i459) + for (int _i458 = 0; _i458 < _list457.size; ++_i458) { - _elem458 = new LockComponent(); - _elem458.read(iprot); - struct.component.add(_elem458); + LockComponent _elem459; // required + _elem459 = new LockComponent(); + _elem459.read(iprot); + struct.component.add(_elem459); } } struct.setComponentIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java index 862c67f..c9ab465 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class LockResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockResponse"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -241,7 +237,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LOCKID: - return getLockid(); + return Long.valueOf(getLockid()); case STATE: return getState(); @@ -301,45 +297,45 @@ public boolean equals(LockResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockResponse typedOther = (LockResponse)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } @@ -438,7 +434,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockResponse struct break; case 2: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -491,7 +487,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, LockResponse struct) TTupleProtocol iprot = (TTupleProtocol) prot; struct.lockid = iprot.readI64(); struct.setLockidIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java index 48a0bbd..57bc3c5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java index 8ae4351..ee57883 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java index 2f41c5a..134d64d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,19 +28,17 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class LongColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LongColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LongColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField HIGH_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("highValue", org.apache.thrift.protocol.TType.I64, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField NUM_DVS_FIELD_DESC = new org.apache.thrift.protocol.TField("numDVs", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +50,15 @@ private long highValue; // optional private long numNulls; // required private long numDVs; // required + private String bitVectors; // 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 { LOW_VALUE((short)1, "lowValue"), HIGH_VALUE((short)2, "highValue"), NUM_NULLS((short)3, "numNulls"), - NUM_DVS((short)4, "numDVs"); + NUM_DVS((short)4, "numDVs"), + BIT_VECTORS((short)5, "bitVectors"); private static final Map byName = new HashMap(); @@ -82,6 +81,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_NULLS; case 4: // NUM_DVS return NUM_DVS; + case 5: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -127,7 +128,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 2; private static final int __NUMDVS_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -139,6 +140,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_DVS, new org.apache.thrift.meta_data.FieldMetaData("numDVs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LongColumnStatsData.class, metaDataMap); } @@ -148,13 +151,15 @@ public LongColumnStatsData() { public LongColumnStatsData( long numNulls, - long numDVs) + long numDVs, + String bitVectors) { this(); this.numNulls = numNulls; setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -166,6 +171,9 @@ public LongColumnStatsData(LongColumnStatsData other) { this.highValue = other.highValue; this.numNulls = other.numNulls; this.numDVs = other.numDVs; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public LongColumnStatsData deepCopy() { @@ -182,6 +190,7 @@ public void clear() { this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; + this.bitVectors = null; } public long getLowValue() { @@ -272,6 +281,29 @@ public void setNumDVsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMDVS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LOW_VALUE: @@ -306,22 +338,33 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case LOW_VALUE: - return getLowValue(); + return Long.valueOf(getLowValue()); case HIGH_VALUE: - return getHighValue(); + return Long.valueOf(getHighValue()); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); case NUM_DVS: - return getNumDVs(); + return Long.valueOf(getNumDVs()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -342,6 +385,8 @@ public boolean isSet(_Fields field) { return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -395,80 +440,104 @@ public boolean equals(LongColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LongColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LongColumnStatsData typedOther = (LongColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -512,6 +581,14 @@ public String toString() { sb.append("numDVs:"); sb.append(this.numDVs); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -526,6 +603,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numDVs' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -597,6 +678,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LongColumnStatsData org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -626,6 +715,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, LongColumnStatsDat oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -645,6 +739,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LongColumnStatsData TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); + oprot.writeString(struct.bitVectors); BitSet optionals = new BitSet(); if (struct.isSetLowValue()) { optionals.set(0); @@ -668,6 +763,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, LongColumnStatsData struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.lowValue = iprot.readI64(); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java index 21be66b..108bca9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class MetaException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MetaException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MetaException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(MetaException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MetaException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MetaException typedOther = (MetaException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetadataPpdResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetadataPpdResult.java index 87fad1a..83b7748 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetadataPpdResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetadataPpdResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class MetadataPpdResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MetadataPpdResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MetadataPpdResult"); private static final org.apache.thrift.protocol.TField METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("metadata", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.METADATA,_Fields.INCLUDE_BITSET}; + private _Fields optionals[] = {_Fields.METADATA,_Fields.INCLUDE_BITSET}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -133,9 +129,11 @@ public MetadataPpdResult() { public MetadataPpdResult(MetadataPpdResult other) { if (other.isSetMetadata()) { this.metadata = org.apache.thrift.TBaseHelper.copyBinary(other.metadata); +; } if (other.isSetIncludeBitset()) { this.includeBitset = org.apache.thrift.TBaseHelper.copyBinary(other.includeBitset); +; } } @@ -155,15 +153,15 @@ public void clear() { } public ByteBuffer bufferForMetadata() { - return org.apache.thrift.TBaseHelper.copyBinary(metadata); + return metadata; } public void setMetadata(byte[] metadata) { - this.metadata = metadata == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(metadata, metadata.length)); + setMetadata(metadata == null ? (ByteBuffer)null : ByteBuffer.wrap(metadata)); } public void setMetadata(ByteBuffer metadata) { - this.metadata = org.apache.thrift.TBaseHelper.copyBinary(metadata); + this.metadata = metadata; } public void unsetMetadata() { @@ -187,15 +185,15 @@ public void setMetadataIsSet(boolean value) { } public ByteBuffer bufferForIncludeBitset() { - return org.apache.thrift.TBaseHelper.copyBinary(includeBitset); + return includeBitset; } public void setIncludeBitset(byte[] includeBitset) { - this.includeBitset = includeBitset == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(includeBitset, includeBitset.length)); + setIncludeBitset(includeBitset == null ? (ByteBuffer)null : ByteBuffer.wrap(includeBitset)); } public void setIncludeBitset(ByteBuffer includeBitset) { - this.includeBitset = org.apache.thrift.TBaseHelper.copyBinary(includeBitset); + this.includeBitset = includeBitset; } public void unsetIncludeBitset() { @@ -297,45 +295,45 @@ public boolean equals(MetadataPpdResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_metadata = true && (isSetMetadata()); - list.add(present_metadata); + builder.append(present_metadata); if (present_metadata) - list.add(metadata); + builder.append(metadata); boolean present_includeBitset = true && (isSetIncludeBitset()); - list.add(present_includeBitset); + builder.append(present_includeBitset); if (present_includeBitset) - list.add(includeBitset); + builder.append(includeBitset); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MetadataPpdResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MetadataPpdResult typedOther = (MetadataPpdResult)other; - lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(other.isSetMetadata()); + lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata()); if (lastComparison != 0) { return lastComparison; } if (isSetMetadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, other.metadata); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIncludeBitset()).compareTo(other.isSetIncludeBitset()); + lastComparison = Boolean.valueOf(isSetIncludeBitset()).compareTo(typedOther.isSetIncludeBitset()); if (lastComparison != 0) { return lastComparison; } if (isSetIncludeBitset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.includeBitset, other.includeBitset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.includeBitset, typedOther.includeBitset); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java index aefbe4a..9c8bd0b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NoSuchLockException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchLockException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchLockException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchLockException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchLockException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchLockException typedOther = (NoSuchLockException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java index efa5326..305e979 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NoSuchObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchObjectException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchObjectException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchObjectException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchObjectException typedOther = (NoSuchObjectException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java index 8149d9c..92dbb7f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NoSuchTxnException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchTxnException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchTxnException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchTxnException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchTxnException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchTxnException typedOther = (NoSuchTxnException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java index c40bb4b..f196c1c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NotificationEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEvent"); private static final org.apache.thrift.protocol.TField EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("eventId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { private static final int __EVENTID_ISSET_ID = 0; private static final int __EVENTTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME}; + private _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -402,10 +398,10 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case EVENT_ID: - return getEventId(); + return Long.valueOf(getEventId()); case EVENT_TIME: - return getEventTime(); + return Integer.valueOf(getEventTime()); case EVENT_TYPE: return getEventType(); @@ -518,105 +514,105 @@ public boolean equals(NotificationEvent that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_eventId = true; - list.add(present_eventId); + builder.append(present_eventId); if (present_eventId) - list.add(eventId); + builder.append(eventId); boolean present_eventTime = true; - list.add(present_eventTime); + builder.append(present_eventTime); if (present_eventTime) - list.add(eventTime); + builder.append(eventTime); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType); + builder.append(eventType); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEvent other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEvent typedOther = (NotificationEvent)other; - lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); + lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; } if (isSetEventId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventTime()).compareTo(other.isSetEventTime()); + lastComparison = Boolean.valueOf(isSetEventTime()).compareTo(typedOther.isSetEventTime()); if (lastComparison != 0) { return lastComparison; } if (isSetEventTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventTime, other.eventTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventTime, typedOther.eventTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java index bafb9b6..6a8c8ab 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NotificationEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEventRequest"); private static final org.apache.thrift.protocol.TField LAST_EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastEvent", org.apache.thrift.protocol.TType.I64, (short)1); @@ -115,7 +111,7 @@ public String getFieldName() { private static final int __LASTEVENT_ISSET_ID = 0; private static final int __MAXEVENTS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MAX_EVENTS}; + private _Fields optionals[] = {_Fields.MAX_EVENTS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -227,10 +223,10 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LAST_EVENT: - return getLastEvent(); + return Long.valueOf(getLastEvent()); case MAX_EVENTS: - return getMaxEvents(); + return Integer.valueOf(getMaxEvents()); } throw new IllegalStateException(); @@ -287,45 +283,45 @@ public boolean equals(NotificationEventRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lastEvent = true; - list.add(present_lastEvent); + builder.append(present_lastEvent); if (present_lastEvent) - list.add(lastEvent); + builder.append(lastEvent); boolean present_maxEvents = true && (isSetMaxEvents()); - list.add(present_maxEvents); + builder.append(present_maxEvents); if (present_maxEvents) - list.add(maxEvents); + builder.append(maxEvents); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEventRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEventRequest typedOther = (NotificationEventRequest)other; - lastComparison = Boolean.valueOf(isSetLastEvent()).compareTo(other.isSetLastEvent()); + lastComparison = Boolean.valueOf(isSetLastEvent()).compareTo(typedOther.isSetLastEvent()); if (lastComparison != 0) { return lastComparison; } if (isSetLastEvent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastEvent, other.lastEvent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastEvent, typedOther.lastEvent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxEvents()).compareTo(other.isSetMaxEvents()); + lastComparison = Boolean.valueOf(isSetMaxEvents()).compareTo(typedOther.isSetMaxEvents()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxEvents()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxEvents, other.maxEvents); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxEvents, typedOther.maxEvents); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index fcbbd18..c16802d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class NotificationEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEventResponse"); private static final org.apache.thrift.protocol.TField EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("events", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public NotificationEventResponse( */ public NotificationEventResponse(NotificationEventResponse other) { if (other.isSetEvents()) { - List __this__events = new ArrayList(other.events.size()); + List __this__events = new ArrayList(); for (NotificationEvent other_element : other.events) { __this__events.add(new NotificationEvent(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(NotificationEventResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_events = true && (isSetEvents()); - list.add(present_events); + builder.append(present_events); if (present_events) - list.add(events); + builder.append(events); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEventResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEventResponse typedOther = (NotificationEventResponse)other; - lastComparison = Boolean.valueOf(isSetEvents()).compareTo(other.isSetEvents()); + lastComparison = Boolean.valueOf(isSetEvents()).compareTo(typedOther.isSetEvents()); if (lastComparison != 0) { return lastComparison; } if (isSetEvents()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.events, other.events); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.events, typedOther.events); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe { org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); struct.events = new ArrayList(_list500.size); - NotificationEvent _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + for (int _i501 = 0; _i501 < _list500.size; ++_i501) { - _elem501 = new NotificationEvent(); - _elem501.read(iprot); - struct.events.add(_elem501); + NotificationEvent _elem502; // required + _elem502 = new NotificationEvent(); + _elem502.read(iprot); + struct.events.add(_elem502); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventRes { org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.events = new ArrayList(_list505.size); - NotificationEvent _elem506; - for (int _i507 = 0; _i507 < _list505.size; ++_i507) + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - _elem506 = new NotificationEvent(); - _elem506.read(iprot); - struct.events.add(_elem506); + NotificationEvent _elem507; // required + _elem507 = new NotificationEvent(); + _elem507.read(iprot); + struct.events.add(_elem507); } } struct.setEventsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java index 01371ec..0d05378 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class OpenTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class OpenTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenTxnRequest"); private static final org.apache.thrift.protocol.TField NUM_TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("num_txns", org.apache.thrift.protocol.TType.I32, (short)1); @@ -273,7 +269,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case NUM_TXNS: - return getNum_txns(); + return Integer.valueOf(getNum_txns()); case USER: return getUser(); @@ -347,60 +343,60 @@ public boolean equals(OpenTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_txns = true; - list.add(present_num_txns); + builder.append(present_num_txns); if (present_num_txns) - list.add(num_txns); + builder.append(num_txns); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenTxnRequest typedOther = (OpenTxnRequest)other; - lastComparison = Boolean.valueOf(isSetNum_txns()).compareTo(other.isSetNum_txns()); + lastComparison = Boolean.valueOf(isSetNum_txns()).compareTo(typedOther.isSetNum_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetNum_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_txns, other.num_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_txns, typedOther.num_txns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index e11a2b3..f369ab2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class OpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class OpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenTxnsResponse"); private static final org.apache.thrift.protocol.TField TXN_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_ids", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public OpenTxnsResponse( */ public OpenTxnsResponse(OpenTxnsResponse other) { if (other.isSetTxn_ids()) { - List __this__txn_ids = new ArrayList(other.txn_ids); + List __this__txn_ids = new ArrayList(); + for (Long other_element : other.txn_ids) { + __this__txn_ids.add(other_element); + } this.txn_ids = __this__txn_ids; } } @@ -246,30 +245,30 @@ public boolean equals(OpenTxnsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_ids = true && (isSetTxn_ids()); - list.add(present_txn_ids); + builder.append(present_txn_ids); if (present_txn_ids) - list.add(txn_ids); + builder.append(txn_ids); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenTxnsResponse typedOther = (OpenTxnsResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_ids()).compareTo(other.isSetTxn_ids()); + lastComparison = Boolean.valueOf(isSetTxn_ids()).compareTo(typedOther.isSetTxn_ids()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_ids()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_ids, other.txn_ids); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_ids, typedOther.txn_ids); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st { org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); struct.txn_ids = new ArrayList(_list444.size); - long _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + for (int _i445 = 0; _i445 < _list444.size; ++_i445) { - _elem445 = iprot.readI64(); - struct.txn_ids.add(_elem445); + long _elem446; // required + _elem446 = iprot.readI64(); + struct.txn_ids.add(_elem446); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse str { org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.txn_ids = new ArrayList(_list449.size); - long _elem450; - for (int _i451 = 0; _i451 < _list449.size; ++_i451) + for (int _i450 = 0; _i450 < _list449.size; ++_i450) { - _elem450 = iprot.readI64(); - struct.txn_ids.add(_elem450); + long _elem451; // required + _elem451 = iprot.readI64(); + struct.txn_ids.add(_elem451); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java index cc0e2dd..55d5174 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Order implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Order implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Order"); private static final org.apache.thrift.protocol.TField COL_FIELD_DESC = new org.apache.thrift.protocol.TField("col", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -232,7 +228,7 @@ public Object getFieldValue(_Fields field) { return getCol(); case ORDER: - return getOrder(); + return Integer.valueOf(getOrder()); } throw new IllegalStateException(); @@ -289,45 +285,45 @@ public boolean equals(Order that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_col = true && (isSetCol()); - list.add(present_col); + builder.append(present_col); if (present_col) - list.add(col); + builder.append(col); boolean present_order = true; - list.add(present_order); + builder.append(present_order); if (present_order) - list.add(order); + builder.append(order); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Order typedOther = (Order)other; - lastComparison = Boolean.valueOf(isSetCol()).compareTo(other.isSetCol()); + lastComparison = Boolean.valueOf(isSetCol()).compareTo(typedOther.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, other.col); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrder()).compareTo(other.isSetOrder()); + lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, other.order); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index a247221..242d54d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Partition implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Partition implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Partition"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public String getFieldName() { private static final int __CREATETIME_ISSET_ID = 0; private static final int __LASTACCESSTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES}; + private _Fields optionals[] = {_Fields.PRIVILEGES}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -202,7 +198,10 @@ public Partition( public Partition(Partition other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetDbName()) { @@ -217,7 +216,18 @@ public Partition(Partition other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -532,10 +542,10 @@ public Object getFieldValue(_Fields field) { return getTableName(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return getLastAccessTime(); + return Integer.valueOf(getLastAccessTime()); case SD: return getSd(); @@ -667,135 +677,135 @@ public boolean equals(Partition that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Partition other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Partition typedOther = (Partition)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -933,11 +943,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t { org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); struct.values = new ArrayList(_list208.size); - String _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + for (int _i209 = 0; _i209 < _list208.size; ++_i209) { - _elem209 = iprot.readString(); - struct.values.add(_elem209); + String _elem210; // required + _elem210 = iprot.readString(); + struct.values.add(_elem210); } iprot.readListEnd(); } @@ -992,13 +1002,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t { org.apache.thrift.protocol.TMap _map211 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map211.size); - String _key212; - String _val213; - for (int _i214 = 0; _i214 < _map211.size; ++_i214) + for (int _i212 = 0; _i212 < _map211.size; ++_i212) { - _key212 = iprot.readString(); - _val213 = iprot.readString(); - struct.parameters.put(_key212, _val213); + String _key213; // required + String _val214; // required + _key213 = iprot.readString(); + _val214 = iprot.readString(); + struct.parameters.put(_key213, _val214); } iprot.readMapEnd(); } @@ -1172,11 +1182,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th { org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list219.size); - String _elem220; - for (int _i221 = 0; _i221 < _list219.size; ++_i221) + for (int _i220 = 0; _i220 < _list219.size; ++_i220) { - _elem220 = iprot.readString(); - struct.values.add(_elem220); + String _elem221; // required + _elem221 = iprot.readString(); + struct.values.add(_elem221); } } struct.setValuesIsSet(true); @@ -1206,13 +1216,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th { org.apache.thrift.protocol.TMap _map222 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map222.size); - String _key223; - String _val224; - for (int _i225 = 0; _i225 < _map222.size; ++_i225) + for (int _i223 = 0; _i223 < _map222.size; ++_i223) { - _key223 = iprot.readString(); - _val224 = iprot.readString(); - struct.parameters.put(_key223, _val224); + String _key224; // required + String _val225; // required + _key224 = iprot.readString(); + _val225 = iprot.readString(); + struct.parameters.put(_key224, _val225); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java index b515401..6c75461 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java index e8232b9..a634f55 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionListComposingSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionListComposingSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionListComposingSpec"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public PartitionListComposingSpec( */ public PartitionListComposingSpec(PartitionListComposingSpec other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(PartitionListComposingSpec that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionListComposingSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionListComposingSpec typedOther = (PartitionListComposingSpec)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionListCompos { org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); struct.partitions = new ArrayList(_list252.size); - Partition _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + for (int _i253 = 0; _i253 < _list252.size; ++_i253) { - _elem253 = new Partition(); - _elem253.read(iprot); - struct.partitions.add(_elem253); + Partition _elem254; // required + _elem254 = new Partition(); + _elem254.read(iprot); + struct.partitions.add(_elem254); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionListComposi { org.apache.thrift.protocol.TList _list257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list257.size); - Partition _elem258; - for (int _i259 = 0; _i259 < _list257.size; ++_i259) + for (int _i258 = 0; _i258 < _list257.size; ++_i258) { - _elem258 = new Partition(); - _elem258.read(iprot); - struct.partitions.add(_elem258); + Partition _elem259; // required + _elem259 = new Partition(); + _elem259.read(iprot); + struct.partitions.add(_elem259); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java index e8188a9..06cc8fb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionSpec"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SHARED_SDPARTITION_SPEC,_Fields.PARTITION_LIST}; + private _Fields optionals[] = {_Fields.SHARED_SDPARTITION_SPEC,_Fields.PARTITION_LIST}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -458,90 +454,90 @@ public boolean equals(PartitionSpec that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_rootPath = true && (isSetRootPath()); - list.add(present_rootPath); + builder.append(present_rootPath); if (present_rootPath) - list.add(rootPath); + builder.append(rootPath); boolean present_sharedSDPartitionSpec = true && (isSetSharedSDPartitionSpec()); - list.add(present_sharedSDPartitionSpec); + builder.append(present_sharedSDPartitionSpec); if (present_sharedSDPartitionSpec) - list.add(sharedSDPartitionSpec); + builder.append(sharedSDPartitionSpec); boolean present_partitionList = true && (isSetPartitionList()); - list.add(present_partitionList); + builder.append(present_partitionList); if (present_partitionList) - list.add(partitionList); + builder.append(partitionList); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionSpec typedOther = (PartitionSpec)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRootPath()).compareTo(other.isSetRootPath()); + lastComparison = Boolean.valueOf(isSetRootPath()).compareTo(typedOther.isSetRootPath()); if (lastComparison != 0) { return lastComparison; } if (isSetRootPath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootPath, other.rootPath); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootPath, typedOther.rootPath); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSharedSDPartitionSpec()).compareTo(other.isSetSharedSDPartitionSpec()); + lastComparison = Boolean.valueOf(isSetSharedSDPartitionSpec()).compareTo(typedOther.isSetSharedSDPartitionSpec()); if (lastComparison != 0) { return lastComparison; } if (isSetSharedSDPartitionSpec()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sharedSDPartitionSpec, other.sharedSDPartitionSpec); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sharedSDPartitionSpec, typedOther.sharedSDPartitionSpec); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionList()).compareTo(other.isSetPartitionList()); + lastComparison = Boolean.valueOf(isSetPartitionList()).compareTo(typedOther.isSetPartitionList()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionList, other.partitionList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionList, typedOther.partitionList); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java index 2c41912..73d3067 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionSpecWithSharedSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionSpecWithSharedSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionSpecWithSharedSD"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -141,7 +137,7 @@ public PartitionSpecWithSharedSD( */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(PartitionSpecWithSharedSD that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionSpecWithSharedSD other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionSpecWithSharedSD typedOther = (PartitionSpecWithSharedSD)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } @@ -436,12 +432,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpecWithSh { org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); struct.partitions = new ArrayList(_list244.size); - PartitionWithoutSD _elem245; - for (int _i246 = 0; _i246 < _list244.size; ++_i246) + for (int _i245 = 0; _i245 < _list244.size; ++_i245) { - _elem245 = new PartitionWithoutSD(); - _elem245.read(iprot); - struct.partitions.add(_elem245); + PartitionWithoutSD _elem246; // required + _elem246 = new PartitionWithoutSD(); + _elem246.read(iprot); + struct.partitions.add(_elem246); } iprot.readListEnd(); } @@ -536,12 +532,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSha { org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list249.size); - PartitionWithoutSD _elem250; - for (int _i251 = 0; _i251 < _list249.size; ++_i251) + for (int _i250 = 0; _i250 < _list249.size; ++_i250) { - _elem250 = new PartitionWithoutSD(); - _elem250.read(iprot); - struct.partitions.add(_elem250); + PartitionWithoutSD _elem251; // required + _elem251 = new PartitionWithoutSD(); + _elem251.read(iprot); + struct.partitions.add(_elem251); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java index f0c5ce1..112b723 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionWithoutSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionWithoutSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionWithoutSD"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { private static final int __CREATETIME_ISSET_ID = 0; private static final int __LASTACCESSTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES}; + private _Fields optionals[] = {_Fields.PRIVILEGES}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -184,7 +180,10 @@ public PartitionWithoutSD( public PartitionWithoutSD(PartitionWithoutSD other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } this.createTime = other.createTime; @@ -193,7 +192,18 @@ public PartitionWithoutSD(PartitionWithoutSD other) { this.relativePath = other.relativePath; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -438,10 +448,10 @@ public Object getFieldValue(_Fields field) { return getValues(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return getLastAccessTime(); + return Integer.valueOf(getLastAccessTime()); case RELATIVE_PATH: return getRelativePath(); @@ -551,105 +561,105 @@ public boolean equals(PartitionWithoutSD that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_relativePath = true && (isSetRelativePath()); - list.add(present_relativePath); + builder.append(present_relativePath); if (present_relativePath) - list.add(relativePath); + builder.append(relativePath); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionWithoutSD other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionWithoutSD typedOther = (PartitionWithoutSD)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRelativePath()).compareTo(other.isSetRelativePath()); + lastComparison = Boolean.valueOf(isSetRelativePath()).compareTo(typedOther.isSetRelativePath()); if (lastComparison != 0) { return lastComparison; } if (isSetRelativePath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.relativePath, other.relativePath); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.relativePath, typedOther.relativePath); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -768,11 +778,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD { org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); struct.values = new ArrayList(_list226.size); - String _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + for (int _i227 = 0; _i227 < _list226.size; ++_i227) { - _elem227 = iprot.readString(); - struct.values.add(_elem227); + String _elem228; // required + _elem228 = iprot.readString(); + struct.values.add(_elem228); } iprot.readListEnd(); } @@ -810,13 +820,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD { org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map229.size); - String _key230; - String _val231; - for (int _i232 = 0; _i232 < _map229.size; ++_i232) + for (int _i230 = 0; _i230 < _map229.size; ++_i230) { - _key230 = iprot.readString(); - _val231 = iprot.readString(); - struct.parameters.put(_key230, _val231); + String _key231; // required + String _val232; // required + _key231 = iprot.readString(); + _val232 = iprot.readString(); + struct.parameters.put(_key231, _val232); } iprot.readMapEnd(); } @@ -968,11 +978,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list237.size); - String _elem238; - for (int _i239 = 0; _i239 < _list237.size; ++_i239) + for (int _i238 = 0; _i238 < _list237.size; ++_i238) { - _elem238 = iprot.readString(); - struct.values.add(_elem238); + String _elem239; // required + _elem239 = iprot.readString(); + struct.values.add(_elem239); } } struct.setValuesIsSet(true); @@ -993,13 +1003,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s { org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map240.size); - String _key241; - String _val242; - for (int _i243 = 0; _i243 < _map240.size; ++_i243) + for (int _i241 = 0; _i241 < _map240.size; ++_i241) { - _key241 = iprot.readString(); - _val242 = iprot.readString(); - struct.parameters.put(_key241, _val242); + String _key242; // required + String _val243; // required + _key242 = iprot.readString(); + _val243 = iprot.readString(); + struct.parameters.put(_key242, _val243); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java index 59972af..c6fa8a2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionsByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsByExprRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { // isset id assignments private static final int __MAXPARTS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS}; + private _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -160,7 +156,7 @@ public PartitionsByExprRequest( this(); this.dbName = dbName; this.tblName = tblName; - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } /** @@ -176,6 +172,7 @@ public PartitionsByExprRequest(PartitionsByExprRequest other) { } if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); +; } if (other.isSetDefaultPartitionName()) { this.defaultPartitionName = other.defaultPartitionName; @@ -249,15 +246,15 @@ public void setTblNameIsSet(boolean value) { } public ByteBuffer bufferForExpr() { - return org.apache.thrift.TBaseHelper.copyBinary(expr); + return expr; } public void setExpr(byte[] expr) { - this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); + setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); } public void setExpr(ByteBuffer expr) { - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } public void unsetExpr() { @@ -380,7 +377,7 @@ public Object getFieldValue(_Fields field) { return getDefaultPartitionName(); case MAX_PARTS: - return getMaxParts(); + return Short.valueOf(getMaxParts()); } throw new IllegalStateException(); @@ -470,90 +467,90 @@ public boolean equals(PartitionsByExprRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_expr = true && (isSetExpr()); - list.add(present_expr); + builder.append(present_expr); if (present_expr) - list.add(expr); + builder.append(expr); boolean present_defaultPartitionName = true && (isSetDefaultPartitionName()); - list.add(present_defaultPartitionName); + builder.append(present_defaultPartitionName); if (present_defaultPartitionName) - list.add(defaultPartitionName); + builder.append(defaultPartitionName); boolean present_maxParts = true && (isSetMaxParts()); - list.add(present_maxParts); + builder.append(present_maxParts); if (present_maxParts) - list.add(maxParts); + builder.append(maxParts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsByExprRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsByExprRequest typedOther = (PartitionsByExprRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultPartitionName()).compareTo(other.isSetDefaultPartitionName()); + lastComparison = Boolean.valueOf(isSetDefaultPartitionName()).compareTo(typedOther.isSetDefaultPartitionName()); if (lastComparison != 0) { return lastComparison; } if (isSetDefaultPartitionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultPartitionName, other.defaultPartitionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultPartitionName, typedOther.defaultPartitionName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(typedOther.isSetMaxParts()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, typedOther.maxParts); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 12ae66d..b459058 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionsByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsByExprResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public PartitionsByExprResult( public PartitionsByExprResult(PartitionsByExprResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -252,7 +248,7 @@ public Object getFieldValue(_Fields field) { return getPartitions(); case HAS_UNKNOWN_PARTITIONS: - return isHasUnknownPartitions(); + return Boolean.valueOf(isHasUnknownPartitions()); } throw new IllegalStateException(); @@ -309,45 +305,45 @@ public boolean equals(PartitionsByExprResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); boolean present_hasUnknownPartitions = true; - list.add(present_hasUnknownPartitions); + builder.append(present_hasUnknownPartitions); if (present_hasUnknownPartitions) - list.add(hasUnknownPartitions); + builder.append(hasUnknownPartitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsByExprResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsByExprResult typedOther = (PartitionsByExprResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasUnknownPartitions()).compareTo(other.isSetHasUnknownPartitions()); + lastComparison = Boolean.valueOf(isSetHasUnknownPartitions()).compareTo(typedOther.isSetHasUnknownPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetHasUnknownPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUnknownPartitions, other.hasUnknownPartitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUnknownPartitions, typedOther.hasUnknownPartitions); if (lastComparison != 0) { return lastComparison; } @@ -441,12 +437,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprRes { org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); struct.partitions = new ArrayList(_list322.size); - Partition _elem323; - for (int _i324 = 0; _i324 < _list322.size; ++_i324) + for (int _i323 = 0; _i323 < _list322.size; ++_i323) { - _elem323 = new Partition(); - _elem323.read(iprot); - struct.partitions.add(_elem323); + Partition _elem324; // required + _elem324 = new Partition(); + _elem324.read(iprot); + struct.partitions.add(_elem324); } iprot.readListEnd(); } @@ -524,12 +520,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResu { org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list327.size); - Partition _elem328; - for (int _i329 = 0; _i329 < _list327.size; ++_i329) + for (int _i328 = 0; _i328 < _list327.size; ++_i328) { - _elem328 = new Partition(); - _elem328.read(iprot); - struct.partitions.add(_elem328); + Partition _elem329; // required + _elem329 = new Partition(); + _elem329.read(iprot); + struct.partitions.add(_elem329); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 8416369..f515bc4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsStatsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -166,11 +162,17 @@ public PartitionsStatsRequest(PartitionsStatsRequest other) { this.tblName = other.tblName; } if (other.isSetColNames()) { - List __this__colNames = new ArrayList(other.colNames); + List __this__colNames = new ArrayList(); + for (String other_element : other.colNames) { + __this__colNames.add(other_element); + } this.colNames = __this__colNames; } if (other.isSetPartNames()) { - List __this__partNames = new ArrayList(other.partNames); + List __this__partNames = new ArrayList(); + for (String other_element : other.partNames) { + __this__partNames.add(other_element); + } this.partNames = __this__partNames; } } @@ -437,75 +439,75 @@ public boolean equals(PartitionsStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_colNames = true && (isSetColNames()); - list.add(present_colNames); + builder.append(present_colNames); if (present_colNames) - list.add(colNames); + builder.append(colNames); boolean present_partNames = true && (isSetPartNames()); - list.add(present_partNames); + builder.append(present_partNames); if (present_partNames) - list.add(partNames); + builder.append(partNames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsStatsRequest typedOther = (PartitionsStatsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColNames()).compareTo(other.isSetColNames()); + lastComparison = Boolean.valueOf(isSetColNames()).compareTo(typedOther.isSetColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, other.colNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, typedOther.colNames); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); + lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(typedOther.isSetPartNames()); if (lastComparison != 0) { return lastComparison; } if (isSetPartNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, typedOther.partNames); if (lastComparison != 0) { return lastComparison; } @@ -641,11 +643,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ { org.apache.thrift.protocol.TList _list364 = iprot.readListBegin(); struct.colNames = new ArrayList(_list364.size); - String _elem365; - for (int _i366 = 0; _i366 < _list364.size; ++_i366) + for (int _i365 = 0; _i365 < _list364.size; ++_i365) { - _elem365 = iprot.readString(); - struct.colNames.add(_elem365); + String _elem366; // required + _elem366 = iprot.readString(); + struct.colNames.add(_elem366); } iprot.readListEnd(); } @@ -659,11 +661,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ { org.apache.thrift.protocol.TList _list367 = iprot.readListBegin(); struct.partNames = new ArrayList(_list367.size); - String _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + for (int _i368 = 0; _i368 < _list367.size; ++_i368) { - _elem368 = iprot.readString(); - struct.partNames.add(_elem368); + String _elem369; // required + _elem369 = iprot.readString(); + struct.partNames.add(_elem369); } iprot.readListEnd(); } @@ -764,22 +766,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque { org.apache.thrift.protocol.TList _list374 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.colNames = new ArrayList(_list374.size); - String _elem375; - for (int _i376 = 0; _i376 < _list374.size; ++_i376) + for (int _i375 = 0; _i375 < _list374.size; ++_i375) { - _elem375 = iprot.readString(); - struct.colNames.add(_elem375); + String _elem376; // required + _elem376 = iprot.readString(); + struct.colNames.add(_elem376); } } struct.setColNamesIsSet(true); { org.apache.thrift.protocol.TList _list377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partNames = new ArrayList(_list377.size); - String _elem378; - for (int _i379 = 0; _i379 < _list377.size; ++_i379) + for (int _i378 = 0; _i378 < _list377.size; ++_i378) { - _elem378 = iprot.readString(); - struct.partNames.add(_elem378); + String _elem379; // required + _elem379 = iprot.readString(); + struct.partNames.add(_elem379); } } struct.setPartNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 2e903f1..bf0eb38 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PartitionsStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsStatsResult"); private static final org.apache.thrift.protocol.TField PART_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("partStats", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -134,7 +130,7 @@ public PartitionsStatsResult( */ public PartitionsStatsResult(PartitionsStatsResult other) { if (other.isSetPartStats()) { - Map> __this__partStats = new HashMap>(other.partStats.size()); + Map> __this__partStats = new HashMap>(); for (Map.Entry> other_element : other.partStats.entrySet()) { String other_element_key = other_element.getKey(); @@ -142,7 +138,7 @@ public PartitionsStatsResult(PartitionsStatsResult other) { String __this__partStats_copy_key = other_element_key; - List __this__partStats_copy_value = new ArrayList(other_element_value.size()); + List __this__partStats_copy_value = new ArrayList(); for (ColumnStatisticsObj other_element_value_element : other_element_value) { __this__partStats_copy_value.add(new ColumnStatisticsObj(other_element_value_element)); } @@ -258,30 +254,30 @@ public boolean equals(PartitionsStatsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partStats = true && (isSetPartStats()); - list.add(present_partStats); + builder.append(present_partStats); if (present_partStats) - list.add(partStats); + builder.append(partStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsStatsResult typedOther = (PartitionsStatsResult)other; - lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(other.isSetPartStats()); + lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(typedOther.isSetPartStats()); if (lastComparison != 0) { return lastComparison; } if (isSetPartStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, other.partStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, typedOther.partStats); if (lastComparison != 0) { return lastComparison; } @@ -365,24 +361,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsResu { org.apache.thrift.protocol.TMap _map338 = iprot.readMapBegin(); struct.partStats = new HashMap>(2*_map338.size); - String _key339; - List _val340; - for (int _i341 = 0; _i341 < _map338.size; ++_i341) + for (int _i339 = 0; _i339 < _map338.size; ++_i339) { - _key339 = iprot.readString(); + String _key340; // required + List _val341; // required + _key340 = iprot.readString(); { org.apache.thrift.protocol.TList _list342 = iprot.readListBegin(); - _val340 = new ArrayList(_list342.size); - ColumnStatisticsObj _elem343; - for (int _i344 = 0; _i344 < _list342.size; ++_i344) + _val341 = new ArrayList(_list342.size); + for (int _i343 = 0; _i343 < _list342.size; ++_i343) { - _elem343 = new ColumnStatisticsObj(); - _elem343.read(iprot); - _val340.add(_elem343); + ColumnStatisticsObj _elem344; // required + _elem344 = new ColumnStatisticsObj(); + _elem344.read(iprot); + _val341.add(_elem344); } iprot.readListEnd(); } - struct.partStats.put(_key339, _val340); + struct.partStats.put(_key340, _val341); } iprot.readMapEnd(); } @@ -463,23 +459,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResul { org.apache.thrift.protocol.TMap _map349 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.partStats = new HashMap>(2*_map349.size); - String _key350; - List _val351; - for (int _i352 = 0; _i352 < _map349.size; ++_i352) + for (int _i350 = 0; _i350 < _map349.size; ++_i350) { - _key350 = iprot.readString(); + String _key351; // required + List _val352; // required + _key351 = iprot.readString(); { org.apache.thrift.protocol.TList _list353 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val351 = new ArrayList(_list353.size); - ColumnStatisticsObj _elem354; - for (int _i355 = 0; _i355 < _list353.size; ++_i355) + _val352 = new ArrayList(_list353.size); + for (int _i354 = 0; _i354 < _list353.size; ++_i354) { - _elem354 = new ColumnStatisticsObj(); - _elem354.read(iprot); - _val351.add(_elem354); + ColumnStatisticsObj _elem355; // required + _elem355 = new ColumnStatisticsObj(); + _elem355.read(iprot); + _val352.add(_elem355); } } - struct.partStats.put(_key350, _val351); + struct.partStats.put(_key351, _val352); } } struct.setPartStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java index e1792bd..eea86e5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PrincipalPrivilegeSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrincipalPrivilegeSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrincipalPrivilegeSet"); private static final org.apache.thrift.protocol.TField USER_PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("userPrivileges", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -158,7 +154,7 @@ public PrincipalPrivilegeSet( */ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { if (other.isSetUserPrivileges()) { - Map> __this__userPrivileges = new HashMap>(other.userPrivileges.size()); + Map> __this__userPrivileges = new HashMap>(); for (Map.Entry> other_element : other.userPrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -166,7 +162,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__userPrivileges_copy_key = other_element_key; - List __this__userPrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__userPrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__userPrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -176,7 +172,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { this.userPrivileges = __this__userPrivileges; } if (other.isSetGroupPrivileges()) { - Map> __this__groupPrivileges = new HashMap>(other.groupPrivileges.size()); + Map> __this__groupPrivileges = new HashMap>(); for (Map.Entry> other_element : other.groupPrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -184,7 +180,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__groupPrivileges_copy_key = other_element_key; - List __this__groupPrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__groupPrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__groupPrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -194,7 +190,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { this.groupPrivileges = __this__groupPrivileges; } if (other.isSetRolePrivileges()) { - Map> __this__rolePrivileges = new HashMap>(other.rolePrivileges.size()); + Map> __this__rolePrivileges = new HashMap>(); for (Map.Entry> other_element : other.rolePrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -202,7 +198,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__rolePrivileges_copy_key = other_element_key; - List __this__rolePrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__rolePrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__rolePrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -432,60 +428,60 @@ public boolean equals(PrincipalPrivilegeSet that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_userPrivileges = true && (isSetUserPrivileges()); - list.add(present_userPrivileges); + builder.append(present_userPrivileges); if (present_userPrivileges) - list.add(userPrivileges); + builder.append(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); - list.add(present_groupPrivileges); + builder.append(present_groupPrivileges); if (present_groupPrivileges) - list.add(groupPrivileges); + builder.append(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); - list.add(present_rolePrivileges); + builder.append(present_rolePrivileges); if (present_rolePrivileges) - list.add(rolePrivileges); + builder.append(rolePrivileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrincipalPrivilegeSet other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrincipalPrivilegeSet typedOther = (PrincipalPrivilegeSet)other; - lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(other.isSetUserPrivileges()); + lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(typedOther.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetUserPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, other.userPrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, typedOther.userPrivileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(other.isSetGroupPrivileges()); + lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(typedOther.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetGroupPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, other.groupPrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, typedOther.groupPrivileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRolePrivileges()).compareTo(other.isSetRolePrivileges()); + lastComparison = Boolean.valueOf(isSetRolePrivileges()).compareTo(typedOther.isSetRolePrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetRolePrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivileges, other.rolePrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivileges, typedOther.rolePrivileges); if (lastComparison != 0) { return lastComparison; } @@ -581,24 +577,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); struct.userPrivileges = new HashMap>(2*_map24.size); - String _key25; - List _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + for (int _i25 = 0; _i25 < _map24.size; ++_i25) { - _key25 = iprot.readString(); + String _key26; // required + List _val27; // required + _key26 = iprot.readString(); { org.apache.thrift.protocol.TList _list28 = iprot.readListBegin(); - _val26 = new ArrayList(_list28.size); - PrivilegeGrantInfo _elem29; - for (int _i30 = 0; _i30 < _list28.size; ++_i30) + _val27 = new ArrayList(_list28.size); + for (int _i29 = 0; _i29 < _list28.size; ++_i29) { - _elem29 = new PrivilegeGrantInfo(); - _elem29.read(iprot); - _val26.add(_elem29); + PrivilegeGrantInfo _elem30; // required + _elem30 = new PrivilegeGrantInfo(); + _elem30.read(iprot); + _val27.add(_elem30); } iprot.readListEnd(); } - struct.userPrivileges.put(_key25, _val26); + struct.userPrivileges.put(_key26, _val27); } iprot.readMapEnd(); } @@ -612,24 +608,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin(); struct.groupPrivileges = new HashMap>(2*_map31.size); - String _key32; - List _val33; - for (int _i34 = 0; _i34 < _map31.size; ++_i34) + for (int _i32 = 0; _i32 < _map31.size; ++_i32) { - _key32 = iprot.readString(); + String _key33; // required + List _val34; // required + _key33 = iprot.readString(); { org.apache.thrift.protocol.TList _list35 = iprot.readListBegin(); - _val33 = new ArrayList(_list35.size); - PrivilegeGrantInfo _elem36; - for (int _i37 = 0; _i37 < _list35.size; ++_i37) + _val34 = new ArrayList(_list35.size); + for (int _i36 = 0; _i36 < _list35.size; ++_i36) { - _elem36 = new PrivilegeGrantInfo(); - _elem36.read(iprot); - _val33.add(_elem36); + PrivilegeGrantInfo _elem37; // required + _elem37 = new PrivilegeGrantInfo(); + _elem37.read(iprot); + _val34.add(_elem37); } iprot.readListEnd(); } - struct.groupPrivileges.put(_key32, _val33); + struct.groupPrivileges.put(_key33, _val34); } iprot.readMapEnd(); } @@ -643,24 +639,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map38 = iprot.readMapBegin(); struct.rolePrivileges = new HashMap>(2*_map38.size); - String _key39; - List _val40; - for (int _i41 = 0; _i41 < _map38.size; ++_i41) + for (int _i39 = 0; _i39 < _map38.size; ++_i39) { - _key39 = iprot.readString(); + String _key40; // required + List _val41; // required + _key40 = iprot.readString(); { org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(); - _val40 = new ArrayList(_list42.size); - PrivilegeGrantInfo _elem43; - for (int _i44 = 0; _i44 < _list42.size; ++_i44) + _val41 = new ArrayList(_list42.size); + for (int _i43 = 0; _i43 < _list42.size; ++_i43) { - _elem43 = new PrivilegeGrantInfo(); - _elem43.read(iprot); - _val40.add(_elem43); + PrivilegeGrantInfo _elem44; // required + _elem44 = new PrivilegeGrantInfo(); + _elem44.read(iprot); + _val41.add(_elem44); } iprot.readListEnd(); } - struct.rolePrivileges.put(_key39, _val40); + struct.rolePrivileges.put(_key40, _val41); } iprot.readMapEnd(); } @@ -828,23 +824,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map57 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.userPrivileges = new HashMap>(2*_map57.size); - String _key58; - List _val59; - for (int _i60 = 0; _i60 < _map57.size; ++_i60) + for (int _i58 = 0; _i58 < _map57.size; ++_i58) { - _key58 = iprot.readString(); + String _key59; // required + List _val60; // required + _key59 = iprot.readString(); { org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val59 = new ArrayList(_list61.size); - PrivilegeGrantInfo _elem62; - for (int _i63 = 0; _i63 < _list61.size; ++_i63) + _val60 = new ArrayList(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - _elem62 = new PrivilegeGrantInfo(); - _elem62.read(iprot); - _val59.add(_elem62); + PrivilegeGrantInfo _elem63; // required + _elem63 = new PrivilegeGrantInfo(); + _elem63.read(iprot); + _val60.add(_elem63); } } - struct.userPrivileges.put(_key58, _val59); + struct.userPrivileges.put(_key59, _val60); } } struct.setUserPrivilegesIsSet(true); @@ -853,23 +849,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.groupPrivileges = new HashMap>(2*_map64.size); - String _key65; - List _val66; - for (int _i67 = 0; _i67 < _map64.size; ++_i67) + for (int _i65 = 0; _i65 < _map64.size; ++_i65) { - _key65 = iprot.readString(); + String _key66; // required + List _val67; // required + _key66 = iprot.readString(); { org.apache.thrift.protocol.TList _list68 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val66 = new ArrayList(_list68.size); - PrivilegeGrantInfo _elem69; - for (int _i70 = 0; _i70 < _list68.size; ++_i70) + _val67 = new ArrayList(_list68.size); + for (int _i69 = 0; _i69 < _list68.size; ++_i69) { - _elem69 = new PrivilegeGrantInfo(); - _elem69.read(iprot); - _val66.add(_elem69); + PrivilegeGrantInfo _elem70; // required + _elem70 = new PrivilegeGrantInfo(); + _elem70.read(iprot); + _val67.add(_elem70); } } - struct.groupPrivileges.put(_key65, _val66); + struct.groupPrivileges.put(_key66, _val67); } } struct.setGroupPrivilegesIsSet(true); @@ -878,23 +874,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map71 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.rolePrivileges = new HashMap>(2*_map71.size); - String _key72; - List _val73; - for (int _i74 = 0; _i74 < _map71.size; ++_i74) + for (int _i72 = 0; _i72 < _map71.size; ++_i72) { - _key72 = iprot.readString(); + String _key73; // required + List _val74; // required + _key73 = iprot.readString(); { org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val73 = new ArrayList(_list75.size); - PrivilegeGrantInfo _elem76; - for (int _i77 = 0; _i77 < _list75.size; ++_i77) + _val74 = new ArrayList(_list75.size); + for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - _elem76 = new PrivilegeGrantInfo(); - _elem76.read(iprot); - _val73.add(_elem76); + PrivilegeGrantInfo _elem77; // required + _elem77 = new PrivilegeGrantInfo(); + _elem77.read(iprot); + _val74.add(_elem77); } } - struct.rolePrivileges.put(_key72, _val73); + struct.rolePrivileges.put(_key73, _val74); } } struct.setRolePrivilegesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java index 82eb8fd..d405d4a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java index bba2d40..a4687ad 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PrivilegeBag implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrivilegeBag implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeBag"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public PrivilegeBag( */ public PrivilegeBag(PrivilegeBag other) { if (other.isSetPrivileges()) { - List __this__privileges = new ArrayList(other.privileges.size()); + List __this__privileges = new ArrayList(); for (HiveObjectPrivilege other_element : other.privileges) { __this__privileges.add(new HiveObjectPrivilege(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(PrivilegeBag that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrivilegeBag other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrivilegeBag typedOther = (PrivilegeBag)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrivilegeBag struct { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); struct.privileges = new ArrayList(_list16.size); - HiveObjectPrivilege _elem17; - for (int _i18 = 0; _i18 < _list16.size; ++_i18) + for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - _elem17 = new HiveObjectPrivilege(); - _elem17.read(iprot); - struct.privileges.add(_elem17); + HiveObjectPrivilege _elem18; // required + _elem18 = new HiveObjectPrivilege(); + _elem18.read(iprot); + struct.privileges.add(_elem18); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrivilegeBag struct) { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.privileges = new ArrayList(_list21.size); - HiveObjectPrivilege _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = new HiveObjectPrivilege(); - _elem22.read(iprot); - struct.privileges.add(_elem22); + HiveObjectPrivilege _elem23; // required + _elem23 = new HiveObjectPrivilege(); + _elem23.read(iprot); + struct.privileges.add(_elem23); } } struct.setPrivilegesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java index ba08d3a..5869457 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PrivilegeGrantInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrivilegeGrantInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeGrantInfo"); private static final org.apache.thrift.protocol.TField PRIVILEGE_FIELD_DESC = new org.apache.thrift.protocol.TField("privilege", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -376,7 +372,7 @@ public Object getFieldValue(_Fields field) { return getPrivilege(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case GRANTOR: return getGrantor(); @@ -385,7 +381,7 @@ public Object getFieldValue(_Fields field) { return getGrantorType(); case GRANT_OPTION: - return isGrantOption(); + return Boolean.valueOf(isGrantOption()); } throw new IllegalStateException(); @@ -475,90 +471,90 @@ public boolean equals(PrivilegeGrantInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privilege = true && (isSetPrivilege()); - list.add(present_privilege); + builder.append(present_privilege); if (present_privilege) - list.add(privilege); + builder.append(privilege); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grantOption = true; - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrivilegeGrantInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrivilegeGrantInfo typedOther = (PrivilegeGrantInfo)other; - lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege()); + lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivilege()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } @@ -685,7 +681,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrivilegeGrantInfo break; case 4: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -801,7 +797,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrivilegeGrantInfo s struct.setGrantorIsSet(true); } if (incoming.get(3)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(4)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index ab151b1..fc0ffa8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PutFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PutFileMetadataRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PutFileMetadataRequest"); private static final org.apache.thrift.protocol.TField FILE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("fileIds", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -121,7 +117,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TYPE}; + private _Fields optionals[] = {_Fields.TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -154,11 +150,19 @@ public PutFileMetadataRequest( */ public PutFileMetadataRequest(PutFileMetadataRequest other) { if (other.isSetFileIds()) { - List __this__fileIds = new ArrayList(other.fileIds); + List __this__fileIds = new ArrayList(); + for (Long other_element : other.fileIds) { + __this__fileIds.add(other_element); + } this.fileIds = __this__fileIds; } if (other.isSetMetadata()) { - List __this__metadata = new ArrayList(other.metadata); + List __this__metadata = new ArrayList(); + for (ByteBuffer other_element : other.metadata) { + ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); +; + __this__metadata.add(temp_binary_element); + } this.metadata = __this__metadata; } if (other.isSetType()) { @@ -390,60 +394,60 @@ public boolean equals(PutFileMetadataRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fileIds = true && (isSetFileIds()); - list.add(present_fileIds); + builder.append(present_fileIds); if (present_fileIds) - list.add(fileIds); + builder.append(fileIds); boolean present_metadata = true && (isSetMetadata()); - list.add(present_metadata); + builder.append(present_metadata); if (present_metadata) - list.add(metadata); + builder.append(metadata); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PutFileMetadataRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PutFileMetadataRequest typedOther = (PutFileMetadataRequest)other; - lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(other.isSetFileIds()); + lastComparison = Boolean.valueOf(isSetFileIds()).compareTo(typedOther.isSetFileIds()); if (lastComparison != 0) { return lastComparison; } if (isSetFileIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, other.fileIds); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileIds, typedOther.fileIds); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(other.isSetMetadata()); + lastComparison = Boolean.valueOf(isSetMetadata()).compareTo(typedOther.isSetMetadata()); if (lastComparison != 0) { return lastComparison; } if (isSetMetadata()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, other.metadata); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.metadata, typedOther.metadata); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -480,7 +484,7 @@ public String toString() { if (this.metadata == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.metadata, sb); + sb.append(this.metadata); } first = false; if (isSetType()) { @@ -549,11 +553,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ { org.apache.thrift.protocol.TList _list560 = iprot.readListBegin(); struct.fileIds = new ArrayList(_list560.size); - long _elem561; - for (int _i562 = 0; _i562 < _list560.size; ++_i562) + for (int _i561 = 0; _i561 < _list560.size; ++_i561) { - _elem561 = iprot.readI64(); - struct.fileIds.add(_elem561); + long _elem562; // required + _elem562 = iprot.readI64(); + struct.fileIds.add(_elem562); } iprot.readListEnd(); } @@ -567,11 +571,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ { org.apache.thrift.protocol.TList _list563 = iprot.readListBegin(); struct.metadata = new ArrayList(_list563.size); - ByteBuffer _elem564; - for (int _i565 = 0; _i565 < _list563.size; ++_i565) + for (int _i564 = 0; _i564 < _list563.size; ++_i564) { - _elem564 = iprot.readBinary(); - struct.metadata.add(_elem564); + ByteBuffer _elem565; // required + _elem565 = iprot.readBinary(); + struct.metadata.add(_elem565); } iprot.readListEnd(); } @@ -582,7 +586,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ break; case 3: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.FileMetadataExprType.findByValue(iprot.readI32()); + struct.type = FileMetadataExprType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -679,28 +683,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataReque { org.apache.thrift.protocol.TList _list570 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.fileIds = new ArrayList(_list570.size); - long _elem571; - for (int _i572 = 0; _i572 < _list570.size; ++_i572) + for (int _i571 = 0; _i571 < _list570.size; ++_i571) { - _elem571 = iprot.readI64(); - struct.fileIds.add(_elem571); + long _elem572; // required + _elem572 = iprot.readI64(); + struct.fileIds.add(_elem572); } } struct.setFileIdsIsSet(true); { org.apache.thrift.protocol.TList _list573 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.metadata = new ArrayList(_list573.size); - ByteBuffer _elem574; - for (int _i575 = 0; _i575 < _list573.size; ++_i575) + for (int _i574 = 0; _i574 < _list573.size; ++_i574) { - _elem574 = iprot.readBinary(); - struct.metadata.add(_elem574); + ByteBuffer _elem575; // required + _elem575 = iprot.readBinary(); + struct.metadata.add(_elem575); } } struct.setMetadataIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.type = org.apache.hadoop.hive.metastore.api.FileMetadataExprType.findByValue(iprot.readI32()); + struct.type = FileMetadataExprType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataResult.java index d807671..3ca2ed5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class PutFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PutFileMetadataResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PutFileMetadataResult"); @@ -165,18 +161,18 @@ public boolean equals(PutFileMetadataResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PutFileMetadataResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PutFileMetadataResult typedOther = (PutFileMetadataResult)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 7f8a044..1da4f0c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class RequestPartsSpec extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RequestPartsSpec"); private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -170,11 +167,11 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(); names = new ArrayList(_list404.size); - String _elem405; - for (int _i406 = 0; _i406 < _list404.size; ++_i406) + for (int _i405 = 0; _i405 < _list404.size; ++_i405) { - _elem405 = iprot.readString(); - names.add(_elem405); + String _elem406; // required + _elem406 = iprot.readString(); + names.add(_elem406); } iprot.readListEnd(); } @@ -189,12 +186,12 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list407 = iprot.readListBegin(); exprs = new ArrayList(_list407.size); - DropPartitionsExpr _elem408; - for (int _i409 = 0; _i409 < _list407.size; ++_i409) + for (int _i408 = 0; _i408 < _list407.size; ++_i408) { - _elem408 = new DropPartitionsExpr(); - _elem408.read(iprot); - exprs.add(_elem408); + DropPartitionsExpr _elem409; // required + _elem409 = new DropPartitionsExpr(); + _elem409.read(iprot); + exprs.add(_elem409); } iprot.readListEnd(); } @@ -207,7 +204,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -252,11 +248,11 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); names = new ArrayList(_list412.size); - String _elem413; - for (int _i414 = 0; _i414 < _list412.size; ++_i414) + for (int _i413 = 0; _i413 < _list412.size; ++_i413) { - _elem413 = iprot.readString(); - names.add(_elem413); + String _elem414; // required + _elem414 = iprot.readString(); + names.add(_elem414); } iprot.readListEnd(); } @@ -266,12 +262,12 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list415 = iprot.readListBegin(); exprs = new ArrayList(_list415.size); - DropPartitionsExpr _elem416; - for (int _i417 = 0; _i417 < _list415.size; ++_i417) + for (int _i416 = 0; _i416 < _list415.size; ++_i416) { - _elem416 = new DropPartitionsExpr(); - _elem416.read(iprot); - exprs.add(_elem416); + DropPartitionsExpr _elem417; // required + _elem417 = new DropPartitionsExpr(); + _elem417.read(iprot); + exprs.add(_elem417); } iprot.readListEnd(); } @@ -403,19 +399,19 @@ public int compareTo(RequestPartsSpec other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java index a15c1ee..b8cb4f1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java index 994a498..c230eab 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ResourceUri implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ResourceUri implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ResourceUri"); private static final org.apache.thrift.protocol.TField RESOURCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -299,45 +295,45 @@ public boolean equals(ResourceUri that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_resourceType = true && (isSetResourceType()); - list.add(present_resourceType); + builder.append(present_resourceType); if (present_resourceType) - list.add(resourceType.getValue()); + builder.append(resourceType.getValue()); boolean present_uri = true && (isSetUri()); - list.add(present_uri); + builder.append(present_uri); if (present_uri) - list.add(uri); + builder.append(uri); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ResourceUri other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ResourceUri typedOther = (ResourceUri)other; - lastComparison = Boolean.valueOf(isSetResourceType()).compareTo(other.isSetResourceType()); + lastComparison = Boolean.valueOf(isSetResourceType()).compareTo(typedOther.isSetResourceType()); if (lastComparison != 0) { return lastComparison; } if (isSetResourceType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceType, other.resourceType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceType, typedOther.resourceType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUri()).compareTo(other.isSetUri()); + lastComparison = Boolean.valueOf(isSetUri()).compareTo(typedOther.isSetUri()); if (lastComparison != 0) { return lastComparison; } if (isSetUri()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, other.uri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, typedOther.uri); if (lastComparison != 0) { return lastComparison; } @@ -422,7 +418,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ResourceUri struct) switch (schemeField.id) { case 1: // RESOURCE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.resourceType = org.apache.hadoop.hive.metastore.api.ResourceType.findByValue(iprot.readI32()); + struct.resourceType = ResourceType.findByValue(iprot.readI32()); struct.setResourceTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -497,7 +493,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ResourceUri struct) TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.resourceType = org.apache.hadoop.hive.metastore.api.ResourceType.findByValue(iprot.readI32()); + struct.resourceType = ResourceType.findByValue(iprot.readI32()); struct.setResourceTypeIsSet(true); } if (incoming.get(1)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java index 612c64d..35fcf58 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Role implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Role implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Role"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -276,7 +272,7 @@ public Object getFieldValue(_Fields field) { return getRoleName(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case OWNER_NAME: return getOwnerName(); @@ -347,60 +343,60 @@ public boolean equals(Role that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Role other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Role typedOther = (Role)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java index 81e8d16..8993268 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class RolePrincipalGrant implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class RolePrincipalGrant implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RolePrincipalGrant"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -482,10 +478,10 @@ public Object getFieldValue(_Fields field) { return getPrincipalType(); case GRANT_OPTION: - return isGrantOption(); + return Boolean.valueOf(isGrantOption()); case GRANT_TIME: - return getGrantTime(); + return Integer.valueOf(getGrantTime()); case GRANTOR_NAME: return getGrantorName(); @@ -603,120 +599,120 @@ public boolean equals(RolePrincipalGrant that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantOption = true; - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); boolean present_grantTime = true; - list.add(present_grantTime); + builder.append(present_grantTime); if (present_grantTime) - list.add(grantTime); + builder.append(grantTime); boolean present_grantorName = true && (isSetGrantorName()); - list.add(present_grantorName); + builder.append(present_grantorName); if (present_grantorName) - list.add(grantorName); + builder.append(grantorName); boolean present_grantorPrincipalType = true && (isSetGrantorPrincipalType()); - list.add(present_grantorPrincipalType); + builder.append(present_grantorPrincipalType); if (present_grantorPrincipalType) - list.add(grantorPrincipalType.getValue()); + builder.append(grantorPrincipalType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RolePrincipalGrant other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RolePrincipalGrant typedOther = (RolePrincipalGrant)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(other.isSetGrantTime()); + lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(typedOther.isSetGrantTime()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, other.grantTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, typedOther.grantTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(other.isSetGrantorName()); + lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(typedOther.isSetGrantorName()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, other.grantorName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, typedOther.grantorName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(other.isSetGrantorPrincipalType()); + lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(typedOther.isSetGrantorPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, other.grantorPrincipalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, typedOther.grantorPrincipalType); if (lastComparison != 0) { return lastComparison; } @@ -851,7 +847,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -883,7 +879,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant break; case 7: // GRANTOR_PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1009,7 +1005,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant s struct.setPrincipalNameIsSet(true); } if (incoming.get(2)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(3)) { @@ -1025,7 +1021,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant s struct.setGrantorNameIsSet(true); } if (incoming.get(6)) { - struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorPrincipalTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index 75d0ebb..d130ba8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Schema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Schema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Schema"); private static final org.apache.thrift.protocol.TField FIELD_SCHEMAS_FIELD_DESC = new org.apache.thrift.protocol.TField("fieldSchemas", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -143,14 +139,25 @@ public Schema( */ public Schema(Schema other) { if (other.isSetFieldSchemas()) { - List __this__fieldSchemas = new ArrayList(other.fieldSchemas.size()); + List __this__fieldSchemas = new ArrayList(); for (FieldSchema other_element : other.fieldSchemas) { __this__fieldSchemas.add(new FieldSchema(other_element)); } this.fieldSchemas = __this__fieldSchemas; } if (other.isSetProperties()) { - Map __this__properties = new HashMap(other.properties); + Map __this__properties = new HashMap(); + for (Map.Entry other_element : other.properties.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__properties_copy_key = other_element_key; + + String __this__properties_copy_value = other_element_value; + + __this__properties.put(__this__properties_copy_key, __this__properties_copy_value); + } this.properties = __this__properties; } } @@ -321,45 +328,45 @@ public boolean equals(Schema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fieldSchemas = true && (isSetFieldSchemas()); - list.add(present_fieldSchemas); + builder.append(present_fieldSchemas); if (present_fieldSchemas) - list.add(fieldSchemas); + builder.append(fieldSchemas); boolean present_properties = true && (isSetProperties()); - list.add(present_properties); + builder.append(present_properties); if (present_properties) - list.add(properties); + builder.append(properties); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Schema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Schema typedOther = (Schema)other; - lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(other.isSetFieldSchemas()); + lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(typedOther.isSetFieldSchemas()); if (lastComparison != 0) { return lastComparison; } if (isSetFieldSchemas()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, other.fieldSchemas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties()); + lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties()); if (lastComparison != 0) { return lastComparison; } if (isSetProperties()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties); if (lastComparison != 0) { return lastComparison; } @@ -447,12 +454,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro { org.apache.thrift.protocol.TList _list294 = iprot.readListBegin(); struct.fieldSchemas = new ArrayList(_list294.size); - FieldSchema _elem295; - for (int _i296 = 0; _i296 < _list294.size; ++_i296) + for (int _i295 = 0; _i295 < _list294.size; ++_i295) { - _elem295 = new FieldSchema(); - _elem295.read(iprot); - struct.fieldSchemas.add(_elem295); + FieldSchema _elem296; // required + _elem296 = new FieldSchema(); + _elem296.read(iprot); + struct.fieldSchemas.add(_elem296); } iprot.readListEnd(); } @@ -466,13 +473,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro { org.apache.thrift.protocol.TMap _map297 = iprot.readMapBegin(); struct.properties = new HashMap(2*_map297.size); - String _key298; - String _val299; - for (int _i300 = 0; _i300 < _map297.size; ++_i300) + for (int _i298 = 0; _i298 < _map297.size; ++_i298) { - _key298 = iprot.readString(); - _val299 = iprot.readString(); - struct.properties.put(_key298, _val299); + String _key299; // required + String _val300; // required + _key299 = iprot.readString(); + _val300 = iprot.readString(); + struct.properties.put(_key299, _val300); } iprot.readMapEnd(); } @@ -573,12 +580,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw { org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.fieldSchemas = new ArrayList(_list305.size); - FieldSchema _elem306; - for (int _i307 = 0; _i307 < _list305.size; ++_i307) + for (int _i306 = 0; _i306 < _list305.size; ++_i306) { - _elem306 = new FieldSchema(); - _elem306.read(iprot); - struct.fieldSchemas.add(_elem306); + FieldSchema _elem307; // required + _elem307 = new FieldSchema(); + _elem307.read(iprot); + struct.fieldSchemas.add(_elem307); } } struct.setFieldSchemasIsSet(true); @@ -587,13 +594,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw { org.apache.thrift.protocol.TMap _map308 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.properties = new HashMap(2*_map308.size); - String _key309; - String _val310; - for (int _i311 = 0; _i311 < _map308.size; ++_i311) + for (int _i309 = 0; _i309 < _map308.size; ++_i309) { - _key309 = iprot.readString(); - _val310 = iprot.readString(); - struct.properties.put(_key309, _val310); + String _key310; // required + String _val311; // required + _key310 = iprot.readString(); + _val311 = iprot.readString(); + struct.properties.put(_key310, _val311); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java index d5a8d99..2466d8f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class SerDeInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SerDeInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SerDeInfo"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -157,7 +153,18 @@ public SerDeInfo(SerDeInfo other) { this.serializationLib = org.apache.hive.common.util.HiveStringUtils.intern(other.serializationLib); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } } @@ -359,60 +366,60 @@ public boolean equals(SerDeInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_serializationLib = true && (isSetSerializationLib()); - list.add(present_serializationLib); + builder.append(present_serializationLib); if (present_serializationLib) - list.add(serializationLib); + builder.append(serializationLib); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SerDeInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SerDeInfo typedOther = (SerDeInfo)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(other.isSetSerializationLib()); + lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(typedOther.isSetSerializationLib()); if (lastComparison != 0) { return lastComparison; } if (isSetSerializationLib()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, other.serializationLib); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -524,13 +531,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SerDeInfo struct) t { org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map104.size); - String _key105; - String _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - _key105 = iprot.readString(); - _val106 = iprot.readString(); - struct.parameters.put(_key105, _val106); + String _key106; // required + String _val107; // required + _key106 = iprot.readString(); + _val107 = iprot.readString(); + struct.parameters.put(_key106, _val107); } iprot.readMapEnd(); } @@ -637,13 +644,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SerDeInfo struct) th { org.apache.thrift.protocol.TMap _map110 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map110.size); - String _key111; - String _val112; - for (int _i113 = 0; _i113 < _map110.size; ++_i113) + for (int _i111 = 0; _i111 < _map110.size; ++_i111) { - _key111 = iprot.readString(); - _val112 = iprot.readString(); - struct.parameters.put(_key111, _val112); + String _key112; // required + String _val113; // required + _key112 = iprot.readString(); + _val113 = iprot.readString(); + struct.parameters.put(_key112, _val113); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java index 6e334f6..a7cf0a7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class SetPartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SetPartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetPartitionsStatsRequest"); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public SetPartitionsStatsRequest( */ public SetPartitionsStatsRequest(SetPartitionsStatsRequest other) { if (other.isSetColStats()) { - List __this__colStats = new ArrayList(other.colStats.size()); + List __this__colStats = new ArrayList(); for (ColumnStatistics other_element : other.colStats) { __this__colStats.add(new ColumnStatistics(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(SetPartitionsStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colStats = true && (isSetColStats()); - list.add(present_colStats); + builder.append(present_colStats); if (present_colStats) - list.add(colStats); + builder.append(colStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SetPartitionsStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SetPartitionsStatsRequest typedOther = (SetPartitionsStatsRequest)other; - lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats()); + lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats()); if (lastComparison != 0) { return lastComparison; } if (isSetColStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetPartitionsStatsR { org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); struct.colStats = new ArrayList(_list286.size); - ColumnStatistics _elem287; - for (int _i288 = 0; _i288 < _list286.size; ++_i288) + for (int _i287 = 0; _i287 < _list286.size; ++_i287) { - _elem287 = new ColumnStatistics(); - _elem287.read(iprot); - struct.colStats.add(_elem287); + ColumnStatistics _elem288; // required + _elem288 = new ColumnStatistics(); + _elem288.read(iprot); + struct.colStats.add(_elem288); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsRe { org.apache.thrift.protocol.TList _list291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colStats = new ArrayList(_list291.size); - ColumnStatistics _elem292; - for (int _i293 = 0; _i293 < _list291.size; ++_i293) + for (int _i292 = 0; _i292 < _list291.size; ++_i292) { - _elem292 = new ColumnStatistics(); - _elem292.read(iprot); - struct.colStats.add(_elem292); + ColumnStatistics _elem293; // required + _elem293 = new ColumnStatistics(); + _elem293.read(iprot); + struct.colStats.add(_elem293); } } struct.setColStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java index ad1c57c..28ad1c9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowCompactRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactRequest"); @@ -165,18 +161,18 @@ public boolean equals(ShowCompactRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactRequest typedOther = (ShowCompactRequest)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index afa832c..d642edd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowCompactResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponse"); private static final org.apache.thrift.protocol.TField COMPACTS_FIELD_DESC = new org.apache.thrift.protocol.TField("compacts", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public ShowCompactResponse( */ public ShowCompactResponse(ShowCompactResponse other) { if (other.isSetCompacts()) { - List __this__compacts = new ArrayList(other.compacts.size()); + List __this__compacts = new ArrayList(); for (ShowCompactResponseElement other_element : other.compacts) { __this__compacts.add(new ShowCompactResponseElement(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(ShowCompactResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_compacts = true && (isSetCompacts()); - list.add(present_compacts); + builder.append(present_compacts); if (present_compacts) - list.add(compacts); + builder.append(compacts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactResponse typedOther = (ShowCompactResponse)other; - lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(other.isSetCompacts()); + lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(typedOther.isSetCompacts()); if (lastComparison != 0) { return lastComparison; } if (isSetCompacts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, other.compacts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, typedOther.compacts); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse { org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); struct.compacts = new ArrayList(_list484.size); - ShowCompactResponseElement _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + for (int _i485 = 0; _i485 < _list484.size; ++_i485) { - _elem485 = new ShowCompactResponseElement(); - _elem485.read(iprot); - struct.compacts.add(_elem485); + ShowCompactResponseElement _elem486; // required + _elem486 = new ShowCompactResponseElement(); + _elem486.read(iprot); + struct.compacts.add(_elem486); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse { org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.compacts = new ArrayList(_list489.size); - ShowCompactResponseElement _elem490; - for (int _i491 = 0; _i491 < _list489.size; ++_i491) + for (int _i490 = 0; _i490 < _list489.size; ++_i490) { - _elem490 = new ShowCompactResponseElement(); - _elem490.read(iprot); - struct.compacts.add(_elem490); + ShowCompactResponseElement _elem491; // required + _elem491 = new ShowCompactResponseElement(); + _elem491.read(iprot); + struct.compacts.add(_elem491); } } struct.setCompactsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java index dd7dd8e..365a401 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowCompactResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponseElement"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -148,7 +144,7 @@ public String getFieldName() { // isset id assignments private static final int __START_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS}; + private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -515,7 +511,7 @@ public Object getFieldValue(_Fields field) { return getWorkerid(); case START: - return getStart(); + return Long.valueOf(getStart()); case RUN_AS: return getRunAs(); @@ -641,135 +637,135 @@ public boolean equals(ShowCompactResponseElement that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state); + builder.append(state); boolean present_workerid = true && (isSetWorkerid()); - list.add(present_workerid); + builder.append(present_workerid); if (present_workerid) - list.add(workerid); + builder.append(workerid); boolean present_start = true && (isSetStart()); - list.add(present_start); + builder.append(present_start); if (present_start) - list.add(start); + builder.append(start); boolean present_runAs = true && (isSetRunAs()); - list.add(present_runAs); + builder.append(present_runAs); if (present_runAs) - list.add(runAs); + builder.append(runAs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactResponseElement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactResponseElement typedOther = (ShowCompactResponseElement)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(other.isSetWorkerid()); + lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(typedOther.isSetWorkerid()); if (lastComparison != 0) { return lastComparison; } if (isSetWorkerid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, other.workerid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, typedOther.workerid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); + lastComparison = Boolean.valueOf(isSetStart()).compareTo(typedOther.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, typedOther.start); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(other.isSetRunAs()); + lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(typedOther.isSetRunAs()); if (lastComparison != 0) { return lastComparison; } if (isSetRunAs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, other.runAs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, typedOther.runAs); if (lastComparison != 0) { return lastComparison; } @@ -948,7 +944,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1101,7 +1097,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponseE struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.state = iprot.readString(); struct.setStateIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java index e89b93b..7a1fd6f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowLocksRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksRequest"); @@ -165,18 +161,18 @@ public boolean equals(ShowLocksRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksRequest typedOther = (ShowLocksRequest)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index b9b7f3c..9a86a88 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowLocksResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponse"); private static final org.apache.thrift.protocol.TField LOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("locks", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public ShowLocksResponse( */ public ShowLocksResponse(ShowLocksResponse other) { if (other.isSetLocks()) { - List __this__locks = new ArrayList(other.locks.size()); + List __this__locks = new ArrayList(); for (ShowLocksResponseElement other_element : other.locks) { __this__locks.add(new ShowLocksResponseElement(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(ShowLocksResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_locks = true && (isSetLocks()); - list.add(present_locks); + builder.append(present_locks); if (present_locks) - list.add(locks); + builder.append(locks); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksResponse typedOther = (ShowLocksResponse)other; - lastComparison = Boolean.valueOf(isSetLocks()).compareTo(other.isSetLocks()); + lastComparison = Boolean.valueOf(isSetLocks()).compareTo(typedOther.isSetLocks()); if (lastComparison != 0) { return lastComparison; } if (isSetLocks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, other.locks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, typedOther.locks); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s { org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); struct.locks = new ArrayList(_list460.size); - ShowLocksResponseElement _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + for (int _i461 = 0; _i461 < _list460.size; ++_i461) { - _elem461 = new ShowLocksResponseElement(); - _elem461.read(iprot); - struct.locks.add(_elem461); + ShowLocksResponseElement _elem462; // required + _elem462 = new ShowLocksResponseElement(); + _elem462.read(iprot); + struct.locks.add(_elem462); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st { org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.locks = new ArrayList(_list465.size); - ShowLocksResponseElement _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + for (int _i466 = 0; _i466 < _list465.size; ++_i466) { - _elem466 = new ShowLocksResponseElement(); - _elem466.read(iprot); - struct.locks.add(_elem466); + ShowLocksResponseElement _elem467; // required + _elem467 = new ShowLocksResponseElement(); + _elem467.read(iprot); + struct.locks.add(_elem467); } } struct.setLocksIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java index 037a383..2f7c24f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ShowLocksResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponseElement"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -170,7 +166,7 @@ public String getFieldName() { private static final int __LASTHEARTBEAT_ISSET_ID = 2; private static final int __ACQUIREDAT_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT}; + private _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -640,7 +636,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LOCKID: - return getLockid(); + return Long.valueOf(getLockid()); case DBNAME: return getDbname(); @@ -658,13 +654,13 @@ public Object getFieldValue(_Fields field) { return getType(); case TXNID: - return getTxnid(); + return Long.valueOf(getTxnid()); case LASTHEARTBEAT: - return getLastheartbeat(); + return Long.valueOf(getLastheartbeat()); case ACQUIREDAT: - return getAcquiredat(); + return Long.valueOf(getAcquiredat()); case USER: return getUser(); @@ -826,180 +822,180 @@ public boolean equals(ShowLocksResponseElement that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partname = true && (isSetPartname()); - list.add(present_partname); + builder.append(present_partname); if (present_partname) - list.add(partname); + builder.append(partname); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_lastheartbeat = true; - list.add(present_lastheartbeat); + builder.append(present_lastheartbeat); if (present_lastheartbeat) - list.add(lastheartbeat); + builder.append(lastheartbeat); boolean present_acquiredat = true && (isSetAcquiredat()); - list.add(present_acquiredat); + builder.append(present_acquiredat); if (present_acquiredat) - list.add(acquiredat); + builder.append(acquiredat); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksResponseElement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksResponseElement typedOther = (ShowLocksResponseElement)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartname()).compareTo(other.isSetPartname()); + lastComparison = Boolean.valueOf(isSetPartname()).compareTo(typedOther.isSetPartname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, other.partname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, typedOther.partname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(other.isSetLastheartbeat()); + lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(typedOther.isSetLastheartbeat()); if (lastComparison != 0) { return lastComparison; } if (isSetLastheartbeat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, other.lastheartbeat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, typedOther.lastheartbeat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(other.isSetAcquiredat()); + lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(typedOther.isSetAcquiredat()); if (lastComparison != 0) { return lastComparison; } if (isSetAcquiredat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, other.acquiredat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, typedOther.acquiredat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -1210,7 +1206,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponseEl break; case 5: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1218,7 +1214,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponseEl break; case 6: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1391,9 +1387,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponseEle struct.setLockidIsSet(true); struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.lastheartbeat = iprot.readI64(); struct.setLastheartbeatIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java index c32f50c..83438c7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class SkewedInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SkewedInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SkewedInfo"); private static final org.apache.thrift.protocol.TField SKEWED_COL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("skewedColNames", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -155,25 +151,34 @@ public SkewedInfo( */ public SkewedInfo(SkewedInfo other) { if (other.isSetSkewedColNames()) { - List __this__skewedColNames = new ArrayList(other.skewedColNames); + List __this__skewedColNames = new ArrayList(); + for (String other_element : other.skewedColNames) { + __this__skewedColNames.add(other_element); + } this.skewedColNames = __this__skewedColNames; } if (other.isSetSkewedColValues()) { - List> __this__skewedColValues = new ArrayList>(other.skewedColValues.size()); + List> __this__skewedColValues = new ArrayList>(); for (List other_element : other.skewedColValues) { - List __this__skewedColValues_copy = new ArrayList(other_element); + List __this__skewedColValues_copy = new ArrayList(); + for (String other_element_element : other_element) { + __this__skewedColValues_copy.add(other_element_element); + } __this__skewedColValues.add(__this__skewedColValues_copy); } this.skewedColValues = __this__skewedColValues; } if (other.isSetSkewedColValueLocationMaps()) { - Map,String> __this__skewedColValueLocationMaps = new HashMap,String>(other.skewedColValueLocationMaps.size()); + Map,String> __this__skewedColValueLocationMaps = new HashMap,String>(); for (Map.Entry, String> other_element : other.skewedColValueLocationMaps.entrySet()) { List other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); - List __this__skewedColValueLocationMaps_copy_key = new ArrayList(other_element_key); + List __this__skewedColValueLocationMaps_copy_key = new ArrayList(); + for (String other_element_key_element : other_element_key) { + __this__skewedColValueLocationMaps_copy_key.add(other_element_key_element); + } String __this__skewedColValueLocationMaps_copy_value = other_element_value; @@ -410,60 +415,60 @@ public boolean equals(SkewedInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_skewedColNames = true && (isSetSkewedColNames()); - list.add(present_skewedColNames); + builder.append(present_skewedColNames); if (present_skewedColNames) - list.add(skewedColNames); + builder.append(skewedColNames); boolean present_skewedColValues = true && (isSetSkewedColValues()); - list.add(present_skewedColValues); + builder.append(present_skewedColValues); if (present_skewedColValues) - list.add(skewedColValues); + builder.append(skewedColValues); boolean present_skewedColValueLocationMaps = true && (isSetSkewedColValueLocationMaps()); - list.add(present_skewedColValueLocationMaps); + builder.append(present_skewedColValueLocationMaps); if (present_skewedColValueLocationMaps) - list.add(skewedColValueLocationMaps); + builder.append(skewedColValueLocationMaps); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SkewedInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SkewedInfo typedOther = (SkewedInfo)other; - lastComparison = Boolean.valueOf(isSetSkewedColNames()).compareTo(other.isSetSkewedColNames()); + lastComparison = Boolean.valueOf(isSetSkewedColNames()).compareTo(typedOther.isSetSkewedColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColNames, other.skewedColNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColNames, typedOther.skewedColNames); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedColValues()).compareTo(other.isSetSkewedColValues()); + lastComparison = Boolean.valueOf(isSetSkewedColValues()).compareTo(typedOther.isSetSkewedColValues()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValues, other.skewedColValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValues, typedOther.skewedColValues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedColValueLocationMaps()).compareTo(other.isSetSkewedColValueLocationMaps()); + lastComparison = Boolean.valueOf(isSetSkewedColValueLocationMaps()).compareTo(typedOther.isSetSkewedColValueLocationMaps()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColValueLocationMaps()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValueLocationMaps, other.skewedColValueLocationMaps); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValueLocationMaps, typedOther.skewedColValueLocationMaps); if (lastComparison != 0) { return lastComparison; } @@ -559,11 +564,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); struct.skewedColNames = new ArrayList(_list114.size); - String _elem115; - for (int _i116 = 0; _i116 < _list114.size; ++_i116) + for (int _i115 = 0; _i115 < _list114.size; ++_i115) { - _elem115 = iprot.readString(); - struct.skewedColNames.add(_elem115); + String _elem116; // required + _elem116 = iprot.readString(); + struct.skewedColNames.add(_elem116); } iprot.readListEnd(); } @@ -577,21 +582,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TList _list117 = iprot.readListBegin(); struct.skewedColValues = new ArrayList>(_list117.size); - List _elem118; - for (int _i119 = 0; _i119 < _list117.size; ++_i119) + for (int _i118 = 0; _i118 < _list117.size; ++_i118) { + List _elem119; // required { org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); - _elem118 = new ArrayList(_list120.size); - String _elem121; - for (int _i122 = 0; _i122 < _list120.size; ++_i122) + _elem119 = new ArrayList(_list120.size); + for (int _i121 = 0; _i121 < _list120.size; ++_i121) { - _elem121 = iprot.readString(); - _elem118.add(_elem121); + String _elem122; // required + _elem122 = iprot.readString(); + _elem119.add(_elem122); } iprot.readListEnd(); } - struct.skewedColValues.add(_elem118); + struct.skewedColValues.add(_elem119); } iprot.readListEnd(); } @@ -605,23 +610,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TMap _map123 = iprot.readMapBegin(); struct.skewedColValueLocationMaps = new HashMap,String>(2*_map123.size); - List _key124; - String _val125; - for (int _i126 = 0; _i126 < _map123.size; ++_i126) + for (int _i124 = 0; _i124 < _map123.size; ++_i124) { + List _key125; // required + String _val126; // required { org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(); - _key124 = new ArrayList(_list127.size); - String _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + _key125 = new ArrayList(_list127.size); + for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - _elem128 = iprot.readString(); - _key124.add(_elem128); + String _elem129; // required + _elem129 = iprot.readString(); + _key125.add(_elem129); } iprot.readListEnd(); } - _val125 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key124, _val125); + _val126 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key125, _val126); } iprot.readMapEnd(); } @@ -772,11 +777,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TList _list140 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.skewedColNames = new ArrayList(_list140.size); - String _elem141; - for (int _i142 = 0; _i142 < _list140.size; ++_i142) + for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - _elem141 = iprot.readString(); - struct.skewedColNames.add(_elem141); + String _elem142; // required + _elem142 = iprot.readString(); + struct.skewedColNames.add(_elem142); } } struct.setSkewedColNamesIsSet(true); @@ -785,20 +790,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.skewedColValues = new ArrayList>(_list143.size); - List _elem144; - for (int _i145 = 0; _i145 < _list143.size; ++_i145) + for (int _i144 = 0; _i144 < _list143.size; ++_i144) { + List _elem145; // required { org.apache.thrift.protocol.TList _list146 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _elem144 = new ArrayList(_list146.size); - String _elem147; - for (int _i148 = 0; _i148 < _list146.size; ++_i148) + _elem145 = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) { - _elem147 = iprot.readString(); - _elem144.add(_elem147); + String _elem148; // required + _elem148 = iprot.readString(); + _elem145.add(_elem148); } } - struct.skewedColValues.add(_elem144); + struct.skewedColValues.add(_elem145); } } struct.setSkewedColValuesIsSet(true); @@ -807,22 +812,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TMap _map149 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.skewedColValueLocationMaps = new HashMap,String>(2*_map149.size); - List _key150; - String _val151; - for (int _i152 = 0; _i152 < _map149.size; ++_i152) + for (int _i150 = 0; _i150 < _map149.size; ++_i150) { + List _key151; // required + String _val152; // required { org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _key150 = new ArrayList(_list153.size); - String _elem154; - for (int _i155 = 0; _i155 < _list153.size; ++_i155) + _key151 = new ArrayList(_list153.size); + for (int _i154 = 0; _i154 < _list153.size; ++_i154) { - _elem154 = iprot.readString(); - _key150.add(_elem154); + String _elem155; // required + _elem155 = iprot.readString(); + _key151.add(_elem155); } } - _val151 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key150, _val151); + _val152 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key151, _val152); } } struct.setSkewedColValueLocationMapsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java index 938f06b..b91cc1c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class StorageDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class StorageDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorageDescriptor"); private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -166,7 +162,7 @@ public String getFieldName() { private static final int __NUMBUCKETS_ISSET_ID = 1; private static final int __STOREDASSUBDIRECTORIES_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SKEWED_INFO,_Fields.STORED_AS_SUB_DIRECTORIES}; + private _Fields optionals[] = {_Fields.SKEWED_INFO,_Fields.STORED_AS_SUB_DIRECTORIES}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -239,7 +235,7 @@ public StorageDescriptor( public StorageDescriptor(StorageDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCols()) { - List __this__cols = new ArrayList(other.cols.size()); + List __this__cols = new ArrayList(); for (FieldSchema other_element : other.cols) { __this__cols.add(new FieldSchema(other_element)); } @@ -260,18 +256,32 @@ public StorageDescriptor(StorageDescriptor other) { this.serdeInfo = new SerDeInfo(other.serdeInfo); } if (other.isSetBucketCols()) { - List __this__bucketCols = new ArrayList(other.bucketCols); + List __this__bucketCols = new ArrayList(); + for (String other_element : other.bucketCols) { + __this__bucketCols.add(other_element); + } this.bucketCols = __this__bucketCols; } if (other.isSetSortCols()) { - List __this__sortCols = new ArrayList(other.sortCols.size()); + List __this__sortCols = new ArrayList(); for (Order other_element : other.sortCols) { __this__sortCols.add(new Order(other_element)); } this.sortCols = __this__sortCols; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetSkewedInfo()) { @@ -748,10 +758,10 @@ public Object getFieldValue(_Fields field) { return getOutputFormat(); case COMPRESSED: - return isCompressed(); + return Boolean.valueOf(isCompressed()); case NUM_BUCKETS: - return getNumBuckets(); + return Integer.valueOf(getNumBuckets()); case SERDE_INFO: return getSerdeInfo(); @@ -769,7 +779,7 @@ public Object getFieldValue(_Fields field) { return getSkewedInfo(); case STORED_AS_SUB_DIRECTORIES: - return isStoredAsSubDirectories(); + return Boolean.valueOf(isStoredAsSubDirectories()); } throw new IllegalStateException(); @@ -936,195 +946,195 @@ public boolean equals(StorageDescriptor that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_cols = true && (isSetCols()); - list.add(present_cols); + builder.append(present_cols); if (present_cols) - list.add(cols); + builder.append(cols); boolean present_location = true && (isSetLocation()); - list.add(present_location); + builder.append(present_location); if (present_location) - list.add(location); + builder.append(location); boolean present_inputFormat = true && (isSetInputFormat()); - list.add(present_inputFormat); + builder.append(present_inputFormat); if (present_inputFormat) - list.add(inputFormat); + builder.append(inputFormat); boolean present_outputFormat = true && (isSetOutputFormat()); - list.add(present_outputFormat); + builder.append(present_outputFormat); if (present_outputFormat) - list.add(outputFormat); + builder.append(outputFormat); boolean present_compressed = true; - list.add(present_compressed); + builder.append(present_compressed); if (present_compressed) - list.add(compressed); + builder.append(compressed); boolean present_numBuckets = true; - list.add(present_numBuckets); + builder.append(present_numBuckets); if (present_numBuckets) - list.add(numBuckets); + builder.append(numBuckets); boolean present_serdeInfo = true && (isSetSerdeInfo()); - list.add(present_serdeInfo); + builder.append(present_serdeInfo); if (present_serdeInfo) - list.add(serdeInfo); + builder.append(serdeInfo); boolean present_bucketCols = true && (isSetBucketCols()); - list.add(present_bucketCols); + builder.append(present_bucketCols); if (present_bucketCols) - list.add(bucketCols); + builder.append(bucketCols); boolean present_sortCols = true && (isSetSortCols()); - list.add(present_sortCols); + builder.append(present_sortCols); if (present_sortCols) - list.add(sortCols); + builder.append(sortCols); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_skewedInfo = true && (isSetSkewedInfo()); - list.add(present_skewedInfo); + builder.append(present_skewedInfo); if (present_skewedInfo) - list.add(skewedInfo); + builder.append(skewedInfo); boolean present_storedAsSubDirectories = true && (isSetStoredAsSubDirectories()); - list.add(present_storedAsSubDirectories); + builder.append(present_storedAsSubDirectories); if (present_storedAsSubDirectories) - list.add(storedAsSubDirectories); + builder.append(storedAsSubDirectories); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(StorageDescriptor other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + StorageDescriptor typedOther = (StorageDescriptor)other; - lastComparison = Boolean.valueOf(isSetCols()).compareTo(other.isSetCols()); + lastComparison = Boolean.valueOf(isSetCols()).compareTo(typedOther.isSetCols()); if (lastComparison != 0) { return lastComparison; } if (isSetCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, other.cols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, typedOther.cols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocation()).compareTo(other.isSetLocation()); + lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation()); if (lastComparison != 0) { return lastComparison; } if (isSetLocation()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, other.location); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInputFormat()).compareTo(other.isSetInputFormat()); + lastComparison = Boolean.valueOf(isSetInputFormat()).compareTo(typedOther.isSetInputFormat()); if (lastComparison != 0) { return lastComparison; } if (isSetInputFormat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inputFormat, other.inputFormat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inputFormat, typedOther.inputFormat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOutputFormat()).compareTo(other.isSetOutputFormat()); + lastComparison = Boolean.valueOf(isSetOutputFormat()).compareTo(typedOther.isSetOutputFormat()); if (lastComparison != 0) { return lastComparison; } if (isSetOutputFormat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputFormat, other.outputFormat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputFormat, typedOther.outputFormat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompressed()).compareTo(other.isSetCompressed()); + lastComparison = Boolean.valueOf(isSetCompressed()).compareTo(typedOther.isSetCompressed()); if (lastComparison != 0) { return lastComparison; } if (isSetCompressed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressed, other.compressed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressed, typedOther.compressed); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumBuckets()).compareTo(other.isSetNumBuckets()); + lastComparison = Boolean.valueOf(isSetNumBuckets()).compareTo(typedOther.isSetNumBuckets()); if (lastComparison != 0) { return lastComparison; } if (isSetNumBuckets()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBuckets, other.numBuckets); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBuckets, typedOther.numBuckets); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSerdeInfo()).compareTo(other.isSetSerdeInfo()); + lastComparison = Boolean.valueOf(isSetSerdeInfo()).compareTo(typedOther.isSetSerdeInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetSerdeInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serdeInfo, other.serdeInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serdeInfo, typedOther.serdeInfo); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBucketCols()).compareTo(other.isSetBucketCols()); + lastComparison = Boolean.valueOf(isSetBucketCols()).compareTo(typedOther.isSetBucketCols()); if (lastComparison != 0) { return lastComparison; } if (isSetBucketCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketCols, other.bucketCols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketCols, typedOther.bucketCols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSortCols()).compareTo(other.isSetSortCols()); + lastComparison = Boolean.valueOf(isSetSortCols()).compareTo(typedOther.isSetSortCols()); if (lastComparison != 0) { return lastComparison; } if (isSetSortCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortCols, other.sortCols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortCols, typedOther.sortCols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedInfo()).compareTo(other.isSetSkewedInfo()); + lastComparison = Boolean.valueOf(isSetSkewedInfo()).compareTo(typedOther.isSetSkewedInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedInfo, other.skewedInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedInfo, typedOther.skewedInfo); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStoredAsSubDirectories()).compareTo(other.isSetStoredAsSubDirectories()); + lastComparison = Boolean.valueOf(isSetStoredAsSubDirectories()).compareTo(typedOther.isSetStoredAsSubDirectories()); if (lastComparison != 0) { return lastComparison; } if (isSetStoredAsSubDirectories()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storedAsSubDirectories, other.storedAsSubDirectories); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storedAsSubDirectories, typedOther.storedAsSubDirectories); if (lastComparison != 0) { return lastComparison; } @@ -1292,12 +1302,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); struct.cols = new ArrayList(_list156.size); - FieldSchema _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) + for (int _i157 = 0; _i157 < _list156.size; ++_i157) { - _elem157 = new FieldSchema(); - _elem157.read(iprot); - struct.cols.add(_elem157); + FieldSchema _elem158; // required + _elem158 = new FieldSchema(); + _elem158.read(iprot); + struct.cols.add(_elem158); } iprot.readListEnd(); } @@ -1360,11 +1370,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(); struct.bucketCols = new ArrayList(_list159.size); - String _elem160; - for (int _i161 = 0; _i161 < _list159.size; ++_i161) + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - _elem160 = iprot.readString(); - struct.bucketCols.add(_elem160); + String _elem161; // required + _elem161 = iprot.readString(); + struct.bucketCols.add(_elem161); } iprot.readListEnd(); } @@ -1378,12 +1388,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); struct.sortCols = new ArrayList(_list162.size); - Order _elem163; - for (int _i164 = 0; _i164 < _list162.size; ++_i164) + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - _elem163 = new Order(); - _elem163.read(iprot); - struct.sortCols.add(_elem163); + Order _elem164; // required + _elem164 = new Order(); + _elem164.read(iprot); + struct.sortCols.add(_elem164); } iprot.readListEnd(); } @@ -1397,13 +1407,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map165.size); - String _key166; - String _val167; - for (int _i168 = 0; _i168 < _map165.size; ++_i168) + for (int _i166 = 0; _i166 < _map165.size; ++_i166) { - _key166 = iprot.readString(); - _val167 = iprot.readString(); - struct.parameters.put(_key166, _val167); + String _key167; // required + String _val168; // required + _key167 = iprot.readString(); + _val168 = iprot.readString(); + struct.parameters.put(_key167, _val168); } iprot.readMapEnd(); } @@ -1655,12 +1665,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.cols = new ArrayList(_list177.size); - FieldSchema _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - _elem178 = new FieldSchema(); - _elem178.read(iprot); - struct.cols.add(_elem178); + FieldSchema _elem179; // required + _elem179 = new FieldSchema(); + _elem179.read(iprot); + struct.cols.add(_elem179); } } struct.setColsIsSet(true); @@ -1694,11 +1704,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list180 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.bucketCols = new ArrayList(_list180.size); - String _elem181; - for (int _i182 = 0; _i182 < _list180.size; ++_i182) + for (int _i181 = 0; _i181 < _list180.size; ++_i181) { - _elem181 = iprot.readString(); - struct.bucketCols.add(_elem181); + String _elem182; // required + _elem182 = iprot.readString(); + struct.bucketCols.add(_elem182); } } struct.setBucketColsIsSet(true); @@ -1707,12 +1717,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sortCols = new ArrayList(_list183.size); - Order _elem184; - for (int _i185 = 0; _i185 < _list183.size; ++_i185) + for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - _elem184 = new Order(); - _elem184.read(iprot); - struct.sortCols.add(_elem184); + Order _elem185; // required + _elem185 = new Order(); + _elem185.read(iprot); + struct.sortCols.add(_elem185); } } struct.setSortColsIsSet(true); @@ -1721,13 +1731,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TMap _map186 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map186.size); - String _key187; - String _val188; - for (int _i189 = 0; _i189 < _map186.size; ++_i189) + for (int _i187 = 0; _i187 < _map186.size; ++_i187) { - _key187 = iprot.readString(); - _val188 = iprot.readString(); - struct.parameters.put(_key187, _val188); + String _key188; // required + String _val189; // required + _key188 = iprot.readString(); + _val189 = iprot.readString(); + struct.parameters.put(_key188, _val189); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java index bd8a922..c6e524e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,19 +28,17 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class StringColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class StringColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StringColumnStatsData"); private static final org.apache.thrift.protocol.TField MAX_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("maxColLen", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField AVG_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("avgColLen", org.apache.thrift.protocol.TType.DOUBLE, (short)2); private static final org.apache.thrift.protocol.TField NUM_NULLS_FIELD_DESC = new org.apache.thrift.protocol.TField("numNulls", org.apache.thrift.protocol.TType.I64, (short)3); private static final org.apache.thrift.protocol.TField NUM_DVS_FIELD_DESC = new org.apache.thrift.protocol.TField("numDVs", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField BIT_VECTORS_FIELD_DESC = new org.apache.thrift.protocol.TField("bitVectors", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +50,15 @@ private double avgColLen; // required private long numNulls; // required private long numDVs; // required + private String bitVectors; // 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 { MAX_COL_LEN((short)1, "maxColLen"), AVG_COL_LEN((short)2, "avgColLen"), NUM_NULLS((short)3, "numNulls"), - NUM_DVS((short)4, "numDVs"); + NUM_DVS((short)4, "numDVs"), + BIT_VECTORS((short)5, "bitVectors"); private static final Map byName = new HashMap(); @@ -82,6 +81,8 @@ public static _Fields findByThriftId(int fieldId) { return NUM_NULLS; case 4: // NUM_DVS return NUM_DVS; + case 5: // BIT_VECTORS + return BIT_VECTORS; default: return null; } @@ -138,6 +139,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.NUM_DVS, new org.apache.thrift.meta_data.FieldMetaData("numDVs", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BIT_VECTORS, new org.apache.thrift.meta_data.FieldMetaData("bitVectors", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StringColumnStatsData.class, metaDataMap); } @@ -149,7 +152,8 @@ public StringColumnStatsData( long maxColLen, double avgColLen, long numNulls, - long numDVs) + long numDVs, + String bitVectors) { this(); this.maxColLen = maxColLen; @@ -160,6 +164,7 @@ public StringColumnStatsData( setNumNullsIsSet(true); this.numDVs = numDVs; setNumDVsIsSet(true); + this.bitVectors = bitVectors; } /** @@ -171,6 +176,9 @@ public StringColumnStatsData(StringColumnStatsData other) { this.avgColLen = other.avgColLen; this.numNulls = other.numNulls; this.numDVs = other.numDVs; + if (other.isSetBitVectors()) { + this.bitVectors = other.bitVectors; + } } public StringColumnStatsData deepCopy() { @@ -187,6 +195,7 @@ public void clear() { this.numNulls = 0; setNumDVsIsSet(false); this.numDVs = 0; + this.bitVectors = null; } public long getMaxColLen() { @@ -277,6 +286,29 @@ public void setNumDVsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMDVS_ISSET_ID, value); } + public String getBitVectors() { + return this.bitVectors; + } + + public void setBitVectors(String bitVectors) { + this.bitVectors = bitVectors; + } + + public void unsetBitVectors() { + this.bitVectors = null; + } + + /** Returns true if field bitVectors is set (has been assigned a value) and false otherwise */ + public boolean isSetBitVectors() { + return this.bitVectors != null; + } + + public void setBitVectorsIsSet(boolean value) { + if (!value) { + this.bitVectors = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case MAX_COL_LEN: @@ -311,22 +343,33 @@ public void setFieldValue(_Fields field, Object value) { } break; + case BIT_VECTORS: + if (value == null) { + unsetBitVectors(); + } else { + setBitVectors((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case MAX_COL_LEN: - return getMaxColLen(); + return Long.valueOf(getMaxColLen()); case AVG_COL_LEN: - return getAvgColLen(); + return Double.valueOf(getAvgColLen()); case NUM_NULLS: - return getNumNulls(); + return Long.valueOf(getNumNulls()); case NUM_DVS: - return getNumDVs(); + return Long.valueOf(getNumDVs()); + + case BIT_VECTORS: + return getBitVectors(); } throw new IllegalStateException(); @@ -347,6 +390,8 @@ public boolean isSet(_Fields field) { return isSetNumNulls(); case NUM_DVS: return isSetNumDVs(); + case BIT_VECTORS: + return isSetBitVectors(); } throw new IllegalStateException(); } @@ -400,80 +445,104 @@ public boolean equals(StringColumnStatsData that) { return false; } + boolean this_present_bitVectors = true && this.isSetBitVectors(); + boolean that_present_bitVectors = true && that.isSetBitVectors(); + if (this_present_bitVectors || that_present_bitVectors) { + if (!(this_present_bitVectors && that_present_bitVectors)) + return false; + if (!this.bitVectors.equals(that.bitVectors)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_maxColLen = true; - list.add(present_maxColLen); + builder.append(present_maxColLen); if (present_maxColLen) - list.add(maxColLen); + builder.append(maxColLen); boolean present_avgColLen = true; - list.add(present_avgColLen); + builder.append(present_avgColLen); if (present_avgColLen) - list.add(avgColLen); + builder.append(avgColLen); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); + + boolean present_bitVectors = true && (isSetBitVectors()); + builder.append(present_bitVectors); + if (present_bitVectors) + builder.append(bitVectors); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(StringColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + StringColumnStatsData typedOther = (StringColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(other.isSetMaxColLen()); + lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(typedOther.isSetMaxColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, other.maxColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, typedOther.maxColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(other.isSetAvgColLen()); + lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(typedOther.isSetAvgColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetAvgColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, other.avgColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, typedOther.avgColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBitVectors()).compareTo(typedOther.isSetBitVectors()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBitVectors()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bitVectors, typedOther.bitVectors); if (lastComparison != 0) { return lastComparison; } @@ -513,6 +582,14 @@ public String toString() { sb.append("numDVs:"); sb.append(this.numDVs); first = false; + if (!first) sb.append(", "); + sb.append("bitVectors:"); + if (this.bitVectors == null) { + sb.append("null"); + } else { + sb.append(this.bitVectors); + } + first = false; sb.append(")"); return sb.toString(); } @@ -535,6 +612,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numDVs' is unset! Struct:" + toString()); } + if (!isSetBitVectors()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'bitVectors' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -606,6 +687,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StringColumnStatsDa org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // BIT_VECTORS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -631,6 +720,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, StringColumnStatsD oprot.writeFieldBegin(NUM_DVS_FIELD_DESC); oprot.writeI64(struct.numDVs); oprot.writeFieldEnd(); + if (struct.bitVectors != null) { + oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); + oprot.writeString(struct.bitVectors); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -652,6 +746,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, StringColumnStatsDa oprot.writeDouble(struct.avgColLen); oprot.writeI64(struct.numNulls); oprot.writeI64(struct.numDVs); + oprot.writeString(struct.bitVectors); } @Override @@ -665,6 +760,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StringColumnStatsDat struct.setNumNullsIsSet(true); struct.numDVs = iprot.readI64(); struct.setNumDVsIsSet(true); + struct.bitVectors = iprot.readString(); + struct.setBitVectorsIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 5d683fb..229a819 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Table implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable
{ +public class Table implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Table"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -177,7 +173,7 @@ public String getFieldName() { private static final int __RETENTION_ISSET_ID = 2; private static final int __TEMPORARY_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY}; + private _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -274,14 +270,25 @@ public Table(Table other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetPartitionKeys()) { - List __this__partitionKeys = new ArrayList(other.partitionKeys.size()); + List __this__partitionKeys = new ArrayList(); for (FieldSchema other_element : other.partitionKeys) { __this__partitionKeys.add(new FieldSchema(other_element)); } this.partitionKeys = __this__partitionKeys; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetViewOriginalText()) { @@ -798,13 +805,13 @@ public Object getFieldValue(_Fields field) { return getOwner(); case CREATE_TIME: - return getCreateTime(); + return Integer.valueOf(getCreateTime()); case LAST_ACCESS_TIME: - return getLastAccessTime(); + return Integer.valueOf(getLastAccessTime()); case RETENTION: - return getRetention(); + return Integer.valueOf(getRetention()); case SD: return getSd(); @@ -828,7 +835,7 @@ public Object getFieldValue(_Fields field) { return getPrivileges(); case TEMPORARY: - return isTemporary(); + return Boolean.valueOf(isTemporary()); } throw new IllegalStateException(); @@ -1017,225 +1024,225 @@ public boolean equals(Table that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_owner = true && (isSetOwner()); - list.add(present_owner); + builder.append(present_owner); if (present_owner) - list.add(owner); + builder.append(owner); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_retention = true; - list.add(present_retention); + builder.append(present_retention); if (present_retention) - list.add(retention); + builder.append(retention); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_partitionKeys = true && (isSetPartitionKeys()); - list.add(present_partitionKeys); + builder.append(present_partitionKeys); if (present_partitionKeys) - list.add(partitionKeys); + builder.append(partitionKeys); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_viewOriginalText = true && (isSetViewOriginalText()); - list.add(present_viewOriginalText); + builder.append(present_viewOriginalText); if (present_viewOriginalText) - list.add(viewOriginalText); + builder.append(viewOriginalText); boolean present_viewExpandedText = true && (isSetViewExpandedText()); - list.add(present_viewExpandedText); + builder.append(present_viewExpandedText); if (present_viewExpandedText) - list.add(viewExpandedText); + builder.append(viewExpandedText); boolean present_tableType = true && (isSetTableType()); - list.add(present_tableType); + builder.append(present_tableType); if (present_tableType) - list.add(tableType); + builder.append(tableType); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_temporary = true && (isSetTemporary()); - list.add(present_temporary); + builder.append(present_temporary); if (present_temporary) - list.add(temporary); + builder.append(temporary); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Table other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Table typedOther = (Table)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwner()).compareTo(other.isSetOwner()); + lastComparison = Boolean.valueOf(isSetOwner()).compareTo(typedOther.isSetOwner()); if (lastComparison != 0) { return lastComparison; } if (isSetOwner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, other.owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRetention()).compareTo(other.isSetRetention()); + lastComparison = Boolean.valueOf(isSetRetention()).compareTo(typedOther.isSetRetention()); if (lastComparison != 0) { return lastComparison; } if (isSetRetention()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, other.retention); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, typedOther.retention); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionKeys()).compareTo(other.isSetPartitionKeys()); + lastComparison = Boolean.valueOf(isSetPartitionKeys()).compareTo(typedOther.isSetPartitionKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, other.partitionKeys); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetViewOriginalText()).compareTo(other.isSetViewOriginalText()); + lastComparison = Boolean.valueOf(isSetViewOriginalText()).compareTo(typedOther.isSetViewOriginalText()); if (lastComparison != 0) { return lastComparison; } if (isSetViewOriginalText()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, other.viewOriginalText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetViewExpandedText()).compareTo(other.isSetViewExpandedText()); + lastComparison = Boolean.valueOf(isSetViewExpandedText()).compareTo(typedOther.isSetViewExpandedText()); if (lastComparison != 0) { return lastComparison; } if (isSetViewExpandedText()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, other.viewExpandedText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(typedOther.isSetTableType()); if (lastComparison != 0) { return lastComparison; } if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, typedOther.tableType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTemporary()).compareTo(other.isSetTemporary()); + lastComparison = Boolean.valueOf(isSetTemporary()).compareTo(typedOther.isSetTemporary()); if (lastComparison != 0) { return lastComparison; } if (isSetTemporary()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.temporary, other.temporary); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.temporary, typedOther.temporary); if (lastComparison != 0) { return lastComparison; } @@ -1472,12 +1479,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw { org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); struct.partitionKeys = new ArrayList(_list190.size); - FieldSchema _elem191; - for (int _i192 = 0; _i192 < _list190.size; ++_i192) + for (int _i191 = 0; _i191 < _list190.size; ++_i191) { - _elem191 = new FieldSchema(); - _elem191.read(iprot); - struct.partitionKeys.add(_elem191); + FieldSchema _elem192; // required + _elem192 = new FieldSchema(); + _elem192.read(iprot); + struct.partitionKeys.add(_elem192); } iprot.readListEnd(); } @@ -1491,13 +1498,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw { org.apache.thrift.protocol.TMap _map193 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map193.size); - String _key194; - String _val195; - for (int _i196 = 0; _i196 < _map193.size; ++_i196) + for (int _i194 = 0; _i194 < _map193.size; ++_i194) { - _key194 = iprot.readString(); - _val195 = iprot.readString(); - struct.parameters.put(_key194, _val195); + String _key195; // required + String _val196; // required + _key195 = iprot.readString(); + _val196 = iprot.readString(); + struct.parameters.put(_key195, _val196); } iprot.readMapEnd(); } @@ -1796,12 +1803,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws { org.apache.thrift.protocol.TList _list201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitionKeys = new ArrayList(_list201.size); - FieldSchema _elem202; - for (int _i203 = 0; _i203 < _list201.size; ++_i203) + for (int _i202 = 0; _i202 < _list201.size; ++_i202) { - _elem202 = new FieldSchema(); - _elem202.read(iprot); - struct.partitionKeys.add(_elem202); + FieldSchema _elem203; // required + _elem203 = new FieldSchema(); + _elem203.read(iprot); + struct.partitionKeys.add(_elem203); } } struct.setPartitionKeysIsSet(true); @@ -1810,13 +1817,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws { org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map204.size); - String _key205; - String _val206; - for (int _i207 = 0; _i207 < _map204.size; ++_i207) + for (int _i205 = 0; _i205 < _map204.size; ++_i205) { - _key205 = iprot.readString(); - _val206 = iprot.readString(); - struct.parameters.put(_key205, _val206); + String _key206; // required + String _val207; // required + _key206 = iprot.readString(); + _val207 = iprot.readString(); + struct.parameters.put(_key206, _val207); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java index 08a8e36..782c923 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableMeta.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TableMeta implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TableMeta implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableMeta"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -122,7 +118,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.COMMENTS}; + private _Fields optionals[] = {_Fields.COMMENTS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -402,75 +398,75 @@ public boolean equals(TableMeta that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_tableType = true && (isSetTableType()); - list.add(present_tableType); + builder.append(present_tableType); if (present_tableType) - list.add(tableType); + builder.append(tableType); boolean present_comments = true && (isSetComments()); - list.add(present_comments); + builder.append(present_comments); if (present_comments) - list.add(comments); + builder.append(comments); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TableMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TableMeta typedOther = (TableMeta)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(typedOther.isSetTableType()); if (lastComparison != 0) { return lastComparison; } if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, typedOther.tableType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComments()).compareTo(other.isSetComments()); + lastComparison = Boolean.valueOf(isSetComments()).compareTo(typedOther.isSetComments()); if (lastComparison != 0) { return lastComparison; } if (isSetComments()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, other.comments); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index d0daee5..bd997b4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TableStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TableStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableStatsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -156,7 +152,10 @@ public TableStatsRequest(TableStatsRequest other) { this.tblName = other.tblName; } if (other.isSetColNames()) { - List __this__colNames = new ArrayList(other.colNames); + List __this__colNames = new ArrayList(); + for (String other_element : other.colNames) { + __this__colNames.add(other_element); + } this.colNames = __this__colNames; } } @@ -362,60 +361,60 @@ public boolean equals(TableStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_colNames = true && (isSetColNames()); - list.add(present_colNames); + builder.append(present_colNames); if (present_colNames) - list.add(colNames); + builder.append(colNames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TableStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TableStatsRequest typedOther = (TableStatsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColNames()).compareTo(other.isSetColNames()); + lastComparison = Boolean.valueOf(isSetColNames()).compareTo(typedOther.isSetColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, other.colNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, typedOther.colNames); if (lastComparison != 0) { return lastComparison; } @@ -539,11 +538,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s { org.apache.thrift.protocol.TList _list356 = iprot.readListBegin(); struct.colNames = new ArrayList(_list356.size); - String _elem357; - for (int _i358 = 0; _i358 < _list356.size; ++_i358) + for (int _i357 = 0; _i357 < _list356.size; ++_i357) { - _elem357 = iprot.readString(); - struct.colNames.add(_elem357); + String _elem358; // required + _elem358 = iprot.readString(); + struct.colNames.add(_elem358); } iprot.readListEnd(); } @@ -625,11 +624,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st { org.apache.thrift.protocol.TList _list361 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.colNames = new ArrayList(_list361.size); - String _elem362; - for (int _i363 = 0; _i363 < _list361.size; ++_i363) + for (int _i362 = 0; _i362 < _list361.size; ++_i362) { - _elem362 = iprot.readString(); - struct.colNames.add(_elem362); + String _elem363; // required + _elem363 = iprot.readString(); + struct.colNames.add(_elem363); } } struct.setColNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index 78d4250..68ecd7d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TableStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TableStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableStatsResult"); private static final org.apache.thrift.protocol.TField TABLE_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("tableStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TableStatsResult( */ public TableStatsResult(TableStatsResult other) { if (other.isSetTableStats()) { - List __this__tableStats = new ArrayList(other.tableStats.size()); + List __this__tableStats = new ArrayList(); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TableStatsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableStats = true && (isSetTableStats()); - list.add(present_tableStats); + builder.append(present_tableStats); if (present_tableStats) - list.add(tableStats); + builder.append(tableStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TableStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TableStatsResult typedOther = (TableStatsResult)other; - lastComparison = Boolean.valueOf(isSetTableStats()).compareTo(other.isSetTableStats()); + lastComparison = Boolean.valueOf(isSetTableStats()).compareTo(typedOther.isSetTableStats()); if (lastComparison != 0) { return lastComparison; } if (isSetTableStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableStats, other.tableStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableStats, typedOther.tableStats); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsResult st { org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); struct.tableStats = new ArrayList(_list330.size); - ColumnStatisticsObj _elem331; - for (int _i332 = 0; _i332 < _list330.size; ++_i332) + for (int _i331 = 0; _i331 < _list330.size; ++_i331) { - _elem331 = new ColumnStatisticsObj(); - _elem331.read(iprot); - struct.tableStats.add(_elem331); + ColumnStatisticsObj _elem332; // required + _elem332 = new ColumnStatisticsObj(); + _elem332.read(iprot); + struct.tableStats.add(_elem332); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsResult str { org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.tableStats = new ArrayList(_list335.size); - ColumnStatisticsObj _elem336; - for (int _i337 = 0; _i337 < _list335.size; ++_i337) + for (int _i336 = 0; _i336 < _list335.size; ++_i336) { - _elem336 = new ColumnStatisticsObj(); - _elem336.read(iprot); - struct.tableStats.add(_elem336); + ColumnStatisticsObj _elem337; // required + _elem337 = new ColumnStatisticsObj(); + _elem337.read(iprot); + struct.tableStats.add(_elem337); } } struct.setTableStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 7ae18a1..4dc8d06 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,12 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") public class ThriftHiveMetastore { /** @@ -312,271 +308,271 @@ public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface { - public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_file_metadata(GetFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_file_metadata(GetFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void put_file_metadata(PutFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void put_file_metadata(PutFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void clear_file_metadata(ClearFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void clear_file_metadata(ClearFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -4505,7 +4501,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getMetaConf_call method_call = new getMetaConf_call(key, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4514,7 +4510,7 @@ public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback public static class getMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; - public getMetaConf_call(String key, 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 { + public getMetaConf_call(String key, 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.key = key; } @@ -4537,7 +4533,7 @@ public String getResult() throws MetaException, org.apache.thrift.TException { } } - public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setMetaConf_call method_call = new setMetaConf_call(key, value, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4547,7 +4543,7 @@ public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncM public static class setMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String value; - public setMetaConf_call(String key, String value, 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 { + public setMetaConf_call(String key, String value, 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.key = key; this.value = value; @@ -4572,7 +4568,7 @@ public void getResult() throws MetaException, org.apache.thrift.TException { } } - public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_database_call method_call = new create_database_call(database, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4581,7 +4577,7 @@ public void create_database(Database database, org.apache.thrift.async.AsyncMeth public static class create_database_call extends org.apache.thrift.async.TAsyncMethodCall { private Database database; - public create_database_call(Database database, 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 { + public create_database_call(Database database, 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.database = database; } @@ -4604,7 +4600,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_database_call method_call = new get_database_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4613,7 +4609,7 @@ public void get_database(String name, org.apache.thrift.async.AsyncMethodCallbac public static class get_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_database_call(String name, 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 { + public get_database_call(String name, 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.name = name; } @@ -4636,7 +4632,7 @@ public Database getResult() throws NoSuchObjectException, MetaException, org.apa } } - public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_database_call method_call = new drop_database_call(name, deleteData, cascade, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4647,7 +4643,7 @@ public void drop_database(String name, boolean deleteData, boolean cascade, org. private String name; private boolean deleteData; private boolean cascade; - public drop_database_call(String name, boolean deleteData, boolean cascade, 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 { + public drop_database_call(String name, boolean deleteData, boolean cascade, 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.name = name; this.deleteData = deleteData; @@ -4674,7 +4670,7 @@ public void getResult() throws NoSuchObjectException, InvalidOperationException, } } - public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_databases_call method_call = new get_databases_call(pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4683,7 +4679,7 @@ public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCal public static class get_databases_call extends org.apache.thrift.async.TAsyncMethodCall { private String pattern; - public get_databases_call(String pattern, 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 { + public get_databases_call(String pattern, 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.pattern = pattern; } @@ -4706,7 +4702,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_databases_call method_call = new get_all_databases_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4714,7 +4710,7 @@ public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback result } public static class get_all_databases_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_all_databases_call(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 { + public get_all_databases_call(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); } @@ -4735,7 +4731,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_database_call method_call = new alter_database_call(dbname, db, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4745,7 +4741,7 @@ public void alter_database(String dbname, Database db, org.apache.thrift.async.A public static class alter_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private Database db; - public alter_database_call(String dbname, Database db, 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 { + public alter_database_call(String dbname, Database db, 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.dbname = dbname; this.db = db; @@ -4770,7 +4766,7 @@ public void getResult() throws MetaException, NoSuchObjectException, org.apache. } } - public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_type_call method_call = new get_type_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4779,7 +4775,7 @@ public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback re public static class get_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_call(String name, 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 { + public get_type_call(String name, 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.name = name; } @@ -4802,7 +4798,7 @@ public Type getResult() throws MetaException, NoSuchObjectException, org.apache. } } - public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_type_call method_call = new create_type_call(type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4811,7 +4807,7 @@ public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback r public static class create_type_call extends org.apache.thrift.async.TAsyncMethodCall { private Type type; - public create_type_call(Type type, 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 { + public create_type_call(Type type, 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.type = type; } @@ -4834,7 +4830,7 @@ public boolean getResult() throws AlreadyExistsException, InvalidObjectException } } - public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_type_call method_call = new drop_type_call(type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4843,7 +4839,7 @@ public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback r public static class drop_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String type; - public drop_type_call(String type, 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 { + public drop_type_call(String type, 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.type = type; } @@ -4866,7 +4862,7 @@ public boolean getResult() throws MetaException, NoSuchObjectException, org.apac } } - public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_type_all_call method_call = new get_type_all_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4875,7 +4871,7 @@ public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallbac public static class get_type_all_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_all_call(String name, 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 { + public get_type_all_call(String name, 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.name = name; } @@ -4898,7 +4894,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_fields_call method_call = new get_fields_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4908,7 +4904,7 @@ public void get_fields(String db_name, String table_name, org.apache.thrift.asyn public static class get_fields_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_fields_call(String db_name, String table_name, 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 { + public get_fields_call(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; @@ -4933,7 +4929,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_fields_with_environment_context_call method_call = new get_fields_with_environment_context_call(db_name, table_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4944,7 +4940,7 @@ public void get_fields_with_environment_context(String db_name, String table_nam private String db_name; private String table_name; private EnvironmentContext environment_context; - public get_fields_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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 { + public get_fields_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; @@ -4971,7 +4967,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_schema_call method_call = new get_schema_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4981,7 +4977,7 @@ public void get_schema(String db_name, String table_name, org.apache.thrift.asyn public static class get_schema_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_schema_call(String db_name, String table_name, 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 { + public get_schema_call(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; @@ -5006,7 +5002,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_schema_with_environment_context_call method_call = new get_schema_with_environment_context_call(db_name, table_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5017,7 +5013,7 @@ public void get_schema_with_environment_context(String db_name, String table_nam private String db_name; private String table_name; private EnvironmentContext environment_context; - public get_schema_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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 { + public get_schema_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.table_name = table_name; @@ -5044,7 +5040,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_table_call method_call = new create_table_call(tbl, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5053,7 +5049,7 @@ public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback public static class create_table_call extends org.apache.thrift.async.TAsyncMethodCall { private Table tbl; - public create_table_call(Table tbl, 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 { + public create_table_call(Table tbl, 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.tbl = tbl; } @@ -5076,7 +5072,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_table_with_environment_context_call method_call = new create_table_with_environment_context_call(tbl, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5086,7 +5082,7 @@ public void create_table_with_environment_context(Table tbl, EnvironmentContext public static class create_table_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { private Table tbl; private EnvironmentContext environment_context; - public create_table_with_environment_context_call(Table tbl, EnvironmentContext environment_context, 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 { + public create_table_with_environment_context_call(Table tbl, EnvironmentContext environment_context, 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.tbl = tbl; this.environment_context = environment_context; @@ -5111,7 +5107,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5122,7 +5118,7 @@ public void drop_table(String dbname, String name, boolean deleteData, org.apach private String dbname; private String name; private boolean deleteData; - public drop_table_call(String dbname, String name, boolean deleteData, 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 { + public drop_table_call(String dbname, String name, boolean deleteData, 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.dbname = dbname; this.name = name; @@ -5149,7 +5145,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_with_environment_context_call method_call = new drop_table_with_environment_context_call(dbname, name, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5161,7 +5157,7 @@ public void drop_table_with_environment_context(String dbname, String name, bool private String name; private boolean deleteData; private EnvironmentContext environment_context; - public drop_table_with_environment_context_call(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_table_with_environment_context_call(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, 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.dbname = dbname; this.name = name; @@ -5190,7 +5186,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_tables_call method_call = new get_tables_call(db_name, pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5200,7 +5196,7 @@ public void get_tables(String db_name, String pattern, org.apache.thrift.async.A public static class get_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String pattern; - public get_tables_call(String db_name, String pattern, 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 { + public get_tables_call(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.pattern = pattern; @@ -5225,7 +5221,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_meta(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_meta_call method_call = new get_table_meta_call(db_patterns, tbl_patterns, tbl_types, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5236,7 +5232,7 @@ public void get_table_meta(String db_patterns, String tbl_patterns, List private String db_patterns; private String tbl_patterns; private List tbl_types; - public get_table_meta_call(String db_patterns, String tbl_patterns, List tbl_types, 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 { + public get_table_meta_call(String db_patterns, String tbl_patterns, List tbl_types, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_patterns = db_patterns; this.tbl_patterns = tbl_patterns; @@ -5263,7 +5259,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_tables_call method_call = new get_all_tables_call(db_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5272,7 +5268,7 @@ public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCa public static class get_all_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; - public get_all_tables_call(String db_name, 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 { + public get_all_tables_call(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; } @@ -5295,7 +5291,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_call method_call = new get_table_call(dbname, tbl_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5305,7 +5301,7 @@ public void get_table(String dbname, String tbl_name, org.apache.thrift.async.As public static class get_table_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String tbl_name; - public get_table_call(String dbname, String tbl_name, 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 { + public get_table_call(String dbname, String tbl_name, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5330,7 +5326,7 @@ public Table getResult() throws MetaException, NoSuchObjectException, org.apache } } - public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_objects_by_name_call method_call = new get_table_objects_by_name_call(dbname, tbl_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5340,7 +5336,7 @@ public void get_table_objects_by_name(String dbname, List tbl_names, org public static class get_table_objects_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private List tbl_names; - public get_table_objects_by_name_call(String dbname, List tbl_names, 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 { + public get_table_objects_by_name_call(String dbname, List tbl_names, 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.dbname = dbname; this.tbl_names = tbl_names; @@ -5365,7 +5361,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_names_by_filter_call method_call = new get_table_names_by_filter_call(dbname, filter, max_tables, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5376,7 +5372,7 @@ public void get_table_names_by_filter(String dbname, String filter, short max_ta private String dbname; private String filter; private short max_tables; - public get_table_names_by_filter_call(String dbname, String filter, short max_tables, 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 { + public get_table_names_by_filter_call(String dbname, String filter, short max_tables, 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.dbname = dbname; this.filter = filter; @@ -5403,7 +5399,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_call method_call = new alter_table_call(dbname, tbl_name, new_tbl, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5414,7 +5410,7 @@ public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apach private String dbname; private String tbl_name; private Table new_tbl; - public alter_table_call(String dbname, String tbl_name, Table new_tbl, 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 { + public alter_table_call(String dbname, String tbl_name, Table new_tbl, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5441,7 +5437,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_with_environment_context_call method_call = new alter_table_with_environment_context_call(dbname, tbl_name, new_tbl, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5453,7 +5449,7 @@ public void alter_table_with_environment_context(String dbname, String tbl_name, private String tbl_name; private Table new_tbl; private EnvironmentContext environment_context; - public alter_table_with_environment_context_call(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, 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 { + public alter_table_with_environment_context_call(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5482,7 +5478,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_with_cascade_call method_call = new alter_table_with_cascade_call(dbname, tbl_name, new_tbl, cascade, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5494,7 +5490,7 @@ public void alter_table_with_cascade(String dbname, String tbl_name, Table new_t private String tbl_name; private Table new_tbl; private boolean cascade; - public alter_table_with_cascade_call(String dbname, String tbl_name, Table new_tbl, boolean cascade, 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 { + public alter_table_with_cascade_call(String dbname, String tbl_name, Table new_tbl, boolean cascade, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5523,7 +5519,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partition_call method_call = new add_partition_call(new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5532,7 +5528,7 @@ public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMetho public static class add_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private Partition new_part; - public add_partition_call(Partition new_part, 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 { + public add_partition_call(Partition new_part, 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.new_part = new_part; } @@ -5555,7 +5551,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partition_with_environment_context_call method_call = new add_partition_with_environment_context_call(new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5565,7 +5561,7 @@ public void add_partition_with_environment_context(Partition new_part, Environme public static class add_partition_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { private Partition new_part; private EnvironmentContext environment_context; - public add_partition_with_environment_context_call(Partition new_part, EnvironmentContext environment_context, 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 { + public add_partition_with_environment_context_call(Partition new_part, EnvironmentContext environment_context, 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.new_part = new_part; this.environment_context = environment_context; @@ -5590,7 +5586,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_call method_call = new add_partitions_call(new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5599,7 +5595,7 @@ public void add_partitions(List new_parts, org.apache.thrift.async.As public static class add_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private List new_parts; - public add_partitions_call(List new_parts, 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 { + public add_partitions_call(List new_parts, 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.new_parts = new_parts; } @@ -5622,7 +5618,7 @@ public int getResult() throws InvalidObjectException, AlreadyExistsException, Me } } - public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_pspec_call method_call = new add_partitions_pspec_call(new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5631,7 +5627,7 @@ public void add_partitions_pspec(List new_parts, org.apache.thrif public static class add_partitions_pspec_call extends org.apache.thrift.async.TAsyncMethodCall { private List new_parts; - public add_partitions_pspec_call(List new_parts, 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 { + public add_partitions_pspec_call(List new_parts, 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.new_parts = new_parts; } @@ -5654,7 +5650,7 @@ public int getResult() throws InvalidObjectException, AlreadyExistsException, Me } } - public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_call method_call = new append_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5665,7 +5661,7 @@ public void append_partition(String db_name, String tbl_name, List part_ private String db_name; private String tbl_name; private List part_vals; - public append_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public append_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5692,7 +5688,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_req_call method_call = new add_partitions_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5701,7 +5697,7 @@ public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.a public static class add_partitions_req_call extends org.apache.thrift.async.TAsyncMethodCall { private AddPartitionsRequest request; - public add_partitions_req_call(AddPartitionsRequest request, 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 { + public add_partitions_req_call(AddPartitionsRequest request, 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.request = request; } @@ -5724,7 +5720,7 @@ public AddPartitionsResult getResult() throws InvalidObjectException, AlreadyExi } } - public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_with_environment_context_call method_call = new append_partition_with_environment_context_call(db_name, tbl_name, part_vals, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5736,7 +5732,7 @@ public void append_partition_with_environment_context(String db_name, String tbl private String tbl_name; private List part_vals; private EnvironmentContext environment_context; - public append_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, 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 { + public append_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5765,7 +5761,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_by_name_call method_call = new append_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5776,7 +5772,7 @@ public void append_partition_by_name(String db_name, String tbl_name, String par private String db_name; private String tbl_name; private String part_name; - public append_partition_by_name_call(String db_name, String tbl_name, String part_name, 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 { + public append_partition_by_name_call(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5803,7 +5799,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_by_name_with_environment_context_call method_call = new append_partition_by_name_with_environment_context_call(db_name, tbl_name, part_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5815,7 +5811,7 @@ public void append_partition_by_name_with_environment_context(String db_name, St private String tbl_name; private String part_name; private EnvironmentContext environment_context; - public append_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, 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 { + public append_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5844,7 +5840,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_call method_call = new drop_partition_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5856,7 +5852,7 @@ public void drop_partition(String db_name, String tbl_name, List part_va private String tbl_name; private List part_vals; private boolean deleteData; - public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, 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 { + public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5885,7 +5881,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_with_environment_context_call method_call = new drop_partition_with_environment_context_call(db_name, tbl_name, part_vals, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5898,7 +5894,7 @@ public void drop_partition_with_environment_context(String db_name, String tbl_n private List part_vals; private boolean deleteData; private EnvironmentContext environment_context; - public drop_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5929,7 +5925,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_by_name_call method_call = new drop_partition_by_name_call(db_name, tbl_name, part_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5941,7 +5937,7 @@ public void drop_partition_by_name(String db_name, String tbl_name, String part_ private String tbl_name; private String part_name; private boolean deleteData; - public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, 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 { + public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5970,7 +5966,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_by_name_with_environment_context_call method_call = new drop_partition_by_name_with_environment_context_call(db_name, tbl_name, part_name, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5983,7 +5979,7 @@ public void drop_partition_by_name_with_environment_context(String db_name, Stri private String part_name; private boolean deleteData; private EnvironmentContext environment_context; - public drop_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6014,7 +6010,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partitions_req_call method_call = new drop_partitions_req_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6023,7 +6019,7 @@ public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.asy public static class drop_partitions_req_call extends org.apache.thrift.async.TAsyncMethodCall { private DropPartitionsRequest req; - public drop_partitions_req_call(DropPartitionsRequest req, 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 { + public drop_partitions_req_call(DropPartitionsRequest req, 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.req = req; } @@ -6046,7 +6042,7 @@ public DropPartitionsResult getResult() throws NoSuchObjectException, MetaExcept } } - public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_call method_call = new get_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6057,7 +6053,7 @@ public void get_partition(String db_name, String tbl_name, List part_val private String db_name; private String tbl_name; private List part_vals; - public get_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_partition_call(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6084,7 +6080,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exchange_partition_call method_call = new exchange_partition_call(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6097,7 +6093,7 @@ public void exchange_partition(Map partitionSpecs, String source_ private String source_table_name; private String dest_db; private String dest_table_name; - public exchange_partition_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, 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 { + public exchange_partition_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, 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.partitionSpecs = partitionSpecs; this.source_db = source_db; @@ -6128,7 +6124,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, Invali } } - public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exchange_partitions_call method_call = new exchange_partitions_call(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6141,7 +6137,7 @@ public void exchange_partitions(Map partitionSpecs, String source private String source_table_name; private String dest_db; private String dest_table_name; - public exchange_partitions_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, 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 { + public exchange_partitions_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, 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.partitionSpecs = partitionSpecs; this.source_db = source_db; @@ -6172,7 +6168,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_with_auth_call method_call = new get_partition_with_auth_call(db_name, tbl_name, part_vals, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6185,7 +6181,7 @@ public void get_partition_with_auth(String db_name, String tbl_name, List part_vals; private String user_name; private List group_names; - public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, 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 { + public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6216,7 +6212,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_by_name_call method_call = new get_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6227,7 +6223,7 @@ public void get_partition_by_name(String db_name, String tbl_name, String part_n private String db_name; private String tbl_name; private String part_name; - public get_partition_by_name_call(String db_name, String tbl_name, String part_name, 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 { + public get_partition_by_name_call(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6254,7 +6250,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_call method_call = new get_partitions_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6265,7 +6261,7 @@ public void get_partitions(String db_name, String tbl_name, short max_parts, org private String db_name; private String tbl_name; private short max_parts; - public get_partitions_call(String db_name, String tbl_name, short max_parts, 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 { + public get_partitions_call(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6292,7 +6288,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_with_auth_call method_call = new get_partitions_with_auth_call(db_name, tbl_name, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6305,7 +6301,7 @@ public void get_partitions_with_auth(String db_name, String tbl_name, short max_ private short max_parts; private String user_name; private List group_names; - public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, 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 { + public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6336,7 +6332,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_pspec_call method_call = new get_partitions_pspec_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6347,7 +6343,7 @@ public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, private String db_name; private String tbl_name; private int max_parts; - public get_partitions_pspec_call(String db_name, String tbl_name, int max_parts, 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 { + public get_partitions_pspec_call(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6374,7 +6370,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_call method_call = new get_partition_names_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6385,7 +6381,7 @@ public void get_partition_names(String db_name, String tbl_name, short max_parts private String db_name; private String tbl_name; private short max_parts; - public get_partition_names_call(String db_name, String tbl_name, short max_parts, 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 { + public get_partition_names_call(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6412,7 +6408,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6424,7 +6420,7 @@ public void get_partitions_ps(String db_name, String tbl_name, List part private String tbl_name; private List part_vals; private short max_parts; - public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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 { + public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6453,7 +6449,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_ps_with_auth_call method_call = new get_partitions_ps_with_auth_call(db_name, tbl_name, part_vals, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6467,7 +6463,7 @@ public void get_partitions_ps_with_auth(String db_name, String tbl_name, List group_names; - public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, 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 { + public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6500,7 +6496,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_ps_call method_call = new get_partition_names_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6512,7 +6508,7 @@ public void get_partition_names_ps(String db_name, String tbl_name, List private String tbl_name; private List part_vals; private short max_parts; - public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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 { + public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6541,7 +6537,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_filter_call method_call = new get_partitions_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6553,7 +6549,7 @@ public void get_partitions_by_filter(String db_name, String tbl_name, String fil private String tbl_name; private String filter; private short max_parts; - public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, 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 { + public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6582,7 +6578,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_part_specs_by_filter_call method_call = new get_part_specs_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6594,7 +6590,7 @@ public void get_part_specs_by_filter(String db_name, String tbl_name, String fil private String tbl_name; private String filter; private int max_parts; - public get_part_specs_by_filter_call(String db_name, String tbl_name, String filter, int max_parts, 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 { + public get_part_specs_by_filter_call(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6623,7 +6619,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_expr_call method_call = new get_partitions_by_expr_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6632,7 +6628,7 @@ public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrif public static class get_partitions_by_expr_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsByExprRequest req; - public get_partitions_by_expr_call(PartitionsByExprRequest req, 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 { + public get_partitions_by_expr_call(PartitionsByExprRequest req, 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.req = req; } @@ -6655,7 +6651,7 @@ public PartitionsByExprResult getResult() throws MetaException, NoSuchObjectExce } } - public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_num_partitions_by_filter_call method_call = new get_num_partitions_by_filter_call(db_name, tbl_name, filter, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6666,7 +6662,7 @@ public void get_num_partitions_by_filter(String db_name, String tbl_name, String private String db_name; private String tbl_name; private String filter; - public get_num_partitions_by_filter_call(String db_name, String tbl_name, String filter, 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 { + public get_num_partitions_by_filter_call(String db_name, String tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6693,7 +6689,7 @@ public int getResult() throws MetaException, NoSuchObjectException, org.apache.t } } - public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_names_call method_call = new get_partitions_by_names_call(db_name, tbl_name, names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6704,7 +6700,7 @@ public void get_partitions_by_names(String db_name, String tbl_name, List names; - public get_partitions_by_names_call(String db_name, String tbl_name, List names, 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 { + public get_partitions_by_names_call(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6731,7 +6727,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partition_call method_call = new alter_partition_call(db_name, tbl_name, new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6742,7 +6738,7 @@ public void alter_partition(String db_name, String tbl_name, Partition new_part, private String db_name; private String tbl_name; private Partition new_part; - public alter_partition_call(String db_name, String tbl_name, Partition new_part, 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 { + public alter_partition_call(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6769,7 +6765,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partitions_call method_call = new alter_partitions_call(db_name, tbl_name, new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6780,7 +6776,7 @@ public void alter_partitions(String db_name, String tbl_name, List ne private String db_name; private String tbl_name; private List new_parts; - public alter_partitions_call(String db_name, String tbl_name, List new_parts, 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 { + public alter_partitions_call(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6807,7 +6803,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partition_with_environment_context_call method_call = new alter_partition_with_environment_context_call(db_name, tbl_name, new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6819,7 +6815,7 @@ public void alter_partition_with_environment_context(String db_name, String tbl_ private String tbl_name; private Partition new_part; private EnvironmentContext environment_context; - public alter_partition_with_environment_context_call(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, 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 { + public alter_partition_with_environment_context_call(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6848,7 +6844,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); rename_partition_call method_call = new rename_partition_call(db_name, tbl_name, part_vals, new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6860,7 +6856,7 @@ public void rename_partition(String db_name, String tbl_name, List part_ private String tbl_name; private List part_vals; private Partition new_part; - public rename_partition_call(String db_name, String tbl_name, List part_vals, Partition new_part, 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 { + public rename_partition_call(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -6889,7 +6885,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_has_valid_characters_call method_call = new partition_name_has_valid_characters_call(part_vals, throw_exception, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6899,7 +6895,7 @@ public void partition_name_has_valid_characters(List part_vals, boolean public static class partition_name_has_valid_characters_call extends org.apache.thrift.async.TAsyncMethodCall { private List part_vals; private boolean throw_exception; - public partition_name_has_valid_characters_call(List part_vals, boolean throw_exception, 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 { + public partition_name_has_valid_characters_call(List part_vals, boolean throw_exception, 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.part_vals = part_vals; this.throw_exception = throw_exception; @@ -6924,7 +6920,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_config_value_call method_call = new get_config_value_call(name, defaultValue, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6934,7 +6930,7 @@ public void get_config_value(String name, String defaultValue, org.apache.thrift public static class get_config_value_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String defaultValue; - public get_config_value_call(String name, String defaultValue, 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 { + public get_config_value_call(String name, String defaultValue, 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.name = name; this.defaultValue = defaultValue; @@ -6959,7 +6955,7 @@ public String getResult() throws ConfigValSecurityException, org.apache.thrift.T } } - public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_to_vals_call method_call = new partition_name_to_vals_call(part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6968,7 +6964,7 @@ public void partition_name_to_vals(String part_name, org.apache.thrift.async.Asy public static class partition_name_to_vals_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_vals_call(String part_name, 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 { + public partition_name_to_vals_call(String part_name, 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.part_name = part_name; } @@ -6991,7 +6987,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_to_spec_call method_call = new partition_name_to_spec_call(part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7000,7 +6996,7 @@ public void partition_name_to_spec(String part_name, org.apache.thrift.async.Asy public static class partition_name_to_spec_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_spec_call(String part_name, 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 { + public partition_name_to_spec_call(String part_name, 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.part_name = part_name; } @@ -7023,7 +7019,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); markPartitionForEvent_call method_call = new markPartitionForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7035,7 +7031,7 @@ public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals; private PartitionEventType eventType; - public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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 { + public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7064,7 +7060,7 @@ public void getResult() throws MetaException, NoSuchObjectException, UnknownDBEx } } - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isPartitionMarkedForEvent_call method_call = new isPartitionMarkedForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7076,7 +7072,7 @@ public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals; private PartitionEventType eventType; - public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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 { + public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7105,7 +7101,7 @@ public boolean getResult() throws MetaException, NoSuchObjectException, UnknownD } } - public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_index_call method_call = new add_index_call(new_index, index_table, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7115,7 +7111,7 @@ public void add_index(Index new_index, Table index_table, org.apache.thrift.asyn public static class add_index_call extends org.apache.thrift.async.TAsyncMethodCall { private Index new_index; private Table index_table; - public add_index_call(Index new_index, Table index_table, 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 { + public add_index_call(Index new_index, Table index_table, 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.new_index = new_index; this.index_table = index_table; @@ -7140,7 +7136,7 @@ public Index getResult() throws InvalidObjectException, AlreadyExistsException, } } - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_index_call method_call = new alter_index_call(dbname, base_tbl_name, idx_name, new_idx, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7152,7 +7148,7 @@ public void alter_index(String dbname, String base_tbl_name, String idx_name, In private String base_tbl_name; private String idx_name; private Index new_idx; - public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, 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 { + public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, 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.dbname = dbname; this.base_tbl_name = base_tbl_name; @@ -7181,7 +7177,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_index_by_name_call method_call = new drop_index_by_name_call(db_name, tbl_name, index_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7193,7 +7189,7 @@ public void drop_index_by_name(String db_name, String tbl_name, String index_nam private String tbl_name; private String index_name; private boolean deleteData; - public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, 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 { + public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7222,7 +7218,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_index_by_name_call method_call = new get_index_by_name_call(db_name, tbl_name, index_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7233,7 +7229,7 @@ public void get_index_by_name(String db_name, String tbl_name, String index_name private String db_name; private String tbl_name; private String index_name; - public get_index_by_name_call(String db_name, String tbl_name, String index_name, 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 { + public get_index_by_name_call(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7260,7 +7256,7 @@ public Index getResult() throws MetaException, NoSuchObjectException, org.apache } } - public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_indexes_call method_call = new get_indexes_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7271,7 +7267,7 @@ public void get_indexes(String db_name, String tbl_name, short max_indexes, org. private String db_name; private String tbl_name; private short max_indexes; - public get_indexes_call(String db_name, String tbl_name, short max_indexes, 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 { + public get_indexes_call(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7298,7 +7294,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_index_names_call method_call = new get_index_names_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7309,7 +7305,7 @@ public void get_index_names(String db_name, String tbl_name, short max_indexes, private String db_name; private String tbl_name; private short max_indexes; - public get_index_names_call(String db_name, String tbl_name, short max_indexes, 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 { + public get_index_names_call(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7336,7 +7332,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); update_table_column_statistics_call method_call = new update_table_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7345,7 +7341,7 @@ public void update_table_column_statistics(ColumnStatistics stats_obj, org.apach public static class update_table_column_statistics_call extends org.apache.thrift.async.TAsyncMethodCall { private ColumnStatistics stats_obj; - public update_table_column_statistics_call(ColumnStatistics stats_obj, 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 { + public update_table_column_statistics_call(ColumnStatistics stats_obj, 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.stats_obj = stats_obj; } @@ -7368,7 +7364,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); update_partition_column_statistics_call method_call = new update_partition_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7377,7 +7373,7 @@ public void update_partition_column_statistics(ColumnStatistics stats_obj, org.a public static class update_partition_column_statistics_call extends org.apache.thrift.async.TAsyncMethodCall { private ColumnStatistics stats_obj; - public update_partition_column_statistics_call(ColumnStatistics stats_obj, 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 { + public update_partition_column_statistics_call(ColumnStatistics stats_obj, 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.stats_obj = stats_obj; } @@ -7400,7 +7396,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_column_statistics_call method_call = new get_table_column_statistics_call(db_name, tbl_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7411,7 +7407,7 @@ public void get_table_column_statistics(String db_name, String tbl_name, String private String db_name; private String tbl_name; private String col_name; - public get_table_column_statistics_call(String db_name, String tbl_name, String col_name, 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 { + public get_table_column_statistics_call(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7438,7 +7434,7 @@ public ColumnStatistics getResult() throws NoSuchObjectException, MetaException, } } - public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_column_statistics_call method_call = new get_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7450,7 +7446,7 @@ public void get_partition_column_statistics(String db_name, String tbl_name, Str private String tbl_name; private String part_name; private String col_name; - public get_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_name, 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 { + public get_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7479,7 +7475,7 @@ public ColumnStatistics getResult() throws NoSuchObjectException, MetaException, } } - public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_statistics_req_call method_call = new get_table_statistics_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7488,7 +7484,7 @@ public void get_table_statistics_req(TableStatsRequest request, org.apache.thrif public static class get_table_statistics_req_call extends org.apache.thrift.async.TAsyncMethodCall { private TableStatsRequest request; - public get_table_statistics_req_call(TableStatsRequest request, 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 { + public get_table_statistics_req_call(TableStatsRequest request, 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.request = request; } @@ -7511,7 +7507,7 @@ public TableStatsResult getResult() throws NoSuchObjectException, MetaException, } } - public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_statistics_req_call method_call = new get_partitions_statistics_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7520,7 +7516,7 @@ public void get_partitions_statistics_req(PartitionsStatsRequest request, org.ap public static class get_partitions_statistics_req_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsStatsRequest request; - public get_partitions_statistics_req_call(PartitionsStatsRequest request, 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 { + public get_partitions_statistics_req_call(PartitionsStatsRequest request, 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.request = request; } @@ -7543,7 +7539,7 @@ public PartitionsStatsResult getResult() throws NoSuchObjectException, MetaExcep } } - public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_aggr_stats_for_call method_call = new get_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7552,7 +7548,7 @@ public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift public static class get_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsStatsRequest request; - public get_aggr_stats_for_call(PartitionsStatsRequest request, 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 { + public get_aggr_stats_for_call(PartitionsStatsRequest request, 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.request = request; } @@ -7575,7 +7571,7 @@ public AggrStats getResult() throws NoSuchObjectException, MetaException, org.ap } } - public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_aggr_stats_for_call method_call = new set_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7584,7 +7580,7 @@ public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thr public static class set_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall { private SetPartitionsStatsRequest request; - public set_aggr_stats_for_call(SetPartitionsStatsRequest request, 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 { + public set_aggr_stats_for_call(SetPartitionsStatsRequest request, 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.request = request; } @@ -7607,7 +7603,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); delete_partition_column_statistics_call method_call = new delete_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7619,7 +7615,7 @@ public void delete_partition_column_statistics(String db_name, String tbl_name, private String tbl_name; private String part_name; private String col_name; - public delete_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_name, 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 { + public delete_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7648,7 +7644,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, InvalidO } } - public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); delete_table_column_statistics_call method_call = new delete_table_column_statistics_call(db_name, tbl_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7659,7 +7655,7 @@ public void delete_table_column_statistics(String db_name, String tbl_name, Stri private String db_name; private String tbl_name; private String col_name; - public delete_table_column_statistics_call(String db_name, String tbl_name, String col_name, 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 { + public delete_table_column_statistics_call(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -7686,7 +7682,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, InvalidO } } - public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_function_call method_call = new create_function_call(func, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7695,7 +7691,7 @@ public void create_function(Function func, org.apache.thrift.async.AsyncMethodCa public static class create_function_call extends org.apache.thrift.async.TAsyncMethodCall { private Function func; - public create_function_call(Function func, 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 { + public create_function_call(Function func, 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.func = func; } @@ -7718,7 +7714,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_function_call method_call = new drop_function_call(dbName, funcName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7728,7 +7724,7 @@ public void drop_function(String dbName, String funcName, org.apache.thrift.asyn public static class drop_function_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String funcName; - public drop_function_call(String dbName, String funcName, 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 { + public drop_function_call(String dbName, String funcName, 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.dbName = dbName; this.funcName = funcName; @@ -7753,7 +7749,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_function_call method_call = new alter_function_call(dbName, funcName, newFunc, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7764,7 +7760,7 @@ public void alter_function(String dbName, String funcName, Function newFunc, org private String dbName; private String funcName; private Function newFunc; - public alter_function_call(String dbName, String funcName, Function newFunc, 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 { + public alter_function_call(String dbName, String funcName, Function newFunc, 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.dbName = dbName; this.funcName = funcName; @@ -7791,7 +7787,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_functions_call method_call = new get_functions_call(dbName, pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7801,7 +7797,7 @@ public void get_functions(String dbName, String pattern, org.apache.thrift.async public static class get_functions_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String pattern; - public get_functions_call(String dbName, String pattern, 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 { + public get_functions_call(String dbName, String pattern, 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.dbName = dbName; this.pattern = pattern; @@ -7826,7 +7822,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_function_call method_call = new get_function_call(dbName, funcName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7836,7 +7832,7 @@ public void get_function(String dbName, String funcName, org.apache.thrift.async public static class get_function_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String funcName; - public get_function_call(String dbName, String funcName, 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 { + public get_function_call(String dbName, String funcName, 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.dbName = dbName; this.funcName = funcName; @@ -7861,7 +7857,7 @@ public Function getResult() throws MetaException, NoSuchObjectException, org.apa } } - public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_functions_call method_call = new get_all_functions_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7869,7 +7865,7 @@ public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback result } public static class get_all_functions_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_all_functions_call(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 { + public get_all_functions_call(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); } @@ -7890,7 +7886,7 @@ public GetAllFunctionsResponse getResult() throws MetaException, org.apache.thri } } - public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_role_call method_call = new create_role_call(role, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7899,7 +7895,7 @@ public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback r public static class create_role_call extends org.apache.thrift.async.TAsyncMethodCall { private Role role; - public create_role_call(Role role, 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 { + public create_role_call(Role role, 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.role = role; } @@ -7922,7 +7918,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_role_call method_call = new drop_role_call(role_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7931,7 +7927,7 @@ public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallb public static class drop_role_call extends org.apache.thrift.async.TAsyncMethodCall { private String role_name; - public drop_role_call(String role_name, 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 { + public drop_role_call(String role_name, 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.role_name = role_name; } @@ -7954,7 +7950,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_role_names_call method_call = new get_role_names_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7962,7 +7958,7 @@ public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHan } public static class get_role_names_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_role_names_call(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 { + public get_role_names_call(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); } @@ -7983,7 +7979,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_role_call method_call = new grant_role_call(role_name, principal_name, principal_type, grantor, grantorType, grant_option, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7997,7 +7993,7 @@ public void grant_role(String role_name, String principal_name, PrincipalType pr private String grantor; private PrincipalType grantorType; private boolean grant_option; - public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, 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 { + public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, 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.role_name = role_name; this.principal_name = principal_name; @@ -8030,7 +8026,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revoke_role_call method_call = new revoke_role_call(role_name, principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8041,7 +8037,7 @@ public void revoke_role(String role_name, String principal_name, PrincipalType p private String role_name; private String principal_name; private PrincipalType principal_type; - public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, 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 { + public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, 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.role_name = role_name; this.principal_name = principal_name; @@ -8068,7 +8064,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); list_roles_call method_call = new list_roles_call(principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8078,7 +8074,7 @@ public void list_roles(String principal_name, PrincipalType principal_type, org. public static class list_roles_call extends org.apache.thrift.async.TAsyncMethodCall { private String principal_name; private PrincipalType principal_type; - public list_roles_call(String principal_name, PrincipalType principal_type, 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 { + public list_roles_call(String principal_name, PrincipalType principal_type, 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.principal_name = principal_name; this.principal_type = principal_type; @@ -8103,7 +8099,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_revoke_role_call method_call = new grant_revoke_role_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8112,7 +8108,7 @@ public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift. public static class grant_revoke_role_call extends org.apache.thrift.async.TAsyncMethodCall { private GrantRevokeRoleRequest request; - public grant_revoke_role_call(GrantRevokeRoleRequest request, 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 { + public grant_revoke_role_call(GrantRevokeRoleRequest request, 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.request = request; } @@ -8135,7 +8131,7 @@ public GrantRevokeRoleResponse getResult() throws MetaException, org.apache.thri } } - public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_principals_in_role_call method_call = new get_principals_in_role_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8144,7 +8140,7 @@ public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apach public static class get_principals_in_role_call extends org.apache.thrift.async.TAsyncMethodCall { private GetPrincipalsInRoleRequest request; - public get_principals_in_role_call(GetPrincipalsInRoleRequest request, 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 { + public get_principals_in_role_call(GetPrincipalsInRoleRequest request, 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.request = request; } @@ -8167,7 +8163,7 @@ public GetPrincipalsInRoleResponse getResult() throws MetaException, org.apache. } } - public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_role_grants_for_principal_call method_call = new get_role_grants_for_principal_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8176,7 +8172,7 @@ public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest reque public static class get_role_grants_for_principal_call extends org.apache.thrift.async.TAsyncMethodCall { private GetRoleGrantsForPrincipalRequest request; - public get_role_grants_for_principal_call(GetRoleGrantsForPrincipalRequest request, 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 { + public get_role_grants_for_principal_call(GetRoleGrantsForPrincipalRequest request, 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.request = request; } @@ -8199,7 +8195,7 @@ public GetRoleGrantsForPrincipalResponse getResult() throws MetaException, org.a } } - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_privilege_set_call method_call = new get_privilege_set_call(hiveObject, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8210,7 +8206,7 @@ public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names; - public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, 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 { + public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, 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.hiveObject = hiveObject; this.user_name = user_name; @@ -8237,7 +8233,7 @@ public PrincipalPrivilegeSet getResult() throws MetaException, org.apache.thrift } } - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); list_privileges_call method_call = new list_privileges_call(principal_name, principal_type, hiveObject, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8248,7 +8244,7 @@ public void list_privileges(String principal_name, PrincipalType principal_type, private String principal_name; private PrincipalType principal_type; private HiveObjectRef hiveObject; - public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, 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 { + public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, 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.principal_name = principal_name; this.principal_type = principal_type; @@ -8275,7 +8271,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_privileges_call method_call = new grant_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8284,7 +8280,7 @@ public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.As public static class grant_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public grant_privileges_call(PrivilegeBag privileges, 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 { + public grant_privileges_call(PrivilegeBag privileges, 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.privileges = privileges; } @@ -8307,7 +8303,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revoke_privileges_call method_call = new revoke_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8316,7 +8312,7 @@ public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.A public static class revoke_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public revoke_privileges_call(PrivilegeBag privileges, 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 { + public revoke_privileges_call(PrivilegeBag privileges, 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.privileges = privileges; } @@ -8339,7 +8335,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_revoke_privileges_call method_call = new grant_revoke_privileges_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8348,7 +8344,7 @@ public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apa public static class grant_revoke_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private GrantRevokePrivilegeRequest request; - public grant_revoke_privileges_call(GrantRevokePrivilegeRequest request, 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 { + public grant_revoke_privileges_call(GrantRevokePrivilegeRequest request, 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.request = request; } @@ -8371,7 +8367,7 @@ public GrantRevokePrivilegeResponse getResult() throws MetaException, org.apache } } - public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_ugi_call method_call = new set_ugi_call(user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8381,7 +8377,7 @@ public void set_ugi(String user_name, List group_names, org.apache.thrif public static class set_ugi_call extends org.apache.thrift.async.TAsyncMethodCall { private String user_name; private List group_names; - public set_ugi_call(String user_name, List group_names, 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 { + public set_ugi_call(String user_name, List group_names, 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.user_name = user_name; this.group_names = group_names; @@ -8406,7 +8402,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_delegation_token_call method_call = new get_delegation_token_call(token_owner, renewer_kerberos_principal_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8416,7 +8412,7 @@ public void get_delegation_token(String token_owner, String renewer_kerberos_pri public static class get_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_owner; private String renewer_kerberos_principal_name; - public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_name, 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 { + public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_name, 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.token_owner = token_owner; this.renewer_kerberos_principal_name = renewer_kerberos_principal_name; @@ -8441,7 +8437,7 @@ public String getResult() throws MetaException, org.apache.thrift.TException { } } - public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); renew_delegation_token_call method_call = new renew_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8450,7 +8446,7 @@ public void renew_delegation_token(String token_str_form, org.apache.thrift.asyn public static class renew_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public renew_delegation_token_call(String token_str_form, 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 { + public renew_delegation_token_call(String token_str_form, 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.token_str_form = token_str_form; } @@ -8473,7 +8469,7 @@ public long getResult() throws MetaException, org.apache.thrift.TException { } } - public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cancel_delegation_token_call method_call = new cancel_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8482,7 +8478,7 @@ public void cancel_delegation_token(String token_str_form, org.apache.thrift.asy public static class cancel_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public cancel_delegation_token_call(String token_str_form, 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 { + public cancel_delegation_token_call(String token_str_form, 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.token_str_form = token_str_form; } @@ -8505,7 +8501,7 @@ public void getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_open_txns_call method_call = new get_open_txns_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8513,7 +8509,7 @@ public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHand } public static class get_open_txns_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_open_txns_call(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 { + public get_open_txns_call(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); } @@ -8534,7 +8530,7 @@ public GetOpenTxnsResponse getResult() throws org.apache.thrift.TException { } } - public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_open_txns_info_call method_call = new get_open_txns_info_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8542,7 +8538,7 @@ public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resul } public static class get_open_txns_info_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_open_txns_info_call(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 { + public get_open_txns_info_call(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); } @@ -8563,7 +8559,7 @@ public GetOpenTxnsInfoResponse getResult() throws org.apache.thrift.TException { } } - public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); open_txns_call method_call = new open_txns_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8572,7 +8568,7 @@ public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCa public static class open_txns_call extends org.apache.thrift.async.TAsyncMethodCall { private OpenTxnRequest rqst; - public open_txns_call(OpenTxnRequest rqst, 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 { + public open_txns_call(OpenTxnRequest rqst, 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.rqst = rqst; } @@ -8595,7 +8591,7 @@ public OpenTxnsResponse getResult() throws org.apache.thrift.TException { } } - public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); abort_txn_call method_call = new abort_txn_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8604,7 +8600,7 @@ public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodC public static class abort_txn_call extends org.apache.thrift.async.TAsyncMethodCall { private AbortTxnRequest rqst; - public abort_txn_call(AbortTxnRequest rqst, 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 { + public abort_txn_call(AbortTxnRequest rqst, 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.rqst = rqst; } @@ -8627,7 +8623,7 @@ public void getResult() throws NoSuchTxnException, org.apache.thrift.TException } } - public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); commit_txn_call method_call = new commit_txn_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8636,7 +8632,7 @@ public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMetho public static class commit_txn_call extends org.apache.thrift.async.TAsyncMethodCall { private CommitTxnRequest rqst; - public commit_txn_call(CommitTxnRequest rqst, 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 { + public commit_txn_call(CommitTxnRequest rqst, 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.rqst = rqst; } @@ -8659,7 +8655,7 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } - public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); lock_call method_call = new lock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8668,7 +8664,7 @@ public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback r public static class lock_call extends org.apache.thrift.async.TAsyncMethodCall { private LockRequest rqst; - public lock_call(LockRequest rqst, 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 { + public lock_call(LockRequest rqst, 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.rqst = rqst; } @@ -8691,7 +8687,7 @@ public LockResponse getResult() throws NoSuchTxnException, TxnAbortedException, } } - public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); check_lock_call method_call = new check_lock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8700,7 +8696,7 @@ public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMetho public static class check_lock_call extends org.apache.thrift.async.TAsyncMethodCall { private CheckLockRequest rqst; - public check_lock_call(CheckLockRequest rqst, 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 { + public check_lock_call(CheckLockRequest rqst, 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.rqst = rqst; } @@ -8723,7 +8719,7 @@ public LockResponse getResult() throws NoSuchTxnException, TxnAbortedException, } } - public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); unlock_call method_call = new unlock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8732,7 +8728,7 @@ public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallba public static class unlock_call extends org.apache.thrift.async.TAsyncMethodCall { private UnlockRequest rqst; - public unlock_call(UnlockRequest rqst, 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 { + public unlock_call(UnlockRequest rqst, 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.rqst = rqst; } @@ -8755,7 +8751,7 @@ public void getResult() throws NoSuchLockException, TxnOpenException, org.apache } } - public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); show_locks_call method_call = new show_locks_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8764,7 +8760,7 @@ public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMetho public static class show_locks_call extends org.apache.thrift.async.TAsyncMethodCall { private ShowLocksRequest rqst; - public show_locks_call(ShowLocksRequest rqst, 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 { + public show_locks_call(ShowLocksRequest rqst, 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.rqst = rqst; } @@ -8787,7 +8783,7 @@ public ShowLocksResponse getResult() throws org.apache.thrift.TException { } } - public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); heartbeat_call method_call = new heartbeat_call(ids, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8796,7 +8792,7 @@ public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodC public static class heartbeat_call extends org.apache.thrift.async.TAsyncMethodCall { private HeartbeatRequest ids; - public heartbeat_call(HeartbeatRequest ids, 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 { + public heartbeat_call(HeartbeatRequest ids, 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.ids = ids; } @@ -8819,7 +8815,7 @@ public void getResult() throws NoSuchLockException, NoSuchTxnException, TxnAbort } } - public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); heartbeat_txn_range_call method_call = new heartbeat_txn_range_call(txns, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8828,7 +8824,7 @@ public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift public static class heartbeat_txn_range_call extends org.apache.thrift.async.TAsyncMethodCall { private HeartbeatTxnRangeRequest txns; - public heartbeat_txn_range_call(HeartbeatTxnRangeRequest txns, 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 { + public heartbeat_txn_range_call(HeartbeatTxnRangeRequest txns, 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.txns = txns; } @@ -8851,7 +8847,7 @@ public HeartbeatTxnRangeResponse getResult() throws org.apache.thrift.TException } } - public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); compact_call method_call = new compact_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8860,7 +8856,7 @@ public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodC public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall { private CompactionRequest rqst; - public compact_call(CompactionRequest rqst, 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 { + public compact_call(CompactionRequest rqst, 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.rqst = rqst; } @@ -8883,7 +8879,7 @@ public void getResult() throws org.apache.thrift.TException { } } - public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); show_compact_call method_call = new show_compact_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8892,7 +8888,7 @@ public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncM public static class show_compact_call extends org.apache.thrift.async.TAsyncMethodCall { private ShowCompactRequest rqst; - public show_compact_call(ShowCompactRequest rqst, 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 { + public show_compact_call(ShowCompactRequest rqst, 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.rqst = rqst; } @@ -8915,7 +8911,7 @@ public ShowCompactResponse getResult() throws org.apache.thrift.TException { } } - public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_dynamic_partitions_call method_call = new add_dynamic_partitions_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8924,7 +8920,7 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift. public static class add_dynamic_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private AddDynamicPartitions rqst; - public add_dynamic_partitions_call(AddDynamicPartitions rqst, 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 { + public add_dynamic_partitions_call(AddDynamicPartitions rqst, 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.rqst = rqst; } @@ -8947,7 +8943,7 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } - public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_next_notification_call method_call = new get_next_notification_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8956,7 +8952,7 @@ public void get_next_notification(NotificationEventRequest rqst, org.apache.thri public static class get_next_notification_call extends org.apache.thrift.async.TAsyncMethodCall { private NotificationEventRequest rqst; - public get_next_notification_call(NotificationEventRequest rqst, 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 { + public get_next_notification_call(NotificationEventRequest rqst, 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.rqst = rqst; } @@ -8979,7 +8975,7 @@ public NotificationEventResponse getResult() throws org.apache.thrift.TException } } - public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_current_notificationEventId_call method_call = new get_current_notificationEventId_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8987,7 +8983,7 @@ public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodC } public static class get_current_notificationEventId_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_current_notificationEventId_call(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 { + public get_current_notificationEventId_call(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); } @@ -9008,7 +9004,7 @@ public CurrentNotificationEventId getResult() throws org.apache.thrift.TExceptio } } - public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fire_listener_event_call method_call = new fire_listener_event_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9017,7 +9013,7 @@ public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.A public static class fire_listener_event_call extends org.apache.thrift.async.TAsyncMethodCall { private FireEventRequest rqst; - public fire_listener_event_call(FireEventRequest rqst, 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 { + public fire_listener_event_call(FireEventRequest rqst, 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.rqst = rqst; } @@ -9040,7 +9036,7 @@ public FireEventResponse getResult() throws org.apache.thrift.TException { } } - public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); flushCache_call method_call = new flushCache_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9048,7 +9044,7 @@ public void flushCache(org.apache.thrift.async.AsyncMethodCallback resultHandler } public static class flushCache_call extends org.apache.thrift.async.TAsyncMethodCall { - public flushCache_call(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 { + public flushCache_call(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); } @@ -9069,7 +9065,7 @@ public void getResult() throws org.apache.thrift.TException { } } - public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_file_metadata_by_expr_call method_call = new get_file_metadata_by_expr_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9078,7 +9074,7 @@ public void get_file_metadata_by_expr(GetFileMetadataByExprRequest req, org.apac public static class get_file_metadata_by_expr_call extends org.apache.thrift.async.TAsyncMethodCall { private GetFileMetadataByExprRequest req; - public get_file_metadata_by_expr_call(GetFileMetadataByExprRequest req, 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 { + public get_file_metadata_by_expr_call(GetFileMetadataByExprRequest req, 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.req = req; } @@ -9101,7 +9097,7 @@ public GetFileMetadataByExprResult getResult() throws org.apache.thrift.TExcepti } } - public void get_file_metadata(GetFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_file_metadata(GetFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_file_metadata_call method_call = new get_file_metadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9110,7 +9106,7 @@ public void get_file_metadata(GetFileMetadataRequest req, org.apache.thrift.asyn public static class get_file_metadata_call extends org.apache.thrift.async.TAsyncMethodCall { private GetFileMetadataRequest req; - public get_file_metadata_call(GetFileMetadataRequest req, 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 { + public get_file_metadata_call(GetFileMetadataRequest req, 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.req = req; } @@ -9133,7 +9129,7 @@ public GetFileMetadataResult getResult() throws org.apache.thrift.TException { } } - public void put_file_metadata(PutFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void put_file_metadata(PutFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); put_file_metadata_call method_call = new put_file_metadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9142,7 +9138,7 @@ public void put_file_metadata(PutFileMetadataRequest req, org.apache.thrift.asyn public static class put_file_metadata_call extends org.apache.thrift.async.TAsyncMethodCall { private PutFileMetadataRequest req; - public put_file_metadata_call(PutFileMetadataRequest req, 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 { + public put_file_metadata_call(PutFileMetadataRequest req, 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.req = req; } @@ -9165,7 +9161,7 @@ public PutFileMetadataResult getResult() throws org.apache.thrift.TException { } } - public void clear_file_metadata(ClearFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void clear_file_metadata(ClearFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clear_file_metadata_call method_call = new clear_file_metadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9174,7 +9170,7 @@ public void clear_file_metadata(ClearFileMetadataRequest req, org.apache.thrift. public static class clear_file_metadata_call extends org.apache.thrift.async.TAsyncMethodCall { private ClearFileMetadataRequest req; - public clear_file_metadata_call(ClearFileMetadataRequest req, 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 { + public clear_file_metadata_call(ClearFileMetadataRequest req, 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.req = req; } @@ -9197,7 +9193,7 @@ public ClearFileMetadataResult getResult() throws org.apache.thrift.TException { } } - public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cache_file_metadata_call method_call = new cache_file_metadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -9206,7 +9202,7 @@ public void cache_file_metadata(CacheFileMetadataRequest req, org.apache.thrift. public static class cache_file_metadata_call extends org.apache.thrift.async.TAsyncMethodCall { private CacheFileMetadataRequest req; - public cache_file_metadata_call(CacheFileMetadataRequest req, 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 { + public cache_file_metadata_call(CacheFileMetadataRequest req, 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.req = req; } @@ -12802,8312 +12798,7 @@ public cache_file_metadata_result getResult(I iface, cache_file_metadata_args ar } - public static class AsyncProcessor extends com.facebook.fb303.FacebookService.AsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("getMetaConf", new getMetaConf()); - processMap.put("setMetaConf", new setMetaConf()); - processMap.put("create_database", new create_database()); - processMap.put("get_database", new get_database()); - processMap.put("drop_database", new drop_database()); - processMap.put("get_databases", new get_databases()); - processMap.put("get_all_databases", new get_all_databases()); - processMap.put("alter_database", new alter_database()); - processMap.put("get_type", new get_type()); - processMap.put("create_type", new create_type()); - processMap.put("drop_type", new drop_type()); - processMap.put("get_type_all", new get_type_all()); - processMap.put("get_fields", new get_fields()); - processMap.put("get_fields_with_environment_context", new get_fields_with_environment_context()); - processMap.put("get_schema", new get_schema()); - processMap.put("get_schema_with_environment_context", new get_schema_with_environment_context()); - processMap.put("create_table", new create_table()); - processMap.put("create_table_with_environment_context", new create_table_with_environment_context()); - processMap.put("drop_table", new drop_table()); - processMap.put("drop_table_with_environment_context", new drop_table_with_environment_context()); - processMap.put("get_tables", new get_tables()); - processMap.put("get_table_meta", new get_table_meta()); - processMap.put("get_all_tables", new get_all_tables()); - processMap.put("get_table", new get_table()); - processMap.put("get_table_objects_by_name", new get_table_objects_by_name()); - processMap.put("get_table_names_by_filter", new get_table_names_by_filter()); - processMap.put("alter_table", new alter_table()); - processMap.put("alter_table_with_environment_context", new alter_table_with_environment_context()); - processMap.put("alter_table_with_cascade", new alter_table_with_cascade()); - processMap.put("add_partition", new add_partition()); - processMap.put("add_partition_with_environment_context", new add_partition_with_environment_context()); - processMap.put("add_partitions", new add_partitions()); - processMap.put("add_partitions_pspec", new add_partitions_pspec()); - processMap.put("append_partition", new append_partition()); - processMap.put("add_partitions_req", new add_partitions_req()); - processMap.put("append_partition_with_environment_context", new append_partition_with_environment_context()); - processMap.put("append_partition_by_name", new append_partition_by_name()); - processMap.put("append_partition_by_name_with_environment_context", new append_partition_by_name_with_environment_context()); - processMap.put("drop_partition", new drop_partition()); - processMap.put("drop_partition_with_environment_context", new drop_partition_with_environment_context()); - processMap.put("drop_partition_by_name", new drop_partition_by_name()); - processMap.put("drop_partition_by_name_with_environment_context", new drop_partition_by_name_with_environment_context()); - processMap.put("drop_partitions_req", new drop_partitions_req()); - processMap.put("get_partition", new get_partition()); - processMap.put("exchange_partition", new exchange_partition()); - processMap.put("exchange_partitions", new exchange_partitions()); - processMap.put("get_partition_with_auth", new get_partition_with_auth()); - processMap.put("get_partition_by_name", new get_partition_by_name()); - processMap.put("get_partitions", new get_partitions()); - processMap.put("get_partitions_with_auth", new get_partitions_with_auth()); - processMap.put("get_partitions_pspec", new get_partitions_pspec()); - processMap.put("get_partition_names", new get_partition_names()); - processMap.put("get_partitions_ps", new get_partitions_ps()); - processMap.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth()); - processMap.put("get_partition_names_ps", new get_partition_names_ps()); - processMap.put("get_partitions_by_filter", new get_partitions_by_filter()); - processMap.put("get_part_specs_by_filter", new get_part_specs_by_filter()); - processMap.put("get_partitions_by_expr", new get_partitions_by_expr()); - processMap.put("get_num_partitions_by_filter", new get_num_partitions_by_filter()); - processMap.put("get_partitions_by_names", new get_partitions_by_names()); - processMap.put("alter_partition", new alter_partition()); - processMap.put("alter_partitions", new alter_partitions()); - processMap.put("alter_partition_with_environment_context", new alter_partition_with_environment_context()); - processMap.put("rename_partition", new rename_partition()); - processMap.put("partition_name_has_valid_characters", new partition_name_has_valid_characters()); - processMap.put("get_config_value", new get_config_value()); - processMap.put("partition_name_to_vals", new partition_name_to_vals()); - processMap.put("partition_name_to_spec", new partition_name_to_spec()); - processMap.put("markPartitionForEvent", new markPartitionForEvent()); - processMap.put("isPartitionMarkedForEvent", new isPartitionMarkedForEvent()); - processMap.put("add_index", new add_index()); - processMap.put("alter_index", new alter_index()); - processMap.put("drop_index_by_name", new drop_index_by_name()); - processMap.put("get_index_by_name", new get_index_by_name()); - processMap.put("get_indexes", new get_indexes()); - processMap.put("get_index_names", new get_index_names()); - processMap.put("update_table_column_statistics", new update_table_column_statistics()); - processMap.put("update_partition_column_statistics", new update_partition_column_statistics()); - processMap.put("get_table_column_statistics", new get_table_column_statistics()); - processMap.put("get_partition_column_statistics", new get_partition_column_statistics()); - processMap.put("get_table_statistics_req", new get_table_statistics_req()); - processMap.put("get_partitions_statistics_req", new get_partitions_statistics_req()); - processMap.put("get_aggr_stats_for", new get_aggr_stats_for()); - processMap.put("set_aggr_stats_for", new set_aggr_stats_for()); - processMap.put("delete_partition_column_statistics", new delete_partition_column_statistics()); - processMap.put("delete_table_column_statistics", new delete_table_column_statistics()); - processMap.put("create_function", new create_function()); - processMap.put("drop_function", new drop_function()); - processMap.put("alter_function", new alter_function()); - processMap.put("get_functions", new get_functions()); - processMap.put("get_function", new get_function()); - processMap.put("get_all_functions", new get_all_functions()); - processMap.put("create_role", new create_role()); - processMap.put("drop_role", new drop_role()); - processMap.put("get_role_names", new get_role_names()); - processMap.put("grant_role", new grant_role()); - processMap.put("revoke_role", new revoke_role()); - processMap.put("list_roles", new list_roles()); - processMap.put("grant_revoke_role", new grant_revoke_role()); - processMap.put("get_principals_in_role", new get_principals_in_role()); - processMap.put("get_role_grants_for_principal", new get_role_grants_for_principal()); - processMap.put("get_privilege_set", new get_privilege_set()); - processMap.put("list_privileges", new list_privileges()); - processMap.put("grant_privileges", new grant_privileges()); - processMap.put("revoke_privileges", new revoke_privileges()); - processMap.put("grant_revoke_privileges", new grant_revoke_privileges()); - processMap.put("set_ugi", new set_ugi()); - processMap.put("get_delegation_token", new get_delegation_token()); - processMap.put("renew_delegation_token", new renew_delegation_token()); - processMap.put("cancel_delegation_token", new cancel_delegation_token()); - processMap.put("get_open_txns", new get_open_txns()); - processMap.put("get_open_txns_info", new get_open_txns_info()); - processMap.put("open_txns", new open_txns()); - processMap.put("abort_txn", new abort_txn()); - processMap.put("commit_txn", new commit_txn()); - processMap.put("lock", new lock()); - processMap.put("check_lock", new check_lock()); - processMap.put("unlock", new unlock()); - processMap.put("show_locks", new show_locks()); - processMap.put("heartbeat", new heartbeat()); - processMap.put("heartbeat_txn_range", new heartbeat_txn_range()); - processMap.put("compact", new compact()); - processMap.put("show_compact", new show_compact()); - processMap.put("add_dynamic_partitions", new add_dynamic_partitions()); - processMap.put("get_next_notification", new get_next_notification()); - processMap.put("get_current_notificationEventId", new get_current_notificationEventId()); - processMap.put("fire_listener_event", new fire_listener_event()); - processMap.put("flushCache", new flushCache()); - processMap.put("get_file_metadata_by_expr", new get_file_metadata_by_expr()); - processMap.put("get_file_metadata", new get_file_metadata()); - processMap.put("put_file_metadata", new put_file_metadata()); - processMap.put("clear_file_metadata", new clear_file_metadata()); - processMap.put("cache_file_metadata", new cache_file_metadata()); - return processMap; - } - - public static class getMetaConf extends org.apache.thrift.AsyncProcessFunction { - public getMetaConf() { - super("getMetaConf"); - } - - public getMetaConf_args getEmptyArgsInstance() { - return new getMetaConf_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - getMetaConf_result result = new getMetaConf_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getMetaConf_result result = new getMetaConf_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getMetaConf_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getMetaConf(args.key,resultHandler); - } - } - - public static class setMetaConf extends org.apache.thrift.AsyncProcessFunction { - public setMetaConf() { - super("setMetaConf"); - } - - public setMetaConf_args getEmptyArgsInstance() { - return new setMetaConf_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - setMetaConf_result result = new setMetaConf_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - setMetaConf_result result = new setMetaConf_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, setMetaConf_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setMetaConf(args.key, args.value,resultHandler); - } - } - - public static class create_database extends org.apache.thrift.AsyncProcessFunction { - public create_database() { - super("create_database"); - } - - public create_database_args getEmptyArgsInstance() { - return new create_database_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_database_result result = new create_database_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_database_result result = new create_database_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_database(args.database,resultHandler); - } - } - - public static class get_database extends org.apache.thrift.AsyncProcessFunction { - public get_database() { - super("get_database"); - } - - public get_database_args getEmptyArgsInstance() { - return new get_database_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Database o) { - get_database_result result = new get_database_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_database_result result = new get_database_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_database(args.name,resultHandler); - } - } - - public static class drop_database extends org.apache.thrift.AsyncProcessFunction { - public drop_database() { - super("drop_database"); - } - - public drop_database_args getEmptyArgsInstance() { - return new drop_database_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_database_result result = new drop_database_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_database_result result = new drop_database_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_database(args.name, args.deleteData, args.cascade,resultHandler); - } - } - - public static class get_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_databases() { - super("get_databases"); - } - - public get_databases_args getEmptyArgsInstance() { - return new get_databases_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_databases_result result = new get_databases_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_databases_result result = new get_databases_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_databases(args.pattern,resultHandler); - } - } - - public static class get_all_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_all_databases() { - super("get_all_databases"); - } - - public get_all_databases_args getEmptyArgsInstance() { - return new get_all_databases_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_all_databases_result result = new get_all_databases_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_databases_result result = new get_all_databases_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_all_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_databases(resultHandler); - } - } - - public static class alter_database extends org.apache.thrift.AsyncProcessFunction { - public alter_database() { - super("alter_database"); - } - - public alter_database_args getEmptyArgsInstance() { - return new alter_database_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_database_result result = new alter_database_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_database_result result = new alter_database_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_database(args.dbname, args.db,resultHandler); - } - } - - public static class get_type extends org.apache.thrift.AsyncProcessFunction { - public get_type() { - super("get_type"); - } - - public get_type_args getEmptyArgsInstance() { - return new get_type_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Type o) { - get_type_result result = new get_type_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_type_result result = new get_type_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_type(args.name,resultHandler); - } - } - - public static class create_type extends org.apache.thrift.AsyncProcessFunction { - public create_type() { - super("create_type"); - } - - public create_type_args getEmptyArgsInstance() { - return new create_type_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - create_type_result result = new create_type_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_type_result result = new create_type_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_type(args.type,resultHandler); - } - } - - public static class drop_type extends org.apache.thrift.AsyncProcessFunction { - public drop_type() { - super("drop_type"); - } - - public drop_type_args getEmptyArgsInstance() { - return new drop_type_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_type_result result = new drop_type_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_type_result result = new drop_type_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_type(args.type,resultHandler); - } - } - - public static class get_type_all extends org.apache.thrift.AsyncProcessFunction> { - public get_type_all() { - super("get_type_all"); - } - - public get_type_all_args getEmptyArgsInstance() { - return new get_type_all_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - get_type_all_result result = new get_type_all_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_type_all_result result = new get_type_all_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_type_all_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_type_all(args.name,resultHandler); - } - } - - public static class get_fields extends org.apache.thrift.AsyncProcessFunction> { - public get_fields() { - super("get_fields"); - } - - public get_fields_args getEmptyArgsInstance() { - return new get_fields_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_fields_result result = new get_fields_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_fields_result result = new get_fields_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_fields_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_fields(args.db_name, args.table_name,resultHandler); - } - } - - public static class get_fields_with_environment_context extends org.apache.thrift.AsyncProcessFunction> { - public get_fields_with_environment_context() { - super("get_fields_with_environment_context"); - } - - public get_fields_with_environment_context_args getEmptyArgsInstance() { - return new get_fields_with_environment_context_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_fields_with_environment_context_result result = new get_fields_with_environment_context_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_fields_with_environment_context_result result = new get_fields_with_environment_context_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_fields_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context,resultHandler); - } - } - - public static class get_schema extends org.apache.thrift.AsyncProcessFunction> { - public get_schema() { - super("get_schema"); - } - - public get_schema_args getEmptyArgsInstance() { - return new get_schema_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_schema_result result = new get_schema_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_schema_result result = new get_schema_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_schema_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_schema(args.db_name, args.table_name,resultHandler); - } - } - - public static class get_schema_with_environment_context extends org.apache.thrift.AsyncProcessFunction> { - public get_schema_with_environment_context() { - super("get_schema_with_environment_context"); - } - - public get_schema_with_environment_context_args getEmptyArgsInstance() { - return new get_schema_with_environment_context_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_schema_with_environment_context_result result = new get_schema_with_environment_context_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_schema_with_environment_context_result result = new get_schema_with_environment_context_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_schema_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context,resultHandler); - } - } - - public static class create_table extends org.apache.thrift.AsyncProcessFunction { - public create_table() { - super("create_table"); - } - - public create_table_args getEmptyArgsInstance() { - return new create_table_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_table_result result = new create_table_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_table_result result = new create_table_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_table(args.tbl,resultHandler); - } - } - - public static class create_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public create_table_with_environment_context() { - super("create_table_with_environment_context"); - } - - public create_table_with_environment_context_args getEmptyArgsInstance() { - return new create_table_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_table_with_environment_context_result result = new create_table_with_environment_context_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_table_with_environment_context_result result = new create_table_with_environment_context_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_table_with_environment_context(args.tbl, args.environment_context,resultHandler); - } - } - - public static class drop_table extends org.apache.thrift.AsyncProcessFunction { - public drop_table() { - super("drop_table"); - } - - public drop_table_args getEmptyArgsInstance() { - return new drop_table_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_table_result result = new drop_table_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_table_result result = new drop_table_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table(args.dbname, args.name, args.deleteData,resultHandler); - } - } - - public static class drop_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_table_with_environment_context() { - super("drop_table_with_environment_context"); - } - - public drop_table_with_environment_context_args getEmptyArgsInstance() { - return new drop_table_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context,resultHandler); - } - } - - public static class get_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_tables() { - super("get_tables"); - } - - public get_tables_args getEmptyArgsInstance() { - return new get_tables_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_tables_result result = new get_tables_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_tables_result result = new get_tables_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_tables(args.db_name, args.pattern,resultHandler); - } - } - - public static class get_table_meta extends org.apache.thrift.AsyncProcessFunction> { - public get_table_meta() { - super("get_table_meta"); - } - - public get_table_meta_args getEmptyArgsInstance() { - return new get_table_meta_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_table_meta_result result = new get_table_meta_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_meta_result result = new get_table_meta_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_meta_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types,resultHandler); - } - } - - public static class get_all_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_all_tables() { - super("get_all_tables"); - } - - public get_all_tables_args getEmptyArgsInstance() { - return new get_all_tables_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_all_tables_result result = new get_all_tables_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_tables_result result = new get_all_tables_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_all_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_tables(args.db_name,resultHandler); - } - } - - public static class get_table extends org.apache.thrift.AsyncProcessFunction { - public get_table() { - super("get_table"); - } - - public get_table_args getEmptyArgsInstance() { - return new get_table_args(); - } - - public AsyncMethodCallback
getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback
() { - public void onComplete(Table o) { - get_table_result result = new get_table_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_result result = new get_table_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_args args, org.apache.thrift.async.AsyncMethodCallback
resultHandler) throws TException { - iface.get_table(args.dbname, args.tbl_name,resultHandler); - } - } - - public static class get_table_objects_by_name extends org.apache.thrift.AsyncProcessFunction> { - public get_table_objects_by_name() { - super("get_table_objects_by_name"); - } - - public get_table_objects_by_name_args getEmptyArgsInstance() { - return new get_table_objects_by_name_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List
o) { - get_table_objects_by_name_result result = new get_table_objects_by_name_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_objects_by_name_result result = new get_table_objects_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_objects_by_name_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_objects_by_name(args.dbname, args.tbl_names,resultHandler); - } - } - - public static class get_table_names_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_table_names_by_filter() { - super("get_table_names_by_filter"); - } - - public get_table_names_by_filter_args getEmptyArgsInstance() { - return new get_table_names_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_table_names_by_filter_result result = new get_table_names_by_filter_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_names_by_filter_result result = new get_table_names_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_names_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_names_by_filter(args.dbname, args.filter, args.max_tables,resultHandler); - } - } - - public static class alter_table extends org.apache.thrift.AsyncProcessFunction { - public alter_table() { - super("alter_table"); - } - - public alter_table_args getEmptyArgsInstance() { - return new alter_table_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_result result = new alter_table_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_table_result result = new alter_table_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table(args.dbname, args.tbl_name, args.new_tbl,resultHandler); - } - } - - public static class alter_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public alter_table_with_environment_context() { - super("alter_table_with_environment_context"); - } - - public alter_table_with_environment_context_args getEmptyArgsInstance() { - return new alter_table_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_with_environment_context_result result = new alter_table_with_environment_context_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_table_with_environment_context_result result = new alter_table_with_environment_context_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context,resultHandler); - } - } - - public static class alter_table_with_cascade extends org.apache.thrift.AsyncProcessFunction { - public alter_table_with_cascade() { - super("alter_table_with_cascade"); - } - - public alter_table_with_cascade_args getEmptyArgsInstance() { - return new alter_table_with_cascade_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_with_cascade_result result = new alter_table_with_cascade_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_table_with_cascade_result result = new alter_table_with_cascade_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_with_cascade_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade,resultHandler); - } - } - - public static class add_partition extends org.apache.thrift.AsyncProcessFunction { - public add_partition() { - super("add_partition"); - } - - public add_partition_args getEmptyArgsInstance() { - return new add_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - add_partition_result result = new add_partition_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_partition_result result = new add_partition_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partition(args.new_part,resultHandler); - } - } - - public static class add_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public add_partition_with_environment_context() { - super("add_partition_with_environment_context"); - } - - public add_partition_with_environment_context_args getEmptyArgsInstance() { - return new add_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - add_partition_with_environment_context_result result = new add_partition_with_environment_context_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_partition_with_environment_context_result result = new add_partition_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partition_with_environment_context(args.new_part, args.environment_context,resultHandler); - } - } - - public static class add_partitions extends org.apache.thrift.AsyncProcessFunction { - public add_partitions() { - super("add_partitions"); - } - - public add_partitions_args getEmptyArgsInstance() { - return new add_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - add_partitions_result result = new add_partitions_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_partitions_result result = new add_partitions_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions(args.new_parts,resultHandler); - } - } - - public static class add_partitions_pspec extends org.apache.thrift.AsyncProcessFunction { - public add_partitions_pspec() { - super("add_partitions_pspec"); - } - - public add_partitions_pspec_args getEmptyArgsInstance() { - return new add_partitions_pspec_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - add_partitions_pspec_result result = new add_partitions_pspec_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_partitions_pspec_result result = new add_partitions_pspec_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions_pspec(args.new_parts,resultHandler); - } - } - - public static class append_partition extends org.apache.thrift.AsyncProcessFunction { - public append_partition() { - super("append_partition"); - } - - public append_partition_args getEmptyArgsInstance() { - return new append_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_result result = new append_partition_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - append_partition_result result = new append_partition_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, append_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition(args.db_name, args.tbl_name, args.part_vals,resultHandler); - } - } - - public static class add_partitions_req extends org.apache.thrift.AsyncProcessFunction { - public add_partitions_req() { - super("add_partitions_req"); - } - - public add_partitions_req_args getEmptyArgsInstance() { - return new add_partitions_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(AddPartitionsResult o) { - add_partitions_req_result result = new add_partitions_req_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_partitions_req_result result = new add_partitions_req_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_partitions_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions_req(args.request,resultHandler); - } - } - - public static class append_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public append_partition_with_environment_context() { - super("append_partition_with_environment_context"); - } - - public append_partition_with_environment_context_args getEmptyArgsInstance() { - return new append_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_with_environment_context_result result = new append_partition_with_environment_context_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - append_partition_with_environment_context_result result = new append_partition_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, append_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context,resultHandler); - } - } - - public static class append_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public append_partition_by_name() { - super("append_partition_by_name"); - } - - public append_partition_by_name_args getEmptyArgsInstance() { - return new append_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_by_name_result result = new append_partition_by_name_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - append_partition_by_name_result result = new append_partition_by_name_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, append_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); - } - } - - public static class append_partition_by_name_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public append_partition_by_name_with_environment_context() { - super("append_partition_by_name_with_environment_context"); - } - - public append_partition_by_name_with_environment_context_args getEmptyArgsInstance() { - return new append_partition_by_name_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_by_name_with_environment_context_result result = new append_partition_by_name_with_environment_context_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - append_partition_by_name_with_environment_context_result result = new append_partition_by_name_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, append_partition_by_name_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context,resultHandler); - } - } - - public static class drop_partition extends org.apache.thrift.AsyncProcessFunction { - public drop_partition() { - super("drop_partition"); - } - - public drop_partition_args getEmptyArgsInstance() { - return new drop_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_result result = new drop_partition_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_partition_result result = new drop_partition_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData,resultHandler); - } - } - - public static class drop_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_with_environment_context() { - super("drop_partition_with_environment_context"); - } - - public drop_partition_with_environment_context_args getEmptyArgsInstance() { - return new drop_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context,resultHandler); - } - } - - public static class drop_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_by_name() { - super("drop_partition_by_name"); - } - - public drop_partition_by_name_args getEmptyArgsInstance() { - return new drop_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_by_name_result result = new drop_partition_by_name_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_partition_by_name_result result = new drop_partition_by_name_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData,resultHandler); - } - } - - public static class drop_partition_by_name_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_by_name_with_environment_context() { - super("drop_partition_by_name_with_environment_context"); - } - - public drop_partition_by_name_with_environment_context_args getEmptyArgsInstance() { - return new drop_partition_by_name_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_by_name_with_environment_context_result result = new drop_partition_by_name_with_environment_context_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_partition_by_name_with_environment_context_result result = new drop_partition_by_name_with_environment_context_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_partition_by_name_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context,resultHandler); - } - } - - public static class drop_partitions_req extends org.apache.thrift.AsyncProcessFunction { - public drop_partitions_req() { - super("drop_partitions_req"); - } - - public drop_partitions_req_args getEmptyArgsInstance() { - return new drop_partitions_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(DropPartitionsResult o) { - drop_partitions_req_result result = new drop_partitions_req_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_partitions_req_result result = new drop_partitions_req_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_partitions_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partitions_req(args.req,resultHandler); - } - } - - public static class get_partition extends org.apache.thrift.AsyncProcessFunction { - public get_partition() { - super("get_partition"); - } - - public get_partition_args getEmptyArgsInstance() { - return new get_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_result result = new get_partition_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_result result = new get_partition_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition(args.db_name, args.tbl_name, args.part_vals,resultHandler); - } - } - - public static class exchange_partition extends org.apache.thrift.AsyncProcessFunction { - public exchange_partition() { - super("exchange_partition"); - } - - public exchange_partition_args getEmptyArgsInstance() { - return new exchange_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - exchange_partition_result result = new exchange_partition_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - exchange_partition_result result = new exchange_partition_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, exchange_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); - } - } - - public static class exchange_partitions extends org.apache.thrift.AsyncProcessFunction> { - public exchange_partitions() { - super("exchange_partitions"); - } - - public exchange_partitions_args getEmptyArgsInstance() { - return new exchange_partitions_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - exchange_partitions_result result = new exchange_partitions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - exchange_partitions_result result = new exchange_partitions_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, exchange_partitions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.exchange_partitions(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); - } - } - - public static class get_partition_with_auth extends org.apache.thrift.AsyncProcessFunction { - public get_partition_with_auth() { - super("get_partition_with_auth"); - } - - public get_partition_with_auth_args getEmptyArgsInstance() { - return new get_partition_with_auth_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_with_auth_result result = new get_partition_with_auth_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_with_auth_result result = new get_partition_with_auth_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public get_partition_by_name() { - super("get_partition_by_name"); - } - - public get_partition_by_name_args getEmptyArgsInstance() { - return new get_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_by_name_result result = new get_partition_by_name_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_by_name_result result = new get_partition_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); - } - } - - public static class get_partitions extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions() { - super("get_partitions"); - } - - public get_partitions_args getEmptyArgsInstance() { - return new get_partitions_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_result result = new get_partitions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_result result = new get_partitions_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partitions_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_with_auth() { - super("get_partitions_with_auth"); - } - - public get_partitions_with_auth_args getEmptyArgsInstance() { - return new get_partitions_with_auth_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_with_auth_result result = new get_partitions_with_auth_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_with_auth_result result = new get_partitions_with_auth_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partitions_pspec extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_pspec() { - super("get_partitions_pspec"); - } - - public get_partitions_pspec_args getEmptyArgsInstance() { - return new get_partitions_pspec_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_pspec_result result = new get_partitions_pspec_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_pspec_result result = new get_partitions_pspec_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partition_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names() { - super("get_partition_names"); - } - - public get_partition_names_args getEmptyArgsInstance() { - return new get_partition_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_result result = new get_partition_names_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_names_result result = new get_partition_names_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partitions_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps() { - super("get_partitions_ps"); - } - - public get_partitions_ps_args getEmptyArgsInstance() { - return new get_partitions_ps_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_ps_result result = new get_partitions_ps_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_ps_result result = new get_partitions_ps_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); - } - } - - public static class get_partitions_ps_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps_with_auth() { - super("get_partitions_ps_with_auth"); - } - - public get_partitions_ps_with_auth_args getEmptyArgsInstance() { - return new get_partitions_ps_with_auth_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_ps_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names_ps() { - super("get_partition_names_ps"); - } - - public get_partition_names_ps_args getEmptyArgsInstance() { - return new get_partition_names_ps_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_ps_result result = new get_partition_names_ps_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_names_ps_result result = new get_partition_names_ps_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); - } - } - - public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_filter() { - super("get_partitions_by_filter"); - } - - public get_partitions_by_filter_args getEmptyArgsInstance() { - return new get_partitions_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); - } - } - - public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_part_specs_by_filter() { - super("get_part_specs_by_filter"); - } - - public get_part_specs_by_filter_args getEmptyArgsInstance() { - return new get_part_specs_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); - } - } - - public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_by_expr() { - super("get_partitions_by_expr"); - } - - public get_partitions_by_expr_args getEmptyArgsInstance() { - return new get_partitions_by_expr_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsByExprResult o) { - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_by_expr(args.req,resultHandler); - } - } - - public static class get_num_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction { - public get_num_partitions_by_filter() { - super("get_num_partitions_by_filter"); - } - - public get_num_partitions_by_filter_args getEmptyArgsInstance() { - return new get_num_partitions_by_filter_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_num_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter,resultHandler); - } - } - - public static class get_partitions_by_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_names() { - super("get_partitions_by_names"); - } - - public get_partitions_by_names_args getEmptyArgsInstance() { - return new get_partitions_by_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_names_result result = new get_partitions_by_names_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_by_names_result result = new get_partitions_by_names_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_names(args.db_name, args.tbl_name, args.names,resultHandler); - } - } - - public static class alter_partition extends org.apache.thrift.AsyncProcessFunction { - public alter_partition() { - super("alter_partition"); - } - - public alter_partition_args getEmptyArgsInstance() { - return new alter_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partition_result result = new alter_partition_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_partition_result result = new alter_partition_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partition(args.db_name, args.tbl_name, args.new_part,resultHandler); - } - } - - public static class alter_partitions extends org.apache.thrift.AsyncProcessFunction { - public alter_partitions() { - super("alter_partitions"); - } - - public alter_partitions_args getEmptyArgsInstance() { - return new alter_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partitions_result result = new alter_partitions_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_partitions_result result = new alter_partitions_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partitions(args.db_name, args.tbl_name, args.new_parts,resultHandler); - } - } - - public static class alter_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public alter_partition_with_environment_context() { - super("alter_partition_with_environment_context"); - } - - public alter_partition_with_environment_context_args getEmptyArgsInstance() { - return new alter_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partition_with_environment_context_result result = new alter_partition_with_environment_context_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_partition_with_environment_context_result result = new alter_partition_with_environment_context_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context,resultHandler); - } - } - - public static class rename_partition extends org.apache.thrift.AsyncProcessFunction { - public rename_partition() { - super("rename_partition"); - } - - public rename_partition_args getEmptyArgsInstance() { - return new rename_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - rename_partition_result result = new rename_partition_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - rename_partition_result result = new rename_partition_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, rename_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part,resultHandler); - } - } - - public static class partition_name_has_valid_characters extends org.apache.thrift.AsyncProcessFunction { - public partition_name_has_valid_characters() { - super("partition_name_has_valid_characters"); - } - - public partition_name_has_valid_characters_args getEmptyArgsInstance() { - return new partition_name_has_valid_characters_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - partition_name_has_valid_characters_result result = new partition_name_has_valid_characters_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - partition_name_has_valid_characters_result result = new partition_name_has_valid_characters_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_has_valid_characters_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.partition_name_has_valid_characters(args.part_vals, args.throw_exception,resultHandler); - } - } - - public static class get_config_value extends org.apache.thrift.AsyncProcessFunction { - public get_config_value() { - super("get_config_value"); - } - - public get_config_value_args getEmptyArgsInstance() { - return new get_config_value_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - get_config_value_result result = new get_config_value_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_config_value_result result = new get_config_value_result(); - if (e instanceof ConfigValSecurityException) { - result.o1 = (ConfigValSecurityException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_config_value_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_config_value(args.name, args.defaultValue,resultHandler); - } - } - - public static class partition_name_to_vals extends org.apache.thrift.AsyncProcessFunction> { - public partition_name_to_vals() { - super("partition_name_to_vals"); - } - - public partition_name_to_vals_args getEmptyArgsInstance() { - return new partition_name_to_vals_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - partition_name_to_vals_result result = new partition_name_to_vals_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - partition_name_to_vals_result result = new partition_name_to_vals_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_to_vals_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.partition_name_to_vals(args.part_name,resultHandler); - } - } - - public static class partition_name_to_spec extends org.apache.thrift.AsyncProcessFunction> { - public partition_name_to_spec() { - super("partition_name_to_spec"); - } - - public partition_name_to_spec_args getEmptyArgsInstance() { - return new partition_name_to_spec_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - partition_name_to_spec_result result = new partition_name_to_spec_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - partition_name_to_spec_result result = new partition_name_to_spec_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_to_spec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.partition_name_to_spec(args.part_name,resultHandler); - } - } - - public static class markPartitionForEvent extends org.apache.thrift.AsyncProcessFunction { - public markPartitionForEvent() { - super("markPartitionForEvent"); - } - - public markPartitionForEvent_args getEmptyArgsInstance() { - return new markPartitionForEvent_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - markPartitionForEvent_result result = new markPartitionForEvent_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - markPartitionForEvent_result result = new markPartitionForEvent_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o4 = (UnknownTableException) e; - result.setO4IsSet(true); - msg = result; - } - else if (e instanceof UnknownPartitionException) { - result.o5 = (UnknownPartitionException) e; - result.setO5IsSet(true); - msg = result; - } - else if (e instanceof InvalidPartitionException) { - result.o6 = (InvalidPartitionException) e; - result.setO6IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, markPartitionForEvent_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType,resultHandler); - } - } - - public static class isPartitionMarkedForEvent extends org.apache.thrift.AsyncProcessFunction { - public isPartitionMarkedForEvent() { - super("isPartitionMarkedForEvent"); - } - - public isPartitionMarkedForEvent_args getEmptyArgsInstance() { - return new isPartitionMarkedForEvent_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o4 = (UnknownTableException) e; - result.setO4IsSet(true); - msg = result; - } - else if (e instanceof UnknownPartitionException) { - result.o5 = (UnknownPartitionException) e; - result.setO5IsSet(true); - msg = result; - } - else if (e instanceof InvalidPartitionException) { - result.o6 = (InvalidPartitionException) e; - result.setO6IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, isPartitionMarkedForEvent_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType,resultHandler); - } - } - - public static class add_index extends org.apache.thrift.AsyncProcessFunction { - public add_index() { - super("add_index"); - } - - public add_index_args getEmptyArgsInstance() { - return new add_index_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Index o) { - add_index_result result = new add_index_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_index_result result = new add_index_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_index_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_index(args.new_index, args.index_table,resultHandler); - } - } - - public static class alter_index extends org.apache.thrift.AsyncProcessFunction { - public alter_index() { - super("alter_index"); - } - - public alter_index_args getEmptyArgsInstance() { - return new alter_index_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_index_result result = new alter_index_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_index_result result = new alter_index_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_index_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx,resultHandler); - } - } - - public static class drop_index_by_name extends org.apache.thrift.AsyncProcessFunction { - public drop_index_by_name() { - super("drop_index_by_name"); - } - - public drop_index_by_name_args getEmptyArgsInstance() { - return new drop_index_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_index_by_name_result result = new drop_index_by_name_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_index_by_name_result result = new drop_index_by_name_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_index_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData,resultHandler); - } - } - - public static class get_index_by_name extends org.apache.thrift.AsyncProcessFunction { - public get_index_by_name() { - super("get_index_by_name"); - } - - public get_index_by_name_args getEmptyArgsInstance() { - return new get_index_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Index o) { - get_index_by_name_result result = new get_index_by_name_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_index_by_name_result result = new get_index_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_index_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_index_by_name(args.db_name, args.tbl_name, args.index_name,resultHandler); - } - } - - public static class get_indexes extends org.apache.thrift.AsyncProcessFunction> { - public get_indexes() { - super("get_indexes"); - } - - public get_indexes_args getEmptyArgsInstance() { - return new get_indexes_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_indexes_result result = new get_indexes_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_indexes_result result = new get_indexes_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_indexes_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_indexes(args.db_name, args.tbl_name, args.max_indexes,resultHandler); - } - } - - public static class get_index_names extends org.apache.thrift.AsyncProcessFunction> { - public get_index_names() { - super("get_index_names"); - } - - public get_index_names_args getEmptyArgsInstance() { - return new get_index_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_index_names_result result = new get_index_names_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_index_names_result result = new get_index_names_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_index_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_index_names(args.db_name, args.tbl_name, args.max_indexes,resultHandler); - } - } - - public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_table_column_statistics() { - super("update_table_column_statistics"); - } - - public update_table_column_statistics_args getEmptyArgsInstance() { - return new update_table_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - update_table_column_statistics_result result = new update_table_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - update_table_column_statistics_result result = new update_table_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, update_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_table_column_statistics(args.stats_obj,resultHandler); - } - } - - public static class update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_partition_column_statistics() { - super("update_partition_column_statistics"); - } - - public update_partition_column_statistics_args getEmptyArgsInstance() { - return new update_partition_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, update_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_partition_column_statistics(args.stats_obj,resultHandler); - } - } - - public static class get_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public get_table_column_statistics() { - super("get_table_column_statistics"); - } - - public get_table_column_statistics_args getEmptyArgsInstance() { - return new get_table_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ColumnStatistics o) { - get_table_column_statistics_result result = new get_table_column_statistics_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_column_statistics_result result = new get_table_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o3 = (InvalidInputException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o4 = (InvalidObjectException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name,resultHandler); - } - } - - public static class get_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public get_partition_column_statistics() { - super("get_partition_column_statistics"); - } - - public get_partition_column_statistics_args getEmptyArgsInstance() { - return new get_partition_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ColumnStatistics o) { - get_partition_column_statistics_result result = new get_partition_column_statistics_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_column_statistics_result result = new get_partition_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o3 = (InvalidInputException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o4 = (InvalidObjectException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name,resultHandler); - } - } - - public static class get_table_statistics_req extends org.apache.thrift.AsyncProcessFunction { - public get_table_statistics_req() { - super("get_table_statistics_req"); - } - - public get_table_statistics_req_args getEmptyArgsInstance() { - return new get_table_statistics_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TableStatsResult o) { - get_table_statistics_req_result result = new get_table_statistics_req_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_statistics_req_result result = new get_table_statistics_req_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_table_statistics_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_table_statistics_req(args.request,resultHandler); - } - } - - public static class get_partitions_statistics_req extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_statistics_req() { - super("get_partitions_statistics_req"); - } - - public get_partitions_statistics_req_args getEmptyArgsInstance() { - return new get_partitions_statistics_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsStatsResult o) { - get_partitions_statistics_req_result result = new get_partitions_statistics_req_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_statistics_req_result result = new get_partitions_statistics_req_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_statistics_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_statistics_req(args.request,resultHandler); - } - } - - public static class get_aggr_stats_for extends org.apache.thrift.AsyncProcessFunction { - public get_aggr_stats_for() { - super("get_aggr_stats_for"); - } - - public get_aggr_stats_for_args getEmptyArgsInstance() { - return new get_aggr_stats_for_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(AggrStats o) { - get_aggr_stats_for_result result = new get_aggr_stats_for_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_aggr_stats_for_result result = new get_aggr_stats_for_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_aggr_stats_for_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_aggr_stats_for(args.request,resultHandler); - } - } - - public static class set_aggr_stats_for extends org.apache.thrift.AsyncProcessFunction { - public set_aggr_stats_for() { - super("set_aggr_stats_for"); - } - - public set_aggr_stats_for_args getEmptyArgsInstance() { - return new set_aggr_stats_for_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - set_aggr_stats_for_result result = new set_aggr_stats_for_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - set_aggr_stats_for_result result = new set_aggr_stats_for_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, set_aggr_stats_for_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.set_aggr_stats_for(args.request,resultHandler); - } - } - - public static class delete_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public delete_partition_column_statistics() { - super("delete_partition_column_statistics"); - } - - public delete_partition_column_statistics_args getEmptyArgsInstance() { - return new delete_partition_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - delete_partition_column_statistics_result result = new delete_partition_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - delete_partition_column_statistics_result result = new delete_partition_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, delete_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name,resultHandler); - } - } - - public static class delete_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public delete_table_column_statistics() { - super("delete_table_column_statistics"); - } - - public delete_table_column_statistics_args getEmptyArgsInstance() { - return new delete_table_column_statistics_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - delete_table_column_statistics_result result = new delete_table_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - delete_table_column_statistics_result result = new delete_table_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, delete_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name,resultHandler); - } - } - - public static class create_function extends org.apache.thrift.AsyncProcessFunction { - public create_function() { - super("create_function"); - } - - public create_function_args getEmptyArgsInstance() { - return new create_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_function_result result = new create_function_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_function_result result = new create_function_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) e; - result.setO4IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_function(args.func,resultHandler); - } - } - - public static class drop_function extends org.apache.thrift.AsyncProcessFunction { - public drop_function() { - super("drop_function"); - } - - public drop_function_args getEmptyArgsInstance() { - return new drop_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_function_result result = new drop_function_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_function_result result = new drop_function_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_function(args.dbName, args.funcName,resultHandler); - } - } - - public static class alter_function extends org.apache.thrift.AsyncProcessFunction { - public alter_function() { - super("alter_function"); - } - - public alter_function_args getEmptyArgsInstance() { - return new alter_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_function_result result = new alter_function_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - alter_function_result result = new alter_function_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_function(args.dbName, args.funcName, args.newFunc,resultHandler); - } - } - - public static class get_functions extends org.apache.thrift.AsyncProcessFunction> { - public get_functions() { - super("get_functions"); - } - - public get_functions_args getEmptyArgsInstance() { - return new get_functions_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_functions_result result = new get_functions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_functions_result result = new get_functions_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_functions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_functions(args.dbName, args.pattern,resultHandler); - } - } - - public static class get_function extends org.apache.thrift.AsyncProcessFunction { - public get_function() { - super("get_function"); - } - - public get_function_args getEmptyArgsInstance() { - return new get_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Function o) { - get_function_result result = new get_function_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_function_result result = new get_function_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_function(args.dbName, args.funcName,resultHandler); - } - } - - public static class get_all_functions extends org.apache.thrift.AsyncProcessFunction { - public get_all_functions() { - super("get_all_functions"); - } - - public get_all_functions_args getEmptyArgsInstance() { - return new get_all_functions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetAllFunctionsResponse o) { - get_all_functions_result result = new get_all_functions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_functions_result result = new get_all_functions_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_all_functions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_all_functions(resultHandler); - } - } - - public static class create_role extends org.apache.thrift.AsyncProcessFunction { - public create_role() { - super("create_role"); - } - - public create_role_args getEmptyArgsInstance() { - return new create_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - create_role_result result = new create_role_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - create_role_result result = new create_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_role(args.role,resultHandler); - } - } - - public static class drop_role extends org.apache.thrift.AsyncProcessFunction { - public drop_role() { - super("drop_role"); - } - - public drop_role_args getEmptyArgsInstance() { - return new drop_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_role_result result = new drop_role_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - drop_role_result result = new drop_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_role(args.role_name,resultHandler); - } - } - - public static class get_role_names extends org.apache.thrift.AsyncProcessFunction> { - public get_role_names() { - super("get_role_names"); - } - - public get_role_names_args getEmptyArgsInstance() { - return new get_role_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_role_names_result result = new get_role_names_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_role_names_result result = new get_role_names_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_role_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_role_names(resultHandler); - } - } - - public static class grant_role extends org.apache.thrift.AsyncProcessFunction { - public grant_role() { - super("grant_role"); - } - - public grant_role_args getEmptyArgsInstance() { - return new grant_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - grant_role_result result = new grant_role_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - grant_role_result result = new grant_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option,resultHandler); - } - } - - public static class revoke_role extends org.apache.thrift.AsyncProcessFunction { - public revoke_role() { - super("revoke_role"); - } - - public revoke_role_args getEmptyArgsInstance() { - return new revoke_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - revoke_role_result result = new revoke_role_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - revoke_role_result result = new revoke_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, revoke_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.revoke_role(args.role_name, args.principal_name, args.principal_type,resultHandler); - } - } - - public static class list_roles extends org.apache.thrift.AsyncProcessFunction> { - public list_roles() { - super("list_roles"); - } - - public list_roles_args getEmptyArgsInstance() { - return new list_roles_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - list_roles_result result = new list_roles_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - list_roles_result result = new list_roles_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, list_roles_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.list_roles(args.principal_name, args.principal_type,resultHandler); - } - } - - public static class grant_revoke_role extends org.apache.thrift.AsyncProcessFunction { - public grant_revoke_role() { - super("grant_revoke_role"); - } - - public grant_revoke_role_args getEmptyArgsInstance() { - return new grant_revoke_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GrantRevokeRoleResponse o) { - grant_revoke_role_result result = new grant_revoke_role_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - grant_revoke_role_result result = new grant_revoke_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_revoke_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_revoke_role(args.request,resultHandler); - } - } - - public static class get_principals_in_role extends org.apache.thrift.AsyncProcessFunction { - public get_principals_in_role() { - super("get_principals_in_role"); - } - - public get_principals_in_role_args getEmptyArgsInstance() { - return new get_principals_in_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetPrincipalsInRoleResponse o) { - get_principals_in_role_result result = new get_principals_in_role_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_principals_in_role_result result = new get_principals_in_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_principals_in_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_principals_in_role(args.request,resultHandler); - } - } - - public static class get_role_grants_for_principal extends org.apache.thrift.AsyncProcessFunction { - public get_role_grants_for_principal() { - super("get_role_grants_for_principal"); - } - - public get_role_grants_for_principal_args getEmptyArgsInstance() { - return new get_role_grants_for_principal_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetRoleGrantsForPrincipalResponse o) { - get_role_grants_for_principal_result result = new get_role_grants_for_principal_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_role_grants_for_principal_result result = new get_role_grants_for_principal_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_role_grants_for_principal_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_role_grants_for_principal(args.request,resultHandler); - } - } - - public static class get_privilege_set extends org.apache.thrift.AsyncProcessFunction { - public get_privilege_set() { - super("get_privilege_set"); - } - - public get_privilege_set_args getEmptyArgsInstance() { - return new get_privilege_set_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PrincipalPrivilegeSet o) { - get_privilege_set_result result = new get_privilege_set_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_privilege_set_result result = new get_privilege_set_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_privilege_set_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_privilege_set(args.hiveObject, args.user_name, args.group_names,resultHandler); - } - } - - public static class list_privileges extends org.apache.thrift.AsyncProcessFunction> { - public list_privileges() { - super("list_privileges"); - } - - public list_privileges_args getEmptyArgsInstance() { - return new list_privileges_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - list_privileges_result result = new list_privileges_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - list_privileges_result result = new list_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, list_privileges_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.list_privileges(args.principal_name, args.principal_type, args.hiveObject,resultHandler); - } - } - - public static class grant_privileges extends org.apache.thrift.AsyncProcessFunction { - public grant_privileges() { - super("grant_privileges"); - } - - public grant_privileges_args getEmptyArgsInstance() { - return new grant_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - grant_privileges_result result = new grant_privileges_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - grant_privileges_result result = new grant_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_privileges(args.privileges,resultHandler); - } - } - - public static class revoke_privileges extends org.apache.thrift.AsyncProcessFunction { - public revoke_privileges() { - super("revoke_privileges"); - } - - public revoke_privileges_args getEmptyArgsInstance() { - return new revoke_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - revoke_privileges_result result = new revoke_privileges_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - revoke_privileges_result result = new revoke_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, revoke_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.revoke_privileges(args.privileges,resultHandler); - } - } - - public static class grant_revoke_privileges extends org.apache.thrift.AsyncProcessFunction { - public grant_revoke_privileges() { - super("grant_revoke_privileges"); - } - - public grant_revoke_privileges_args getEmptyArgsInstance() { - return new grant_revoke_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GrantRevokePrivilegeResponse o) { - grant_revoke_privileges_result result = new grant_revoke_privileges_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - grant_revoke_privileges_result result = new grant_revoke_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_revoke_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_revoke_privileges(args.request,resultHandler); - } - } - - public static class set_ugi extends org.apache.thrift.AsyncProcessFunction> { - public set_ugi() { - super("set_ugi"); - } - - public set_ugi_args getEmptyArgsInstance() { - return new set_ugi_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - set_ugi_result result = new set_ugi_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - set_ugi_result result = new set_ugi_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, set_ugi_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.set_ugi(args.user_name, args.group_names,resultHandler); - } - } - - public static class get_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public get_delegation_token() { - super("get_delegation_token"); - } - - public get_delegation_token_args getEmptyArgsInstance() { - return new get_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - get_delegation_token_result result = new get_delegation_token_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_delegation_token_result result = new get_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name,resultHandler); - } - } - - public static class renew_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public renew_delegation_token() { - super("renew_delegation_token"); - } - - public renew_delegation_token_args getEmptyArgsInstance() { - return new renew_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Long o) { - renew_delegation_token_result result = new renew_delegation_token_result(); - result.success = o; - result.setSuccessIsSet(true); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - renew_delegation_token_result result = new renew_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, renew_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.renew_delegation_token(args.token_str_form,resultHandler); - } - } - - public static class cancel_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public cancel_delegation_token() { - super("cancel_delegation_token"); - } - - public cancel_delegation_token_args getEmptyArgsInstance() { - return new cancel_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - cancel_delegation_token_result result = new cancel_delegation_token_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - cancel_delegation_token_result result = new cancel_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, cancel_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cancel_delegation_token(args.token_str_form,resultHandler); - } - } - - public static class get_open_txns extends org.apache.thrift.AsyncProcessFunction { - public get_open_txns() { - super("get_open_txns"); - } - - public get_open_txns_args getEmptyArgsInstance() { - return new get_open_txns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetOpenTxnsResponse o) { - get_open_txns_result result = new get_open_txns_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_open_txns_result result = new get_open_txns_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_open_txns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_open_txns(resultHandler); - } - } - - public static class get_open_txns_info extends org.apache.thrift.AsyncProcessFunction { - public get_open_txns_info() { - super("get_open_txns_info"); - } - - public get_open_txns_info_args getEmptyArgsInstance() { - return new get_open_txns_info_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetOpenTxnsInfoResponse o) { - get_open_txns_info_result result = new get_open_txns_info_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_open_txns_info_result result = new get_open_txns_info_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_open_txns_info_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_open_txns_info(resultHandler); - } - } - - public static class open_txns extends org.apache.thrift.AsyncProcessFunction { - public open_txns() { - super("open_txns"); - } - - public open_txns_args getEmptyArgsInstance() { - return new open_txns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(OpenTxnsResponse o) { - open_txns_result result = new open_txns_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - open_txns_result result = new open_txns_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, open_txns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.open_txns(args.rqst,resultHandler); - } - } - - public static class abort_txn extends org.apache.thrift.AsyncProcessFunction { - public abort_txn() { - super("abort_txn"); - } - - public abort_txn_args getEmptyArgsInstance() { - return new abort_txn_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - abort_txn_result result = new abort_txn_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - abort_txn_result result = new abort_txn_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, abort_txn_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.abort_txn(args.rqst,resultHandler); - } - } - - public static class commit_txn extends org.apache.thrift.AsyncProcessFunction { - public commit_txn() { - super("commit_txn"); - } - - public commit_txn_args getEmptyArgsInstance() { - return new commit_txn_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - commit_txn_result result = new commit_txn_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - commit_txn_result result = new commit_txn_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, commit_txn_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.commit_txn(args.rqst,resultHandler); - } - } - - public static class lock extends org.apache.thrift.AsyncProcessFunction { - public lock() { - super("lock"); - } - - public lock_args getEmptyArgsInstance() { - return new lock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(LockResponse o) { - lock_result result = new lock_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - lock_result result = new lock_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, lock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.lock(args.rqst,resultHandler); - } - } - - public static class check_lock extends org.apache.thrift.AsyncProcessFunction { - public check_lock() { - super("check_lock"); - } - - public check_lock_args getEmptyArgsInstance() { - return new check_lock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(LockResponse o) { - check_lock_result result = new check_lock_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - check_lock_result result = new check_lock_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof NoSuchLockException) { - result.o3 = (NoSuchLockException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, check_lock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.check_lock(args.rqst,resultHandler); - } - } - - public static class unlock extends org.apache.thrift.AsyncProcessFunction { - public unlock() { - super("unlock"); - } - - public unlock_args getEmptyArgsInstance() { - return new unlock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - unlock_result result = new unlock_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - unlock_result result = new unlock_result(); - if (e instanceof NoSuchLockException) { - result.o1 = (NoSuchLockException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnOpenException) { - result.o2 = (TxnOpenException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, unlock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.unlock(args.rqst,resultHandler); - } - } - - public static class show_locks extends org.apache.thrift.AsyncProcessFunction { - public show_locks() { - super("show_locks"); - } - - public show_locks_args getEmptyArgsInstance() { - return new show_locks_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ShowLocksResponse o) { - show_locks_result result = new show_locks_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - show_locks_result result = new show_locks_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, show_locks_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.show_locks(args.rqst,resultHandler); - } - } - - public static class heartbeat extends org.apache.thrift.AsyncProcessFunction { - public heartbeat() { - super("heartbeat"); - } - - public heartbeat_args getEmptyArgsInstance() { - return new heartbeat_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - heartbeat_result result = new heartbeat_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - heartbeat_result result = new heartbeat_result(); - if (e instanceof NoSuchLockException) { - result.o1 = (NoSuchLockException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchTxnException) { - result.o2 = (NoSuchTxnException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o3 = (TxnAbortedException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, heartbeat_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.heartbeat(args.ids,resultHandler); - } - } - - public static class heartbeat_txn_range extends org.apache.thrift.AsyncProcessFunction { - public heartbeat_txn_range() { - super("heartbeat_txn_range"); - } - - public heartbeat_txn_range_args getEmptyArgsInstance() { - return new heartbeat_txn_range_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(HeartbeatTxnRangeResponse o) { - heartbeat_txn_range_result result = new heartbeat_txn_range_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - heartbeat_txn_range_result result = new heartbeat_txn_range_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, heartbeat_txn_range_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.heartbeat_txn_range(args.txns,resultHandler); - } - } - - public static class compact extends org.apache.thrift.AsyncProcessFunction { - public compact() { - super("compact"); - } - - public compact_args getEmptyArgsInstance() { - return new compact_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - compact_result result = new compact_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - compact_result result = new compact_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.compact(args.rqst,resultHandler); - } - } - - public static class show_compact extends org.apache.thrift.AsyncProcessFunction { - public show_compact() { - super("show_compact"); - } - - public show_compact_args getEmptyArgsInstance() { - return new show_compact_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ShowCompactResponse o) { - show_compact_result result = new show_compact_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - show_compact_result result = new show_compact_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, show_compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.show_compact(args.rqst,resultHandler); - } - } - - public static class add_dynamic_partitions extends org.apache.thrift.AsyncProcessFunction { - public add_dynamic_partitions() { - super("add_dynamic_partitions"); - } - - public add_dynamic_partitions_args getEmptyArgsInstance() { - return new add_dynamic_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - add_dynamic_partitions_result result = new add_dynamic_partitions_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - add_dynamic_partitions_result result = new add_dynamic_partitions_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_dynamic_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_dynamic_partitions(args.rqst,resultHandler); - } - } - - public static class get_next_notification extends org.apache.thrift.AsyncProcessFunction { - public get_next_notification() { - super("get_next_notification"); - } - - public get_next_notification_args getEmptyArgsInstance() { - return new get_next_notification_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(NotificationEventResponse o) { - get_next_notification_result result = new get_next_notification_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_next_notification_result result = new get_next_notification_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_next_notification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_next_notification(args.rqst,resultHandler); - } - } - - public static class get_current_notificationEventId extends org.apache.thrift.AsyncProcessFunction { - public get_current_notificationEventId() { - super("get_current_notificationEventId"); - } - - public get_current_notificationEventId_args getEmptyArgsInstance() { - return new get_current_notificationEventId_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(CurrentNotificationEventId o) { - get_current_notificationEventId_result result = new get_current_notificationEventId_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_current_notificationEventId_result result = new get_current_notificationEventId_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_current_notificationEventId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_current_notificationEventId(resultHandler); - } - } - - public static class fire_listener_event extends org.apache.thrift.AsyncProcessFunction { - public fire_listener_event() { - super("fire_listener_event"); - } - - public fire_listener_event_args getEmptyArgsInstance() { - return new fire_listener_event_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FireEventResponse o) { - fire_listener_event_result result = new fire_listener_event_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - fire_listener_event_result result = new fire_listener_event_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, fire_listener_event_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.fire_listener_event(args.rqst,resultHandler); - } - } - - public static class flushCache extends org.apache.thrift.AsyncProcessFunction { - public flushCache() { - super("flushCache"); - } - - public flushCache_args getEmptyArgsInstance() { - return new flushCache_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - flushCache_result result = new flushCache_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - flushCache_result result = new flushCache_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, flushCache_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.flushCache(resultHandler); - } - } - - public static class get_file_metadata_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_file_metadata_by_expr() { - super("get_file_metadata_by_expr"); - } - - public get_file_metadata_by_expr_args getEmptyArgsInstance() { - return new get_file_metadata_by_expr_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetFileMetadataByExprResult o) { - get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_file_metadata_by_expr_result result = new get_file_metadata_by_expr_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_file_metadata_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_file_metadata_by_expr(args.req,resultHandler); - } - } - - public static class get_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public get_file_metadata() { - super("get_file_metadata"); - } - - public get_file_metadata_args getEmptyArgsInstance() { - return new get_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetFileMetadataResult o) { - get_file_metadata_result result = new get_file_metadata_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_file_metadata_result result = new get_file_metadata_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_file_metadata(args.req,resultHandler); - } - } - - public static class put_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public put_file_metadata() { - super("put_file_metadata"); - } - - public put_file_metadata_args getEmptyArgsInstance() { - return new put_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PutFileMetadataResult o) { - put_file_metadata_result result = new put_file_metadata_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - put_file_metadata_result result = new put_file_metadata_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, put_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.put_file_metadata(args.req,resultHandler); - } - } - - public static class clear_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public clear_file_metadata() { - super("clear_file_metadata"); - } - - public clear_file_metadata_args getEmptyArgsInstance() { - return new clear_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ClearFileMetadataResult o) { - clear_file_metadata_result result = new clear_file_metadata_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - clear_file_metadata_result result = new clear_file_metadata_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, clear_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.clear_file_metadata(args.req,resultHandler); - } - } - - public static class cache_file_metadata extends org.apache.thrift.AsyncProcessFunction { - public cache_file_metadata() { - super("cache_file_metadata"); - } - - public cache_file_metadata_args getEmptyArgsInstance() { - return new cache_file_metadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(CacheFileMetadataResult o) { - cache_file_metadata_result result = new cache_file_metadata_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - cache_file_metadata_result result = new cache_file_metadata_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, cache_file_metadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cache_file_metadata(args.req,resultHandler); - } - } - - } - - public static class getMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -21301,30 +12992,30 @@ public boolean equals(getMetaConf_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_key = true && (isSetKey()); - list.add(present_key); + builder.append(present_key); if (present_key) - list.add(key); + builder.append(key); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getMetaConf_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getMetaConf_args typedOther = (getMetaConf_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) { return lastComparison; } @@ -21465,7 +13156,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args str } - public static class getMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -21717,45 +13408,45 @@ public boolean equals(getMetaConf_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getMetaConf_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getMetaConf_result typedOther = (getMetaConf_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -21929,7 +13620,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_result s } - public static class setMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class setMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -22181,45 +13872,45 @@ public boolean equals(setMetaConf_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_key = true && (isSetKey()); - list.add(present_key); + builder.append(present_key); if (present_key) - list.add(key); + builder.append(key); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(setMetaConf_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + setMetaConf_args typedOther = (setMetaConf_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } @@ -22391,7 +14082,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_args str } - public static class setMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class setMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_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); @@ -22585,30 +14276,30 @@ public boolean equals(setMetaConf_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(setMetaConf_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + setMetaConf_result typedOther = (setMetaConf_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -22751,7 +14442,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result s } - public static class create_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_args"); private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -22945,30 +14636,30 @@ public boolean equals(create_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_database = true && (isSetDatabase()); - list.add(present_database); + builder.append(present_database); if (present_database) - list.add(database); + builder.append(database); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_database_args typedOther = (create_database_args)other; - lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(other.isSetDatabase()); + lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(typedOther.isSetDatabase()); if (lastComparison != 0) { return lastComparison; } if (isSetDatabase()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, other.database); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, typedOther.database); if (lastComparison != 0) { return lastComparison; } @@ -23114,7 +14805,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_database_args } - public static class create_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_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); @@ -23424,60 +15115,60 @@ public boolean equals(create_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_database_result typedOther = (create_database_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -23686,7 +15377,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_database_resu } - public static class get_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -23880,30 +15571,30 @@ public boolean equals(get_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_database_args typedOther = (get_database_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -24044,7 +15735,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_args st } - public static class get_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -24354,60 +16045,60 @@ public boolean equals(get_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_database_result typedOther = (get_database_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -24619,7 +16310,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_result } - public static class drop_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -24860,10 +16551,10 @@ public Object getFieldValue(_Fields field) { return getName(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); case CASCADE: - return isCascade(); + return Boolean.valueOf(isCascade()); } throw new IllegalStateException(); @@ -24931,60 +16622,60 @@ public boolean equals(drop_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_cascade = true; - list.add(present_cascade); + builder.append(present_cascade); if (present_cascade) - list.add(cascade); + builder.append(cascade); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_database_args typedOther = (drop_database_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(typedOther.isSetCascade()); if (lastComparison != 0) { return lastComparison; } if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, typedOther.cascade); if (lastComparison != 0) { return lastComparison; } @@ -25177,7 +16868,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_database_args s } - public static class drop_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_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); @@ -25487,60 +17178,60 @@ public boolean equals(drop_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_database_result typedOther = (drop_database_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -25613,881 +17304,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_database_resultStandardSchemeFactory implements SchemeFactory { - public drop_database_resultStandardScheme getScheme() { - return new drop_database_resultStandardScheme(); - } - } - - private static class drop_database_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_database_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_database_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class drop_database_resultTupleSchemeFactory implements SchemeFactory { - public drop_database_resultTupleScheme getScheme() { - return new drop_database_resultTupleScheme(); - } - } - - private static class drop_database_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_database_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetO1()) { - optionals.set(0); - } - if (struct.isSetO2()) { - optionals.set(1); - } - if (struct.isSetO3()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetO1()) { - struct.o1.write(oprot); - } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_database_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); - if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(1)) { - struct.o2 = new InvalidOperationException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } - if (incoming.get(2)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - } - } - - } - - public static class get_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_args"); - - private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new get_databases_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_databases_argsTupleSchemeFactory()); - } - - private String pattern; // 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 { - PATTERN((short)1, "pattern"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 1: // PATTERN - return PATTERN; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_args.class, metaDataMap); - } - - public get_databases_args() { - } - - public get_databases_args( - String pattern) - { - this(); - this.pattern = pattern; - } - - /** - * Performs a deep copy on other. - */ - public get_databases_args(get_databases_args other) { - if (other.isSetPattern()) { - this.pattern = other.pattern; - } - } - - public get_databases_args deepCopy() { - return new get_databases_args(this); - } - - @Override - public void clear() { - this.pattern = null; - } - - public String getPattern() { - return this.pattern; - } - - public void setPattern(String pattern) { - this.pattern = pattern; - } - - public void unsetPattern() { - this.pattern = null; - } - - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != null; - } - - public void setPatternIsSet(boolean value) { - if (!value) { - this.pattern = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case PATTERN: - if (value == null) { - unsetPattern(); - } else { - setPattern((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case PATTERN: - return getPattern(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case PATTERN: - return isSetPattern(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof get_databases_args) - return this.equals((get_databases_args)that); - return false; - } - - public boolean equals(get_databases_args that) { - if (that == null) - return false; - - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) - return false; - if (!this.pattern.equals(that.pattern)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); - - return list.hashCode(); - } - - @Override - public int compareTo(get_databases_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_databases_args("); - boolean first = true; - - sb.append("pattern:"); - if (this.pattern == null) { - sb.append("null"); - } else { - sb.append(this.pattern); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class get_databases_argsStandardSchemeFactory implements SchemeFactory { - public get_databases_argsStandardScheme getScheme() { - return new get_databases_argsStandardScheme(); - } - } - - private static class get_databases_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_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: // PATTERN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - default: - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - iprot.readFieldEnd(); - } - iprot.readStructEnd(); - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class get_databases_argsTupleSchemeFactory implements SchemeFactory { - public get_databases_argsTupleScheme getScheme() { - return new get_databases_argsTupleScheme(); - } - } - - private static class get_databases_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetPattern()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } - } - } - - } - - public static class get_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new get_databases_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_databases_resultTupleSchemeFactory()); - } - - private List success; // required - private MetaException o1; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // O1 - return O1; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_result.class, metaDataMap); - } - - public get_databases_result() { - } - - public get_databases_result( - List success, - MetaException o1) - { - this(); - this.success = success; - this.o1 = o1; - } - - /** - * Performs a deep copy on other. - */ - public get_databases_result(get_databases_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } - } - - public get_databases_result deepCopy() { - return new get_databases_result(this); - } - - @Override - public void clear() { - this.success = null; - this.o1 = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public void setSuccess(List success) { - this.success = success; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public MetaException getO1() { - return this.o1; - } - - public void setO1(MetaException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case O1: - return getO1(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case O1: - return isSetO1(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof get_databases_result) - return this.equals((get_databases_result)that); - return false; - } - - public boolean equals(get_databases_result that) { - if (that == null) - return false; - - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - - return list.hashCode(); - } - - @Override - public int compareTo(get_databases_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } - return 0; - } - - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); - } - - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("get_databases_result("); - boolean first = true; - - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - // check for sub-struct validity - } - - private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { - try { - write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { - try { - read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); - } catch (org.apache.thrift.TException te) { - throw new java.io.IOException(te); - } - } - - private static class get_databases_resultStandardSchemeFactory implements SchemeFactory { - public get_databases_resultStandardScheme getScheme() { - return new get_databases_resultStandardScheme(); + private static class drop_database_resultStandardSchemeFactory implements SchemeFactory { + public drop_database_resultStandardScheme getScheme() { + return new drop_database_resultStandardScheme(); } } - private static class get_databases_resultStandardScheme extends StandardScheme { + private static class drop_database_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_database_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26497,29 +17322,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list592 = iprot.readListBegin(); - struct.success = new ArrayList(_list592.size); - String _elem593; - for (int _i594 = 0; _i594 < _list592.size; ++_i594) - { - _elem593 = iprot.readString(); - struct.success.add(_elem593); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26533,107 +17358,104 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_database_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter595 : struct.success) - { - oprot.writeString(_iter595); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_databases_resultTupleSchemeFactory implements SchemeFactory { - public get_databases_resultTupleScheme getScheme() { - return new get_databases_resultTupleScheme(); + private static class drop_database_resultTupleSchemeFactory implements SchemeFactory { + public drop_database_resultTupleScheme getScheme() { + return new drop_database_resultTupleScheme(); } } - private static class get_databases_resultTupleScheme extends TupleScheme { + private static class drop_database_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_database_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO2()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter596 : struct.success) - { - oprot.writeString(_iter596); - } - } + if (struct.isSetO3()) { + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetO1()) { struct.o1.write(oprot); } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_database_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list597.size); - String _elem598; - for (int _i599 = 0; _i599 < _list597.size; ++_i599) - { - _elem598 = iprot.readString(); - struct.success.add(_elem598); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(1)) { + struct.o2 = new InvalidOperationException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(2)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class get_all_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_args"); + public static class get_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_args"); + private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_databases_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_databases_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_databases_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_databases_argsTupleSchemeFactory()); } + private String pattern; // 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 { -; + PATTERN((short)1, "pattern"); private static final Map byName = new HashMap(); @@ -26648,6 +17470,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // PATTERN + return PATTERN; default: return null; } @@ -26686,37 +17510,86 @@ public String getFieldName() { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_args.class, metaDataMap); } - public get_all_databases_args() { + public get_databases_args() { + } + + public get_databases_args( + String pattern) + { + this(); + this.pattern = pattern; } /** * Performs a deep copy on other. */ - public get_all_databases_args(get_all_databases_args other) { + public get_databases_args(get_databases_args other) { + if (other.isSetPattern()) { + this.pattern = other.pattern; + } } - public get_all_databases_args deepCopy() { - return new get_all_databases_args(this); + public get_databases_args deepCopy() { + return new get_databases_args(this); } @Override public void clear() { + this.pattern = null; + } + + public String getPattern() { + return this.pattern; + } + + public void setPattern(String pattern) { + this.pattern = pattern; + } + + public void unsetPattern() { + this.pattern = null; + } + + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; + } + + public void setPatternIsSet(boolean value) { + if (!value) { + this.pattern = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case PATTERN: + if (value == null) { + unsetPattern(); + } else { + setPattern((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case PATTERN: + return getPattern(); + } throw new IllegalStateException(); } @@ -26728,6 +17601,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case PATTERN: + return isSetPattern(); } throw new IllegalStateException(); } @@ -26736,33 +17611,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_databases_args) - return this.equals((get_all_databases_args)that); + if (that instanceof get_databases_args) + return this.equals((get_databases_args)that); return false; } - public boolean equals(get_all_databases_args that) { + public boolean equals(get_databases_args that) { if (that == null) return false; + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) + return false; + if (!this.pattern.equals(that.pattern)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_pattern = true && (isSetPattern()); + builder.append(present_pattern); + if (present_pattern) + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_all_databases_args other) { + public int compareTo(get_databases_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_databases_args typedOther = (get_databases_args)other; + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -26780,9 +17679,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_databases_args("); + StringBuilder sb = new StringBuilder("get_databases_args("); boolean first = true; + sb.append("pattern:"); + if (this.pattern == null) { + sb.append("null"); + } else { + sb.append(this.pattern); + } + first = false; sb.append(")"); return sb.toString(); } @@ -26808,15 +17714,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_databases_argsStandardSchemeFactory implements SchemeFactory { - public get_all_databases_argsStandardScheme getScheme() { - return new get_all_databases_argsStandardScheme(); + private static class get_databases_argsStandardSchemeFactory implements SchemeFactory { + public get_databases_argsStandardScheme getScheme() { + return new get_databases_argsStandardScheme(); } } - private static class get_all_databases_argsStandardScheme extends StandardScheme { + private static class get_databases_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26826,6 +17732,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_a break; } switch (schemeField.id) { + case 1: // PATTERN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26835,47 +17749,65 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_all_databases_argsTupleSchemeFactory implements SchemeFactory { - public get_all_databases_argsTupleScheme getScheme() { - return new get_all_databases_argsTupleScheme(); + private static class get_databases_argsTupleSchemeFactory implements SchemeFactory { + public get_databases_argsTupleScheme getScheme() { + return new get_databases_argsTupleScheme(); } } - private static class get_all_databases_argsTupleScheme extends TupleScheme { + private static class get_databases_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPattern()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); + } } } } - public static class get_all_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_result"); + public static class get_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_databases_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_databases_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_databases_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_databases_resultTupleSchemeFactory()); } private List success; // required @@ -26952,13 +17884,13 @@ public String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_result.class, metaDataMap); } - public get_all_databases_result() { + public get_databases_result() { } - public get_all_databases_result( + public get_databases_result( List success, MetaException o1) { @@ -26970,9 +17902,12 @@ public get_all_databases_result( /** * Performs a deep copy on other. */ - public get_all_databases_result(get_all_databases_result other) { + public get_databases_result(get_databases_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -26980,8 +17915,8 @@ public get_all_databases_result(get_all_databases_result other) { } } - public get_all_databases_result deepCopy() { - return new get_all_databases_result(this); + public get_databases_result deepCopy() { + return new get_databases_result(this); } @Override @@ -27103,12 +18038,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_databases_result) - return this.equals((get_all_databases_result)that); + if (that instanceof get_databases_result) + return this.equals((get_databases_result)that); return false; } - public boolean equals(get_all_databases_result that) { + public boolean equals(get_databases_result that) { if (that == null) return false; @@ -27135,45 +18070,807 @@ public boolean equals(get_all_databases_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); + } + + public int compareTo(get_databases_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_databases_result typedOther = (get_databases_result)other; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_databases_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_databases_resultStandardSchemeFactory implements SchemeFactory { + public get_databases_resultStandardScheme getScheme() { + return new get_databases_resultStandardScheme(); + } + } + + private static class get_databases_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list592 = iprot.readListBegin(); + struct.success = new ArrayList(_list592.size); + for (int _i593 = 0; _i593 < _list592.size; ++_i593) + { + String _elem594; // required + _elem594 = iprot.readString(); + struct.success.add(_elem594); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter595 : struct.success) + { + oprot.writeString(_iter595); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_databases_resultTupleSchemeFactory implements SchemeFactory { + public get_databases_resultTupleScheme getScheme() { + return new get_databases_resultTupleScheme(); + } + } + + private static class get_databases_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter596 : struct.success) + { + oprot.writeString(_iter596); + } + } + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list597.size); + for (int _i598 = 0; _i598 < _list597.size; ++_i598) + { + String _elem599; // required + _elem599 = iprot.readString(); + struct.success.add(_elem599); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + public static class get_all_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_args"); + + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_all_databases_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_databases_argsTupleSchemeFactory()); + } + + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { +; + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_args.class, metaDataMap); + } + + public get_all_databases_args() { + } + + /** + * Performs a deep copy on other. + */ + public get_all_databases_args(get_all_databases_args other) { + } + + public get_all_databases_args deepCopy() { + return new get_all_databases_args(this); + } + + @Override + public void clear() { + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_all_databases_args) + return this.equals((get_all_databases_args)that); + return false; + } + + public boolean equals(get_all_databases_args that) { + if (that == null) + return false; + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + return builder.toHashCode(); + } + + public int compareTo(get_all_databases_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_all_databases_args typedOther = (get_all_databases_args)other; + + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_all_databases_args("); + boolean first = true; + + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_all_databases_argsStandardSchemeFactory implements SchemeFactory { + public get_all_databases_argsStandardScheme getScheme() { + return new get_all_databases_argsStandardScheme(); + } + } + + private static class get_all_databases_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_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) { + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_all_databases_argsTupleSchemeFactory implements SchemeFactory { + public get_all_databases_argsTupleScheme getScheme() { + return new get_all_databases_argsTupleScheme(); + } + } + + private static class get_all_databases_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + } + } + + } + + public static class get_all_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_all_databases_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_databases_resultTupleSchemeFactory()); + } + + private List success; // required + private MetaException o1; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap); + } + + public get_all_databases_result() { + } + + public get_all_databases_result( + List success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public get_all_databases_result(get_all_databases_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public get_all_databases_result deepCopy() { + return new get_all_databases_result(this); } @Override + public void clear() { + this.success = null; + this.o1 = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_all_databases_result) + return this.equals((get_all_databases_result)that); + return false; + } + + public boolean equals(get_all_databases_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); + + return builder.toHashCode(); + } + public int compareTo(get_all_databases_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_databases_result typedOther = (get_all_databases_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -27261,11 +18958,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r { org.apache.thrift.protocol.TList _list600 = iprot.readListBegin(); struct.success = new ArrayList(_list600.size); - String _elem601; - for (int _i602 = 0; _i602 < _list600.size; ++_i602) + for (int _i601 = 0; _i601 < _list600.size; ++_i601) { - _elem601 = iprot.readString(); - struct.success.add(_elem601); + String _elem602; // required + _elem602 = iprot.readString(); + struct.success.add(_elem602); } iprot.readListEnd(); } @@ -27360,11 +19057,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re { org.apache.thrift.protocol.TList _list605 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list605.size); - String _elem606; - for (int _i607 = 0; _i607 < _list605.size; ++_i607) + for (int _i606 = 0; _i606 < _list605.size; ++_i606) { - _elem606 = iprot.readString(); - struct.success.add(_elem606); + String _elem607; // required + _elem607 = iprot.readString(); + struct.success.add(_elem607); } } struct.setSuccessIsSet(true); @@ -27379,7 +19076,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re } - public static class alter_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -27631,45 +19328,45 @@ public boolean equals(alter_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_db = true && (isSetDb()); - list.add(present_db); + builder.append(present_db); if (present_db) - list.add(db); + builder.append(db); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_database_args typedOther = (alter_database_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDb()).compareTo(other.isSetDb()); + lastComparison = Boolean.valueOf(isSetDb()).compareTo(typedOther.isSetDb()); if (lastComparison != 0) { return lastComparison; } if (isSetDb()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, other.db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, typedOther.db); if (lastComparison != 0) { return lastComparison; } @@ -27846,7 +19543,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_args } - public static class alter_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_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); @@ -28098,45 +19795,45 @@ public boolean equals(alter_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_database_result typedOther = (alter_database_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -28312,7 +20009,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_resul } - public static class get_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -28506,30 +20203,30 @@ public boolean equals(get_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_args typedOther = (get_type_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -28670,7 +20367,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_args struct } - public static class get_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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.STRUCT, (short)0); @@ -28980,60 +20677,60 @@ public boolean equals(get_type_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_result typedOther = (get_type_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -29245,7 +20942,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_result stru } - public static class create_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_type_args"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -29439,30 +21136,30 @@ public boolean equals(create_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type); + builder.append(type); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_type_args typedOther = (create_type_args)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -29608,7 +21305,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_type_args str } - public static class create_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_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); @@ -29890,7 +21587,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -29978,75 +21675,75 @@ public boolean equals(create_type_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_type_result typedOther = (create_type_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -30284,7 +21981,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_type_result s } - public static class drop_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_type_args"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -30478,30 +22175,30 @@ public boolean equals(drop_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type); + builder.append(type); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_type_args typedOther = (drop_type_args)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -30642,7 +22339,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_args struc } - public static class drop_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_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); @@ -30880,7 +22577,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -30954,60 +22651,60 @@ public boolean equals(drop_type_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_type_result typedOther = (drop_type_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -31212,7 +22909,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_result str } - public static class get_type_all_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_type_all_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -31406,30 +23103,30 @@ public boolean equals(get_type_all_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_type_all_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_all_args typedOther = (get_type_all_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -31570,7 +23267,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_args st } - public static class get_type_all_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_type_all_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -31677,7 +23374,7 @@ public get_type_all_result( */ public get_type_all_result(get_type_all_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); + Map __this__success = new HashMap(); for (Map.Entry other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); @@ -31847,45 +23544,45 @@ public boolean equals(get_type_all_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_type_all_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_all_result typedOther = (get_type_all_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -31973,14 +23670,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result { org.apache.thrift.protocol.TMap _map608 = iprot.readMapBegin(); struct.success = new HashMap(2*_map608.size); - String _key609; - Type _val610; - for (int _i611 = 0; _i611 < _map608.size; ++_i611) + for (int _i609 = 0; _i609 < _map608.size; ++_i609) { - _key609 = iprot.readString(); - _val610 = new Type(); - _val610.read(iprot); - struct.success.put(_key609, _val610); + String _key610; // required + Type _val611; // required + _key610 = iprot.readString(); + _val611 = new Type(); + _val611.read(iprot); + struct.success.put(_key610, _val611); } iprot.readMapEnd(); } @@ -32077,14 +23774,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result { org.apache.thrift.protocol.TMap _map614 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new HashMap(2*_map614.size); - String _key615; - Type _val616; - for (int _i617 = 0; _i617 < _map614.size; ++_i617) + for (int _i615 = 0; _i615 < _map614.size; ++_i615) { - _key615 = iprot.readString(); - _val616 = new Type(); - _val616.read(iprot); - struct.success.put(_key615, _val616); + String _key616; // required + Type _val617; // required + _key616 = iprot.readString(); + _val617 = new Type(); + _val617.read(iprot); + struct.success.put(_key616, _val617); } } struct.setSuccessIsSet(true); @@ -32099,7 +23796,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result } - public static class get_fields_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_fields_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -32351,45 +24048,45 @@ public boolean equals(get_fields_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_fields_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_args typedOther = (get_fields_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -32561,7 +24258,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_args stru } - public static class get_fields_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_fields_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_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); @@ -32685,7 +24382,7 @@ public get_fields_result( */ public get_fields_result(get_fields_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -32949,75 +24646,75 @@ public boolean equals(get_fields_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_fields_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_result typedOther = (get_fields_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -33121,12 +24818,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s { org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); struct.success = new ArrayList(_list618.size); - FieldSchema _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + for (int _i619 = 0; _i619 < _list618.size; ++_i619) { - _elem619 = new FieldSchema(); - _elem619.read(iprot); - struct.success.add(_elem619); + FieldSchema _elem620; // required + _elem620 = new FieldSchema(); + _elem620.read(iprot); + struct.success.add(_elem620); } iprot.readListEnd(); } @@ -33261,12 +24958,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st { org.apache.thrift.protocol.TList _list623 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list623.size); - FieldSchema _elem624; - for (int _i625 = 0; _i625 < _list623.size; ++_i625) + for (int _i624 = 0; _i624 < _list623.size; ++_i624) { - _elem624 = new FieldSchema(); - _elem624.read(iprot); - struct.success.add(_elem624); + FieldSchema _elem625; // required + _elem625 = new FieldSchema(); + _elem625.read(iprot); + struct.success.add(_elem625); } } struct.setSuccessIsSet(true); @@ -33291,7 +24988,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st } - public static class get_fields_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_fields_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -33601,60 +25298,60 @@ public boolean equals(get_fields_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_fields_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_with_environment_context_args typedOther = (get_fields_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -33862,7 +25559,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi } - public static class get_fields_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_fields_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_with_environment_context_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); @@ -33986,7 +25683,7 @@ public get_fields_with_environment_context_result( */ public get_fields_with_environment_context_result(get_fields_with_environment_context_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -34250,75 +25947,75 @@ public boolean equals(get_fields_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_fields_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_with_environment_context_result typedOther = (get_fields_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -34422,12 +26119,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env { org.apache.thrift.protocol.TList _list626 = iprot.readListBegin(); struct.success = new ArrayList(_list626.size); - FieldSchema _elem627; - for (int _i628 = 0; _i628 < _list626.size; ++_i628) + for (int _i627 = 0; _i627 < _list626.size; ++_i627) { - _elem627 = new FieldSchema(); - _elem627.read(iprot); - struct.success.add(_elem627); + FieldSchema _elem628; // required + _elem628 = new FieldSchema(); + _elem628.read(iprot); + struct.success.add(_elem628); } iprot.readListEnd(); } @@ -34562,12 +26259,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi { org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list631.size); - FieldSchema _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + for (int _i632 = 0; _i632 < _list631.size; ++_i632) { - _elem632 = new FieldSchema(); - _elem632.read(iprot); - struct.success.add(_elem632); + FieldSchema _elem633; // required + _elem633 = new FieldSchema(); + _elem633.read(iprot); + struct.success.add(_elem633); } } struct.setSuccessIsSet(true); @@ -34592,7 +26289,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi } - public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -34844,45 +26541,45 @@ public boolean equals(get_schema_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_schema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_args typedOther = (get_schema_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -35054,7 +26751,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args stru } - public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_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); @@ -35178,7 +26875,7 @@ public get_schema_result( */ public get_schema_result(get_schema_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -35442,75 +27139,75 @@ public boolean equals(get_schema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_schema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_result typedOther = (get_schema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -35614,12 +27311,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s { org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); struct.success = new ArrayList(_list634.size); - FieldSchema _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + for (int _i635 = 0; _i635 < _list634.size; ++_i635) { - _elem635 = new FieldSchema(); - _elem635.read(iprot); - struct.success.add(_elem635); + FieldSchema _elem636; // required + _elem636 = new FieldSchema(); + _elem636.read(iprot); + struct.success.add(_elem636); } iprot.readListEnd(); } @@ -35754,12 +27451,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st { org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list639.size); - FieldSchema _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + for (int _i640 = 0; _i640 < _list639.size; ++_i640) { - _elem640 = new FieldSchema(); - _elem640.read(iprot); - struct.success.add(_elem640); + FieldSchema _elem641; // required + _elem641 = new FieldSchema(); + _elem641.read(iprot); + struct.success.add(_elem641); } } struct.setSuccessIsSet(true); @@ -35784,7 +27481,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st } - public static class get_schema_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_schema_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -36094,60 +27791,60 @@ public boolean equals(get_schema_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_schema_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_with_environment_context_args typedOther = (get_schema_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -36355,7 +28052,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi } - public static class get_schema_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_schema_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_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); @@ -36479,7 +28176,7 @@ public get_schema_with_environment_context_result( */ public get_schema_with_environment_context_result(get_schema_with_environment_context_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -36743,75 +28440,75 @@ public boolean equals(get_schema_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_schema_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_with_environment_context_result typedOther = (get_schema_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -36915,12 +28612,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env { org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); struct.success = new ArrayList(_list642.size); - FieldSchema _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + for (int _i643 = 0; _i643 < _list642.size; ++_i643) { - _elem643 = new FieldSchema(); - _elem643.read(iprot); - struct.success.add(_elem643); + FieldSchema _elem644; // required + _elem644 = new FieldSchema(); + _elem644.read(iprot); + struct.success.add(_elem644); } iprot.readListEnd(); } @@ -37055,12 +28752,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi { org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list647.size); - FieldSchema _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + for (int _i648 = 0; _i648 < _list647.size; ++_i648) { - _elem648 = new FieldSchema(); - _elem648.read(iprot); - struct.success.add(_elem648); + FieldSchema _elem649; // required + _elem649 = new FieldSchema(); + _elem649.read(iprot); + struct.success.add(_elem649); } } struct.setSuccessIsSet(true); @@ -37085,7 +28782,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi } - public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_args"); private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -37279,30 +28976,30 @@ public boolean equals(create_table_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); + builder.append(present_tbl); if (present_tbl) - list.add(tbl); + builder.append(tbl); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_args typedOther = (create_table_args)other; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(typedOther.isSetTbl()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, typedOther.tbl); if (lastComparison != 0) { return lastComparison; } @@ -37448,7 +29145,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args st } - public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_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); @@ -37816,75 +29513,75 @@ public boolean equals(create_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_result typedOther = (create_table_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -38126,7 +29823,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result } - public static class create_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -38378,45 +30075,45 @@ public boolean equals(create_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); + builder.append(present_tbl); if (present_tbl) - list.add(tbl); + builder.append(tbl); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_with_environment_context_args typedOther = (create_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(typedOther.isSetTbl()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, typedOther.tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -38598,7 +30295,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en } - public static class create_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_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); @@ -38966,75 +30663,75 @@ public boolean equals(create_table_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_with_environment_context_result typedOther = (create_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -39276,7 +30973,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_en } - public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -39520,7 +31217,7 @@ public Object getFieldValue(_Fields field) { return getName(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -39588,60 +31285,60 @@ public boolean equals(drop_table_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_args typedOther = (drop_table_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -39840,7 +31537,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru } - public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_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); @@ -40092,45 +31789,45 @@ public boolean equals(drop_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_result typedOther = (drop_table_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -40306,7 +32003,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st } - public static class drop_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -40594,7 +32291,7 @@ public Object getFieldValue(_Fields field) { return getName(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -40676,75 +32373,75 @@ public boolean equals(drop_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_with_environment_context_args typedOther = (drop_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -40979,7 +32676,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi } - public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_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); @@ -41231,45 +32928,45 @@ public boolean equals(drop_table_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_with_environment_context_result typedOther = (drop_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -41445,7 +33142,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi } - public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -41697,45 +33394,45 @@ public boolean equals(get_tables_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); + builder.append(present_pattern); if (present_pattern) - list.add(pattern); + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_tables_args typedOther = (get_tables_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -41907,7 +33604,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args stru } - public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_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); @@ -42013,7 +33710,10 @@ public get_tables_result( */ public get_tables_result(get_tables_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -42176,45 +33876,45 @@ public boolean equals(get_tables_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_tables_result typedOther = (get_tables_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -42302,11 +34002,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s { org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); struct.success = new ArrayList(_list650.size); - String _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + for (int _i651 = 0; _i651 < _list650.size; ++_i651) { - _elem651 = iprot.readString(); - struct.success.add(_elem651); + String _elem652; // required + _elem652 = iprot.readString(); + struct.success.add(_elem652); } iprot.readListEnd(); } @@ -42401,11 +34101,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st { org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list655.size); - String _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + for (int _i656 = 0; _i656 < _list655.size; ++_i656) { - _elem656 = iprot.readString(); - struct.success.add(_elem656); + String _elem657; // required + _elem657 = iprot.readString(); + struct.success.add(_elem657); } } struct.setSuccessIsSet(true); @@ -42420,7 +34120,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st } - public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_meta_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_args"); private static final org.apache.thrift.protocol.TField DB_PATTERNS_FIELD_DESC = new org.apache.thrift.protocol.TField("db_patterns", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -42541,7 +34241,10 @@ public get_table_meta_args(get_table_meta_args other) { this.tbl_patterns = other.tbl_patterns; } if (other.isSetTbl_types()) { - List __this__tbl_types = new ArrayList(other.tbl_types); + List __this__tbl_types = new ArrayList(); + for (String other_element : other.tbl_types) { + __this__tbl_types.add(other_element); + } this.tbl_types = __this__tbl_types; } } @@ -42747,60 +34450,60 @@ public boolean equals(get_table_meta_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_patterns = true && (isSetDb_patterns()); - list.add(present_db_patterns); + builder.append(present_db_patterns); if (present_db_patterns) - list.add(db_patterns); + builder.append(db_patterns); boolean present_tbl_patterns = true && (isSetTbl_patterns()); - list.add(present_tbl_patterns); + builder.append(present_tbl_patterns); if (present_tbl_patterns) - list.add(tbl_patterns); + builder.append(tbl_patterns); boolean present_tbl_types = true && (isSetTbl_types()); - list.add(present_tbl_types); + builder.append(present_tbl_types); if (present_tbl_types) - list.add(tbl_types); + builder.append(tbl_types); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_meta_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_meta_args typedOther = (get_table_meta_args)other; - lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(other.isSetDb_patterns()); + lastComparison = Boolean.valueOf(isSetDb_patterns()).compareTo(typedOther.isSetDb_patterns()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, other.db_patterns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_patterns, typedOther.db_patterns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(other.isSetTbl_patterns()); + lastComparison = Boolean.valueOf(isSetTbl_patterns()).compareTo(typedOther.isSetTbl_patterns()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_patterns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, other.tbl_patterns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_patterns, typedOther.tbl_patterns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(other.isSetTbl_types()); + lastComparison = Boolean.valueOf(isSetTbl_types()).compareTo(typedOther.isSetTbl_types()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_types()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, other.tbl_types); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_types, typedOther.tbl_types); if (lastComparison != 0) { return lastComparison; } @@ -42912,11 +34615,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args { org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); struct.tbl_types = new ArrayList(_list658.size); - String _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + for (int _i659 = 0; _i659 < _list658.size; ++_i659) { - _elem659 = iprot.readString(); - struct.tbl_types.add(_elem659); + String _elem660; // required + _elem660 = iprot.readString(); + struct.tbl_types.add(_elem660); } iprot.readListEnd(); } @@ -43021,11 +34724,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args { org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tbl_types = new ArrayList(_list663.size); - String _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + for (int _i664 = 0; _i664 < _list663.size; ++_i664) { - _elem664 = iprot.readString(); - struct.tbl_types.add(_elem664); + String _elem665; // required + _elem665 = iprot.readString(); + struct.tbl_types.add(_elem665); } } struct.setTbl_typesIsSet(true); @@ -43035,7 +34738,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } - public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_meta_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_meta_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); @@ -43141,7 +34844,7 @@ public get_table_meta_result( */ public get_table_meta_result(get_table_meta_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (TableMeta other_element : other.success) { __this__success.add(new TableMeta(other_element)); } @@ -43307,45 +35010,45 @@ public boolean equals(get_table_meta_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_meta_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_meta_result typedOther = (get_table_meta_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -43433,12 +35136,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu { org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); struct.success = new ArrayList(_list666.size); - TableMeta _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + for (int _i667 = 0; _i667 < _list666.size; ++_i667) { - _elem667 = new TableMeta(); - _elem667.read(iprot); - struct.success.add(_elem667); + TableMeta _elem668; // required + _elem668 = new TableMeta(); + _elem668.read(iprot); + struct.success.add(_elem668); } iprot.readListEnd(); } @@ -43533,12 +35236,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul { org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list671.size); - TableMeta _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + for (int _i672 = 0; _i672 < _list671.size; ++_i672) { - _elem672 = new TableMeta(); - _elem672.read(iprot); - struct.success.add(_elem672); + TableMeta _elem673; // required + _elem673 = new TableMeta(); + _elem673.read(iprot); + struct.success.add(_elem673); } } struct.setSuccessIsSet(true); @@ -43553,7 +35256,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul } - public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -43747,30 +35450,30 @@ public boolean equals(get_all_tables_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_tables_args typedOther = (get_all_tables_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -43911,7 +35614,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args } - public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_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); @@ -44017,7 +35720,10 @@ public get_all_tables_result( */ public get_all_tables_result(get_all_tables_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -44180,45 +35886,45 @@ public boolean equals(get_all_tables_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_tables_result typedOther = (get_all_tables_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -44306,11 +36012,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu { org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); struct.success = new ArrayList(_list674.size); - String _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + for (int _i675 = 0; _i675 < _list674.size; ++_i675) { - _elem675 = iprot.readString(); - struct.success.add(_elem675); + String _elem676; // required + _elem676 = iprot.readString(); + struct.success.add(_elem676); } iprot.readListEnd(); } @@ -44405,11 +36111,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul { org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list679.size); - String _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + for (int _i680 = 0; _i680 < _list679.size; ++_i680) { - _elem680 = iprot.readString(); - struct.success.add(_elem680); + String _elem681; // required + _elem681 = iprot.readString(); + struct.success.add(_elem681); } } struct.setSuccessIsSet(true); @@ -44424,7 +36130,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul } - public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -44676,45 +36382,45 @@ public boolean equals(get_table_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_args typedOther = (get_table_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -44886,7 +36592,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struc } - public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -45196,60 +36902,60 @@ public boolean equals(get_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_result typedOther = (get_table_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -45461,7 +37167,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str } - public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -45570,7 +37276,10 @@ public get_table_objects_by_name_args(get_table_objects_by_name_args other) { this.dbname = other.dbname; } if (other.isSetTbl_names()) { - List __this__tbl_names = new ArrayList(other.tbl_names); + List __this__tbl_names = new ArrayList(); + for (String other_element : other.tbl_names) { + __this__tbl_names.add(other_element); + } this.tbl_names = __this__tbl_names; } } @@ -45730,45 +37439,45 @@ public boolean equals(get_table_objects_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_names = true && (isSetTbl_names()); - list.add(present_tbl_names); + builder.append(present_tbl_names); if (present_tbl_names) - list.add(tbl_names); + builder.append(tbl_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_objects_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_objects_by_name_args typedOther = (get_table_objects_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(typedOther.isSetTbl_names()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, typedOther.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -45864,11 +37573,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b { org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); struct.tbl_names = new ArrayList(_list682.size); - String _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + for (int _i683 = 0; _i683 < _list682.size; ++_i683) { - _elem683 = iprot.readString(); - struct.tbl_names.add(_elem683); + String _elem684; // required + _elem684 = iprot.readString(); + struct.tbl_names.add(_elem684); } iprot.readListEnd(); } @@ -45958,11 +37667,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by { org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tbl_names = new ArrayList(_list687.size); - String _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + for (int _i688 = 0; _i688 < _list687.size; ++_i688) { - _elem688 = iprot.readString(); - struct.tbl_names.add(_elem688); + String _elem689; // required + _elem689 = iprot.readString(); + struct.tbl_names.add(_elem689); } } struct.setTbl_namesIsSet(true); @@ -45972,7 +37681,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } - public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_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); @@ -46096,7 +37805,7 @@ public get_table_objects_by_name_result( */ public get_table_objects_by_name_result(get_table_objects_by_name_result other) { if (other.isSetSuccess()) { - List
__this__success = new ArrayList
(other.success.size()); + List
__this__success = new ArrayList
(); for (Table other_element : other.success) { __this__success.add(new Table(other_element)); } @@ -46360,75 +38069,75 @@ public boolean equals(get_table_objects_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_objects_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_objects_by_name_result typedOther = (get_table_objects_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -46532,12 +38241,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b { org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); struct.success = new ArrayList
(_list690.size); - Table _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + for (int _i691 = 0; _i691 < _list690.size; ++_i691) { - _elem691 = new Table(); - _elem691.read(iprot); - struct.success.add(_elem691); + Table _elem692; // required + _elem692 = new Table(); + _elem692.read(iprot); + struct.success.add(_elem692); } iprot.readListEnd(); } @@ -46672,12 +38381,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by { org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList
(_list695.size); - Table _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + for (int _i696 = 0; _i696 < _list695.size; ++_i696) { - _elem696 = new Table(); - _elem696.read(iprot); - struct.success.add(_elem696); + Table _elem697; // required + _elem697 = new Table(); + _elem697.read(iprot); + struct.success.add(_elem697); } } struct.setSuccessIsSet(true); @@ -46702,7 +38411,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } - public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -46948,7 +38657,7 @@ public Object getFieldValue(_Fields field) { return getFilter(); case MAX_TABLES: - return getMax_tables(); + return Short.valueOf(getMax_tables()); } throw new IllegalStateException(); @@ -47016,60 +38725,60 @@ public boolean equals(get_table_names_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_filter = true && (isSetFilter()); - list.add(present_filter); + builder.append(present_filter); if (present_filter) - list.add(filter); + builder.append(filter); boolean present_max_tables = true; - list.add(present_max_tables); + builder.append(present_max_tables); if (present_max_tables) - list.add(max_tables); + builder.append(max_tables); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_names_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_names_by_filter_args typedOther = (get_table_names_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(typedOther.isSetMax_tables()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_tables()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, typedOther.max_tables); if (lastComparison != 0) { return lastComparison; } @@ -47268,7 +38977,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f } - public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_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); @@ -47392,7 +39101,10 @@ public get_table_names_by_filter_result( */ public get_table_names_by_filter_result(get_table_names_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -47653,75 +39365,75 @@ public boolean equals(get_table_names_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_names_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_names_by_filter_result typedOther = (get_table_names_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -47825,11 +39537,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ { org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); struct.success = new ArrayList(_list698.size); - String _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + for (int _i699 = 0; _i699 < _list698.size; ++_i699) { - _elem699 = iprot.readString(); - struct.success.add(_elem699); + String _elem700; // required + _elem700 = iprot.readString(); + struct.success.add(_elem700); } iprot.readListEnd(); } @@ -47964,11 +39676,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f { org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list703.size); - String _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + for (int _i704 = 0; _i704 < _list703.size; ++_i704) { - _elem704 = iprot.readString(); - struct.success.add(_elem704); + String _elem705; // required + _elem705 = iprot.readString(); + struct.success.add(_elem705); } } struct.setSuccessIsSet(true); @@ -47993,7 +39705,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f } - public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -48303,60 +40015,60 @@ public boolean equals(alter_table_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); + builder.append(present_new_tbl); if (present_new_tbl) - list.add(new_tbl); + builder.append(new_tbl); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_args typedOther = (alter_table_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } @@ -48564,7 +40276,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args str } - public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_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); @@ -48816,45 +40528,45 @@ public boolean equals(alter_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_result typedOther = (alter_table_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -49030,7 +40742,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result s } - public static class alter_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -49398,75 +41110,75 @@ public boolean equals(alter_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); + builder.append(present_new_tbl); if (present_new_tbl) - list.add(new_tbl); + builder.append(new_tbl); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_environment_context_args typedOther = (alter_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -49710,7 +41422,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env } - public static class alter_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_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); @@ -49962,45 +41674,45 @@ public boolean equals(alter_table_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_environment_context_result typedOther = (alter_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -50176,7 +41888,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env } - public static class alter_table_with_cascade_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_with_cascade_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -50467,7 +42179,7 @@ public Object getFieldValue(_Fields field) { return getNew_tbl(); case CASCADE: - return isCascade(); + return Boolean.valueOf(isCascade()); } throw new IllegalStateException(); @@ -50546,75 +42258,75 @@ public boolean equals(alter_table_with_cascade_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); + builder.append(present_new_tbl); if (present_new_tbl) - list.add(new_tbl); + builder.append(new_tbl); boolean present_cascade = true; - list.add(present_cascade); + builder.append(present_cascade); if (present_cascade) - list.add(cascade); + builder.append(cascade); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_with_cascade_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_cascade_args typedOther = (alter_table_with_cascade_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(typedOther.isSetCascade()); if (lastComparison != 0) { return lastComparison; } if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, typedOther.cascade); if (lastComparison != 0) { return lastComparison; } @@ -50849,7 +42561,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas } - public static class alter_table_with_cascade_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_table_with_cascade_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_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); @@ -51101,45 +42813,45 @@ public boolean equals(alter_table_with_cascade_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_table_with_cascade_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_cascade_result typedOther = (alter_table_with_cascade_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -51315,7 +43027,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas } - public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -51509,30 +43221,30 @@ public boolean equals(add_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_args typedOther = (add_partition_args)other; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -51678,7 +43390,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args s } - public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -52046,75 +43758,75 @@ public boolean equals(add_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_result typedOther = (add_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -52359,7 +44071,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result } - public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -52611,45 +44323,45 @@ public boolean equals(add_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_with_environment_context_args typedOther = (add_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -52831,7 +44543,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e } - public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -53199,75 +44911,75 @@ public boolean equals(add_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_with_environment_context_result typedOther = (add_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -53512,7 +45224,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e } - public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -53609,7 +45321,7 @@ public add_partitions_args( */ public add_partitions_args(add_partitions_args other) { if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); + List __this__new_parts = new ArrayList(); for (Partition other_element : other.new_parts) { __this__new_parts.add(new Partition(other_element)); } @@ -53726,30 +45438,30 @@ public boolean equals(add_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); + builder.append(present_new_parts); if (present_new_parts) - list.add(new_parts); + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_args typedOther = (add_partitions_args)other; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -53829,12 +45541,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args { org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); struct.new_parts = new ArrayList(_list706.size); - Partition _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + for (int _i707 = 0; _i707 < _list706.size; ++_i707) { - _elem707 = new Partition(); - _elem707.read(iprot); - struct.new_parts.add(_elem707); + Partition _elem708; // required + _elem708 = new Partition(); + _elem708.read(iprot); + struct.new_parts.add(_elem708); } iprot.readListEnd(); } @@ -53909,12 +45621,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args { org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.new_parts = new ArrayList(_list711.size); - Partition _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + for (int _i712 = 0; _i712 < _list711.size; ++_i712) { - _elem712 = new Partition(); - _elem712.read(iprot); - struct.new_parts.add(_elem712); + Partition _elem713; // required + _elem713 = new Partition(); + _elem713.read(iprot); + struct.new_parts.add(_elem713); } } struct.setNew_partsIsSet(true); @@ -53924,7 +45636,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args } - public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -54206,7 +45918,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -54294,75 +46006,75 @@ public boolean equals(add_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_result typedOther = (add_partitions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -54600,7 +46312,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul } - public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -54697,7 +46409,7 @@ public add_partitions_pspec_args( */ public add_partitions_pspec_args(add_partitions_pspec_args other) { if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); + List __this__new_parts = new ArrayList(); for (PartitionSpec other_element : other.new_parts) { __this__new_parts.add(new PartitionSpec(other_element)); } @@ -54814,30 +46526,30 @@ public boolean equals(add_partitions_pspec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); + builder.append(present_new_parts); if (present_new_parts) - list.add(new_parts); + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_pspec_args typedOther = (add_partitions_pspec_args)other; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -54917,12 +46629,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe { org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); struct.new_parts = new ArrayList(_list714.size); - PartitionSpec _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + for (int _i715 = 0; _i715 < _list714.size; ++_i715) { - _elem715 = new PartitionSpec(); - _elem715.read(iprot); - struct.new_parts.add(_elem715); + PartitionSpec _elem716; // required + _elem716 = new PartitionSpec(); + _elem716.read(iprot); + struct.new_parts.add(_elem716); } iprot.readListEnd(); } @@ -54997,12 +46709,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec { org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.new_parts = new ArrayList(_list719.size); - PartitionSpec _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + for (int _i720 = 0; _i720 < _list719.size; ++_i720) { - _elem720 = new PartitionSpec(); - _elem720.read(iprot); - struct.new_parts.add(_elem720); + PartitionSpec _elem721; // required + _elem721 = new PartitionSpec(); + _elem721.read(iprot); + struct.new_parts.add(_elem721); } } struct.setNew_partsIsSet(true); @@ -55012,7 +46724,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec } - public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -55294,7 +47006,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -55382,75 +47094,75 @@ public boolean equals(add_partitions_pspec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_pspec_result typedOther = (add_partitions_pspec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -55688,7 +47400,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec } - public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -55809,7 +47521,10 @@ public append_partition_args(append_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } } @@ -56015,60 +47730,60 @@ public boolean equals(append_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_args typedOther = (append_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -56180,11 +47895,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar { org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list722.size); - String _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + for (int _i723 = 0; _i723 < _list722.size; ++_i723) { - _elem723 = iprot.readString(); - struct.part_vals.add(_elem723); + String _elem724; // required + _elem724 = iprot.readString(); + struct.part_vals.add(_elem724); } iprot.readListEnd(); } @@ -56289,11 +48004,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg { org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list727.size); - String _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + for (int _i728 = 0; _i728 < _list727.size; ++_i728) { - _elem728 = iprot.readString(); - struct.part_vals.add(_elem728); + String _elem729; // required + _elem729 = iprot.readString(); + struct.part_vals.add(_elem729); } } struct.setPart_valsIsSet(true); @@ -56303,7 +48018,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } - public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -56671,75 +48386,75 @@ public boolean equals(append_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_result typedOther = (append_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -56984,7 +48699,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res } - public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -57178,30 +48893,30 @@ public boolean equals(add_partitions_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_req_args typedOther = (add_partitions_req_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -57347,7 +49062,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_a } - public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -57715,75 +49430,75 @@ public boolean equals(add_partitions_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_req_result typedOther = (add_partitions_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -58028,7 +49743,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_r } - public static class append_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -58158,7 +49873,10 @@ public append_partition_with_environment_context_args(append_partition_with_envi this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } if (other.isSetEnvironment_context()) { @@ -58413,75 +50131,75 @@ public boolean equals(append_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_with_environment_context_args typedOther = (append_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -58604,11 +50322,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi { org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list730.size); - String _elem731; - for (int _i732 = 0; _i732 < _list730.size; ++_i732) + for (int _i731 = 0; _i731 < _list730.size; ++_i731) { - _elem731 = iprot.readString(); - struct.part_vals.add(_elem731); + String _elem732; // required + _elem732 = iprot.readString(); + struct.part_vals.add(_elem732); } iprot.readListEnd(); } @@ -58733,11 +50451,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit { org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list735.size); - String _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + for (int _i736 = 0; _i736 < _list735.size; ++_i736) { - _elem736 = iprot.readString(); - struct.part_vals.add(_elem736); + String _elem737; // required + _elem737 = iprot.readString(); + struct.part_vals.add(_elem737); } } struct.setPart_valsIsSet(true); @@ -58752,7 +50470,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } - public static class append_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -59120,75 +50838,75 @@ public boolean equals(append_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_with_environment_context_result typedOther = (append_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -59433,7 +51151,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } - public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -59743,60 +51461,60 @@ public boolean equals(append_partition_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_args typedOther = (append_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -59999,7 +51717,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -60367,75 +52085,75 @@ public boolean equals(append_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_result typedOther = (append_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -60680,7 +52398,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -61048,75 +52766,75 @@ public boolean equals(append_partition_by_name_with_environment_context_args tha @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_with_environment_context_args typedOther = (append_partition_by_name_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -61355,7 +53073,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class append_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -61723,75 +53441,75 @@ public boolean equals(append_partition_by_name_with_environment_context_result t @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(append_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_with_environment_context_result typedOther = (append_partition_by_name_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -62036,7 +53754,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -62170,7 +53888,10 @@ public drop_partition_args(drop_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.deleteData = other.deleteData; @@ -62344,7 +54065,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -62423,75 +54144,75 @@ public boolean equals(drop_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_args typedOther = (drop_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -62609,11 +54330,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args { org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list738.size); - String _elem739; - for (int _i740 = 0; _i740 < _list738.size; ++_i740) + for (int _i739 = 0; _i739 < _list738.size; ++_i739) { - _elem739 = iprot.readString(); - struct.part_vals.add(_elem739); + String _elem740; // required + _elem740 = iprot.readString(); + struct.part_vals.add(_elem740); } iprot.readListEnd(); } @@ -62735,11 +54456,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args { org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list743.size); - String _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + for (int _i744 = 0; _i744 < _list743.size; ++_i744) { - _elem744 = iprot.readString(); - struct.part_vals.add(_elem744); + String _elem745; // required + _elem745 = iprot.readString(); + struct.part_vals.add(_elem745); } } struct.setPart_valsIsSet(true); @@ -62753,7 +54474,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } - public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_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); @@ -62991,7 +54712,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -63065,60 +54786,60 @@ public boolean equals(drop_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_result typedOther = (drop_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -63323,7 +55044,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_resul } - public static class drop_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -63466,7 +55187,10 @@ public drop_partition_with_environment_context_args(drop_partition_with_environm this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.deleteData = other.deleteData; @@ -63675,7 +55399,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -63768,90 +55492,90 @@ public boolean equals(drop_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_with_environment_context_args typedOther = (drop_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -63980,11 +55704,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with { org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list746.size); - String _elem747; - for (int _i748 = 0; _i748 < _list746.size; ++_i748) + for (int _i747 = 0; _i747 < _list746.size; ++_i747) { - _elem747 = iprot.readString(); - struct.part_vals.add(_elem747); + String _elem748; // required + _elem748 = iprot.readString(); + struct.part_vals.add(_elem748); } iprot.readListEnd(); } @@ -64126,11 +55850,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ { org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list751.size); - String _elem752; - for (int _i753 = 0; _i753 < _list751.size; ++_i753) + for (int _i752 = 0; _i752 < _list751.size; ++_i752) { - _elem752 = iprot.readString(); - struct.part_vals.add(_elem752); + String _elem753; // required + _elem753 = iprot.readString(); + struct.part_vals.add(_elem753); } } struct.setPart_valsIsSet(true); @@ -64149,7 +55873,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - public static class drop_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_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); @@ -64387,7 +56111,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -64461,60 +56185,60 @@ public boolean equals(drop_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_with_environment_context_result typedOther = (drop_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -64719,7 +56443,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -65010,7 +56734,7 @@ public Object getFieldValue(_Fields field) { return getPart_name(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -65089,75 +56813,75 @@ public boolean equals(drop_partition_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_args typedOther = (drop_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -65387,7 +57111,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_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); @@ -65625,7 +57349,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -65699,60 +57423,60 @@ public boolean equals(drop_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_result typedOther = (drop_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -65957,7 +57681,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -66292,7 +58016,7 @@ public Object getFieldValue(_Fields field) { return getPart_name(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); case ENVIRONMENT_CONTEXT: return getEnvironment_context(); @@ -66385,90 +58109,90 @@ public boolean equals(drop_partition_by_name_with_environment_context_args that) @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_with_environment_context_args typedOther = (drop_partition_by_name_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -66734,7 +58458,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_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); @@ -66972,7 +58696,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -67046,60 +58770,60 @@ public boolean equals(drop_partition_by_name_with_environment_context_result tha @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_with_environment_context_result typedOther = (drop_partition_by_name_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -67304,7 +59028,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -67498,30 +59222,30 @@ public boolean equals(drop_partitions_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partitions_req_args typedOther = (drop_partitions_req_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -67667,7 +59391,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ } - public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -67977,60 +59701,60 @@ public boolean equals(drop_partitions_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partitions_req_result typedOther = (drop_partitions_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -68242,7 +59966,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ } - public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -68363,7 +60087,10 @@ public get_partition_args(get_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } } @@ -68569,60 +60296,60 @@ public boolean equals(get_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_args typedOther = (get_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -68734,11 +60461,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args { org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list754.size); - String _elem755; - for (int _i756 = 0; _i756 < _list754.size; ++_i756) + for (int _i755 = 0; _i755 < _list754.size; ++_i755) { - _elem755 = iprot.readString(); - struct.part_vals.add(_elem755); + String _elem756; // required + _elem756 = iprot.readString(); + struct.part_vals.add(_elem756); } iprot.readListEnd(); } @@ -68843,11 +60570,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s { org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list759.size); - String _elem760; - for (int _i761 = 0; _i761 < _list759.size; ++_i761) + for (int _i760 = 0; _i760 < _list759.size; ++_i760) { - _elem760 = iprot.readString(); - struct.part_vals.add(_elem760); + String _elem761; // required + _elem761 = iprot.readString(); + struct.part_vals.add(_elem761); } } struct.setPart_valsIsSet(true); @@ -68857,7 +60584,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } - public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -69167,60 +60894,60 @@ public boolean equals(get_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_result typedOther = (get_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -69432,7 +61159,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result } - public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_args"); private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -69566,7 +61293,18 @@ public exchange_partition_args( */ public exchange_partition_args(exchange_partition_args other) { if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + Map __this__partitionSpecs = new HashMap(); + for (Map.Entry other_element : other.partitionSpecs.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__partitionSpecs_copy_key = other_element_key; + + String __this__partitionSpecs_copy_value = other_element_value; + + __this__partitionSpecs.put(__this__partitionSpecs_copy_key, __this__partitionSpecs_copy_value); + } this.partitionSpecs = __this__partitionSpecs; } if (other.isSetSource_db()) { @@ -69872,90 +61610,90 @@ public boolean equals(exchange_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); + builder.append(present_partitionSpecs); if (present_partitionSpecs) - list.add(partitionSpecs); + builder.append(partitionSpecs); boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); + builder.append(present_source_db); if (present_source_db) - list.add(source_db); + builder.append(source_db); boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); + builder.append(present_source_table_name); if (present_source_table_name) - list.add(source_table_name); + builder.append(source_table_name); boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); + builder.append(present_dest_db); if (present_dest_db) - list.add(dest_db); + builder.append(dest_db); boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); + builder.append(present_dest_table_name); if (present_dest_table_name) - list.add(dest_table_name); + builder.append(dest_table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(exchange_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partition_args typedOther = (exchange_partition_args)other; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(typedOther.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, typedOther.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(typedOther.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, typedOther.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(typedOther.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, typedOther.source_table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(typedOther.isSetDest_db()); if (lastComparison != 0) { return lastComparison; } if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, typedOther.dest_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(typedOther.isSetDest_table_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, typedOther.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -70067,13 +61805,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ { org.apache.thrift.protocol.TMap _map762 = iprot.readMapBegin(); struct.partitionSpecs = new HashMap(2*_map762.size); - String _key763; - String _val764; - for (int _i765 = 0; _i765 < _map762.size; ++_i765) + for (int _i763 = 0; _i763 < _map762.size; ++_i763) { - _key763 = iprot.readString(); - _val764 = iprot.readString(); - struct.partitionSpecs.put(_key763, _val764); + String _key764; // required + String _val765; // required + _key764 = iprot.readString(); + _val765 = iprot.readString(); + struct.partitionSpecs.put(_key764, _val765); } iprot.readMapEnd(); } @@ -70226,13 +61964,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a { org.apache.thrift.protocol.TMap _map768 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionSpecs = new HashMap(2*_map768.size); - String _key769; - String _val770; - for (int _i771 = 0; _i771 < _map768.size; ++_i771) + for (int _i769 = 0; _i769 < _map768.size; ++_i769) { - _key769 = iprot.readString(); - _val770 = iprot.readString(); - struct.partitionSpecs.put(_key769, _val770); + String _key770; // required + String _val771; // required + _key770 = iprot.readString(); + _val771 = iprot.readString(); + struct.partitionSpecs.put(_key770, _val771); } } struct.setPartitionSpecsIsSet(true); @@ -70258,7 +61996,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a } - public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -70684,90 +62422,90 @@ public boolean equals(exchange_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(exchange_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partition_result typedOther = (exchange_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -71045,7 +62783,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r } - public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -71179,7 +62917,18 @@ public exchange_partitions_args( */ public exchange_partitions_args(exchange_partitions_args other) { if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + Map __this__partitionSpecs = new HashMap(); + for (Map.Entry other_element : other.partitionSpecs.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__partitionSpecs_copy_key = other_element_key; + + String __this__partitionSpecs_copy_value = other_element_value; + + __this__partitionSpecs.put(__this__partitionSpecs_copy_key, __this__partitionSpecs_copy_value); + } this.partitionSpecs = __this__partitionSpecs; } if (other.isSetSource_db()) { @@ -71485,90 +63234,90 @@ public boolean equals(exchange_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); + builder.append(present_partitionSpecs); if (present_partitionSpecs) - list.add(partitionSpecs); + builder.append(partitionSpecs); boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); + builder.append(present_source_db); if (present_source_db) - list.add(source_db); + builder.append(source_db); boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); + builder.append(present_source_table_name); if (present_source_table_name) - list.add(source_table_name); + builder.append(source_table_name); boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); + builder.append(present_dest_db); if (present_dest_db) - list.add(dest_db); + builder.append(dest_db); boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); + builder.append(present_dest_table_name); if (present_dest_table_name) - list.add(dest_table_name); + builder.append(dest_table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(exchange_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partitions_args typedOther = (exchange_partitions_args)other; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(typedOther.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, typedOther.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(typedOther.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, typedOther.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(typedOther.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, typedOther.source_table_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(typedOther.isSetDest_db()); if (lastComparison != 0) { return lastComparison; } if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, typedOther.dest_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(typedOther.isSetDest_table_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, typedOther.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -71680,13 +63429,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions { org.apache.thrift.protocol.TMap _map772 = iprot.readMapBegin(); struct.partitionSpecs = new HashMap(2*_map772.size); - String _key773; - String _val774; - for (int _i775 = 0; _i775 < _map772.size; ++_i775) + for (int _i773 = 0; _i773 < _map772.size; ++_i773) { - _key773 = iprot.readString(); - _val774 = iprot.readString(); - struct.partitionSpecs.put(_key773, _val774); + String _key774; // required + String _val775; // required + _key774 = iprot.readString(); + _val775 = iprot.readString(); + struct.partitionSpecs.put(_key774, _val775); } iprot.readMapEnd(); } @@ -71839,13 +63588,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ { org.apache.thrift.protocol.TMap _map778 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionSpecs = new HashMap(2*_map778.size); - String _key779; - String _val780; - for (int _i781 = 0; _i781 < _map778.size; ++_i781) + for (int _i779 = 0; _i779 < _map778.size; ++_i779) { - _key779 = iprot.readString(); - _val780 = iprot.readString(); - struct.partitionSpecs.put(_key779, _val780); + String _key780; // required + String _val781; // required + _key780 = iprot.readString(); + _val781 = iprot.readString(); + struct.partitionSpecs.put(_key780, _val781); } } struct.setPartitionSpecsIsSet(true); @@ -71871,7 +63620,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ } - public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_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); @@ -72004,7 +63753,7 @@ public exchange_partitions_result( */ public exchange_partitions_result(exchange_partitions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -72317,90 +64066,90 @@ public boolean equals(exchange_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(exchange_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partitions_result typedOther = (exchange_partitions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -72512,12 +64261,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions { org.apache.thrift.protocol.TList _list782 = iprot.readListBegin(); struct.success = new ArrayList(_list782.size); - Partition _elem783; - for (int _i784 = 0; _i784 < _list782.size; ++_i784) + for (int _i783 = 0; _i783 < _list782.size; ++_i783) { - _elem783 = new Partition(); - _elem783.read(iprot); - struct.success.add(_elem783); + Partition _elem784; // required + _elem784 = new Partition(); + _elem784.read(iprot); + struct.success.add(_elem784); } iprot.readListEnd(); } @@ -72672,12 +64421,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ { org.apache.thrift.protocol.TList _list787 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list787.size); - Partition _elem788; - for (int _i789 = 0; _i789 < _list787.size; ++_i789) + for (int _i788 = 0; _i788 < _list787.size; ++_i788) { - _elem788 = new Partition(); - _elem788.read(iprot); - struct.success.add(_elem788); + Partition _elem789; // required + _elem789 = new Partition(); + _elem789.read(iprot); + struct.success.add(_elem789); } } struct.setSuccessIsSet(true); @@ -72707,7 +64456,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ } - public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -72847,14 +64596,20 @@ public get_partition_with_auth_args(get_partition_with_auth_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } if (other.isSetUser_name()) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -73167,90 +64922,90 @@ public boolean equals(get_partition_with_auth_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_with_auth_args typedOther = (get_partition_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -73378,11 +65133,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ { org.apache.thrift.protocol.TList _list790 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list790.size); - String _elem791; - for (int _i792 = 0; _i792 < _list790.size; ++_i792) + for (int _i791 = 0; _i791 < _list790.size; ++_i791) { - _elem791 = iprot.readString(); - struct.part_vals.add(_elem791); + String _elem792; // required + _elem792 = iprot.readString(); + struct.part_vals.add(_elem792); } iprot.readListEnd(); } @@ -73404,11 +65159,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ { org.apache.thrift.protocol.TList _list793 = iprot.readListBegin(); struct.group_names = new ArrayList(_list793.size); - String _elem794; - for (int _i795 = 0; _i795 < _list793.size; ++_i795) + for (int _i794 = 0; _i794 < _list793.size; ++_i794) { - _elem794 = iprot.readString(); - struct.group_names.add(_elem794); + String _elem795; // required + _elem795 = iprot.readString(); + struct.group_names.add(_elem795); } iprot.readListEnd(); } @@ -73548,11 +65303,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a { org.apache.thrift.protocol.TList _list800 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list800.size); - String _elem801; - for (int _i802 = 0; _i802 < _list800.size; ++_i802) + for (int _i801 = 0; _i801 < _list800.size; ++_i801) { - _elem801 = iprot.readString(); - struct.part_vals.add(_elem801); + String _elem802; // required + _elem802 = iprot.readString(); + struct.part_vals.add(_elem802); } } struct.setPart_valsIsSet(true); @@ -73565,11 +65320,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a { org.apache.thrift.protocol.TList _list803 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list803.size); - String _elem804; - for (int _i805 = 0; _i805 < _list803.size; ++_i805) + for (int _i804 = 0; _i804 < _list803.size; ++_i804) { - _elem804 = iprot.readString(); - struct.group_names.add(_elem804); + String _elem805; // required + _elem805 = iprot.readString(); + struct.group_names.add(_elem805); } } struct.setGroup_namesIsSet(true); @@ -73579,7 +65334,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } - public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -73889,60 +65644,60 @@ public boolean equals(get_partition_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_with_auth_result typedOther = (get_partition_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -74154,7 +65909,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } - public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -74464,60 +66219,60 @@ public boolean equals(get_partition_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_by_name_args typedOther = (get_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -74720,7 +66475,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam } - public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -75030,60 +66785,60 @@ public boolean equals(get_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_by_name_result typedOther = (get_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -75295,7 +67050,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam } - public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -75541,7 +67296,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -75609,60 +67364,60 @@ public boolean equals(get_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_args typedOther = (get_partitions_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -75861,7 +67616,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args } - public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_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); @@ -75976,7 +67731,7 @@ public get_partitions_result( */ public get_partitions_result(get_partitions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -76191,60 +67946,60 @@ public boolean equals(get_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_result typedOther = (get_partitions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -76340,12 +68095,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu { org.apache.thrift.protocol.TList _list806 = iprot.readListBegin(); struct.success = new ArrayList(_list806.size); - Partition _elem807; - for (int _i808 = 0; _i808 < _list806.size; ++_i808) + for (int _i807 = 0; _i807 < _list806.size; ++_i807) { - _elem807 = new Partition(); - _elem807.read(iprot); - struct.success.add(_elem807); + Partition _elem808; // required + _elem808 = new Partition(); + _elem808.read(iprot); + struct.success.add(_elem808); } iprot.readListEnd(); } @@ -76460,12 +68215,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul { org.apache.thrift.protocol.TList _list811 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list811.size); - Partition _elem812; - for (int _i813 = 0; _i813 < _list811.size; ++_i813) + for (int _i812 = 0; _i812 < _list811.size; ++_i812) { - _elem812 = new Partition(); - _elem812.read(iprot); - struct.success.add(_elem812); + Partition _elem813; // required + _elem813 = new Partition(); + _elem813.read(iprot); + struct.success.add(_elem813); } } struct.setSuccessIsSet(true); @@ -76485,7 +68240,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul } - public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -76634,7 +68389,10 @@ public get_partitions_with_auth_args(get_partitions_with_auth_args other) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -76836,7 +68594,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); case USER_NAME: return getUser_name(); @@ -76932,90 +68690,90 @@ public boolean equals(get_partitions_with_auth_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_with_auth_args typedOther = (get_partitions_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -77157,11 +68915,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with { org.apache.thrift.protocol.TList _list814 = iprot.readListBegin(); struct.group_names = new ArrayList(_list814.size); - String _elem815; - for (int _i816 = 0; _i816 < _list814.size; ++_i816) + for (int _i815 = 0; _i815 < _list814.size; ++_i815) { - _elem815 = iprot.readString(); - struct.group_names.add(_elem815); + String _elem816; // required + _elem816 = iprot.readString(); + struct.group_names.add(_elem816); } iprot.readListEnd(); } @@ -77294,11 +69052,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ { org.apache.thrift.protocol.TList _list819 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list819.size); - String _elem820; - for (int _i821 = 0; _i821 < _list819.size; ++_i821) + for (int _i820 = 0; _i820 < _list819.size; ++_i820) { - _elem820 = iprot.readString(); - struct.group_names.add(_elem820); + String _elem821; // required + _elem821 = iprot.readString(); + struct.group_names.add(_elem821); } } struct.setGroup_namesIsSet(true); @@ -77308,7 +69066,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_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); @@ -77423,7 +69181,7 @@ public get_partitions_with_auth_result( */ public get_partitions_with_auth_result(get_partitions_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -77638,60 +69396,60 @@ public boolean equals(get_partitions_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_with_auth_result typedOther = (get_partitions_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -77787,12 +69545,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with { org.apache.thrift.protocol.TList _list822 = iprot.readListBegin(); struct.success = new ArrayList(_list822.size); - Partition _elem823; - for (int _i824 = 0; _i824 < _list822.size; ++_i824) + for (int _i823 = 0; _i823 < _list822.size; ++_i823) { - _elem823 = new Partition(); - _elem823.read(iprot); - struct.success.add(_elem823); + Partition _elem824; // required + _elem824 = new Partition(); + _elem824.read(iprot); + struct.success.add(_elem824); } iprot.readListEnd(); } @@ -77907,12 +69665,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ { org.apache.thrift.protocol.TList _list827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list827.size); - Partition _elem828; - for (int _i829 = 0; _i829 < _list827.size; ++_i829) + for (int _i828 = 0; _i828 < _list827.size; ++_i828) { - _elem828 = new Partition(); - _elem828.read(iprot); - struct.success.add(_elem828); + Partition _elem829; // required + _elem829 = new Partition(); + _elem829.read(iprot); + struct.success.add(_elem829); } } struct.setSuccessIsSet(true); @@ -77932,7 +69690,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -78178,7 +69936,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return getMax_parts(); + return Integer.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -78246,60 +70004,60 @@ public boolean equals(get_partitions_pspec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_pspec_args typedOther = (get_partitions_pspec_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -78498,7 +70256,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_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); @@ -78613,7 +70371,7 @@ public get_partitions_pspec_result( */ public get_partitions_pspec_result(get_partitions_pspec_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (PartitionSpec other_element : other.success) { __this__success.add(new PartitionSpec(other_element)); } @@ -78828,60 +70586,60 @@ public boolean equals(get_partitions_pspec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_pspec_result typedOther = (get_partitions_pspec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -78977,12 +70735,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe { org.apache.thrift.protocol.TList _list830 = iprot.readListBegin(); struct.success = new ArrayList(_list830.size); - PartitionSpec _elem831; - for (int _i832 = 0; _i832 < _list830.size; ++_i832) + for (int _i831 = 0; _i831 < _list830.size; ++_i831) { - _elem831 = new PartitionSpec(); - _elem831.read(iprot); - struct.success.add(_elem831); + PartitionSpec _elem832; // required + _elem832 = new PartitionSpec(); + _elem832.read(iprot); + struct.success.add(_elem832); } iprot.readListEnd(); } @@ -79097,12 +70855,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec { org.apache.thrift.protocol.TList _list835 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list835.size); - PartitionSpec _elem836; - for (int _i837 = 0; _i837 < _list835.size; ++_i837) + for (int _i836 = 0; _i836 < _list835.size; ++_i836) { - _elem836 = new PartitionSpec(); - _elem836.read(iprot); - struct.success.add(_elem836); + PartitionSpec _elem837; // required + _elem837 = new PartitionSpec(); + _elem837.read(iprot); + struct.success.add(_elem837); } } struct.setSuccessIsSet(true); @@ -79122,7 +70880,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -79368,7 +71126,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -79436,60 +71194,60 @@ public boolean equals(get_partition_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_args typedOther = (get_partition_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -79688,7 +71446,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_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); @@ -79794,7 +71552,10 @@ public get_partition_names_result( */ public get_partition_names_result(get_partition_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO2()) { @@ -79957,45 +71718,45 @@ public boolean equals(get_partition_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_result typedOther = (get_partition_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -80083,11 +71844,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names { org.apache.thrift.protocol.TList _list838 = iprot.readListBegin(); struct.success = new ArrayList(_list838.size); - String _elem839; - for (int _i840 = 0; _i840 < _list838.size; ++_i840) + for (int _i839 = 0; _i839 < _list838.size; ++_i839) { - _elem839 = iprot.readString(); - struct.success.add(_elem839); + String _elem840; // required + _elem840 = iprot.readString(); + struct.success.add(_elem840); } iprot.readListEnd(); } @@ -80182,11 +71943,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ { org.apache.thrift.protocol.TList _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list843.size); - String _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + for (int _i844 = 0; _i844 < _list843.size; ++_i844) { - _elem844 = iprot.readString(); - struct.success.add(_elem844); + String _elem845; // required + _elem845 = iprot.readString(); + struct.success.add(_elem845); } } struct.setSuccessIsSet(true); @@ -80201,7 +71962,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -80337,7 +72098,10 @@ public get_partitions_ps_args(get_partitions_ps_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; @@ -80511,7 +72275,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -80590,75 +72354,75 @@ public boolean equals(get_partitions_ps_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_args typedOther = (get_partitions_ps_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -80776,11 +72540,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a { org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list846.size); - String _elem847; - for (int _i848 = 0; _i848 < _list846.size; ++_i848) + for (int _i847 = 0; _i847 < _list846.size; ++_i847) { - _elem847 = iprot.readString(); - struct.part_vals.add(_elem847); + String _elem848; // required + _elem848 = iprot.readString(); + struct.part_vals.add(_elem848); } iprot.readListEnd(); } @@ -80902,11 +72666,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar { org.apache.thrift.protocol.TList _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list851.size); - String _elem852; - for (int _i853 = 0; _i853 < _list851.size; ++_i853) + for (int _i852 = 0; _i852 < _list851.size; ++_i852) { - _elem852 = iprot.readString(); - struct.part_vals.add(_elem852); + String _elem853; // required + _elem853 = iprot.readString(); + struct.part_vals.add(_elem853); } } struct.setPart_valsIsSet(true); @@ -80920,7 +72684,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } - public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_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); @@ -81035,7 +72799,7 @@ public get_partitions_ps_result( */ public get_partitions_ps_result(get_partitions_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -81250,60 +73014,60 @@ public boolean equals(get_partitions_ps_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_result typedOther = (get_partitions_ps_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -81399,12 +73163,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r { org.apache.thrift.protocol.TList _list854 = iprot.readListBegin(); struct.success = new ArrayList(_list854.size); - Partition _elem855; - for (int _i856 = 0; _i856 < _list854.size; ++_i856) + for (int _i855 = 0; _i855 < _list854.size; ++_i855) { - _elem855 = new Partition(); - _elem855.read(iprot); - struct.success.add(_elem855); + Partition _elem856; // required + _elem856 = new Partition(); + _elem856.read(iprot); + struct.success.add(_elem856); } iprot.readListEnd(); } @@ -81519,12 +73283,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re { org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list859.size); - Partition _elem860; - for (int _i861 = 0; _i861 < _list859.size; ++_i861) + for (int _i860 = 0; _i860 < _list859.size; ++_i860) { - _elem860 = new Partition(); - _elem860.read(iprot); - struct.success.add(_elem860); + Partition _elem861; // required + _elem861 = new Partition(); + _elem861.read(iprot); + struct.success.add(_elem861); } } struct.setSuccessIsSet(true); @@ -81544,7 +73308,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re } - public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -81699,7 +73463,10 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; @@ -81707,7 +73474,10 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -81959,7 +73729,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); case USER_NAME: return getUser_name(); @@ -82066,105 +73836,105 @@ public boolean equals(get_partitions_ps_with_auth_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_ps_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_with_auth_args typedOther = (get_partitions_ps_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -82298,11 +74068,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w { org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list862.size); - String _elem863; - for (int _i864 = 0; _i864 < _list862.size; ++_i864) + for (int _i863 = 0; _i863 < _list862.size; ++_i863) { - _elem863 = iprot.readString(); - struct.part_vals.add(_elem863); + String _elem864; // required + _elem864 = iprot.readString(); + struct.part_vals.add(_elem864); } iprot.readListEnd(); } @@ -82332,11 +74102,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w { org.apache.thrift.protocol.TList _list865 = iprot.readListBegin(); struct.group_names = new ArrayList(_list865.size); - String _elem866; - for (int _i867 = 0; _i867 < _list865.size; ++_i867) + for (int _i866 = 0; _i866 < _list865.size; ++_i866) { - _elem866 = iprot.readString(); - struct.group_names.add(_elem866); + String _elem867; // required + _elem867 = iprot.readString(); + struct.group_names.add(_elem867); } iprot.readListEnd(); } @@ -82485,11 +74255,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi { org.apache.thrift.protocol.TList _list872 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list872.size); - String _elem873; - for (int _i874 = 0; _i874 < _list872.size; ++_i874) + for (int _i873 = 0; _i873 < _list872.size; ++_i873) { - _elem873 = iprot.readString(); - struct.part_vals.add(_elem873); + String _elem874; // required + _elem874 = iprot.readString(); + struct.part_vals.add(_elem874); } } struct.setPart_valsIsSet(true); @@ -82506,11 +74276,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi { org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list875.size); - String _elem876; - for (int _i877 = 0; _i877 < _list875.size; ++_i877) + for (int _i876 = 0; _i876 < _list875.size; ++_i876) { - _elem876 = iprot.readString(); - struct.group_names.add(_elem876); + String _elem877; // required + _elem877 = iprot.readString(); + struct.group_names.add(_elem877); } } struct.setGroup_namesIsSet(true); @@ -82520,7 +74290,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_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); @@ -82635,7 +74405,7 @@ public get_partitions_ps_with_auth_result( */ public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -82850,60 +74620,60 @@ public boolean equals(get_partitions_ps_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_ps_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_with_auth_result typedOther = (get_partitions_ps_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -82999,12 +74769,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w { org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); struct.success = new ArrayList(_list878.size); - Partition _elem879; - for (int _i880 = 0; _i880 < _list878.size; ++_i880) + for (int _i879 = 0; _i879 < _list878.size; ++_i879) { - _elem879 = new Partition(); - _elem879.read(iprot); - struct.success.add(_elem879); + Partition _elem880; // required + _elem880 = new Partition(); + _elem880.read(iprot); + struct.success.add(_elem880); } iprot.readListEnd(); } @@ -83119,12 +74889,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi { org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list883.size); - Partition _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + for (int _i884 = 0; _i884 < _list883.size; ++_i884) { - _elem884 = new Partition(); - _elem884.read(iprot); - struct.success.add(_elem884); + Partition _elem885; // required + _elem885 = new Partition(); + _elem885.read(iprot); + struct.success.add(_elem885); } } struct.setSuccessIsSet(true); @@ -83144,7 +74914,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -83280,7 +75050,10 @@ public get_partition_names_ps_args(get_partition_names_ps_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; @@ -83454,7 +75227,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -83533,75 +75306,75 @@ public boolean equals(get_partition_names_ps_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_names_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_ps_args typedOther = (get_partition_names_ps_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -83719,11 +75492,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names { org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list886.size); - String _elem887; - for (int _i888 = 0; _i888 < _list886.size; ++_i888) + for (int _i887 = 0; _i887 < _list886.size; ++_i887) { - _elem887 = iprot.readString(); - struct.part_vals.add(_elem887); + String _elem888; // required + _elem888 = iprot.readString(); + struct.part_vals.add(_elem888); } iprot.readListEnd(); } @@ -83845,11 +75618,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ { org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list891.size); - String _elem892; - for (int _i893 = 0; _i893 < _list891.size; ++_i893) + for (int _i892 = 0; _i892 < _list891.size; ++_i892) { - _elem892 = iprot.readString(); - struct.part_vals.add(_elem892); + String _elem893; // required + _elem893 = iprot.readString(); + struct.part_vals.add(_elem893); } } struct.setPart_valsIsSet(true); @@ -83863,7 +75636,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_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); @@ -83978,7 +75751,10 @@ public get_partition_names_ps_result( */ public get_partition_names_ps_result(get_partition_names_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -84190,60 +75966,60 @@ public boolean equals(get_partition_names_ps_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_names_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_ps_result typedOther = (get_partition_names_ps_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -84339,11 +76115,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names { org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); struct.success = new ArrayList(_list894.size); - String _elem895; - for (int _i896 = 0; _i896 < _list894.size; ++_i896) + for (int _i895 = 0; _i895 < _list894.size; ++_i895) { - _elem895 = iprot.readString(); - struct.success.add(_elem895); + String _elem896; // required + _elem896 = iprot.readString(); + struct.success.add(_elem896); } iprot.readListEnd(); } @@ -84458,11 +76234,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ { org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list899.size); - String _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) + for (int _i900 = 0; _i900 < _list899.size; ++_i900) { - _elem900 = iprot.readString(); - struct.success.add(_elem900); + String _elem901; // required + _elem901 = iprot.readString(); + struct.success.add(_elem901); } } struct.setSuccessIsSet(true); @@ -84482,7 +76258,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -84775,7 +76551,7 @@ public Object getFieldValue(_Fields field) { return getFilter(); case MAX_PARTS: - return getMax_parts(); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -84854,75 +76630,75 @@ public boolean equals(get_partitions_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_filter = true && (isSetFilter()); - list.add(present_filter); + builder.append(present_filter); if (present_filter) - list.add(filter); + builder.append(filter); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_filter_args typedOther = (get_partitions_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -85152,7 +76928,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi } - public static class get_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_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); @@ -85267,7 +77043,7 @@ public get_partitions_by_filter_result( */ public get_partitions_by_filter_result(get_partitions_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -85482,60 +77258,60 @@ public boolean equals(get_partitions_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_filter_result typedOther = (get_partitions_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -85631,12 +77407,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f { org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); struct.success = new ArrayList(_list902.size); - Partition _elem903; - for (int _i904 = 0; _i904 < _list902.size; ++_i904) + for (int _i903 = 0; _i903 < _list902.size; ++_i903) { - _elem903 = new Partition(); - _elem903.read(iprot); - struct.success.add(_elem903); + Partition _elem904; // required + _elem904 = new Partition(); + _elem904.read(iprot); + struct.success.add(_elem904); } iprot.readListEnd(); } @@ -85751,12 +77527,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi { org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list907.size); - Partition _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) + for (int _i908 = 0; _i908 < _list907.size; ++_i908) { - _elem908 = new Partition(); - _elem908.read(iprot); - struct.success.add(_elem908); + Partition _elem909; // required + _elem909 = new Partition(); + _elem909.read(iprot); + struct.success.add(_elem909); } } struct.setSuccessIsSet(true); @@ -85776,7 +77552,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi } - public static class get_part_specs_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_part_specs_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_part_specs_by_filter_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -86069,7 +77845,7 @@ public Object getFieldValue(_Fields field) { return getFilter(); case MAX_PARTS: - return getMax_parts(); + return Integer.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -86148,75 +77924,75 @@ public boolean equals(get_part_specs_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_filter = true && (isSetFilter()); - list.add(present_filter); + builder.append(present_filter); if (present_filter) - list.add(filter); + builder.append(filter); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_part_specs_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_part_specs_by_filter_args typedOther = (get_part_specs_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -86446,7 +78222,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi } - public static class get_part_specs_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_part_specs_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_part_specs_by_filter_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); @@ -86561,7 +78337,7 @@ public get_part_specs_by_filter_result( */ public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (PartitionSpec other_element : other.success) { __this__success.add(new PartitionSpec(other_element)); } @@ -86776,60 +78552,60 @@ public boolean equals(get_part_specs_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_part_specs_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_part_specs_by_filter_result typedOther = (get_part_specs_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -86925,12 +78701,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f { org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); struct.success = new ArrayList(_list910.size); - PartitionSpec _elem911; - for (int _i912 = 0; _i912 < _list910.size; ++_i912) + for (int _i911 = 0; _i911 < _list910.size; ++_i911) { - _elem911 = new PartitionSpec(); - _elem911.read(iprot); - struct.success.add(_elem911); + PartitionSpec _elem912; // required + _elem912 = new PartitionSpec(); + _elem912.read(iprot); + struct.success.add(_elem912); } iprot.readListEnd(); } @@ -87045,12 +78821,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi { org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list915.size); - PartitionSpec _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + for (int _i916 = 0; _i916 < _list915.size; ++_i916) { - _elem916 = new PartitionSpec(); - _elem916.read(iprot); - struct.success.add(_elem916); + PartitionSpec _elem917; // required + _elem917 = new PartitionSpec(); + _elem917.read(iprot); + struct.success.add(_elem917); } } struct.setSuccessIsSet(true); @@ -87070,7 +78846,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi } - public static class get_partitions_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -87264,30 +79040,30 @@ public boolean equals(get_partitions_by_expr_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_expr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_expr_args typedOther = (get_partitions_by_expr_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -87433,7 +79209,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_ex } - public static class get_partitions_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -87743,60 +79519,60 @@ public boolean equals(get_partitions_by_expr_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_expr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_expr_result typedOther = (get_partitions_by_expr_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -88008,7 +79784,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_ex } - public static class get_num_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_num_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -88318,60 +80094,60 @@ public boolean equals(get_num_partitions_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_filter = true && (isSetFilter()); - list.add(present_filter); + builder.append(present_filter); if (present_filter) - list.add(filter); + builder.append(filter); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_num_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_num_partitions_by_filter_args typedOther = (get_num_partitions_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } @@ -88574,7 +80350,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_b } - public static class get_num_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_num_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); @@ -88812,7 +80588,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -88886,60 +80662,60 @@ public boolean equals(get_num_partitions_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_num_partitions_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_num_partitions_by_filter_result typedOther = (get_num_partitions_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -89144,7 +80920,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_b } - public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -89265,7 +81041,10 @@ public get_partitions_by_names_args(get_partitions_by_names_args other) { this.tbl_name = other.tbl_name; } if (other.isSetNames()) { - List __this__names = new ArrayList(other.names); + List __this__names = new ArrayList(); + for (String other_element : other.names) { + __this__names.add(other_element); + } this.names = __this__names; } } @@ -89471,60 +81250,60 @@ public boolean equals(get_partitions_by_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_names = true && (isSetNames()); - list.add(present_names); + builder.append(present_names); if (present_names) - list.add(names); + builder.append(names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_names_args typedOther = (get_partitions_by_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNames()).compareTo(other.isSetNames()); + lastComparison = Boolean.valueOf(isSetNames()).compareTo(typedOther.isSetNames()); if (lastComparison != 0) { return lastComparison; } if (isSetNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, other.names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, typedOther.names); if (lastComparison != 0) { return lastComparison; } @@ -89636,11 +81415,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n { org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); struct.names = new ArrayList(_list918.size); - String _elem919; - for (int _i920 = 0; _i920 < _list918.size; ++_i920) + for (int _i919 = 0; _i919 < _list918.size; ++_i919) { - _elem919 = iprot.readString(); - struct.names.add(_elem919); + String _elem920; // required + _elem920 = iprot.readString(); + struct.names.add(_elem920); } iprot.readListEnd(); } @@ -89745,11 +81524,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na { org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.names = new ArrayList(_list923.size); - String _elem924; - for (int _i925 = 0; _i925 < _list923.size; ++_i925) + for (int _i924 = 0; _i924 < _list923.size; ++_i924) { - _elem924 = iprot.readString(); - struct.names.add(_elem924); + String _elem925; // required + _elem925 = iprot.readString(); + struct.names.add(_elem925); } } struct.setNamesIsSet(true); @@ -89759,7 +81538,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } - public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_names_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); @@ -89874,7 +81653,7 @@ public get_partitions_by_names_result( */ public get_partitions_by_names_result(get_partitions_by_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -90089,60 +81868,60 @@ public boolean equals(get_partitions_by_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_names_result typedOther = (get_partitions_by_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -90238,12 +82017,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n { org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); struct.success = new ArrayList(_list926.size); - Partition _elem927; - for (int _i928 = 0; _i928 < _list926.size; ++_i928) + for (int _i927 = 0; _i927 < _list926.size; ++_i927) { - _elem927 = new Partition(); - _elem927.read(iprot); - struct.success.add(_elem927); + Partition _elem928; // required + _elem928 = new Partition(); + _elem928.read(iprot); + struct.success.add(_elem928); } iprot.readListEnd(); } @@ -90358,12 +82137,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na { org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list931.size); - Partition _elem932; - for (int _i933 = 0; _i933 < _list931.size; ++_i933) + for (int _i932 = 0; _i932 < _list931.size; ++_i932) { - _elem932 = new Partition(); - _elem932.read(iprot); - struct.success.add(_elem932); + Partition _elem933; // required + _elem933 = new Partition(); + _elem933.read(iprot); + struct.success.add(_elem933); } } struct.setSuccessIsSet(true); @@ -90383,7 +82162,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } - public static class alter_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -90693,60 +82472,60 @@ public boolean equals(alter_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_args typedOther = (alter_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -90954,7 +82733,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args } - public static class alter_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_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); @@ -91206,45 +82985,45 @@ public boolean equals(alter_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_result typedOther = (alter_partition_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -91420,7 +83199,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_resu } - public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -91541,7 +83320,7 @@ public alter_partitions_args(alter_partitions_args other) { this.tbl_name = other.tbl_name; } if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); + List __this__new_parts = new ArrayList(); for (Partition other_element : other.new_parts) { __this__new_parts.add(new Partition(other_element)); } @@ -91750,60 +83529,60 @@ public boolean equals(alter_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); + builder.append(present_new_parts); if (present_new_parts) - list.add(new_parts); + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partitions_args typedOther = (alter_partitions_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -91915,12 +83694,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar { org.apache.thrift.protocol.TList _list934 = iprot.readListBegin(); struct.new_parts = new ArrayList(_list934.size); - Partition _elem935; - for (int _i936 = 0; _i936 < _list934.size; ++_i936) + for (int _i935 = 0; _i935 < _list934.size; ++_i935) { - _elem935 = new Partition(); - _elem935.read(iprot); - struct.new_parts.add(_elem935); + Partition _elem936; // required + _elem936 = new Partition(); + _elem936.read(iprot); + struct.new_parts.add(_elem936); } iprot.readListEnd(); } @@ -92025,12 +83804,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg { org.apache.thrift.protocol.TList _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.new_parts = new ArrayList(_list939.size); - Partition _elem940; - for (int _i941 = 0; _i941 < _list939.size; ++_i941) + for (int _i940 = 0; _i940 < _list939.size; ++_i940) { - _elem940 = new Partition(); - _elem940.read(iprot); - struct.new_parts.add(_elem940); + Partition _elem941; // required + _elem941 = new Partition(); + _elem941.read(iprot); + struct.new_parts.add(_elem941); } } struct.setNew_partsIsSet(true); @@ -92040,7 +83819,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } - public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -92292,45 +84071,45 @@ public boolean equals(alter_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partitions_result typedOther = (alter_partitions_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -92506,7 +84285,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_res } - public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -92874,75 +84653,75 @@ public boolean equals(alter_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_with_environment_context_args typedOther = (alter_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -93186,7 +84965,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with } - public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_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); @@ -93438,45 +85217,45 @@ public boolean equals(alter_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_with_environment_context_result typedOther = (alter_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -93652,7 +85431,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with } - public static class rename_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class rename_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -93782,7 +85561,10 @@ public rename_partition_args(rename_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } if (other.isSetNew_part()) { @@ -94037,75 +85819,75 @@ public boolean equals(rename_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(rename_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + rename_partition_args typedOther = (rename_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -94228,11 +86010,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar { org.apache.thrift.protocol.TList _list942 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list942.size); - String _elem943; - for (int _i944 = 0; _i944 < _list942.size; ++_i944) + for (int _i943 = 0; _i943 < _list942.size; ++_i943) { - _elem943 = iprot.readString(); - struct.part_vals.add(_elem943); + String _elem944; // required + _elem944 = iprot.readString(); + struct.part_vals.add(_elem944); } iprot.readListEnd(); } @@ -94357,11 +86139,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg { org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list947.size); - String _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + for (int _i948 = 0; _i948 < _list947.size; ++_i948) { - _elem948 = iprot.readString(); - struct.part_vals.add(_elem948); + String _elem949; // required + _elem949 = iprot.readString(); + struct.part_vals.add(_elem949); } } struct.setPart_valsIsSet(true); @@ -94376,7 +86158,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } - public static class rename_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class rename_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_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); @@ -94628,45 +86410,45 @@ public boolean equals(rename_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(rename_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + rename_partition_result typedOther = (rename_partition_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -94842,7 +86624,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_res } - public static class partition_name_has_valid_characters_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_has_valid_characters_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_has_valid_characters_args"); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -94952,7 +86734,10 @@ public partition_name_has_valid_characters_args( public partition_name_has_valid_characters_args(partition_name_has_valid_characters_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.throw_exception = other.throw_exception; @@ -95056,7 +86841,7 @@ public Object getFieldValue(_Fields field) { return getPart_vals(); case THROW_EXCEPTION: - return isThrow_exception(); + return Boolean.valueOf(isThrow_exception()); } throw new IllegalStateException(); @@ -95113,45 +86898,45 @@ public boolean equals(partition_name_has_valid_characters_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_throw_exception = true; - list.add(present_throw_exception); + builder.append(present_throw_exception); if (present_throw_exception) - list.add(throw_exception); + builder.append(throw_exception); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_has_valid_characters_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_has_valid_characters_args typedOther = (partition_name_has_valid_characters_args)other; - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(other.isSetThrow_exception()); + lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(typedOther.isSetThrow_exception()); if (lastComparison != 0) { return lastComparison; } if (isSetThrow_exception()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, other.throw_exception); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, typedOther.throw_exception); if (lastComparison != 0) { return lastComparison; } @@ -95237,11 +87022,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ { org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list950.size); - String _elem951; - for (int _i952 = 0; _i952 < _list950.size; ++_i952) + for (int _i951 = 0; _i951 < _list950.size; ++_i951) { - _elem951 = iprot.readString(); - struct.part_vals.add(_elem951); + String _elem952; // required + _elem952 = iprot.readString(); + struct.part_vals.add(_elem952); } iprot.readListEnd(); } @@ -95333,11 +87118,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v { org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list955.size); - String _elem956; - for (int _i957 = 0; _i957 < _list955.size; ++_i957) + for (int _i956 = 0; _i956 < _list955.size; ++_i956) { - _elem956 = iprot.readString(); - struct.part_vals.add(_elem956); + String _elem957; // required + _elem957 = iprot.readString(); + struct.part_vals.add(_elem957); } } struct.setPart_valsIsSet(true); @@ -95351,7 +87136,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v } - public static class partition_name_has_valid_characters_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_has_valid_characters_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_has_valid_characters_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); @@ -95545,7 +87330,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -95605,45 +87390,45 @@ public boolean equals(partition_name_has_valid_characters_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_has_valid_characters_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_has_valid_characters_result typedOther = (partition_name_has_valid_characters_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -95815,7 +87600,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v } - public static class get_config_value_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_config_value_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -96067,45 +87852,45 @@ public boolean equals(get_config_value_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_defaultValue = true && (isSetDefaultValue()); - list.add(present_defaultValue); + builder.append(present_defaultValue); if (present_defaultValue) - list.add(defaultValue); + builder.append(defaultValue); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_config_value_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_config_value_args typedOther = (get_config_value_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(other.isSetDefaultValue()); + lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(typedOther.isSetDefaultValue()); if (lastComparison != 0) { return lastComparison; } if (isSetDefaultValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, other.defaultValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, typedOther.defaultValue); if (lastComparison != 0) { return lastComparison; } @@ -96277,7 +88062,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_arg } - public static class get_config_value_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_config_value_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -96529,45 +88314,45 @@ public boolean equals(get_config_value_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_config_value_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_config_value_result typedOther = (get_config_value_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -96741,7 +88526,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_res } - public static class partition_name_to_vals_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_vals_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_args"); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -96935,30 +88720,30 @@ public boolean equals(partition_name_to_vals_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_vals_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_vals_args typedOther = (partition_name_to_vals_args)other; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -97099,7 +88884,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va } - public static class partition_name_to_vals_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_vals_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_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); @@ -97205,7 +88990,10 @@ public partition_name_to_vals_result( */ public partition_name_to_vals_result(partition_name_to_vals_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -97368,45 +89156,45 @@ public boolean equals(partition_name_to_vals_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_vals_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_vals_result typedOther = (partition_name_to_vals_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -97494,11 +89282,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v { org.apache.thrift.protocol.TList _list958 = iprot.readListBegin(); struct.success = new ArrayList(_list958.size); - String _elem959; - for (int _i960 = 0; _i960 < _list958.size; ++_i960) + for (int _i959 = 0; _i959 < _list958.size; ++_i959) { - _elem959 = iprot.readString(); - struct.success.add(_elem959); + String _elem960; // required + _elem960 = iprot.readString(); + struct.success.add(_elem960); } iprot.readListEnd(); } @@ -97593,11 +89381,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va { org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list963.size); - String _elem964; - for (int _i965 = 0; _i965 < _list963.size; ++_i965) + for (int _i964 = 0; _i964 < _list963.size; ++_i964) { - _elem964 = iprot.readString(); - struct.success.add(_elem964); + String _elem965; // required + _elem965 = iprot.readString(); + struct.success.add(_elem965); } } struct.setSuccessIsSet(true); @@ -97612,7 +89400,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va } - public static class partition_name_to_spec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_spec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_args"); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -97806,30 +89594,30 @@ public boolean equals(partition_name_to_spec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_spec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_spec_args typedOther = (partition_name_to_spec_args)other; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -97970,7 +89758,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp } - public static class partition_name_to_spec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_spec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -98077,7 +89865,18 @@ public partition_name_to_spec_result( */ public partition_name_to_spec_result(partition_name_to_spec_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); + Map __this__success = new HashMap(); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + String __this__success_copy_value = other_element_value; + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } this.success = __this__success; } if (other.isSetO1()) { @@ -98236,45 +90035,45 @@ public boolean equals(partition_name_to_spec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_spec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_spec_result typedOther = (partition_name_to_spec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -98362,13 +90161,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s { org.apache.thrift.protocol.TMap _map966 = iprot.readMapBegin(); struct.success = new HashMap(2*_map966.size); - String _key967; - String _val968; - for (int _i969 = 0; _i969 < _map966.size; ++_i969) + for (int _i967 = 0; _i967 < _map966.size; ++_i967) { - _key967 = iprot.readString(); - _val968 = iprot.readString(); - struct.success.put(_key967, _val968); + String _key968; // required + String _val969; // required + _key968 = iprot.readString(); + _val969 = iprot.readString(); + struct.success.put(_key968, _val969); } iprot.readMapEnd(); } @@ -98465,13 +90264,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp { org.apache.thrift.protocol.TMap _map972 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new HashMap(2*_map972.size); - String _key973; - String _val974; - for (int _i975 = 0; _i975 < _map972.size; ++_i975) + for (int _i973 = 0; _i973 < _map972.size; ++_i973) { - _key973 = iprot.readString(); - _val974 = iprot.readString(); - struct.success.put(_key973, _val974); + String _key974; // required + String _val975; // required + _key974 = iprot.readString(); + _val975 = iprot.readString(); + struct.success.put(_key974, _val975); } } struct.setSuccessIsSet(true); @@ -98486,7 +90285,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp } - public static class markPartitionForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class markPartitionForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -98621,7 +90420,18 @@ public markPartitionForEvent_args(markPartitionForEvent_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); + Map __this__part_vals = new HashMap(); + for (Map.Entry other_element : other.part_vals.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__part_vals_copy_key = other_element_key; + + String __this__part_vals_copy_value = other_element_value; + + __this__part_vals.put(__this__part_vals_copy_key, __this__part_vals_copy_value); + } this.part_vals = __this__part_vals; } if (other.isSetEventType()) { @@ -98880,75 +90690,75 @@ public boolean equals(markPartitionForEvent_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType.getValue()); + builder.append(eventType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(markPartitionForEvent_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + markPartitionForEvent_args typedOther = (markPartitionForEvent_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -99068,13 +90878,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve { org.apache.thrift.protocol.TMap _map976 = iprot.readMapBegin(); struct.part_vals = new HashMap(2*_map976.size); - String _key977; - String _val978; - for (int _i979 = 0; _i979 < _map976.size; ++_i979) + for (int _i977 = 0; _i977 < _map976.size; ++_i977) { - _key977 = iprot.readString(); - _val978 = iprot.readString(); - struct.part_vals.put(_key977, _val978); + String _key978; // required + String _val979; // required + _key978 = iprot.readString(); + _val979 = iprot.readString(); + struct.part_vals.put(_key978, _val979); } iprot.readMapEnd(); } @@ -99085,7 +90895,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; case 4: // EVENT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -99200,19 +91010,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven { org.apache.thrift.protocol.TMap _map982 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new HashMap(2*_map982.size); - String _key983; - String _val984; - for (int _i985 = 0; _i985 < _map982.size; ++_i985) + for (int _i983 = 0; _i983 < _map982.size; ++_i983) { - _key983 = iprot.readString(); - _val984 = iprot.readString(); - struct.part_vals.put(_key983, _val984); + String _key984; // required + String _val985; // required + _key984 = iprot.readString(); + _val985 = iprot.readString(); + struct.part_vals.put(_key984, _val985); } } struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } } @@ -99220,7 +91030,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } - public static class markPartitionForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class markPartitionForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_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); @@ -99704,105 +91514,105 @@ public boolean equals(markPartitionForEvent_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); boolean present_o5 = true && (isSetO5()); - list.add(present_o5); + builder.append(present_o5); if (present_o5) - list.add(o5); + builder.append(o5); boolean present_o6 = true && (isSetO6()); - list.add(present_o6); + builder.append(present_o6); if (present_o6) - list.add(o6); + builder.append(o6); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(markPartitionForEvent_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + markPartitionForEvent_result typedOther = (markPartitionForEvent_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + lastComparison = Boolean.valueOf(isSetO5()).compareTo(typedOther.isSetO5()); if (lastComparison != 0) { return lastComparison; } if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + lastComparison = Boolean.valueOf(isSetO6()).compareTo(typedOther.isSetO6()); if (lastComparison != 0) { return lastComparison; } if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -100110,7 +91920,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } - public static class isPartitionMarkedForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class isPartitionMarkedForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -100245,7 +92055,18 @@ public isPartitionMarkedForEvent_args(isPartitionMarkedForEvent_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); + Map __this__part_vals = new HashMap(); + for (Map.Entry other_element : other.part_vals.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__part_vals_copy_key = other_element_key; + + String __this__part_vals_copy_value = other_element_value; + + __this__part_vals.put(__this__part_vals_copy_key, __this__part_vals_copy_value); + } this.part_vals = __this__part_vals; } if (other.isSetEventType()) { @@ -100504,75 +92325,75 @@ public boolean equals(isPartitionMarkedForEvent_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType.getValue()); + builder.append(eventType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(isPartitionMarkedForEvent_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + isPartitionMarkedForEvent_args typedOther = (isPartitionMarkedForEvent_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -100692,13 +92513,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo { org.apache.thrift.protocol.TMap _map986 = iprot.readMapBegin(); struct.part_vals = new HashMap(2*_map986.size); - String _key987; - String _val988; - for (int _i989 = 0; _i989 < _map986.size; ++_i989) + for (int _i987 = 0; _i987 < _map986.size; ++_i987) { - _key987 = iprot.readString(); - _val988 = iprot.readString(); - struct.part_vals.put(_key987, _val988); + String _key988; // required + String _val989; // required + _key988 = iprot.readString(); + _val989 = iprot.readString(); + struct.part_vals.put(_key988, _val989); } iprot.readMapEnd(); } @@ -100709,7 +92530,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo break; case 4: // EVENT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -100824,19 +92645,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor { org.apache.thrift.protocol.TMap _map992 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new HashMap(2*_map992.size); - String _key993; - String _val994; - for (int _i995 = 0; _i995 < _map992.size; ++_i995) + for (int _i993 = 0; _i993 < _map992.size; ++_i993) { - _key993 = iprot.readString(); - _val994 = iprot.readString(); - struct.part_vals.put(_key993, _val994); + String _key994; // required + String _val995; // required + _key994 = iprot.readString(); + _val995 = iprot.readString(); + struct.part_vals.put(_key994, _val995); } } struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } } @@ -100844,7 +92665,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } - public static class isPartitionMarkedForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class isPartitionMarkedForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_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); @@ -101258,7 +93079,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -101388,120 +93209,120 @@ public boolean equals(isPartitionMarkedForEvent_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); boolean present_o5 = true && (isSetO5()); - list.add(present_o5); + builder.append(present_o5); if (present_o5) - list.add(o5); + builder.append(o5); boolean present_o6 = true && (isSetO6()); - list.add(present_o6); + builder.append(present_o6); if (present_o6) - list.add(o6); + builder.append(o6); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(isPartitionMarkedForEvent_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + isPartitionMarkedForEvent_result typedOther = (isPartitionMarkedForEvent_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + lastComparison = Boolean.valueOf(isSetO5()).compareTo(typedOther.isSetO5()); if (lastComparison != 0) { return lastComparison; } if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + lastComparison = Boolean.valueOf(isSetO6()).compareTo(typedOther.isSetO6()); if (lastComparison != 0) { return lastComparison; } if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -101838,7 +93659,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } - public static class add_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_args"); private static final org.apache.thrift.protocol.TField NEW_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_index", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -102090,45 +93911,45 @@ public boolean equals(add_index_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_index = true && (isSetNew_index()); - list.add(present_new_index); + builder.append(present_new_index); if (present_new_index) - list.add(new_index); + builder.append(new_index); boolean present_index_table = true && (isSetIndex_table()); - list.add(present_index_table); + builder.append(present_index_table); if (present_index_table) - list.add(index_table); + builder.append(index_table); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_index_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_index_args typedOther = (add_index_args)other; - lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(other.isSetNew_index()); + lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(typedOther.isSetNew_index()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_index()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, other.new_index); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, typedOther.new_index); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(other.isSetIndex_table()); + lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(typedOther.isSetIndex_table()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_table()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, other.index_table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, typedOther.index_table); if (lastComparison != 0) { return lastComparison; } @@ -102310,7 +94131,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_index_args struc } - public static class add_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -102678,75 +94499,75 @@ public boolean equals(add_index_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_index_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_index_result typedOther = (add_index_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -102991,7 +94812,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_index_result str } - public static class alter_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -103359,75 +95180,75 @@ public boolean equals(alter_index_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_base_tbl_name = true && (isSetBase_tbl_name()); - list.add(present_base_tbl_name); + builder.append(present_base_tbl_name); if (present_base_tbl_name) - list.add(base_tbl_name); + builder.append(base_tbl_name); boolean present_idx_name = true && (isSetIdx_name()); - list.add(present_idx_name); + builder.append(present_idx_name); if (present_idx_name) - list.add(idx_name); + builder.append(idx_name); boolean present_new_idx = true && (isSetNew_idx()); - list.add(present_new_idx); + builder.append(present_new_idx); if (present_new_idx) - list.add(new_idx); + builder.append(new_idx); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_index_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_index_args typedOther = (alter_index_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBase_tbl_name()).compareTo(other.isSetBase_tbl_name()); + lastComparison = Boolean.valueOf(isSetBase_tbl_name()).compareTo(typedOther.isSetBase_tbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetBase_tbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, other.base_tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, typedOther.base_tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(other.isSetIdx_name()); + lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(typedOther.isSetIdx_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIdx_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, other.idx_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, typedOther.idx_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(other.isSetNew_idx()); + lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(typedOther.isSetNew_idx()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_idx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, other.new_idx); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, typedOther.new_idx); if (lastComparison != 0) { return lastComparison; } @@ -103666,7 +95487,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_args str } - public static class alter_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_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); @@ -103918,45 +95739,45 @@ public boolean equals(alter_index_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_index_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_index_result typedOther = (alter_index_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -104132,7 +95953,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result s } - public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -104423,7 +96244,7 @@ public Object getFieldValue(_Fields field) { return getIndex_name(); case DELETE_DATA: - return isDeleteData(); + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -104502,75 +96323,75 @@ public boolean equals(drop_index_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); + builder.append(present_index_name); if (present_index_name) - list.add(index_name); + builder.append(index_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_index_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_index_by_name_args typedOther = (drop_index_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(typedOther.isSetIndex_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -104800,7 +96621,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_a } - public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_index_by_name_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); @@ -105038,7 +96859,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -105112,60 +96933,60 @@ public boolean equals(drop_index_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_index_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_index_by_name_result typedOther = (drop_index_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -105370,7 +97191,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_r } - public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -105680,60 +97501,60 @@ public boolean equals(get_index_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); + builder.append(present_index_name); if (present_index_name) - list.add(index_name); + builder.append(index_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_by_name_args typedOther = (get_index_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(typedOther.isSetIndex_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } @@ -105936,7 +97757,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_ar } - public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -106246,60 +98067,60 @@ public boolean equals(get_index_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_by_name_result typedOther = (get_index_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -106511,7 +98332,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re } - public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -106757,7 +98578,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_INDEXES: - return getMax_indexes(); + return Short.valueOf(getMax_indexes()); } throw new IllegalStateException(); @@ -106825,60 +98646,60 @@ public boolean equals(get_indexes_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_indexes = true; - list.add(present_max_indexes); + builder.append(present_max_indexes); if (present_max_indexes) - list.add(max_indexes); + builder.append(max_indexes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_indexes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_indexes_args typedOther = (get_indexes_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(typedOther.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -107077,7 +98898,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args str } - public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_indexes_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); @@ -107192,7 +99013,7 @@ public get_indexes_result( */ public get_indexes_result(get_indexes_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Index other_element : other.success) { __this__success.add(new Index(other_element)); } @@ -107407,60 +99228,60 @@ public boolean equals(get_indexes_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_indexes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_indexes_result typedOther = (get_indexes_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -107556,12 +99377,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result { org.apache.thrift.protocol.TList _list996 = iprot.readListBegin(); struct.success = new ArrayList(_list996.size); - Index _elem997; - for (int _i998 = 0; _i998 < _list996.size; ++_i998) + for (int _i997 = 0; _i997 < _list996.size; ++_i997) { - _elem997 = new Index(); - _elem997.read(iprot); - struct.success.add(_elem997); + Index _elem998; // required + _elem998 = new Index(); + _elem998.read(iprot); + struct.success.add(_elem998); } iprot.readListEnd(); } @@ -107676,12 +99497,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s { org.apache.thrift.protocol.TList _list1001 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list1001.size); - Index _elem1002; - for (int _i1003 = 0; _i1003 < _list1001.size; ++_i1003) + for (int _i1002 = 0; _i1002 < _list1001.size; ++_i1002) { - _elem1002 = new Index(); - _elem1002.read(iprot); - struct.success.add(_elem1002); + Index _elem1003; // required + _elem1003 = new Index(); + _elem1003.read(iprot); + struct.success.add(_elem1003); } } struct.setSuccessIsSet(true); @@ -107701,7 +99522,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s } - public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -107947,7 +99768,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_INDEXES: - return getMax_indexes(); + return Short.valueOf(getMax_indexes()); } throw new IllegalStateException(); @@ -108015,60 +99836,60 @@ public boolean equals(get_index_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_indexes = true; - list.add(present_max_indexes); + builder.append(present_max_indexes); if (present_max_indexes) - list.add(max_indexes); + builder.append(max_indexes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_names_args typedOther = (get_index_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(typedOther.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -108267,7 +100088,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args } - public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_index_names_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); @@ -108373,7 +100194,10 @@ public get_index_names_result( */ public get_index_names_result(get_index_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO2()) { @@ -108536,45 +100360,45 @@ public boolean equals(get_index_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_names_result typedOther = (get_index_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -108662,11 +100486,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res { org.apache.thrift.protocol.TList _list1004 = iprot.readListBegin(); struct.success = new ArrayList(_list1004.size); - String _elem1005; - for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) + for (int _i1005 = 0; _i1005 < _list1004.size; ++_i1005) { - _elem1005 = iprot.readString(); - struct.success.add(_elem1005); + String _elem1006; // required + _elem1006 = iprot.readString(); + struct.success.add(_elem1006); } iprot.readListEnd(); } @@ -108761,11 +100585,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu { org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list1009.size); - String _elem1010; - for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) + for (int _i1010 = 0; _i1010 < _list1009.size; ++_i1010) { - _elem1010 = iprot.readString(); - struct.success.add(_elem1010); + String _elem1011; // required + _elem1011 = iprot.readString(); + struct.success.add(_elem1011); } } struct.setSuccessIsSet(true); @@ -108780,7 +100604,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu } - public static class update_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_table_column_statistics_args"); private static final org.apache.thrift.protocol.TField STATS_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("stats_obj", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -108974,30 +100798,30 @@ public boolean equals(update_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stats_obj = true && (isSetStats_obj()); - list.add(present_stats_obj); + builder.append(present_stats_obj); if (present_stats_obj) - list.add(stats_obj); + builder.append(stats_obj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_table_column_statistics_args typedOther = (update_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(other.isSetStats_obj()); + lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(typedOther.isSetStats_obj()); if (lastComparison != 0) { return lastComparison; } if (isSetStats_obj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, other.stats_obj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, typedOther.stats_obj); if (lastComparison != 0) { return lastComparison; } @@ -109143,7 +100967,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_table_column_ } - public static class update_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_table_column_statistics_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); @@ -109469,7 +101293,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -109571,90 +101395,90 @@ public boolean equals(update_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_table_column_statistics_result typedOther = (update_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -109925,7 +101749,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_table_column_ } - public static class update_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_partition_column_statistics_args"); private static final org.apache.thrift.protocol.TField STATS_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("stats_obj", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -110119,30 +101943,30 @@ public boolean equals(update_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stats_obj = true && (isSetStats_obj()); - list.add(present_stats_obj); + builder.append(present_stats_obj); if (present_stats_obj) - list.add(stats_obj); + builder.append(stats_obj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_partition_column_statistics_args typedOther = (update_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(other.isSetStats_obj()); + lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(typedOther.isSetStats_obj()); if (lastComparison != 0) { return lastComparison; } if (isSetStats_obj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, other.stats_obj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, typedOther.stats_obj); if (lastComparison != 0) { return lastComparison; } @@ -110288,7 +102112,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_partition_col } - public static class update_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_partition_column_statistics_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); @@ -110614,7 +102438,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -110716,90 +102540,90 @@ public boolean equals(update_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_partition_column_statistics_result typedOther = (update_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -111070,7 +102894,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_partition_col } - public static class get_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_column_statistics_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -111380,60 +103204,60 @@ public boolean equals(get_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_column_statistics_args typedOther = (get_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -111636,7 +103460,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_column_sta } - public static class get_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_column_statistics_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -112062,90 +103886,90 @@ public boolean equals(get_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_column_statistics_result typedOther = (get_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -112423,7 +104247,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_column_sta } - public static class get_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_column_statistics_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -112791,75 +104615,75 @@ public boolean equals(get_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_column_statistics_args typedOther = (get_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -113093,7 +104917,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column } - public static class get_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_column_statistics_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -113519,90 +105343,90 @@ public boolean equals(get_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_column_statistics_result typedOther = (get_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -113880,7 +105704,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column } - public static class get_table_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_statistics_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -114074,30 +105898,30 @@ public boolean equals(get_table_statistics_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_statistics_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_statistics_req_args typedOther = (get_table_statistics_req_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -114243,7 +106067,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_table_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_statistics_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -114553,60 +106377,60 @@ public boolean equals(get_table_statistics_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_statistics_req_result typedOther = (get_table_statistics_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -114818,7 +106642,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_partitions_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_statistics_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -115012,30 +106836,30 @@ public boolean equals(get_partitions_statistics_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_statistics_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_statistics_req_args typedOther = (get_partitions_statistics_req_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -115181,7 +107005,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati } - public static class get_partitions_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_statistics_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -115491,60 +107315,60 @@ public boolean equals(get_partitions_statistics_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_statistics_req_result typedOther = (get_partitions_statistics_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -115756,7 +107580,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati } - public static class get_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_aggr_stats_for_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -115950,30 +107774,30 @@ public boolean equals(get_aggr_stats_for_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_aggr_stats_for_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_aggr_stats_for_args typedOther = (get_aggr_stats_for_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -116119,7 +107943,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_a } - public static class get_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_aggr_stats_for_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -116429,60 +108253,60 @@ public boolean equals(get_aggr_stats_for_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_aggr_stats_for_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_aggr_stats_for_result typedOther = (get_aggr_stats_for_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -116694,7 +108518,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_r } - public static class set_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_aggr_stats_for_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -116888,30 +108712,30 @@ public boolean equals(set_aggr_stats_for_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_aggr_stats_for_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_aggr_stats_for_args typedOther = (set_aggr_stats_for_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -117057,7 +108881,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_aggr_stats_for_a } - public static class set_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_aggr_stats_for_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); @@ -117383,7 +109207,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -117485,90 +109309,90 @@ public boolean equals(set_aggr_stats_for_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_aggr_stats_for_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_aggr_stats_for_result typedOther = (set_aggr_stats_for_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -117839,7 +109663,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_aggr_stats_for_r } - public static class delete_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_partition_column_statistics_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -118207,75 +110031,75 @@ public boolean equals(delete_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_partition_column_statistics_args typedOther = (delete_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -118509,7 +110333,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_partition_col } - public static class delete_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_partition_column_statistics_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); @@ -118835,7 +110659,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -118937,90 +110761,90 @@ public boolean equals(delete_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_partition_column_statistics_result typedOther = (delete_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -119291,7 +111115,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_partition_col } - public static class delete_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_table_column_statistics_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -119601,60 +111425,60 @@ public boolean equals(delete_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_table_column_statistics_args typedOther = (delete_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -119857,7 +111681,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_table_column_ } - public static class delete_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_table_column_statistics_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); @@ -120183,7 +112007,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -120285,90 +112109,90 @@ public boolean equals(delete_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_table_column_statistics_result typedOther = (delete_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -120639,7 +112463,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_table_column_ } - public static class create_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_function_args"); private static final org.apache.thrift.protocol.TField FUNC_FIELD_DESC = new org.apache.thrift.protocol.TField("func", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -120833,30 +112657,30 @@ public boolean equals(create_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_func = true && (isSetFunc()); - list.add(present_func); + builder.append(present_func); if (present_func) - list.add(func); + builder.append(func); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_function_args typedOther = (create_function_args)other; - lastComparison = Boolean.valueOf(isSetFunc()).compareTo(other.isSetFunc()); + lastComparison = Boolean.valueOf(isSetFunc()).compareTo(typedOther.isSetFunc()); if (lastComparison != 0) { return lastComparison; } if (isSetFunc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.func, other.func); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.func, typedOther.func); if (lastComparison != 0) { return lastComparison; } @@ -121002,7 +112826,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_function_args } - public static class create_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_function_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); @@ -121370,75 +113194,75 @@ public boolean equals(create_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_function_result typedOther = (create_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -121680,7 +113504,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_function_resu } - public static class drop_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -121932,45 +113756,45 @@ public boolean equals(drop_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_function_args typedOther = (drop_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } @@ -122142,7 +113966,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_function_args s } - public static class drop_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_function_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); @@ -122394,45 +114218,45 @@ public boolean equals(drop_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_function_result typedOther = (drop_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -122608,7 +114432,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_function_result } - public static class alter_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -122918,60 +114742,60 @@ public boolean equals(alter_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); boolean present_newFunc = true && (isSetNewFunc()); - list.add(present_newFunc); + builder.append(present_newFunc); if (present_newFunc) - list.add(newFunc); + builder.append(newFunc); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_function_args typedOther = (alter_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewFunc()).compareTo(other.isSetNewFunc()); + lastComparison = Boolean.valueOf(isSetNewFunc()).compareTo(typedOther.isSetNewFunc()); if (lastComparison != 0) { return lastComparison; } if (isSetNewFunc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newFunc, other.newFunc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newFunc, typedOther.newFunc); if (lastComparison != 0) { return lastComparison; } @@ -123179,7 +115003,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_function_args } - public static class alter_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_function_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); @@ -123431,45 +115255,45 @@ public boolean equals(alter_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_function_result typedOther = (alter_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -123645,7 +115469,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_function_resul } - public static class get_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_functions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -123897,45 +115721,45 @@ public boolean equals(get_functions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); + builder.append(present_pattern); if (present_pattern) - list.add(pattern); + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_functions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_functions_args typedOther = (get_functions_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -124107,7 +115931,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_args s } - public static class get_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_functions_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); @@ -124213,7 +116037,10 @@ public get_functions_result( */ public get_functions_result(get_functions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -124376,45 +116203,45 @@ public boolean equals(get_functions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_functions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_functions_result typedOther = (get_functions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -124502,11 +116329,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul { org.apache.thrift.protocol.TList _list1012 = iprot.readListBegin(); struct.success = new ArrayList(_list1012.size); - String _elem1013; - for (int _i1014 = 0; _i1014 < _list1012.size; ++_i1014) + for (int _i1013 = 0; _i1013 < _list1012.size; ++_i1013) { - _elem1013 = iprot.readString(); - struct.success.add(_elem1013); + String _elem1014; // required + _elem1014 = iprot.readString(); + struct.success.add(_elem1014); } iprot.readListEnd(); } @@ -124601,11 +116428,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result { org.apache.thrift.protocol.TList _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list1017.size); - String _elem1018; - for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) + for (int _i1018 = 0; _i1018 < _list1017.size; ++_i1018) { - _elem1018 = iprot.readString(); - struct.success.add(_elem1018); + String _elem1019; // required + _elem1019 = iprot.readString(); + struct.success.add(_elem1019); } } struct.setSuccessIsSet(true); @@ -124620,7 +116447,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result } - public static class get_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -124872,45 +116699,45 @@ public boolean equals(get_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_function_args typedOther = (get_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } @@ -125082,7 +116909,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_function_args st } - public static class get_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_function_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -125392,60 +117219,60 @@ public boolean equals(get_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_function_result typedOther = (get_function_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -125657,7 +117484,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_function_result } - public static class get_all_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_functions_args"); @@ -125787,18 +117614,18 @@ public boolean equals(get_all_functions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_functions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_functions_args typedOther = (get_all_functions_args)other; return 0; } @@ -125903,7 +117730,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_functions_ar } - public static class get_all_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_functions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -126155,45 +117982,45 @@ public boolean equals(get_all_functions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_functions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_functions_result typedOther = (get_all_functions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -126372,7 +118199,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_functions_re } - public static class create_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_args"); private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -126566,30 +118393,30 @@ public boolean equals(create_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role = true && (isSetRole()); - list.add(present_role); + builder.append(present_role); if (present_role) - list.add(role); + builder.append(role); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_role_args typedOther = (create_role_args)other; - lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole()); if (lastComparison != 0) { return lastComparison; } if (isSetRole()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role); if (lastComparison != 0) { return lastComparison; } @@ -126735,7 +118562,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_role_args str } - public static class create_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_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); @@ -126929,7 +118756,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -126989,45 +118816,45 @@ public boolean equals(create_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_role_result typedOther = (create_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -127199,7 +119026,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_role_result s } - public static class drop_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -127393,30 +119220,30 @@ public boolean equals(drop_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_role_args typedOther = (drop_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } @@ -127557,7 +119384,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_role_args struc } - public static class drop_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_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); @@ -127751,7 +119578,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -127811,45 +119638,45 @@ public boolean equals(drop_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_role_result typedOther = (drop_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -128021,7 +119848,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_role_result str } - public static class get_role_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_names_args"); @@ -128151,18 +119978,18 @@ public boolean equals(get_role_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_names_args typedOther = (get_role_names_args)other; return 0; } @@ -128267,7 +120094,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_args } - public static class get_role_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_names_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); @@ -128373,7 +120200,10 @@ public get_role_names_result( */ public get_role_names_result(get_role_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -128536,45 +120366,45 @@ public boolean equals(get_role_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_names_result typedOther = (get_role_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -128662,11 +120492,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu { org.apache.thrift.protocol.TList _list1020 = iprot.readListBegin(); struct.success = new ArrayList(_list1020.size); - String _elem1021; - for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) + for (int _i1021 = 0; _i1021 < _list1020.size; ++_i1021) { - _elem1021 = iprot.readString(); - struct.success.add(_elem1021); + String _elem1022; // required + _elem1022 = iprot.readString(); + struct.success.add(_elem1022); } iprot.readListEnd(); } @@ -128761,11 +120591,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul { org.apache.thrift.protocol.TList _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list1025.size); - String _elem1026; - for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) + for (int _i1026 = 0; _i1026 < _list1025.size; ++_i1026) { - _elem1026 = iprot.readString(); - struct.success.add(_elem1026); + String _elem1027; // required + _elem1027 = iprot.readString(); + struct.success.add(_elem1027); } } struct.setSuccessIsSet(true); @@ -128780,7 +120610,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul } - public static class grant_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -129189,7 +121019,7 @@ public Object getFieldValue(_Fields field) { return getGrantorType(); case GRANT_OPTION: - return isGrant_option(); + return Boolean.valueOf(isGrant_option()); } throw new IllegalStateException(); @@ -129290,105 +121120,105 @@ public boolean equals(grant_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grant_option = true; - list.add(present_grant_option); + builder.append(present_grant_option); if (present_grant_option) - list.add(grant_option); + builder.append(grant_option); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_role_args typedOther = (grant_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrant_option()).compareTo(other.isSetGrant_option()); + lastComparison = Boolean.valueOf(isSetGrant_option()).compareTo(typedOther.isSetGrant_option()); if (lastComparison != 0) { return lastComparison; } if (isSetGrant_option()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grant_option, other.grant_option); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grant_option, typedOther.grant_option); if (lastComparison != 0) { return lastComparison; } @@ -129519,7 +121349,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -129535,7 +121365,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str break; case 5: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -129660,7 +121490,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru struct.setPrincipal_nameIsSet(true); } if (incoming.get(2)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } if (incoming.get(3)) { @@ -129668,7 +121498,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru struct.setGrantorIsSet(true); } if (incoming.get(4)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(5)) { @@ -129680,7 +121510,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru } - public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_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); @@ -129874,7 +121704,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -129934,45 +121764,45 @@ public boolean equals(grant_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_role_result typedOther = (grant_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -130144,7 +121974,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result st } - public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -130466,60 +122296,60 @@ public boolean equals(revoke_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_role_args typedOther = (revoke_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -130628,7 +122458,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args st break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -130714,7 +122544,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args str struct.setPrincipal_nameIsSet(true); } if (incoming.get(2)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } @@ -130722,7 +122552,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args str } - public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_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); @@ -130916,7 +122746,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -130976,45 +122806,45 @@ public boolean equals(revoke_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_role_result typedOther = (revoke_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -131186,7 +123016,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result s } - public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_args"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131450,45 +123280,45 @@ public boolean equals(list_roles_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_roles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_roles_args typedOther = (list_roles_args)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -131581,7 +123411,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args str break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -131652,7 +123482,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args stru struct.setPrincipal_nameIsSet(true); } if (incoming.get(1)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } @@ -131660,7 +123490,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args stru } - public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_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); @@ -131766,7 +123596,7 @@ public list_roles_result( */ public list_roles_result(list_roles_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Role other_element : other.success) { __this__success.add(new Role(other_element)); } @@ -131932,45 +123762,45 @@ public boolean equals(list_roles_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_roles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_roles_result typedOther = (list_roles_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -132058,12 +123888,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s { org.apache.thrift.protocol.TList _list1028 = iprot.readListBegin(); struct.success = new ArrayList(_list1028.size); - Role _elem1029; - for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) + for (int _i1029 = 0; _i1029 < _list1028.size; ++_i1029) { - _elem1029 = new Role(); - _elem1029.read(iprot); - struct.success.add(_elem1029); + Role _elem1030; // required + _elem1030 = new Role(); + _elem1030.read(iprot); + struct.success.add(_elem1030); } iprot.readListEnd(); } @@ -132158,12 +123988,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st { org.apache.thrift.protocol.TList _list1033 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list1033.size); - Role _elem1034; - for (int _i1035 = 0; _i1035 < _list1033.size; ++_i1035) + for (int _i1034 = 0; _i1034 < _list1033.size; ++_i1034) { - _elem1034 = new Role(); - _elem1034.read(iprot); - struct.success.add(_elem1034); + Role _elem1035; // required + _elem1035 = new Role(); + _elem1035.read(iprot); + struct.success.add(_elem1035); } } struct.setSuccessIsSet(true); @@ -132178,7 +124008,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st } - public static class grant_revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_role_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -132372,30 +124202,30 @@ public boolean equals(grant_revoke_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_role_args typedOther = (grant_revoke_role_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -132541,7 +124371,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_role_ar } - public static class grant_revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -132793,45 +124623,45 @@ public boolean equals(grant_revoke_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_role_result typedOther = (grant_revoke_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -133010,7 +124840,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_role_re } - public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -133204,30 +125034,30 @@ public boolean equals(get_principals_in_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_principals_in_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_principals_in_role_args typedOther = (get_principals_in_role_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -133373,7 +125203,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_ro } - public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -133625,45 +125455,45 @@ public boolean equals(get_principals_in_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_principals_in_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_principals_in_role_result typedOther = (get_principals_in_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -133842,7 +125672,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_ro } - public static class get_role_grants_for_principal_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_grants_for_principal_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -134036,30 +125866,30 @@ public boolean equals(get_role_grants_for_principal_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_grants_for_principal_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_grants_for_principal_args typedOther = (get_role_grants_for_principal_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -134205,7 +126035,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_ } - public static class get_role_grants_for_principal_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_grants_for_principal_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -134457,45 +126287,45 @@ public boolean equals(get_role_grants_for_principal_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_grants_for_principal_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_grants_for_principal_result typedOther = (get_role_grants_for_principal_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -134674,7 +126504,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_ } - public static class get_privilege_set_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_privilege_set_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_args"); private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -134795,7 +126625,10 @@ public get_privilege_set_args(get_privilege_set_args other) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -135001,60 +126834,60 @@ public boolean equals(get_privilege_set_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_privilege_set_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_privilege_set_args typedOther = (get_privilege_set_args)other; - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -135170,11 +127003,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a { org.apache.thrift.protocol.TList _list1036 = iprot.readListBegin(); struct.group_names = new ArrayList(_list1036.size); - String _elem1037; - for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) + for (int _i1037 = 0; _i1037 < _list1036.size; ++_i1037) { - _elem1037 = iprot.readString(); - struct.group_names.add(_elem1037); + String _elem1038; // required + _elem1038 = iprot.readString(); + struct.group_names.add(_elem1038); } iprot.readListEnd(); } @@ -135280,11 +127113,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar { org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list1041.size); - String _elem1042; - for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) + for (int _i1042 = 0; _i1042 < _list1041.size; ++_i1042) { - _elem1042 = iprot.readString(); - struct.group_names.add(_elem1042); + String _elem1043; // required + _elem1043 = iprot.readString(); + struct.group_names.add(_elem1043); } } struct.setGroup_namesIsSet(true); @@ -135294,7 +127127,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } - public static class get_privilege_set_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_privilege_set_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -135546,45 +127379,45 @@ public boolean equals(get_privilege_set_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_privilege_set_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_privilege_set_result typedOther = (get_privilege_set_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -135763,7 +127596,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_re } - public static class list_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_args"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -136085,60 +127918,60 @@ public boolean equals(list_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_privileges_args typedOther = (list_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } @@ -136242,7 +128075,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_arg break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -136333,7 +128166,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_args struct.setPrincipal_nameIsSet(true); } if (incoming.get(1)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } if (incoming.get(2)) { @@ -136346,7 +128179,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_args } - public static class list_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_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); @@ -136452,7 +128285,7 @@ public list_privileges_result( */ public list_privileges_result(list_privileges_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (HiveObjectPrivilege other_element : other.success) { __this__success.add(new HiveObjectPrivilege(other_element)); } @@ -136618,45 +128451,45 @@ public boolean equals(list_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_privileges_result typedOther = (list_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -136744,12 +128577,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res { org.apache.thrift.protocol.TList _list1044 = iprot.readListBegin(); struct.success = new ArrayList(_list1044.size); - HiveObjectPrivilege _elem1045; - for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) + for (int _i1045 = 0; _i1045 < _list1044.size; ++_i1045) { - _elem1045 = new HiveObjectPrivilege(); - _elem1045.read(iprot); - struct.success.add(_elem1045); + HiveObjectPrivilege _elem1046; // required + _elem1046 = new HiveObjectPrivilege(); + _elem1046.read(iprot); + struct.success.add(_elem1046); } iprot.readListEnd(); } @@ -136844,12 +128677,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu { org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list1049.size); - HiveObjectPrivilege _elem1050; - for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) + for (int _i1050 = 0; _i1050 < _list1049.size; ++_i1050) { - _elem1050 = new HiveObjectPrivilege(); - _elem1050.read(iprot); - struct.success.add(_elem1050); + HiveObjectPrivilege _elem1051; // required + _elem1051 = new HiveObjectPrivilege(); + _elem1051.read(iprot); + struct.success.add(_elem1051); } } struct.setSuccessIsSet(true); @@ -136864,7 +128697,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu } - public static class grant_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_args"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -137058,30 +128891,30 @@ public boolean equals(grant_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_privileges_args typedOther = (grant_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -137227,7 +129060,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_privileges_arg } - public static class grant_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_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); @@ -137421,7 +129254,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -137481,45 +129314,45 @@ public boolean equals(grant_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_privileges_result typedOther = (grant_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -137691,7 +129524,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_privileges_res } - public static class revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_args"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -137885,30 +129718,30 @@ public boolean equals(revoke_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_privileges_args typedOther = (revoke_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -138054,7 +129887,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_privileges_ar } - public static class revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_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); @@ -138248,7 +130081,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -138308,45 +130141,45 @@ public boolean equals(revoke_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_privileges_result typedOther = (revoke_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -138518,7 +130351,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_privileges_re } - public static class grant_revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_privileges_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -138712,30 +130545,30 @@ public boolean equals(grant_revoke_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_privileges_args typedOther = (grant_revoke_privileges_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -138881,7 +130714,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_privile } - public static class grant_revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_privileges_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -139133,45 +130966,45 @@ public boolean equals(grant_revoke_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_privileges_result typedOther = (grant_revoke_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -139350,7 +131183,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_privile } - public static class set_ugi_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_ugi_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_ugi_args"); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -139459,7 +131292,10 @@ public set_ugi_args(set_ugi_args other) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -139619,45 +131455,45 @@ public boolean equals(set_ugi_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_ugi_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_ugi_args typedOther = (set_ugi_args)other; - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -139753,11 +131589,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct { org.apache.thrift.protocol.TList _list1052 = iprot.readListBegin(); struct.group_names = new ArrayList(_list1052.size); - String _elem1053; - for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) + for (int _i1053 = 0; _i1053 < _list1052.size; ++_i1053) { - _elem1053 = iprot.readString(); - struct.group_names.add(_elem1053); + String _elem1054; // required + _elem1054 = iprot.readString(); + struct.group_names.add(_elem1054); } iprot.readListEnd(); } @@ -139847,11 +131683,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) { org.apache.thrift.protocol.TList _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list1057.size); - String _elem1058; - for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) + for (int _i1058 = 0; _i1058 < _list1057.size; ++_i1058) { - _elem1058 = iprot.readString(); - struct.group_names.add(_elem1058); + String _elem1059; // required + _elem1059 = iprot.readString(); + struct.group_names.add(_elem1059); } } struct.setGroup_namesIsSet(true); @@ -139861,7 +131697,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } - public static class set_ugi_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_ugi_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_ugi_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); @@ -139967,7 +131803,10 @@ public set_ugi_result( */ public set_ugi_result(set_ugi_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -140130,45 +131969,45 @@ public boolean equals(set_ugi_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_ugi_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_ugi_result typedOther = (set_ugi_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -140256,11 +132095,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru { org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); struct.success = new ArrayList(_list1060.size); - String _elem1061; - for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) + for (int _i1061 = 0; _i1061 < _list1060.size; ++_i1061) { - _elem1061 = iprot.readString(); - struct.success.add(_elem1061); + String _elem1062; // required + _elem1062 = iprot.readString(); + struct.success.add(_elem1062); } iprot.readListEnd(); } @@ -140355,11 +132194,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc { org.apache.thrift.protocol.TList _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list1065.size); - String _elem1066; - for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) + for (int _i1066 = 0; _i1066 < _list1065.size; ++_i1066) { - _elem1066 = iprot.readString(); - struct.success.add(_elem1066); + String _elem1067; // required + _elem1067 = iprot.readString(); + struct.success.add(_elem1067); } } struct.setSuccessIsSet(true); @@ -140374,7 +132213,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc } - public static class get_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_OWNER_FIELD_DESC = new org.apache.thrift.protocol.TField("token_owner", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -140626,45 +132465,45 @@ public boolean equals(get_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_owner = true && (isSetToken_owner()); - list.add(present_token_owner); + builder.append(present_token_owner); if (present_token_owner) - list.add(token_owner); + builder.append(token_owner); boolean present_renewer_kerberos_principal_name = true && (isSetRenewer_kerberos_principal_name()); - list.add(present_renewer_kerberos_principal_name); + builder.append(present_renewer_kerberos_principal_name); if (present_renewer_kerberos_principal_name) - list.add(renewer_kerberos_principal_name); + builder.append(renewer_kerberos_principal_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_delegation_token_args typedOther = (get_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_owner()).compareTo(other.isSetToken_owner()); + lastComparison = Boolean.valueOf(isSetToken_owner()).compareTo(typedOther.isSetToken_owner()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_owner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_owner, other.token_owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_owner, typedOther.token_owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRenewer_kerberos_principal_name()).compareTo(other.isSetRenewer_kerberos_principal_name()); + lastComparison = Boolean.valueOf(isSetRenewer_kerberos_principal_name()).compareTo(typedOther.isSetRenewer_kerberos_principal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRenewer_kerberos_principal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer_kerberos_principal_name, other.renewer_kerberos_principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer_kerberos_principal_name, typedOther.renewer_kerberos_principal_name); if (lastComparison != 0) { return lastComparison; } @@ -140836,7 +132675,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_delegation_token } - public static class get_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -141088,45 +132927,45 @@ public boolean equals(get_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_delegation_token_result typedOther = (get_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -141300,7 +133139,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_delegation_token } - public static class renew_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class renew_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -141494,30 +133333,30 @@ public boolean equals(renew_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_str_form = true && (isSetToken_str_form()); - list.add(present_token_str_form); + builder.append(present_token_str_form); if (present_token_str_form) - list.add(token_str_form); + builder.append(token_str_form); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(renew_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + renew_delegation_token_args typedOther = (renew_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(other.isSetToken_str_form()); + lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(typedOther.isSetToken_str_form()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, other.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -141658,7 +133497,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, renew_delegation_tok } - public static class renew_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class renew_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); @@ -141852,7 +133691,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Long.valueOf(getSuccess()); case O1: return getO1(); @@ -141912,45 +133751,45 @@ public boolean equals(renew_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(renew_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + renew_delegation_token_result typedOther = (renew_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -142122,7 +133961,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, renew_delegation_tok } - public static class cancel_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cancel_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -142316,30 +134155,30 @@ public boolean equals(cancel_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_str_form = true && (isSetToken_str_form()); - list.add(present_token_str_form); + builder.append(present_token_str_form); if (present_token_str_form) - list.add(token_str_form); + builder.append(token_str_form); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cancel_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cancel_delegation_token_args typedOther = (cancel_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(other.isSetToken_str_form()); + lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(typedOther.isSetToken_str_form()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, other.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -142480,7 +134319,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cancel_delegation_to } - public static class cancel_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cancel_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_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); @@ -142674,30 +134513,30 @@ public boolean equals(cancel_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cancel_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cancel_delegation_token_result typedOther = (cancel_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -142840,7 +134679,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cancel_delegation_to } - public static class get_open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_args"); @@ -142970,18 +134809,18 @@ public boolean equals(get_open_txns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_args typedOther = (get_open_txns_args)other; return 0; } @@ -143086,7 +134925,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_args s } - public static class get_open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -143280,30 +135119,30 @@ public boolean equals(get_open_txns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_result typedOther = (get_open_txns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -143449,7 +135288,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_result } - public static class get_open_txns_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_info_args"); @@ -143579,18 +135418,18 @@ public boolean equals(get_open_txns_info_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_info_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_info_args typedOther = (get_open_txns_info_args)other; return 0; } @@ -143695,7 +135534,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_info_a } - public static class get_open_txns_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_info_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -143889,30 +135728,30 @@ public boolean equals(get_open_txns_info_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_info_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_info_result typedOther = (get_open_txns_info_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -144058,7 +135897,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_info_r } - public static class open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_txns_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144252,30 +136091,30 @@ public boolean equals(open_txns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(open_txns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + open_txns_args typedOther = (open_txns_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -144421,7 +136260,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, open_txns_args struc } - public static class open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_txns_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -144615,30 +136454,30 @@ public boolean equals(open_txns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(open_txns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + open_txns_result typedOther = (open_txns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -144784,7 +136623,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, open_txns_result str } - public static class abort_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class abort_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("abort_txn_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144978,30 +136817,30 @@ public boolean equals(abort_txn_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(abort_txn_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + abort_txn_args typedOther = (abort_txn_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -145147,7 +136986,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, abort_txn_args struc } - public static class abort_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class abort_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("abort_txn_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); @@ -145341,30 +137180,30 @@ public boolean equals(abort_txn_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(abort_txn_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + abort_txn_result typedOther = (abort_txn_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -145507,7 +137346,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, abort_txn_result str } - public static class commit_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class commit_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("commit_txn_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -145701,30 +137540,30 @@ public boolean equals(commit_txn_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(commit_txn_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + commit_txn_args typedOther = (commit_txn_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -145870,7 +137709,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, commit_txn_args stru } - public static class commit_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class commit_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("commit_txn_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); @@ -146122,45 +137961,45 @@ public boolean equals(commit_txn_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(commit_txn_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + commit_txn_result typedOther = (commit_txn_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -146336,7 +138175,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, commit_txn_result st } - public static class lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("lock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -146530,30 +138369,30 @@ public boolean equals(lock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(lock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lock_args typedOther = (lock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -146699,7 +138538,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, lock_args struct) th } - public static class lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("lock_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -147009,60 +138848,60 @@ public boolean equals(lock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(lock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lock_result typedOther = (lock_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -147274,7 +139113,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, lock_result struct) } - public static class check_lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class check_lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_lock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -147468,30 +139307,30 @@ public boolean equals(check_lock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(check_lock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + check_lock_args typedOther = (check_lock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -147637,7 +139476,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_args stru } - public static class check_lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class check_lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_lock_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -148005,75 +139844,75 @@ public boolean equals(check_lock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(check_lock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + check_lock_result typedOther = (check_lock_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -148318,7 +140157,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_result st } - public static class unlock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class unlock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unlock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -148512,30 +140351,30 @@ public boolean equals(unlock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(unlock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + unlock_args typedOther = (unlock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -148681,7 +140520,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) } - public static class unlock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class unlock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unlock_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -148933,45 +140772,45 @@ public boolean equals(unlock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(unlock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + unlock_result typedOther = (unlock_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -149147,7 +140986,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct } - public static class show_locks_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_locks_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_locks_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -149341,30 +141180,30 @@ public boolean equals(show_locks_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_locks_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_locks_args typedOther = (show_locks_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -149510,7 +141349,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_args stru } - public static class show_locks_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_locks_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_locks_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -149704,30 +141543,30 @@ public boolean equals(show_locks_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_locks_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_locks_result typedOther = (show_locks_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -149873,7 +141712,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_result st } - public static class heartbeat_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_args"); private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -150067,30 +141906,30 @@ public boolean equals(heartbeat_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_ids = true && (isSetIds()); - list.add(present_ids); + builder.append(present_ids); if (present_ids) - list.add(ids); + builder.append(ids); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_args typedOther = (heartbeat_args)other; - lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds()); + lastComparison = Boolean.valueOf(isSetIds()).compareTo(typedOther.isSetIds()); if (lastComparison != 0) { return lastComparison; } if (isSetIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, typedOther.ids); if (lastComparison != 0) { return lastComparison; } @@ -150236,7 +142075,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struc } - public static class heartbeat_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -150546,60 +142385,60 @@ public boolean equals(heartbeat_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_result typedOther = (heartbeat_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -150808,7 +142647,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_result str } - public static class heartbeat_txn_range_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_txn_range_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_txn_range_args"); private static final org.apache.thrift.protocol.TField TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("txns", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -151002,30 +142841,30 @@ public boolean equals(heartbeat_txn_range_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txns = true && (isSetTxns()); - list.add(present_txns); + builder.append(present_txns); if (present_txns) - list.add(txns); + builder.append(txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_txn_range_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_txn_range_args typedOther = (heartbeat_txn_range_args)other; - lastComparison = Boolean.valueOf(isSetTxns()).compareTo(other.isSetTxns()); + lastComparison = Boolean.valueOf(isSetTxns()).compareTo(typedOther.isSetTxns()); if (lastComparison != 0) { return lastComparison; } if (isSetTxns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, other.txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, typedOther.txns); if (lastComparison != 0) { return lastComparison; } @@ -151171,7 +143010,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ } - public static class heartbeat_txn_range_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_txn_range_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_txn_range_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -151365,30 +143204,30 @@ public boolean equals(heartbeat_txn_range_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_txn_range_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_txn_range_result typedOther = (heartbeat_txn_range_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -151534,7 +143373,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ } - public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -151728,30 +143567,30 @@ public boolean equals(compact_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + compact_args typedOther = (compact_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -151897,7 +143736,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) } - public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result"); @@ -152027,18 +143866,18 @@ public boolean equals(compact_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + compact_result typedOther = (compact_result)other; return 0; } @@ -152143,7 +143982,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struc } - public static class show_compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_compact_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -152337,30 +144176,30 @@ public boolean equals(show_compact_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_compact_args typedOther = (show_compact_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -152506,7 +144345,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args st } - public static class show_compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_compact_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -152700,30 +144539,30 @@ public boolean equals(show_compact_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_compact_result typedOther = (show_compact_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -152869,7 +144708,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result } - public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -153063,30 +144902,30 @@ public boolean equals(add_dynamic_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_dynamic_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_dynamic_partitions_args typedOther = (add_dynamic_partitions_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -153232,7 +145071,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio } - public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -153484,45 +145323,45 @@ public boolean equals(add_dynamic_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_dynamic_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_dynamic_partitions_result typedOther = (add_dynamic_partitions_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -153698,7 +145537,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio } - public static class get_next_notification_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_next_notification_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_notification_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -153892,30 +145731,30 @@ public boolean equals(get_next_notification_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_next_notification_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_next_notification_args typedOther = (get_next_notification_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -154061,7 +145900,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio } - public static class get_next_notification_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_next_notification_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_notification_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -154255,30 +146094,30 @@ public boolean equals(get_next_notification_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_next_notification_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_next_notification_result typedOther = (get_next_notification_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -154424,7 +146263,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio } - public static class get_current_notificationEventId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_current_notificationEventId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_current_notificationEventId_args"); @@ -154554,18 +146393,18 @@ public boolean equals(get_current_notificationEventId_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_current_notificationEventId_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_current_notificationEventId_args typedOther = (get_current_notificationEventId_args)other; return 0; } @@ -154670,7 +146509,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } - public static class get_current_notificationEventId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_current_notificationEventId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_current_notificationEventId_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -154864,30 +146703,30 @@ public boolean equals(get_current_notificationEventId_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_current_notificationEventId_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_current_notificationEventId_result typedOther = (get_current_notificationEventId_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -155033,7 +146872,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } - public static class fire_listener_event_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fire_listener_event_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fire_listener_event_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -155227,30 +147066,30 @@ public boolean equals(fire_listener_event_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fire_listener_event_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fire_listener_event_args typedOther = (fire_listener_event_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -155396,7 +147235,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ } - public static class fire_listener_event_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fire_listener_event_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fire_listener_event_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -155590,30 +147429,30 @@ public boolean equals(fire_listener_event_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fire_listener_event_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fire_listener_event_result typedOther = (fire_listener_event_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -155759,7 +147598,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ } - public static class flushCache_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class flushCache_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("flushCache_args"); @@ -155889,18 +147728,18 @@ public boolean equals(flushCache_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(flushCache_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + flushCache_args typedOther = (flushCache_args)other; return 0; } @@ -156005,7 +147844,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_args stru } - public static class flushCache_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class flushCache_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("flushCache_result"); @@ -156135,18 +147974,18 @@ public boolean equals(flushCache_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(flushCache_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + flushCache_result typedOther = (flushCache_result)other; return 0; } @@ -156251,7 +148090,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, flushCache_result st } - public static class get_file_metadata_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_file_metadata_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_file_metadata_by_expr_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -156445,30 +148284,30 @@ public boolean equals(get_file_metadata_by_expr_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_file_metadata_by_expr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_file_metadata_by_expr_args typedOther = (get_file_metadata_by_expr_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -156614,7 +148453,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by } - public static class get_file_metadata_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_file_metadata_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_file_metadata_by_expr_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -156808,30 +148647,30 @@ public boolean equals(get_file_metadata_by_expr_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_file_metadata_by_expr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_file_metadata_by_expr_result typedOther = (get_file_metadata_by_expr_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -156977,7 +148816,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_by } - public static class get_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -157171,30 +149010,30 @@ public boolean equals(get_file_metadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_file_metadata_args typedOther = (get_file_metadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -157340,7 +149179,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_ar } - public static class get_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_file_metadata_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -157534,30 +149373,30 @@ public boolean equals(get_file_metadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_file_metadata_result typedOther = (get_file_metadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -157703,7 +149542,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_file_metadata_re } - public static class put_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class put_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -157897,30 +149736,30 @@ public boolean equals(put_file_metadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(put_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + put_file_metadata_args typedOther = (put_file_metadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -158066,7 +149905,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_ar } - public static class put_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class put_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("put_file_metadata_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -158260,30 +150099,30 @@ public boolean equals(put_file_metadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(put_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + put_file_metadata_result typedOther = (put_file_metadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -158429,7 +150268,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, put_file_metadata_re } - public static class clear_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clear_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clear_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -158623,30 +150462,30 @@ public boolean equals(clear_file_metadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clear_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clear_file_metadata_args typedOther = (clear_file_metadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -158792,7 +150631,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_ } - public static class clear_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clear_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clear_file_metadata_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -158986,30 +150825,30 @@ public boolean equals(clear_file_metadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clear_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clear_file_metadata_result typedOther = (clear_file_metadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -159155,7 +150994,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, clear_file_metadata_ } - public static class cache_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cache_file_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cache_file_metadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -159349,30 +151188,30 @@ public boolean equals(cache_file_metadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cache_file_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cache_file_metadata_args typedOther = (cache_file_metadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -159518,7 +151357,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cache_file_metadata_ } - public static class cache_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cache_file_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cache_file_metadata_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -159712,30 +151551,30 @@ public boolean equals(cache_file_metadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cache_file_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cache_file_metadata_result typedOther = (cache_file_metadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java index 689f646..ae39507 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TxnAbortedException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnAbortedException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnAbortedException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TxnAbortedException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnAbortedException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnAbortedException typedOther = (TxnAbortedException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java index 47cdaf4..18cbe53 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TxnInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnInfo"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1); @@ -329,7 +325,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case ID: - return getId(); + return Long.valueOf(getId()); case STATE: return getState(); @@ -417,75 +413,75 @@ public boolean equals(TxnInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_id = true; - list.add(present_id); + builder.append(present_id); if (present_id) - list.add(id); + builder.append(id); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnInfo typedOther = (TxnInfo)other; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -608,7 +604,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TxnInfo struct) thr break; case 2: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.TxnState.findByValue(iprot.readI32()); + struct.state = TxnState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -689,7 +685,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TxnInfo struct) thro TTupleProtocol iprot = (TTupleProtocol) prot; struct.id = iprot.readI64(); struct.setIdIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.TxnState.findByValue(iprot.readI32()); + struct.state = TxnState.findByValue(iprot.readI32()); struct.setStateIsSet(true); struct.user = iprot.readString(); struct.setUserIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java index 10b5f9b..4f5d02d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TxnOpenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnOpenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnOpenException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TxnOpenException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnOpenException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnOpenException typedOther = (TxnOpenException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java index de59755..f4540a1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java index 14cd42e..bb81e3c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Type implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Type implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Type"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -122,7 +118,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TYPE1,_Fields.TYPE2,_Fields.FIELDS}; + private _Fields optionals[] = {_Fields.TYPE1,_Fields.TYPE2,_Fields.FIELDS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -163,7 +159,7 @@ public Type(Type other) { this.type2 = other.type2; } if (other.isSetFields()) { - List __this__fields = new ArrayList(other.fields.size()); + List __this__fields = new ArrayList(); for (FieldSchema other_element : other.fields) { __this__fields.add(new FieldSchema(other_element)); } @@ -418,75 +414,75 @@ public boolean equals(Type that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_type1 = true && (isSetType1()); - list.add(present_type1); + builder.append(present_type1); if (present_type1) - list.add(type1); + builder.append(type1); boolean present_type2 = true && (isSetType2()); - list.add(present_type2); + builder.append(present_type2); if (present_type2) - list.add(type2); + builder.append(type2); boolean present_fields = true && (isSetFields()); - list.add(present_fields); + builder.append(present_fields); if (present_fields) - list.add(fields); + builder.append(fields); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Type other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Type typedOther = (Type)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType1()).compareTo(other.isSetType1()); + lastComparison = Boolean.valueOf(isSetType1()).compareTo(typedOther.isSetType1()); if (lastComparison != 0) { return lastComparison; } if (isSetType1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, other.type1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, typedOther.type1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType2()).compareTo(other.isSetType2()); + lastComparison = Boolean.valueOf(isSetType2()).compareTo(typedOther.isSetType2()); if (lastComparison != 0) { return lastComparison; } if (isSetType2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type2, other.type2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type2, typedOther.type2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFields()).compareTo(other.isSetFields()); + lastComparison = Boolean.valueOf(isSetFields()).compareTo(typedOther.isSetFields()); if (lastComparison != 0) { return lastComparison; } if (isSetFields()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, other.fields); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, typedOther.fields); if (lastComparison != 0) { return lastComparison; } @@ -620,12 +616,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Type struct) throws { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.fields = new ArrayList(_list0.size); - FieldSchema _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = new FieldSchema(); - _elem1.read(iprot); - struct.fields.add(_elem1); + FieldSchema _elem2; // required + _elem2 = new FieldSchema(); + _elem2.read(iprot); + struct.fields.add(_elem2); } iprot.readListEnd(); } @@ -751,12 +747,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Type struct) throws { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.fields = new ArrayList(_list5.size); - FieldSchema _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = new FieldSchema(); - _elem6.read(iprot); - struct.fields.add(_elem6); + FieldSchema _elem7; // required + _elem7 = new FieldSchema(); + _elem7.read(iprot); + struct.fields.add(_elem7); } } struct.setFieldsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java index a5ea86f..ab91419 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class UnknownDBException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownDBException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownDBException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownDBException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownDBException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownDBException typedOther = (UnknownDBException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java index 538ce29..7e28591 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class UnknownPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownPartitionException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownPartitionException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownPartitionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownPartitionException typedOther = (UnknownPartitionException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java index 95bd0dd..7aa8012 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class UnknownTableException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownTableException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownTableException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownTableException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownTableException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownTableException typedOther = (UnknownTableException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java index f28e808..54b949d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class UnlockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnlockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnlockRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case LOCKID: - return getLockid(); + return Long.valueOf(getLockid()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(UnlockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnlockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnlockRequest typedOther = (UnlockRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java index 12a2bce..aa83fd7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Version implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Version implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Version"); private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -287,45 +283,45 @@ public boolean equals(Version that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_version = true && (isSetVersion()); - list.add(present_version); + builder.append(present_version); if (present_version) - list.add(version); + builder.append(version); boolean present_comments = true && (isSetComments()); - list.add(present_comments); + builder.append(present_comments); if (present_comments) - list.add(comments); + builder.append(comments); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Version other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Version typedOther = (Version)other; - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(typedOther.isSetVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComments()).compareTo(other.isSetComments()); + lastComparison = Boolean.valueOf(isSetComments()).compareTo(typedOther.isSetComments()); if (lastComparison != 0) { return lastComparison; } if (isSetComments()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, other.comments); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java index 5a666f2..0f2fca8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class hive_metastoreConstants { public static final String DDL_TIME = "transient_lastDdlTime"; diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index d0289fe..0ae608f 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1,7 +1,7 @@ key = $key; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1098,7 +182,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_getMetaConf() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_getMetaConf_result', $this->input_->isStrictRead()); else { @@ -1137,7 +221,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_setMetaConf_args(); $args->key = $key; $args->value = $value; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'setMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1153,7 +237,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_setMetaConf() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_setMetaConf_result', $this->input_->isStrictRead()); else { @@ -1188,7 +272,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_database_args(); $args->database = $database; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1204,7 +288,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead()); else { @@ -1245,7 +329,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_database_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1261,7 +345,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead()); else { @@ -1304,7 +388,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1320,7 +404,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead()); else { @@ -1361,7 +445,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_databases_args(); $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1377,7 +461,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_databases() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead()); else { @@ -1414,7 +498,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_all_databases() { $args = new \metastore\ThriftHiveMetastore_get_all_databases_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1430,7 +514,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_databases() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead()); else { @@ -1469,7 +553,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_alter_database_args(); $args->dbname = $dbname; $args->db = $db; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1485,7 +569,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead()); else { @@ -1523,7 +607,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1539,7 +623,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead()); else { @@ -1580,7 +664,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1596,7 +680,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead()); else { @@ -1640,7 +724,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1656,7 +740,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead()); else { @@ -1697,7 +781,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_all_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type_all', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1713,7 +797,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type_all() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead()); else { @@ -1752,7 +836,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_fields_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1768,7 +852,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead()); else { @@ -1814,7 +898,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1830,7 +914,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1875,7 +959,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_schema_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1891,7 +975,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead()); else { @@ -1937,7 +1021,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1953,7 +1037,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1997,7 +1081,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_table_args(); $args->tbl = $tbl; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2013,7 +1097,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead()); else { @@ -2058,7 +1142,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_create_table_with_environment_context_args(); $args->tbl = $tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2074,7 +1158,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2120,7 +1204,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->name = $name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2136,7 +1220,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead()); else { @@ -2177,7 +1261,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2193,7 +1277,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2232,7 +1316,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_tables_args(); $args->db_name = $db_name; $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2248,7 +1332,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_tables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead()); else { @@ -2276,19 +1360,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_tables failed: unknown result"); } - public function get_table_meta($db_patterns, $tbl_patterns, array $tbl_types) + public function get_table_meta($db_patterns, $tbl_patterns, $tbl_types) { $this->send_get_table_meta($db_patterns, $tbl_patterns, $tbl_types); return $this->recv_get_table_meta(); } - public function send_get_table_meta($db_patterns, $tbl_patterns, array $tbl_types) + public function send_get_table_meta($db_patterns, $tbl_patterns, $tbl_types) { $args = new \metastore\ThriftHiveMetastore_get_table_meta_args(); $args->db_patterns = $db_patterns; $args->tbl_patterns = $tbl_patterns; $args->tbl_types = $tbl_types; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_meta', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2304,7 +1388,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_meta() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_meta_result', $this->input_->isStrictRead()); else { @@ -2342,7 +1426,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_all_tables_args(); $args->db_name = $db_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2358,7 +1442,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_tables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead()); else { @@ -2397,7 +1481,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_table_args(); $args->dbname = $dbname; $args->tbl_name = $tbl_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2413,7 +1497,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead()); else { @@ -2444,18 +1528,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_table failed: unknown result"); } - public function get_table_objects_by_name($dbname, array $tbl_names) + public function get_table_objects_by_name($dbname, $tbl_names) { $this->send_get_table_objects_by_name($dbname, $tbl_names); return $this->recv_get_table_objects_by_name(); } - public function send_get_table_objects_by_name($dbname, array $tbl_names) + public function send_get_table_objects_by_name($dbname, $tbl_names) { $args = new \metastore\ThriftHiveMetastore_get_table_objects_by_name_args(); $args->dbname = $dbname; $args->tbl_names = $tbl_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_objects_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2471,7 +1555,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_objects_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead()); else { @@ -2517,7 +1601,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->filter = $filter; $args->max_tables = $max_tables; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_names_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2533,7 +1617,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_names_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead()); else { @@ -2579,7 +1663,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2595,7 +1679,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead()); else { @@ -2636,7 +1720,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2652,7 +1736,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2693,7 +1777,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_cascade', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2709,7 +1793,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_cascade() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_cascade_result', $this->input_->isStrictRead()); else { @@ -2747,7 +1831,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partition_args(); $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2763,7 +1847,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead()); else { @@ -2808,7 +1892,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_add_partition_with_environment_context_args(); $args->new_part = $new_part; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2824,7 +1908,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2858,17 +1942,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partition_with_environment_context failed: unknown result"); } - public function add_partitions(array $new_parts) + public function add_partitions($new_parts) { $this->send_add_partitions($new_parts); return $this->recv_add_partitions(); } - public function send_add_partitions(array $new_parts) + public function send_add_partitions($new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2884,7 +1968,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead()); else { @@ -2918,17 +2002,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions failed: unknown result"); } - public function add_partitions_pspec(array $new_parts) + public function add_partitions_pspec($new_parts) { $this->send_add_partitions_pspec($new_parts); return $this->recv_add_partitions_pspec(); } - public function send_add_partitions_pspec(array $new_parts) + public function send_add_partitions_pspec($new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_pspec_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2944,7 +2028,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_pspec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_pspec_result', $this->input_->isStrictRead()); else { @@ -2978,19 +2062,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_pspec failed: unknown result"); } - public function append_partition($db_name, $tbl_name, array $part_vals) + public function append_partition($db_name, $tbl_name, $part_vals) { $this->send_append_partition($db_name, $tbl_name, $part_vals); return $this->recv_append_partition(); } - public function send_append_partition($db_name, $tbl_name, array $part_vals) + public function send_append_partition($db_name, $tbl_name, $part_vals) { $args = new \metastore\ThriftHiveMetastore_append_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3006,7 +2090,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead()); else { @@ -3050,7 +2134,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partitions_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3066,7 +2150,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_req_result', $this->input_->isStrictRead()); else { @@ -3100,20 +2184,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_req failed: unknown result"); } - public function append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) + public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) { $this->send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, $environment_context); return $this->recv_append_partition_with_environment_context(); } - public function send_append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) + public function send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) { $args = new \metastore\ThriftHiveMetastore_append_partition_with_environment_context_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3129,7 +2213,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3175,7 +2259,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3191,7 +2275,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3238,7 +2322,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3254,7 +2338,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3288,20 +2372,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("append_partition_by_name_with_environment_context failed: unknown result"); } - public function drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) + public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData) { $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData); return $this->recv_drop_partition(); } - public function send_drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) + public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData) { $args = new \metastore\ThriftHiveMetastore_drop_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3317,7 +2401,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); else { @@ -3348,13 +2432,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("drop_partition failed: unknown result"); } - public function drop_partition_with_environment_context($db_name, $tbl_name, array $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { $this->send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, $environment_context); return $this->recv_drop_partition_with_environment_context(); } - public function send_drop_partition_with_environment_context($db_name, $tbl_name, array $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { $args = new \metastore\ThriftHiveMetastore_drop_partition_with_environment_context_args(); $args->db_name = $db_name; @@ -3362,7 +2446,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_vals = $part_vals; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3378,7 +2462,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3422,7 +2506,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3438,7 +2522,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3483,7 +2567,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_name = $part_name; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3499,7 +2583,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_by_name_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3540,7 +2624,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_partitions_req_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3556,7 +2640,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partitions_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partitions_req_result', $this->input_->isStrictRead()); else { @@ -3587,19 +2671,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("drop_partitions_req failed: unknown result"); } - public function get_partition($db_name, $tbl_name, array $part_vals) + public function get_partition($db_name, $tbl_name, $part_vals) { $this->send_get_partition($db_name, $tbl_name, $part_vals); return $this->recv_get_partition(); } - public function send_get_partition($db_name, $tbl_name, array $part_vals) + public function send_get_partition($db_name, $tbl_name, $part_vals) { $args = new \metastore\ThriftHiveMetastore_get_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3615,7 +2699,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead()); else { @@ -3646,13 +2730,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition failed: unknown result"); } - public function exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $this->send_exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); return $this->recv_exchange_partition(); } - public function send_exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function send_exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $args = new \metastore\ThriftHiveMetastore_exchange_partition_args(); $args->partitionSpecs = $partitionSpecs; @@ -3660,7 +2744,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->source_table_name = $source_table_name; $args->dest_db = $dest_db; $args->dest_table_name = $dest_table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'exchange_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3676,7 +2760,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_exchange_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_exchange_partition_result', $this->input_->isStrictRead()); else { @@ -3713,13 +2797,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("exchange_partition failed: unknown result"); } - public function exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function exchange_partitions($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $this->send_exchange_partitions($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); return $this->recv_exchange_partitions(); } - public function send_exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function send_exchange_partitions($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $args = new \metastore\ThriftHiveMetastore_exchange_partitions_args(); $args->partitionSpecs = $partitionSpecs; @@ -3727,7 +2811,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->source_table_name = $source_table_name; $args->dest_db = $dest_db; $args->dest_table_name = $dest_table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'exchange_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3743,7 +2827,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_exchange_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_exchange_partitions_result', $this->input_->isStrictRead()); else { @@ -3780,13 +2864,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("exchange_partitions failed: unknown result"); } - public function get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) + public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names) { $this->send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); return $this->recv_get_partition_with_auth(); } - public function send_get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) + public function send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partition_with_auth_args(); $args->db_name = $db_name; @@ -3794,7 +2878,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_vals = $part_vals; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3810,7 +2894,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_with_auth_result', $this->input_->isStrictRead()); else { @@ -3853,7 +2937,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3869,7 +2953,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3912,7 +2996,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3928,7 +3012,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead()); else { @@ -3959,13 +3043,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions failed: unknown result"); } - public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names) + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names) { $this->send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); return $this->recv_get_partitions_with_auth(); } - public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names) + public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_with_auth_args(); $args->db_name = $db_name; @@ -3973,7 +3057,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->max_parts = $max_parts; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3989,7 +3073,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_with_auth_result', $this->input_->isStrictRead()); else { @@ -4032,7 +3116,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4048,7 +3132,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_pspec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_pspec_result', $this->input_->isStrictRead()); else { @@ -4091,7 +3175,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4107,7 +3191,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead()); else { @@ -4135,20 +3219,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition_names failed: unknown result"); } - public function get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts) { $this->send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts); return $this->recv_get_partitions_ps(); } - public function send_get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts) { $args = new \metastore\ThriftHiveMetastore_get_partitions_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4164,7 +3248,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_ps() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_ps_result', $this->input_->isStrictRead()); else { @@ -4195,13 +3279,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_ps failed: unknown result"); } - public function get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names) + public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names) { $this->send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names); return $this->recv_get_partitions_ps_with_auth(); } - public function send_get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names) + public function send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_args(); $args->db_name = $db_name; @@ -4210,7 +3294,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->max_parts = $max_parts; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_ps_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4226,7 +3310,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_ps_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_result', $this->input_->isStrictRead()); else { @@ -4257,20 +3341,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_ps_with_auth failed: unknown result"); } - public function get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts) { $this->send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts); return $this->recv_get_partition_names_ps(); } - public function send_get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts) { $args = new \metastore\ThriftHiveMetastore_get_partition_names_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_names_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4286,7 +3370,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_names_ps() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_names_ps_result', $this->input_->isStrictRead()); else { @@ -4330,7 +3414,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->filter = $filter; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4346,7 +3430,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_filter_result', $this->input_->isStrictRead()); else { @@ -4390,7 +3474,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->filter = $filter; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_part_specs_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4406,7 +3490,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_part_specs_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_part_specs_by_filter_result', $this->input_->isStrictRead()); else { @@ -4447,7 +3531,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_partitions_by_expr_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_expr', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4463,7 +3547,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_expr() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_expr_result', $this->input_->isStrictRead()); else { @@ -4506,7 +3590,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->filter = $filter; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_num_partitions_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4522,7 +3606,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_num_partitions_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_num_partitions_by_filter_result', $this->input_->isStrictRead()); else { @@ -4553,19 +3637,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_num_partitions_by_filter failed: unknown result"); } - public function get_partitions_by_names($db_name, $tbl_name, array $names) + public function get_partitions_by_names($db_name, $tbl_name, $names) { $this->send_get_partitions_by_names($db_name, $tbl_name, $names); return $this->recv_get_partitions_by_names(); } - public function send_get_partitions_by_names($db_name, $tbl_name, array $names) + public function send_get_partitions_by_names($db_name, $tbl_name, $names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_by_names_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->names = $names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4581,7 +3665,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_names_result', $this->input_->isStrictRead()); else { @@ -4624,7 +3708,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4640,7 +3724,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partition_result', $this->input_->isStrictRead()); else { @@ -4668,19 +3752,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function alter_partitions($db_name, $tbl_name, array $new_parts) + public function alter_partitions($db_name, $tbl_name, $new_parts) { $this->send_alter_partitions($db_name, $tbl_name, $new_parts); $this->recv_alter_partitions(); } - public function send_alter_partitions($db_name, $tbl_name, array $new_parts) + public function send_alter_partitions($db_name, $tbl_name, $new_parts) { $args = new \metastore\ThriftHiveMetastore_alter_partitions_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4696,7 +3780,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partitions_result', $this->input_->isStrictRead()); else { @@ -4737,7 +3821,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_part = $new_part; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4753,7 +3837,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -4781,20 +3865,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function rename_partition($db_name, $tbl_name, array $part_vals, \metastore\Partition $new_part) + public function rename_partition($db_name, $tbl_name, $part_vals, \metastore\Partition $new_part) { $this->send_rename_partition($db_name, $tbl_name, $part_vals, $new_part); $this->recv_rename_partition(); } - public function send_rename_partition($db_name, $tbl_name, array $part_vals, \metastore\Partition $new_part) + public function send_rename_partition($db_name, $tbl_name, $part_vals, \metastore\Partition $new_part) { $args = new \metastore\ThriftHiveMetastore_rename_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'rename_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4810,7 +3894,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_rename_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_rename_partition_result', $this->input_->isStrictRead()); else { @@ -4838,18 +3922,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function partition_name_has_valid_characters(array $part_vals, $throw_exception) + public function partition_name_has_valid_characters($part_vals, $throw_exception) { $this->send_partition_name_has_valid_characters($part_vals, $throw_exception); return $this->recv_partition_name_has_valid_characters(); } - public function send_partition_name_has_valid_characters(array $part_vals, $throw_exception) + public function send_partition_name_has_valid_characters($part_vals, $throw_exception) { $args = new \metastore\ThriftHiveMetastore_partition_name_has_valid_characters_args(); $args->part_vals = $part_vals; $args->throw_exception = $throw_exception; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_has_valid_characters', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4865,7 +3949,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_has_valid_characters() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_has_valid_characters_result', $this->input_->isStrictRead()); else { @@ -4904,7 +3988,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_config_value_args(); $args->name = $name; $args->defaultValue = $defaultValue; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_config_value', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4920,7 +4004,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_config_value() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_config_value_result', $this->input_->isStrictRead()); else { @@ -4958,7 +4042,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_partition_name_to_vals_args(); $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_to_vals', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4974,7 +4058,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_to_vals() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_to_vals_result', $this->input_->isStrictRead()); else { @@ -5012,7 +4096,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_partition_name_to_spec_args(); $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_to_spec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5028,7 +4112,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_to_spec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead()); else { @@ -5056,20 +4140,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("partition_name_to_spec failed: unknown result"); } - public function markPartitionForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType) { $this->send_markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType); $this->recv_markPartitionForEvent(); } - public function send_markPartitionForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function send_markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType) { $args = new \metastore\ThriftHiveMetastore_markPartitionForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->eventType = $eventType; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'markPartitionForEvent', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5085,7 +4169,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_markPartitionForEvent() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_markPartitionForEvent_result', $this->input_->isStrictRead()); else { @@ -5125,20 +4209,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType) { $this->send_isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType); return $this->recv_isPartitionMarkedForEvent(); } - public function send_isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function send_isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType) { $args = new \metastore\ThriftHiveMetastore_isPartitionMarkedForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->eventType = $eventType; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'isPartitionMarkedForEvent', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5154,7 +4238,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_isPartitionMarkedForEvent() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_isPartitionMarkedForEvent_result', $this->input_->isStrictRead()); else { @@ -5208,7 +4292,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_add_index_args(); $args->new_index = $new_index; $args->index_table = $index_table; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5224,7 +4308,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_index() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_index_result', $this->input_->isStrictRead()); else { @@ -5271,7 +4355,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->base_tbl_name = $base_tbl_name; $args->idx_name = $idx_name; $args->new_idx = $new_idx; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5287,7 +4371,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_index() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_index_result', $this->input_->isStrictRead()); else { @@ -5328,7 +4412,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->index_name = $index_name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5344,7 +4428,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_index_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_index_by_name_result', $this->input_->isStrictRead()); else { @@ -5387,7 +4471,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->index_name = $index_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5403,7 +4487,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_index_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_by_name_result', $this->input_->isStrictRead()); else { @@ -5446,7 +4530,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_indexes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5462,7 +4546,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_indexes() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_indexes_result', $this->input_->isStrictRead()); else { @@ -5505,7 +4589,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_index_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5521,7 +4605,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_index_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_names_result', $this->input_->isStrictRead()); else { @@ -5559,7 +4643,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_update_table_column_statistics_args(); $args->stats_obj = $stats_obj; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'update_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5575,7 +4659,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_update_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_update_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5622,7 +4706,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_update_partition_column_statistics_args(); $args->stats_obj = $stats_obj; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'update_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5638,7 +4722,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_update_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_update_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5687,7 +4771,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5703,7 +4787,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5753,7 +4837,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5769,7 +4853,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5816,7 +4900,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_table_statistics_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_statistics_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5832,7 +4916,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_statistics_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_statistics_req_result', $this->input_->isStrictRead()); else { @@ -5873,7 +4957,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_partitions_statistics_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_statistics_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5889,7 +4973,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_statistics_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_statistics_req_result', $this->input_->isStrictRead()); else { @@ -5930,7 +5014,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_aggr_stats_for_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_aggr_stats_for', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5946,7 +5030,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_aggr_stats_for() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_aggr_stats_for_result', $this->input_->isStrictRead()); else { @@ -5987,7 +5071,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_set_aggr_stats_for_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'set_aggr_stats_for', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6003,7 +5087,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_set_aggr_stats_for() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_aggr_stats_for_result', $this->input_->isStrictRead()); else { @@ -6053,7 +5137,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'delete_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6069,7 +5153,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_delete_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_delete_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -6118,7 +5202,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'delete_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6134,7 +5218,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_delete_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_delete_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -6181,7 +5265,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_function_args(); $args->func = $func; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6197,7 +5281,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_function_result', $this->input_->isStrictRead()); else { @@ -6242,7 +5326,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_drop_function_args(); $args->dbName = $dbName; $args->funcName = $funcName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6258,7 +5342,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_function_result', $this->input_->isStrictRead()); else { @@ -6298,7 +5382,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbName = $dbName; $args->funcName = $funcName; $args->newFunc = $newFunc; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6314,7 +5398,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_function_result', $this->input_->isStrictRead()); else { @@ -6353,7 +5437,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_functions_args(); $args->dbName = $dbName; $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_functions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6369,7 +5453,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_functions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_functions_result', $this->input_->isStrictRead()); else { @@ -6408,7 +5492,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_function_args(); $args->dbName = $dbName; $args->funcName = $funcName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6424,7 +5508,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_function_result', $this->input_->isStrictRead()); else { @@ -6464,7 +5548,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_all_functions() { $args = new \metastore\ThriftHiveMetastore_get_all_functions_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_functions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6480,7 +5564,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_functions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_functions_result', $this->input_->isStrictRead()); else { @@ -6518,7 +5602,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_role_args(); $args->role = $role; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6534,7 +5618,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_role_result', $this->input_->isStrictRead()); else { @@ -6572,7 +5656,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_role_args(); $args->role_name = $role_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6588,7 +5672,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_role_result', $this->input_->isStrictRead()); else { @@ -6625,7 +5709,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_role_names() { $args = new \metastore\ThriftHiveMetastore_get_role_names_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_role_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6641,7 +5725,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_role_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_role_names_result', $this->input_->isStrictRead()); else { @@ -6684,7 +5768,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->grantor = $grantor; $args->grantorType = $grantorType; $args->grant_option = $grant_option; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6700,7 +5784,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_role_result', $this->input_->isStrictRead()); else { @@ -6740,7 +5824,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->role_name = $role_name; $args->principal_name = $principal_name; $args->principal_type = $principal_type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'revoke_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6756,7 +5840,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_revoke_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_revoke_role_result', $this->input_->isStrictRead()); else { @@ -6795,7 +5879,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_list_roles_args(); $args->principal_name = $principal_name; $args->principal_type = $principal_type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'list_roles', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6811,7 +5895,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_list_roles() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_list_roles_result', $this->input_->isStrictRead()); else { @@ -6849,7 +5933,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_revoke_role_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_revoke_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6865,7 +5949,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_revoke_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_revoke_role_result', $this->input_->isStrictRead()); else { @@ -6903,7 +5987,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_principals_in_role_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_principals_in_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6919,7 +6003,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_principals_in_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_principals_in_role_result', $this->input_->isStrictRead()); else { @@ -6957,7 +6041,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_role_grants_for_principal_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_role_grants_for_principal', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6973,7 +6057,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_role_grants_for_principal() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_role_grants_for_principal_result', $this->input_->isStrictRead()); else { @@ -7001,19 +6085,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_role_grants_for_principal failed: unknown result"); } - public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, array $group_names) + public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names) { $this->send_get_privilege_set($hiveObject, $user_name, $group_names); return $this->recv_get_privilege_set(); } - public function send_get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, array $group_names) + public function send_get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_privilege_set_args(); $args->hiveObject = $hiveObject; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_privilege_set', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7029,7 +6113,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_privilege_set() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_privilege_set_result', $this->input_->isStrictRead()); else { @@ -7069,7 +6153,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->principal_name = $principal_name; $args->principal_type = $principal_type; $args->hiveObject = $hiveObject; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'list_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7085,7 +6169,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_list_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_list_privileges_result', $this->input_->isStrictRead()); else { @@ -7123,7 +6207,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_privileges_args(); $args->privileges = $privileges; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7139,7 +6223,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_privileges_result', $this->input_->isStrictRead()); else { @@ -7177,7 +6261,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_revoke_privileges_args(); $args->privileges = $privileges; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'revoke_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7193,7 +6277,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_revoke_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_revoke_privileges_result', $this->input_->isStrictRead()); else { @@ -7231,7 +6315,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_revoke_privileges_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_revoke_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7247,7 +6331,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_revoke_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_revoke_privileges_result', $this->input_->isStrictRead()); else { @@ -7275,18 +6359,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("grant_revoke_privileges failed: unknown result"); } - public function set_ugi($user_name, array $group_names) + public function set_ugi($user_name, $group_names) { $this->send_set_ugi($user_name, $group_names); return $this->recv_set_ugi(); } - public function send_set_ugi($user_name, array $group_names) + public function send_set_ugi($user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_set_ugi_args(); $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'set_ugi', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7302,7 +6386,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_set_ugi() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_ugi_result', $this->input_->isStrictRead()); else { @@ -7341,7 +6425,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_delegation_token_args(); $args->token_owner = $token_owner; $args->renewer_kerberos_principal_name = $renewer_kerberos_principal_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7357,7 +6441,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7395,7 +6479,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_renew_delegation_token_args(); $args->token_str_form = $token_str_form; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'renew_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7411,7 +6495,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_renew_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_renew_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7449,7 +6533,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_cancel_delegation_token_args(); $args->token_str_form = $token_str_form; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'cancel_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7465,7 +6549,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_cancel_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7499,7 +6583,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_open_txns() { $args = new \metastore\ThriftHiveMetastore_get_open_txns_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_open_txns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7515,7 +6599,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_open_txns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_open_txns_result', $this->input_->isStrictRead()); else { @@ -7549,7 +6633,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_open_txns_info() { $args = new \metastore\ThriftHiveMetastore_get_open_txns_info_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_open_txns_info', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7565,7 +6649,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_open_txns_info() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_open_txns_info_result', $this->input_->isStrictRead()); else { @@ -7600,7 +6684,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_open_txns_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'open_txns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7616,7 +6700,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_open_txns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_open_txns_result', $this->input_->isStrictRead()); else { @@ -7651,7 +6735,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_abort_txn_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'abort_txn', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7667,7 +6751,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_abort_txn() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_abort_txn_result', $this->input_->isStrictRead()); else { @@ -7702,7 +6786,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_commit_txn_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'commit_txn', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7718,7 +6802,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_commit_txn() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_commit_txn_result', $this->input_->isStrictRead()); else { @@ -7756,7 +6840,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_lock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'lock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7772,7 +6856,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_lock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_lock_result', $this->input_->isStrictRead()); else { @@ -7813,7 +6897,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_check_lock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'check_lock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7829,7 +6913,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_check_lock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_check_lock_result', $this->input_->isStrictRead()); else { @@ -7873,7 +6957,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_unlock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'unlock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7889,7 +6973,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_unlock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_unlock_result', $this->input_->isStrictRead()); else { @@ -7927,7 +7011,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_show_locks_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'show_locks', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7943,7 +7027,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_show_locks() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_show_locks_result', $this->input_->isStrictRead()); else { @@ -7978,7 +7062,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_heartbeat_args(); $args->ids = $ids; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'heartbeat', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7994,7 +7078,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_heartbeat() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_heartbeat_result', $this->input_->isStrictRead()); else { @@ -8035,7 +7119,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_heartbeat_txn_range_args(); $args->txns = $txns; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'heartbeat_txn_range', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8051,7 +7135,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_heartbeat_txn_range() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_heartbeat_txn_range_result', $this->input_->isStrictRead()); else { @@ -8086,7 +7170,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_compact_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'compact', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8102,7 +7186,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_compact() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_compact_result', $this->input_->isStrictRead()); else { @@ -8134,7 +7218,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_show_compact_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'show_compact', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8150,7 +7234,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_show_compact() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_show_compact_result', $this->input_->isStrictRead()); else { @@ -8185,7 +7269,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_dynamic_partitions_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_dynamic_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8201,7 +7285,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_dynamic_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_dynamic_partitions_result', $this->input_->isStrictRead()); else { @@ -8239,7 +7323,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_next_notification_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_next_notification', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8255,7 +7339,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_next_notification() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_next_notification_result', $this->input_->isStrictRead()); else { @@ -8289,7 +7373,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_current_notificationEventId() { $args = new \metastore\ThriftHiveMetastore_get_current_notificationEventId_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_current_notificationEventId', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8305,7 +7389,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_current_notificationEventId() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_current_notificationEventId_result', $this->input_->isStrictRead()); else { @@ -8340,7 +7424,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_fire_listener_event_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fire_listener_event', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8356,7 +7440,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_fire_listener_event() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_fire_listener_event_result', $this->input_->isStrictRead()); else { @@ -8390,7 +7474,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_flushCache() { $args = new \metastore\ThriftHiveMetastore_flushCache_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'flushCache', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8406,7 +7490,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_flushCache() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_flushCache_result', $this->input_->isStrictRead()); else { @@ -8438,7 +7522,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_file_metadata_by_expr_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_file_metadata_by_expr', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8454,7 +7538,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_file_metadata_by_expr() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_file_metadata_by_expr_result', $this->input_->isStrictRead()); else { @@ -8489,7 +7573,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_file_metadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_file_metadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8505,7 +7589,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_file_metadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_file_metadata_result', $this->input_->isStrictRead()); else { @@ -8540,7 +7624,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_put_file_metadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'put_file_metadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8556,7 +7640,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_put_file_metadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_put_file_metadata_result', $this->input_->isStrictRead()); else { @@ -8591,7 +7675,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_clear_file_metadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'clear_file_metadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8607,7 +7691,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_clear_file_metadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_clear_file_metadata_result', $this->input_->isStrictRead()); else { @@ -8642,7 +7726,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_cache_file_metadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'cache_file_metadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8658,7 +7742,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_cache_file_metadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_cache_file_metadata_result', $this->input_->isStrictRead()); else { @@ -8690,9 +7774,6 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas class ThriftHiveMetastore_getMetaConf_args { static $_TSPEC; - /** - * @var string - */ public $key = null; public function __construct($vals=null) { @@ -8765,13 +7846,7 @@ class ThriftHiveMetastore_getMetaConf_args { class ThriftHiveMetastore_getMetaConf_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -8865,13 +7940,7 @@ class ThriftHiveMetastore_getMetaConf_result { class ThriftHiveMetastore_setMetaConf_args { static $_TSPEC; - /** - * @var string - */ public $key = null; - /** - * @var string - */ public $value = null; public function __construct($vals=null) { @@ -8963,9 +8032,6 @@ class ThriftHiveMetastore_setMetaConf_args { class ThriftHiveMetastore_setMetaConf_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -9040,9 +8106,6 @@ class ThriftHiveMetastore_setMetaConf_result { class ThriftHiveMetastore_create_database_args { static $_TSPEC; - /** - * @var \metastore\Database - */ public $database = null; public function __construct($vals=null) { @@ -9120,17 +8183,8 @@ class ThriftHiveMetastore_create_database_args { class ThriftHiveMetastore_create_database_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -9247,9 +8301,6 @@ class ThriftHiveMetastore_create_database_result { class ThriftHiveMetastore_get_database_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -9322,17 +8373,8 @@ class ThriftHiveMetastore_get_database_args { class ThriftHiveMetastore_get_database_result { static $_TSPEC; - /** - * @var \metastore\Database - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -9452,17 +8494,8 @@ class ThriftHiveMetastore_get_database_result { class ThriftHiveMetastore_drop_database_args { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var bool - */ public $cascade = null; public function __construct($vals=null) { @@ -9573,17 +8606,8 @@ class ThriftHiveMetastore_drop_database_args { class ThriftHiveMetastore_drop_database_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -9700,9 +8724,6 @@ class ThriftHiveMetastore_drop_database_result { class ThriftHiveMetastore_get_databases_args { static $_TSPEC; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -9775,13 +8796,7 @@ class ThriftHiveMetastore_get_databases_args { class ThriftHiveMetastore_get_databases_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -9951,13 +8966,7 @@ class ThriftHiveMetastore_get_all_databases_args { class ThriftHiveMetastore_get_all_databases_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -10077,13 +9086,7 @@ class ThriftHiveMetastore_get_all_databases_result { class ThriftHiveMetastore_alter_database_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var \metastore\Database - */ public $db = null; public function __construct($vals=null) { @@ -10180,13 +9183,7 @@ class ThriftHiveMetastore_alter_database_args { class ThriftHiveMetastore_alter_database_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -10282,9 +9279,6 @@ class ThriftHiveMetastore_alter_database_result { class ThriftHiveMetastore_get_type_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -10357,17 +9351,8 @@ class ThriftHiveMetastore_get_type_args { class ThriftHiveMetastore_get_type_result { static $_TSPEC; - /** - * @var \metastore\Type - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -10487,9 +9472,6 @@ class ThriftHiveMetastore_get_type_result { class ThriftHiveMetastore_create_type_args { static $_TSPEC; - /** - * @var \metastore\Type - */ public $type = null; public function __construct($vals=null) { @@ -10567,21 +9549,9 @@ class ThriftHiveMetastore_create_type_args { class ThriftHiveMetastore_create_type_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -10717,9 +9687,6 @@ class ThriftHiveMetastore_create_type_result { class ThriftHiveMetastore_drop_type_args { static $_TSPEC; - /** - * @var string - */ public $type = null; public function __construct($vals=null) { @@ -10792,17 +9759,8 @@ class ThriftHiveMetastore_drop_type_args { class ThriftHiveMetastore_drop_type_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -10917,9 +9875,6 @@ class ThriftHiveMetastore_drop_type_result { class ThriftHiveMetastore_get_type_all_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -10992,13 +9947,7 @@ class ThriftHiveMetastore_get_type_all_args { class ThriftHiveMetastore_get_type_all_result { static $_TSPEC; - /** - * @var array - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -11128,13 +10077,7 @@ class ThriftHiveMetastore_get_type_all_result { class ThriftHiveMetastore_get_fields_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; public function __construct($vals=null) { @@ -11226,21 +10169,9 @@ class ThriftHiveMetastore_get_fields_args { class ThriftHiveMetastore_get_fields_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11404,17 +10335,8 @@ class ThriftHiveMetastore_get_fields_result { class ThriftHiveMetastore_get_fields_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -11530,21 +10452,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_args { class ThriftHiveMetastore_get_fields_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11708,13 +10618,7 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { class ThriftHiveMetastore_get_schema_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; public function __construct($vals=null) { @@ -11806,21 +10710,9 @@ class ThriftHiveMetastore_get_schema_args { class ThriftHiveMetastore_get_schema_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11984,17 +10876,8 @@ class ThriftHiveMetastore_get_schema_result { class ThriftHiveMetastore_get_schema_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -12110,21 +10993,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_args { class ThriftHiveMetastore_get_schema_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -12288,9 +11159,6 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { class ThriftHiveMetastore_create_table_args { static $_TSPEC; - /** - * @var \metastore\Table - */ public $tbl = null; public function __construct($vals=null) { @@ -12368,21 +11236,9 @@ class ThriftHiveMetastore_create_table_args { class ThriftHiveMetastore_create_table_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -12520,13 +11376,7 @@ class ThriftHiveMetastore_create_table_result { class ThriftHiveMetastore_create_table_with_environment_context_args { static $_TSPEC; - /** - * @var \metastore\Table - */ public $tbl = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -12628,21 +11478,9 @@ class ThriftHiveMetastore_create_table_with_environment_context_args { class ThriftHiveMetastore_create_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -12780,17 +11618,8 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { class ThriftHiveMetastore_drop_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -12901,13 +11730,7 @@ class ThriftHiveMetastore_drop_table_args { class ThriftHiveMetastore_drop_table_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -13003,21 +11826,9 @@ class ThriftHiveMetastore_drop_table_result { class ThriftHiveMetastore_drop_table_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -13152,13 +11963,7 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { class ThriftHiveMetastore_drop_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -13254,13 +12059,7 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { class ThriftHiveMetastore_get_tables_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -13352,13 +12151,7 @@ class ThriftHiveMetastore_get_tables_args { class ThriftHiveMetastore_get_tables_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -13478,17 +12271,8 @@ class ThriftHiveMetastore_get_tables_result { class ThriftHiveMetastore_get_table_meta_args { static $_TSPEC; - /** - * @var string - */ public $db_patterns = null; - /** - * @var string - */ public $tbl_patterns = null; - /** - * @var string[] - */ public $tbl_types = null; public function __construct($vals=null) { @@ -13625,13 +12409,7 @@ class ThriftHiveMetastore_get_table_meta_args { class ThriftHiveMetastore_get_table_meta_result { static $_TSPEC; - /** - * @var \metastore\TableMeta[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -13753,9 +12531,6 @@ class ThriftHiveMetastore_get_table_meta_result { class ThriftHiveMetastore_get_all_tables_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; public function __construct($vals=null) { @@ -13828,13 +12603,7 @@ class ThriftHiveMetastore_get_all_tables_args { class ThriftHiveMetastore_get_all_tables_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -13954,13 +12723,7 @@ class ThriftHiveMetastore_get_all_tables_result { class ThriftHiveMetastore_get_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; public function __construct($vals=null) { @@ -14052,17 +12815,8 @@ class ThriftHiveMetastore_get_table_args { class ThriftHiveMetastore_get_table_result { static $_TSPEC; - /** - * @var \metastore\Table - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -14182,13 +12936,7 @@ class ThriftHiveMetastore_get_table_result { class ThriftHiveMetastore_get_table_objects_by_name_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string[] - */ public $tbl_names = null; public function __construct($vals=null) { @@ -14306,21 +13054,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { class ThriftHiveMetastore_get_table_objects_by_name_result { static $_TSPEC; - /** - * @var \metastore\Table[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -14484,17 +13220,8 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { class ThriftHiveMetastore_get_table_names_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_tables = -1; public function __construct($vals=null) { @@ -14605,21 +13332,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_args { class ThriftHiveMetastore_get_table_names_by_filter_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -14781,17 +13496,8 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { class ThriftHiveMetastore_alter_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; public function __construct($vals=null) { @@ -14907,13 +13613,7 @@ class ThriftHiveMetastore_alter_table_args { class ThriftHiveMetastore_alter_table_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -15009,21 +13709,9 @@ class ThriftHiveMetastore_alter_table_result { class ThriftHiveMetastore_alter_table_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -15163,13 +13851,7 @@ class ThriftHiveMetastore_alter_table_with_environment_context_args { class ThriftHiveMetastore_alter_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -15265,21 +13947,9 @@ class ThriftHiveMetastore_alter_table_with_environment_context_result { class ThriftHiveMetastore_alter_table_with_cascade_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; - /** - * @var bool - */ public $cascade = null; public function __construct($vals=null) { @@ -15414,13 +14084,7 @@ class ThriftHiveMetastore_alter_table_with_cascade_args { class ThriftHiveMetastore_alter_table_with_cascade_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -15516,9 +14180,6 @@ class ThriftHiveMetastore_alter_table_with_cascade_result { class ThriftHiveMetastore_add_partition_args { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -15596,21 +14257,9 @@ class ThriftHiveMetastore_add_partition_args { class ThriftHiveMetastore_add_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -15751,13 +14400,7 @@ class ThriftHiveMetastore_add_partition_result { class ThriftHiveMetastore_add_partition_with_environment_context_args { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $new_part = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -15859,21 +14502,9 @@ class ThriftHiveMetastore_add_partition_with_environment_context_args { class ThriftHiveMetastore_add_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16014,9 +14645,6 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { class ThriftHiveMetastore_add_partitions_args { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -16117,21 +14745,9 @@ class ThriftHiveMetastore_add_partitions_args { class ThriftHiveMetastore_add_partitions_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16267,9 +14883,6 @@ class ThriftHiveMetastore_add_partitions_result { class ThriftHiveMetastore_add_partitions_pspec_args { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -16370,21 +14983,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { class ThriftHiveMetastore_add_partitions_pspec_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16520,17 +15121,8 @@ class ThriftHiveMetastore_add_partitions_pspec_result { class ThriftHiveMetastore_append_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; public function __construct($vals=null) { @@ -16667,21 +15259,9 @@ class ThriftHiveMetastore_append_partition_args { class ThriftHiveMetastore_append_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16822,9 +15402,6 @@ class ThriftHiveMetastore_append_partition_result { class ThriftHiveMetastore_add_partitions_req_args { static $_TSPEC; - /** - * @var \metastore\AddPartitionsRequest - */ public $request = null; public function __construct($vals=null) { @@ -16902,21 +15479,9 @@ class ThriftHiveMetastore_add_partitions_req_args { class ThriftHiveMetastore_add_partitions_req_result { static $_TSPEC; - /** - * @var \metastore\AddPartitionsResult - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -17057,21 +15622,9 @@ class ThriftHiveMetastore_add_partitions_req_result { class ThriftHiveMetastore_append_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -17232,21 +15785,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { class ThriftHiveMetastore_append_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -17387,17 +15928,8 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { class ThriftHiveMetastore_append_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -17508,21 +16040,9 @@ class ThriftHiveMetastore_append_partition_by_name_args { class ThriftHiveMetastore_append_partition_by_name_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -17663,21 +16183,9 @@ class ThriftHiveMetastore_append_partition_by_name_result { class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -17812,21 +16320,9 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -17967,21 +16463,9 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu class ThriftHiveMetastore_drop_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -18137,17 +16621,8 @@ class ThriftHiveMetastore_drop_partition_args { class ThriftHiveMetastore_drop_partition_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18262,25 +16737,10 @@ class ThriftHiveMetastore_drop_partition_result { class ThriftHiveMetastore_drop_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -18460,17 +16920,8 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { class ThriftHiveMetastore_drop_partition_with_environment_context_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18585,21 +17036,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { class ThriftHiveMetastore_drop_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -18729,17 +17168,8 @@ class ThriftHiveMetastore_drop_partition_by_name_args { class ThriftHiveMetastore_drop_partition_by_name_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18854,25 +17284,10 @@ class ThriftHiveMetastore_drop_partition_by_name_result { class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -19026,17 +17441,8 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -19151,9 +17557,6 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result class ThriftHiveMetastore_drop_partitions_req_args { static $_TSPEC; - /** - * @var \metastore\DropPartitionsRequest - */ public $req = null; public function __construct($vals=null) { @@ -19231,17 +17634,8 @@ class ThriftHiveMetastore_drop_partitions_req_args { class ThriftHiveMetastore_drop_partitions_req_result { static $_TSPEC; - /** - * @var \metastore\DropPartitionsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -19361,17 +17755,8 @@ class ThriftHiveMetastore_drop_partitions_req_result { class ThriftHiveMetastore_get_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; public function __construct($vals=null) { @@ -19508,17 +17893,8 @@ class ThriftHiveMetastore_get_partition_args { class ThriftHiveMetastore_get_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -19638,25 +18014,10 @@ class ThriftHiveMetastore_get_partition_result { class ThriftHiveMetastore_exchange_partition_args { static $_TSPEC; - /** - * @var array - */ public $partitionSpecs = null; - /** - * @var string - */ public $source_db = null; - /** - * @var string - */ public $source_table_name = null; - /** - * @var string - */ public $dest_db = null; - /** - * @var string - */ public $dest_table_name = null; public function __construct($vals=null) { @@ -19839,25 +18200,10 @@ class ThriftHiveMetastore_exchange_partition_args { class ThriftHiveMetastore_exchange_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -20019,25 +18365,10 @@ class ThriftHiveMetastore_exchange_partition_result { class ThriftHiveMetastore_exchange_partitions_args { static $_TSPEC; - /** - * @var array - */ public $partitionSpecs = null; - /** - * @var string - */ public $source_db = null; - /** - * @var string - */ public $source_table_name = null; - /** - * @var string - */ public $dest_db = null; - /** - * @var string - */ public $dest_table_name = null; public function __construct($vals=null) { @@ -20220,25 +18551,10 @@ class ThriftHiveMetastore_exchange_partitions_args { class ThriftHiveMetastore_exchange_partitions_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -20423,25 +18739,10 @@ class ThriftHiveMetastore_exchange_partitions_result { class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -20642,17 +18943,8 @@ class ThriftHiveMetastore_get_partition_with_auth_args { class ThriftHiveMetastore_get_partition_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -20772,17 +19064,8 @@ class ThriftHiveMetastore_get_partition_with_auth_result { class ThriftHiveMetastore_get_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -20893,17 +19176,8 @@ class ThriftHiveMetastore_get_partition_by_name_args { class ThriftHiveMetastore_get_partition_by_name_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -21023,17 +19297,8 @@ class ThriftHiveMetastore_get_partition_by_name_result { class ThriftHiveMetastore_get_partitions_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -21144,17 +19409,8 @@ class ThriftHiveMetastore_get_partitions_args { class ThriftHiveMetastore_get_partitions_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -21297,25 +19553,10 @@ class ThriftHiveMetastore_get_partitions_result { class ThriftHiveMetastore_get_partitions_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -21490,17 +19731,8 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { class ThriftHiveMetastore_get_partitions_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -21643,17 +19875,8 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { class ThriftHiveMetastore_get_partitions_pspec_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -21764,17 +19987,8 @@ class ThriftHiveMetastore_get_partitions_pspec_args { class ThriftHiveMetastore_get_partitions_pspec_result { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -21917,17 +20131,8 @@ class ThriftHiveMetastore_get_partitions_pspec_result { class ThriftHiveMetastore_get_partition_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -22038,13 +20243,7 @@ class ThriftHiveMetastore_get_partition_names_args { class ThriftHiveMetastore_get_partition_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -22164,21 +20363,9 @@ class ThriftHiveMetastore_get_partition_names_result { class ThriftHiveMetastore_get_partitions_ps_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -22334,17 +20521,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { class ThriftHiveMetastore_get_partitions_ps_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -22487,29 +20665,11 @@ class ThriftHiveMetastore_get_partitions_ps_result { class ThriftHiveMetastore_get_partitions_ps_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -22729,17 +20889,8 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { class ThriftHiveMetastore_get_partitions_ps_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -22882,21 +21033,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { class ThriftHiveMetastore_get_partition_names_ps_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -23052,17 +21191,8 @@ class ThriftHiveMetastore_get_partition_names_ps_args { class ThriftHiveMetastore_get_partition_names_ps_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -23203,21 +21333,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { class ThriftHiveMetastore_get_partitions_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -23347,17 +21465,8 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { class ThriftHiveMetastore_get_partitions_by_filter_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -23500,21 +21609,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { class ThriftHiveMetastore_get_part_specs_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -23644,17 +21741,8 @@ class ThriftHiveMetastore_get_part_specs_by_filter_args { class ThriftHiveMetastore_get_part_specs_by_filter_result { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -23797,9 +21885,6 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { class ThriftHiveMetastore_get_partitions_by_expr_args { static $_TSPEC; - /** - * @var \metastore\PartitionsByExprRequest - */ public $req = null; public function __construct($vals=null) { @@ -23877,17 +21962,8 @@ class ThriftHiveMetastore_get_partitions_by_expr_args { class ThriftHiveMetastore_get_partitions_by_expr_result { static $_TSPEC; - /** - * @var \metastore\PartitionsByExprResult - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -24007,17 +22083,8 @@ class ThriftHiveMetastore_get_partitions_by_expr_result { class ThriftHiveMetastore_get_num_partitions_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $filter = null; public function __construct($vals=null) { @@ -24128,17 +22195,8 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_args { class ThriftHiveMetastore_get_num_partitions_by_filter_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -24253,17 +22311,8 @@ class ThriftHiveMetastore_get_num_partitions_by_filter_result { class ThriftHiveMetastore_get_partitions_by_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $names = null; public function __construct($vals=null) { @@ -24400,17 +22449,8 @@ class ThriftHiveMetastore_get_partitions_by_names_args { class ThriftHiveMetastore_get_partitions_by_names_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -24553,17 +22593,8 @@ class ThriftHiveMetastore_get_partitions_by_names_result { class ThriftHiveMetastore_alter_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -24679,13 +22710,7 @@ class ThriftHiveMetastore_alter_partition_args { class ThriftHiveMetastore_alter_partition_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -24781,17 +22806,8 @@ class ThriftHiveMetastore_alter_partition_result { class ThriftHiveMetastore_alter_partitions_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -24930,13 +22946,7 @@ class ThriftHiveMetastore_alter_partitions_args { class ThriftHiveMetastore_alter_partitions_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -25032,21 +23042,9 @@ class ThriftHiveMetastore_alter_partitions_result { class ThriftHiveMetastore_alter_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition - */ public $new_part = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -25186,13 +23184,7 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_args { class ThriftHiveMetastore_alter_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -25288,21 +23280,9 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_result { class ThriftHiveMetastore_rename_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -25463,13 +23443,7 @@ class ThriftHiveMetastore_rename_partition_args { class ThriftHiveMetastore_rename_partition_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -25565,13 +23539,7 @@ class ThriftHiveMetastore_rename_partition_result { class ThriftHiveMetastore_partition_name_has_valid_characters_args { static $_TSPEC; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $throw_exception = null; public function __construct($vals=null) { @@ -25689,13 +23657,7 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { class ThriftHiveMetastore_partition_name_has_valid_characters_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -25789,13 +23751,7 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_result { class ThriftHiveMetastore_get_config_value_args { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $defaultValue = null; public function __construct($vals=null) { @@ -25887,13 +23843,7 @@ class ThriftHiveMetastore_get_config_value_args { class ThriftHiveMetastore_get_config_value_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\ConfigValSecurityException - */ public $o1 = null; public function __construct($vals=null) { @@ -25987,9 +23937,6 @@ class ThriftHiveMetastore_get_config_value_result { class ThriftHiveMetastore_partition_name_to_vals_args { static $_TSPEC; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -26062,13 +24009,7 @@ class ThriftHiveMetastore_partition_name_to_vals_args { class ThriftHiveMetastore_partition_name_to_vals_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -26188,9 +24129,6 @@ class ThriftHiveMetastore_partition_name_to_vals_result { class ThriftHiveMetastore_partition_name_to_spec_args { static $_TSPEC; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -26263,13 +24201,7 @@ class ThriftHiveMetastore_partition_name_to_spec_args { class ThriftHiveMetastore_partition_name_to_spec_result { static $_TSPEC; - /** - * @var array - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -26397,21 +24329,9 @@ class ThriftHiveMetastore_partition_name_to_spec_result { class ThriftHiveMetastore_markPartitionForEvent_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var array - */ public $part_vals = null; - /** - * @var int - */ public $eventType = null; public function __construct($vals=null) { @@ -26575,29 +24495,11 @@ class ThriftHiveMetastore_markPartitionForEvent_args { class ThriftHiveMetastore_markPartitionForEvent_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; - /** - * @var \metastore\UnknownTableException - */ public $o4 = null; - /** - * @var \metastore\UnknownPartitionException - */ public $o5 = null; - /** - * @var \metastore\InvalidPartitionException - */ public $o6 = null; public function __construct($vals=null) { @@ -26777,21 +24679,9 @@ class ThriftHiveMetastore_markPartitionForEvent_result { class ThriftHiveMetastore_isPartitionMarkedForEvent_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var array - */ public $part_vals = null; - /** - * @var int - */ public $eventType = null; public function __construct($vals=null) { @@ -26955,33 +24845,12 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { class ThriftHiveMetastore_isPartitionMarkedForEvent_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; - /** - * @var \metastore\UnknownTableException - */ public $o4 = null; - /** - * @var \metastore\UnknownPartitionException - */ public $o5 = null; - /** - * @var \metastore\InvalidPartitionException - */ public $o6 = null; public function __construct($vals=null) { @@ -27180,13 +25049,7 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { class ThriftHiveMetastore_add_index_args { static $_TSPEC; - /** - * @var \metastore\Index - */ public $new_index = null; - /** - * @var \metastore\Table - */ public $index_table = null; public function __construct($vals=null) { @@ -27288,21 +25151,9 @@ class ThriftHiveMetastore_add_index_args { class ThriftHiveMetastore_add_index_result { static $_TSPEC; - /** - * @var \metastore\Index - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -27443,21 +25294,9 @@ class ThriftHiveMetastore_add_index_result { class ThriftHiveMetastore_alter_index_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $base_tbl_name = null; - /** - * @var string - */ public $idx_name = null; - /** - * @var \metastore\Index - */ public $new_idx = null; public function __construct($vals=null) { @@ -27592,13 +25431,7 @@ class ThriftHiveMetastore_alter_index_args { class ThriftHiveMetastore_alter_index_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -27694,21 +25527,9 @@ class ThriftHiveMetastore_alter_index_result { class ThriftHiveMetastore_drop_index_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $index_name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -27838,17 +25659,8 @@ class ThriftHiveMetastore_drop_index_by_name_args { class ThriftHiveMetastore_drop_index_by_name_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -27963,17 +25775,8 @@ class ThriftHiveMetastore_drop_index_by_name_result { class ThriftHiveMetastore_get_index_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $index_name = null; public function __construct($vals=null) { @@ -28084,17 +25887,8 @@ class ThriftHiveMetastore_get_index_by_name_args { class ThriftHiveMetastore_get_index_by_name_result { static $_TSPEC; - /** - * @var \metastore\Index - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -28214,17 +26008,8 @@ class ThriftHiveMetastore_get_index_by_name_result { class ThriftHiveMetastore_get_indexes_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_indexes = -1; public function __construct($vals=null) { @@ -28335,17 +26120,8 @@ class ThriftHiveMetastore_get_indexes_args { class ThriftHiveMetastore_get_indexes_result { static $_TSPEC; - /** - * @var \metastore\Index[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -28488,17 +26264,8 @@ class ThriftHiveMetastore_get_indexes_result { class ThriftHiveMetastore_get_index_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_indexes = -1; public function __construct($vals=null) { @@ -28609,13 +26376,7 @@ class ThriftHiveMetastore_get_index_names_args { class ThriftHiveMetastore_get_index_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -28735,9 +26496,6 @@ class ThriftHiveMetastore_get_index_names_result { class ThriftHiveMetastore_update_table_column_statistics_args { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $stats_obj = null; public function __construct($vals=null) { @@ -28815,25 +26573,10 @@ class ThriftHiveMetastore_update_table_column_statistics_args { class ThriftHiveMetastore_update_table_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -28990,9 +26733,6 @@ class ThriftHiveMetastore_update_table_column_statistics_result { class ThriftHiveMetastore_update_partition_column_statistics_args { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $stats_obj = null; public function __construct($vals=null) { @@ -29070,25 +26810,10 @@ class ThriftHiveMetastore_update_partition_column_statistics_args { class ThriftHiveMetastore_update_partition_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -29245,17 +26970,8 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { class ThriftHiveMetastore_get_table_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -29366,25 +27082,10 @@ class ThriftHiveMetastore_get_table_column_statistics_args { class ThriftHiveMetastore_get_table_column_statistics_result { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidInputException - */ public $o3 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -29546,21 +27247,9 @@ class ThriftHiveMetastore_get_table_column_statistics_result { class ThriftHiveMetastore_get_partition_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -29690,25 +27379,10 @@ class ThriftHiveMetastore_get_partition_column_statistics_args { class ThriftHiveMetastore_get_partition_column_statistics_result { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidInputException - */ public $o3 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -29870,9 +27544,6 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { class ThriftHiveMetastore_get_table_statistics_req_args { static $_TSPEC; - /** - * @var \metastore\TableStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -29950,17 +27621,8 @@ class ThriftHiveMetastore_get_table_statistics_req_args { class ThriftHiveMetastore_get_table_statistics_req_result { static $_TSPEC; - /** - * @var \metastore\TableStatsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -30080,9 +27742,6 @@ class ThriftHiveMetastore_get_table_statistics_req_result { class ThriftHiveMetastore_get_partitions_statistics_req_args { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -30160,17 +27819,8 @@ class ThriftHiveMetastore_get_partitions_statistics_req_args { class ThriftHiveMetastore_get_partitions_statistics_req_result { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -30290,9 +27940,6 @@ class ThriftHiveMetastore_get_partitions_statistics_req_result { class ThriftHiveMetastore_get_aggr_stats_for_args { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -30370,17 +28017,8 @@ class ThriftHiveMetastore_get_aggr_stats_for_args { class ThriftHiveMetastore_get_aggr_stats_for_result { static $_TSPEC; - /** - * @var \metastore\AggrStats - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -30500,9 +28138,6 @@ class ThriftHiveMetastore_get_aggr_stats_for_result { class ThriftHiveMetastore_set_aggr_stats_for_args { static $_TSPEC; - /** - * @var \metastore\SetPartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -30580,25 +28215,10 @@ class ThriftHiveMetastore_set_aggr_stats_for_args { class ThriftHiveMetastore_set_aggr_stats_for_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -30755,21 +28375,9 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { class ThriftHiveMetastore_delete_partition_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -30899,25 +28507,10 @@ class ThriftHiveMetastore_delete_partition_column_statistics_args { class ThriftHiveMetastore_delete_partition_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -31074,17 +28667,8 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { class ThriftHiveMetastore_delete_table_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -31195,25 +28779,10 @@ class ThriftHiveMetastore_delete_table_column_statistics_args { class ThriftHiveMetastore_delete_table_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -31370,9 +28939,6 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { class ThriftHiveMetastore_create_function_args { static $_TSPEC; - /** - * @var \metastore\Function - */ public $func = null; public function __construct($vals=null) { @@ -31450,21 +29016,9 @@ class ThriftHiveMetastore_create_function_args { class ThriftHiveMetastore_create_function_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -31602,13 +29156,7 @@ class ThriftHiveMetastore_create_function_result { class ThriftHiveMetastore_drop_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; public function __construct($vals=null) { @@ -31700,13 +29248,7 @@ class ThriftHiveMetastore_drop_function_args { class ThriftHiveMetastore_drop_function_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -31802,17 +29344,8 @@ class ThriftHiveMetastore_drop_function_result { class ThriftHiveMetastore_alter_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; - /** - * @var \metastore\Function - */ public $newFunc = null; public function __construct($vals=null) { @@ -31928,13 +29461,7 @@ class ThriftHiveMetastore_alter_function_args { class ThriftHiveMetastore_alter_function_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -32030,13 +29557,7 @@ class ThriftHiveMetastore_alter_function_result { class ThriftHiveMetastore_get_functions_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -32128,13 +29649,7 @@ class ThriftHiveMetastore_get_functions_args { class ThriftHiveMetastore_get_functions_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32254,13 +29769,7 @@ class ThriftHiveMetastore_get_functions_result { class ThriftHiveMetastore_get_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; public function __construct($vals=null) { @@ -32352,17 +29861,8 @@ class ThriftHiveMetastore_get_function_args { class ThriftHiveMetastore_get_function_result { static $_TSPEC; - /** - * @var \metastore\Function - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -32532,13 +30032,7 @@ class ThriftHiveMetastore_get_all_functions_args { class ThriftHiveMetastore_get_all_functions_result { static $_TSPEC; - /** - * @var \metastore\GetAllFunctionsResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32637,9 +30131,6 @@ class ThriftHiveMetastore_get_all_functions_result { class ThriftHiveMetastore_create_role_args { static $_TSPEC; - /** - * @var \metastore\Role - */ public $role = null; public function __construct($vals=null) { @@ -32717,13 +30208,7 @@ class ThriftHiveMetastore_create_role_args { class ThriftHiveMetastore_create_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32817,9 +30302,6 @@ class ThriftHiveMetastore_create_role_result { class ThriftHiveMetastore_drop_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; public function __construct($vals=null) { @@ -32892,13 +30374,7 @@ class ThriftHiveMetastore_drop_role_args { class ThriftHiveMetastore_drop_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33042,13 +30518,7 @@ class ThriftHiveMetastore_get_role_names_args { class ThriftHiveMetastore_get_role_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33168,29 +30638,11 @@ class ThriftHiveMetastore_get_role_names_result { class ThriftHiveMetastore_grant_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grant_option = null; public function __construct($vals=null) { @@ -33358,13 +30810,7 @@ class ThriftHiveMetastore_grant_role_args { class ThriftHiveMetastore_grant_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33458,17 +30904,8 @@ class ThriftHiveMetastore_grant_role_result { class ThriftHiveMetastore_revoke_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -33579,13 +31016,7 @@ class ThriftHiveMetastore_revoke_role_args { class ThriftHiveMetastore_revoke_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33679,13 +31110,7 @@ class ThriftHiveMetastore_revoke_role_result { class ThriftHiveMetastore_list_roles_args { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -33777,13 +31202,7 @@ class ThriftHiveMetastore_list_roles_args { class ThriftHiveMetastore_list_roles_result { static $_TSPEC; - /** - * @var \metastore\Role[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33905,9 +31324,6 @@ class ThriftHiveMetastore_list_roles_result { class ThriftHiveMetastore_grant_revoke_role_args { static $_TSPEC; - /** - * @var \metastore\GrantRevokeRoleRequest - */ public $request = null; public function __construct($vals=null) { @@ -33985,13 +31401,7 @@ class ThriftHiveMetastore_grant_revoke_role_args { class ThriftHiveMetastore_grant_revoke_role_result { static $_TSPEC; - /** - * @var \metastore\GrantRevokeRoleResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34090,9 +31500,6 @@ class ThriftHiveMetastore_grant_revoke_role_result { class ThriftHiveMetastore_get_principals_in_role_args { static $_TSPEC; - /** - * @var \metastore\GetPrincipalsInRoleRequest - */ public $request = null; public function __construct($vals=null) { @@ -34170,13 +31577,7 @@ class ThriftHiveMetastore_get_principals_in_role_args { class ThriftHiveMetastore_get_principals_in_role_result { static $_TSPEC; - /** - * @var \metastore\GetPrincipalsInRoleResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34275,9 +31676,6 @@ class ThriftHiveMetastore_get_principals_in_role_result { class ThriftHiveMetastore_get_role_grants_for_principal_args { static $_TSPEC; - /** - * @var \metastore\GetRoleGrantsForPrincipalRequest - */ public $request = null; public function __construct($vals=null) { @@ -34355,13 +31753,7 @@ class ThriftHiveMetastore_get_role_grants_for_principal_args { class ThriftHiveMetastore_get_role_grants_for_principal_result { static $_TSPEC; - /** - * @var \metastore\GetRoleGrantsForPrincipalResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34460,17 +31852,8 @@ class ThriftHiveMetastore_get_role_grants_for_principal_result { class ThriftHiveMetastore_get_privilege_set_args { static $_TSPEC; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -34612,13 +31995,7 @@ class ThriftHiveMetastore_get_privilege_set_args { class ThriftHiveMetastore_get_privilege_set_result { static $_TSPEC; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34717,17 +32094,8 @@ class ThriftHiveMetastore_get_privilege_set_result { class ThriftHiveMetastore_list_privileges_args { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; public function __construct($vals=null) { @@ -34843,13 +32211,7 @@ class ThriftHiveMetastore_list_privileges_args { class ThriftHiveMetastore_list_privileges_result { static $_TSPEC; - /** - * @var \metastore\HiveObjectPrivilege[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34971,9 +32333,6 @@ class ThriftHiveMetastore_list_privileges_result { class ThriftHiveMetastore_grant_privileges_args { static $_TSPEC; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; public function __construct($vals=null) { @@ -35051,13 +32410,7 @@ class ThriftHiveMetastore_grant_privileges_args { class ThriftHiveMetastore_grant_privileges_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -35151,9 +32504,6 @@ class ThriftHiveMetastore_grant_privileges_result { class ThriftHiveMetastore_revoke_privileges_args { static $_TSPEC; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; public function __construct($vals=null) { @@ -35231,13 +32581,7 @@ class ThriftHiveMetastore_revoke_privileges_args { class ThriftHiveMetastore_revoke_privileges_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -35331,9 +32675,6 @@ class ThriftHiveMetastore_revoke_privileges_result { class ThriftHiveMetastore_grant_revoke_privileges_args { static $_TSPEC; - /** - * @var \metastore\GrantRevokePrivilegeRequest - */ public $request = null; public function __construct($vals=null) { @@ -35411,13 +32752,7 @@ class ThriftHiveMetastore_grant_revoke_privileges_args { class ThriftHiveMetastore_grant_revoke_privileges_result { static $_TSPEC; - /** - * @var \metastore\GrantRevokePrivilegeResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -35516,13 +32851,7 @@ class ThriftHiveMetastore_grant_revoke_privileges_result { class ThriftHiveMetastore_set_ugi_args { static $_TSPEC; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -35640,13 +32969,7 @@ class ThriftHiveMetastore_set_ugi_args { class ThriftHiveMetastore_set_ugi_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -35766,13 +33089,7 @@ class ThriftHiveMetastore_set_ugi_result { class ThriftHiveMetastore_get_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_owner = null; - /** - * @var string - */ public $renewer_kerberos_principal_name = null; public function __construct($vals=null) { @@ -35864,13 +33181,7 @@ class ThriftHiveMetastore_get_delegation_token_args { class ThriftHiveMetastore_get_delegation_token_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -35964,9 +33275,6 @@ class ThriftHiveMetastore_get_delegation_token_result { class ThriftHiveMetastore_renew_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_str_form = null; public function __construct($vals=null) { @@ -36039,13 +33347,7 @@ class ThriftHiveMetastore_renew_delegation_token_args { class ThriftHiveMetastore_renew_delegation_token_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -36139,9 +33441,6 @@ class ThriftHiveMetastore_renew_delegation_token_result { class ThriftHiveMetastore_cancel_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_str_form = null; public function __construct($vals=null) { @@ -36214,9 +33513,6 @@ class ThriftHiveMetastore_cancel_delegation_token_args { class ThriftHiveMetastore_cancel_delegation_token_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -36341,9 +33637,6 @@ class ThriftHiveMetastore_get_open_txns_args { class ThriftHiveMetastore_get_open_txns_result { static $_TSPEC; - /** - * @var \metastore\GetOpenTxnsResponse - */ public $success = null; public function __construct($vals=null) { @@ -36471,9 +33764,6 @@ class ThriftHiveMetastore_get_open_txns_info_args { class ThriftHiveMetastore_get_open_txns_info_result { static $_TSPEC; - /** - * @var \metastore\GetOpenTxnsInfoResponse - */ public $success = null; public function __construct($vals=null) { @@ -36551,9 +33841,6 @@ class ThriftHiveMetastore_get_open_txns_info_result { class ThriftHiveMetastore_open_txns_args { static $_TSPEC; - /** - * @var \metastore\OpenTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36631,9 +33918,6 @@ class ThriftHiveMetastore_open_txns_args { class ThriftHiveMetastore_open_txns_result { static $_TSPEC; - /** - * @var \metastore\OpenTxnsResponse - */ public $success = null; public function __construct($vals=null) { @@ -36711,9 +33995,6 @@ class ThriftHiveMetastore_open_txns_result { class ThriftHiveMetastore_abort_txn_args { static $_TSPEC; - /** - * @var \metastore\AbortTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36791,9 +34072,6 @@ class ThriftHiveMetastore_abort_txn_args { class ThriftHiveMetastore_abort_txn_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; public function __construct($vals=null) { @@ -36868,9 +34146,6 @@ class ThriftHiveMetastore_abort_txn_result { class ThriftHiveMetastore_commit_txn_args { static $_TSPEC; - /** - * @var \metastore\CommitTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36948,13 +34223,7 @@ class ThriftHiveMetastore_commit_txn_args { class ThriftHiveMetastore_commit_txn_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -37050,9 +34319,6 @@ class ThriftHiveMetastore_commit_txn_result { class ThriftHiveMetastore_lock_args { static $_TSPEC; - /** - * @var \metastore\LockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37130,17 +34396,8 @@ class ThriftHiveMetastore_lock_args { class ThriftHiveMetastore_lock_result { static $_TSPEC; - /** - * @var \metastore\LockResponse - */ public $success = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -37260,9 +34517,6 @@ class ThriftHiveMetastore_lock_result { class ThriftHiveMetastore_check_lock_args { static $_TSPEC; - /** - * @var \metastore\CheckLockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37340,21 +34594,9 @@ class ThriftHiveMetastore_check_lock_args { class ThriftHiveMetastore_check_lock_result { static $_TSPEC; - /** - * @var \metastore\LockResponse - */ public $success = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; - /** - * @var \metastore\NoSuchLockException - */ public $o3 = null; public function __construct($vals=null) { @@ -37495,9 +34737,6 @@ class ThriftHiveMetastore_check_lock_result { class ThriftHiveMetastore_unlock_args { static $_TSPEC; - /** - * @var \metastore\UnlockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37575,13 +34814,7 @@ class ThriftHiveMetastore_unlock_args { class ThriftHiveMetastore_unlock_result { static $_TSPEC; - /** - * @var \metastore\NoSuchLockException - */ public $o1 = null; - /** - * @var \metastore\TxnOpenException - */ public $o2 = null; public function __construct($vals=null) { @@ -37677,9 +34910,6 @@ class ThriftHiveMetastore_unlock_result { class ThriftHiveMetastore_show_locks_args { static $_TSPEC; - /** - * @var \metastore\ShowLocksRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37757,9 +34987,6 @@ class ThriftHiveMetastore_show_locks_args { class ThriftHiveMetastore_show_locks_result { static $_TSPEC; - /** - * @var \metastore\ShowLocksResponse - */ public $success = null; public function __construct($vals=null) { @@ -37837,9 +35064,6 @@ class ThriftHiveMetastore_show_locks_result { class ThriftHiveMetastore_heartbeat_args { static $_TSPEC; - /** - * @var \metastore\HeartbeatRequest - */ public $ids = null; public function __construct($vals=null) { @@ -37917,17 +35141,8 @@ class ThriftHiveMetastore_heartbeat_args { class ThriftHiveMetastore_heartbeat_result { static $_TSPEC; - /** - * @var \metastore\NoSuchLockException - */ public $o1 = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o2 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o3 = null; public function __construct($vals=null) { @@ -38044,9 +35259,6 @@ class ThriftHiveMetastore_heartbeat_result { class ThriftHiveMetastore_heartbeat_txn_range_args { static $_TSPEC; - /** - * @var \metastore\HeartbeatTxnRangeRequest - */ public $txns = null; public function __construct($vals=null) { @@ -38124,9 +35336,6 @@ class ThriftHiveMetastore_heartbeat_txn_range_args { class ThriftHiveMetastore_heartbeat_txn_range_result { static $_TSPEC; - /** - * @var \metastore\HeartbeatTxnRangeResponse - */ public $success = null; public function __construct($vals=null) { @@ -38204,9 +35413,6 @@ class ThriftHiveMetastore_heartbeat_txn_range_result { class ThriftHiveMetastore_compact_args { static $_TSPEC; - /** - * @var \metastore\CompactionRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -38334,9 +35540,6 @@ class ThriftHiveMetastore_compact_result { class ThriftHiveMetastore_show_compact_args { static $_TSPEC; - /** - * @var \metastore\ShowCompactRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -38414,9 +35617,6 @@ class ThriftHiveMetastore_show_compact_args { class ThriftHiveMetastore_show_compact_result { static $_TSPEC; - /** - * @var \metastore\ShowCompactResponse - */ public $success = null; public function __construct($vals=null) { @@ -38494,9 +35694,6 @@ class ThriftHiveMetastore_show_compact_result { class ThriftHiveMetastore_add_dynamic_partitions_args { static $_TSPEC; - /** - * @var \metastore\AddDynamicPartitions - */ public $rqst = null; public function __construct($vals=null) { @@ -38574,13 +35771,7 @@ class ThriftHiveMetastore_add_dynamic_partitions_args { class ThriftHiveMetastore_add_dynamic_partitions_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -38676,9 +35867,6 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { class ThriftHiveMetastore_get_next_notification_args { static $_TSPEC; - /** - * @var \metastore\NotificationEventRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -38756,9 +35944,6 @@ class ThriftHiveMetastore_get_next_notification_args { class ThriftHiveMetastore_get_next_notification_result { static $_TSPEC; - /** - * @var \metastore\NotificationEventResponse - */ public $success = null; public function __construct($vals=null) { @@ -38886,9 +36071,6 @@ class ThriftHiveMetastore_get_current_notificationEventId_args { class ThriftHiveMetastore_get_current_notificationEventId_result { static $_TSPEC; - /** - * @var \metastore\CurrentNotificationEventId - */ public $success = null; public function __construct($vals=null) { @@ -38966,9 +36148,6 @@ class ThriftHiveMetastore_get_current_notificationEventId_result { class ThriftHiveMetastore_fire_listener_event_args { static $_TSPEC; - /** - * @var \metastore\FireEventRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -39046,9 +36225,6 @@ class ThriftHiveMetastore_fire_listener_event_args { class ThriftHiveMetastore_fire_listener_event_result { static $_TSPEC; - /** - * @var \metastore\FireEventResponse - */ public $success = null; public function __construct($vals=null) { @@ -39226,9 +36402,6 @@ class ThriftHiveMetastore_flushCache_result { class ThriftHiveMetastore_get_file_metadata_by_expr_args { static $_TSPEC; - /** - * @var \metastore\GetFileMetadataByExprRequest - */ public $req = null; public function __construct($vals=null) { @@ -39306,9 +36479,6 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_args { class ThriftHiveMetastore_get_file_metadata_by_expr_result { static $_TSPEC; - /** - * @var \metastore\GetFileMetadataByExprResult - */ public $success = null; public function __construct($vals=null) { @@ -39386,9 +36556,6 @@ class ThriftHiveMetastore_get_file_metadata_by_expr_result { class ThriftHiveMetastore_get_file_metadata_args { static $_TSPEC; - /** - * @var \metastore\GetFileMetadataRequest - */ public $req = null; public function __construct($vals=null) { @@ -39466,9 +36633,6 @@ class ThriftHiveMetastore_get_file_metadata_args { class ThriftHiveMetastore_get_file_metadata_result { static $_TSPEC; - /** - * @var \metastore\GetFileMetadataResult - */ public $success = null; public function __construct($vals=null) { @@ -39546,9 +36710,6 @@ class ThriftHiveMetastore_get_file_metadata_result { class ThriftHiveMetastore_put_file_metadata_args { static $_TSPEC; - /** - * @var \metastore\PutFileMetadataRequest - */ public $req = null; public function __construct($vals=null) { @@ -39626,9 +36787,6 @@ class ThriftHiveMetastore_put_file_metadata_args { class ThriftHiveMetastore_put_file_metadata_result { static $_TSPEC; - /** - * @var \metastore\PutFileMetadataResult - */ public $success = null; public function __construct($vals=null) { @@ -39706,9 +36864,6 @@ class ThriftHiveMetastore_put_file_metadata_result { class ThriftHiveMetastore_clear_file_metadata_args { static $_TSPEC; - /** - * @var \metastore\ClearFileMetadataRequest - */ public $req = null; public function __construct($vals=null) { @@ -39786,9 +36941,6 @@ class ThriftHiveMetastore_clear_file_metadata_args { class ThriftHiveMetastore_clear_file_metadata_result { static $_TSPEC; - /** - * @var \metastore\ClearFileMetadataResult - */ public $success = null; public function __construct($vals=null) { @@ -39866,9 +37018,6 @@ class ThriftHiveMetastore_clear_file_metadata_result { class ThriftHiveMetastore_cache_file_metadata_args { static $_TSPEC; - /** - * @var \metastore\CacheFileMetadataRequest - */ public $req = null; public function __construct($vals=null) { @@ -39946,9 +37095,6 @@ class ThriftHiveMetastore_cache_file_metadata_args { class ThriftHiveMetastore_cache_file_metadata_result { static $_TSPEC; - /** - * @var \metastore\CacheFileMetadataResult - */ public $success = null; public function __construct($vals=null) { diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index fe4c966..c0a1120 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -2,7 +2,7 @@ namespace metastore; /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,7 +13,6 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; @@ -153,13 +152,7 @@ final class FileMetadataExprType { class Version { static $_TSPEC; - /** - * @var string - */ public $version = null; - /** - * @var string - */ public $comments = null; public function __construct($vals=null) { @@ -251,17 +244,8 @@ class Version { class FieldSchema { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $type = null; - /** - * @var string - */ public $comment = null; public function __construct($vals=null) { @@ -372,21 +356,9 @@ class FieldSchema { class Type { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $type1 = null; - /** - * @var string - */ public $type2 = null; - /** - * @var \metastore\FieldSchema[] - */ public $fields = null; public function __construct($vals=null) { @@ -544,25 +516,10 @@ class Type { class HiveObjectRef { static $_TSPEC; - /** - * @var int - */ public $objectType = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $objectName = null; - /** - * @var string[] - */ public $partValues = null; - /** - * @var string - */ public $columnName = null; public function __construct($vals=null) { @@ -737,25 +694,10 @@ class HiveObjectRef { class PrivilegeGrantInfo { static $_TSPEC; - /** - * @var string - */ public $privilege = null; - /** - * @var int - */ public $createTime = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grantOption = null; public function __construct($vals=null) { @@ -904,21 +846,9 @@ class PrivilegeGrantInfo { class HiveObjectPrivilege { static $_TSPEC; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var \metastore\PrivilegeGrantInfo - */ public $grantInfo = null; public function __construct($vals=null) { @@ -1058,9 +988,6 @@ class HiveObjectPrivilege { class PrivilegeBag { static $_TSPEC; - /** - * @var \metastore\HiveObjectPrivilege[] - */ public $privileges = null; public function __construct($vals=null) { @@ -1161,17 +1088,8 @@ class PrivilegeBag { class PrincipalPrivilegeSet { static $_TSPEC; - /** - * @var array - */ public $userPrivileges = null; - /** - * @var array - */ public $groupPrivileges = null; - /** - * @var array - */ public $rolePrivileges = null; public function __construct($vals=null) { @@ -1459,17 +1377,8 @@ class PrincipalPrivilegeSet { class GrantRevokePrivilegeRequest { static $_TSPEC; - /** - * @var int - */ public $requestType = null; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; - /** - * @var bool - */ public $revokeGrantOption = null; public function __construct($vals=null) { @@ -1585,9 +1494,6 @@ class GrantRevokePrivilegeRequest { class GrantRevokePrivilegeResponse { static $_TSPEC; - /** - * @var bool - */ public $success = null; public function __construct($vals=null) { @@ -1660,17 +1566,8 @@ class GrantRevokePrivilegeResponse { class Role { static $_TSPEC; - /** - * @var string - */ public $roleName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var string - */ public $ownerName = null; public function __construct($vals=null) { @@ -1781,33 +1678,12 @@ class Role { class RolePrincipalGrant { static $_TSPEC; - /** - * @var string - */ public $roleName = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var bool - */ public $grantOption = null; - /** - * @var int - */ public $grantTime = null; - /** - * @var string - */ public $grantorName = null; - /** - * @var int - */ public $grantorPrincipalType = null; public function __construct($vals=null) { @@ -1994,13 +1870,7 @@ class RolePrincipalGrant { class GetRoleGrantsForPrincipalRequest { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -2092,9 +1962,6 @@ class GetRoleGrantsForPrincipalRequest { class GetRoleGrantsForPrincipalResponse { static $_TSPEC; - /** - * @var \metastore\RolePrincipalGrant[] - */ public $principalGrants = null; public function __construct($vals=null) { @@ -2195,9 +2062,6 @@ class GetRoleGrantsForPrincipalResponse { class GetPrincipalsInRoleRequest { static $_TSPEC; - /** - * @var string - */ public $roleName = null; public function __construct($vals=null) { @@ -2270,9 +2134,6 @@ class GetPrincipalsInRoleRequest { class GetPrincipalsInRoleResponse { static $_TSPEC; - /** - * @var \metastore\RolePrincipalGrant[] - */ public $principalGrants = null; public function __construct($vals=null) { @@ -2373,33 +2234,12 @@ class GetPrincipalsInRoleResponse { class GrantRevokeRoleRequest { static $_TSPEC; - /** - * @var int - */ public $requestType = null; - /** - * @var string - */ public $roleName = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grantOption = null; public function __construct($vals=null) { @@ -2586,9 +2426,6 @@ class GrantRevokeRoleRequest { class GrantRevokeRoleResponse { static $_TSPEC; - /** - * @var bool - */ public $success = null; public function __construct($vals=null) { @@ -2661,33 +2498,12 @@ class GrantRevokeRoleResponse { class Database { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $description = null; - /** - * @var string - */ public $locationUri = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; - /** - * @var string - */ public $ownerName = null; - /** - * @var int - */ public $ownerType = null; public function __construct($vals=null) { @@ -2913,17 +2729,8 @@ class Database { class SerDeInfo { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $serializationLib = null; - /** - * @var array - */ public $parameters = null; public function __construct($vals=null) { @@ -3068,13 +2875,7 @@ class SerDeInfo { class Order { static $_TSPEC; - /** - * @var string - */ public $col = null; - /** - * @var int - */ public $order = null; public function __construct($vals=null) { @@ -3166,17 +2967,8 @@ class Order { class SkewedInfo { static $_TSPEC; - /** - * @var string[] - */ public $skewedColNames = null; - /** - * @var (string[])[] - */ public $skewedColValues = null; - /** - * @var array - */ public $skewedColValueLocationMaps = null; public function __construct($vals=null) { @@ -3419,53 +3211,17 @@ class SkewedInfo { class StorageDescriptor { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $cols = null; - /** - * @var string - */ public $location = null; - /** - * @var string - */ public $inputFormat = null; - /** - * @var string - */ public $outputFormat = null; - /** - * @var bool - */ public $compressed = null; - /** - * @var int - */ public $numBuckets = null; - /** - * @var \metastore\SerDeInfo - */ public $serdeInfo = null; - /** - * @var string[] - */ public $bucketCols = null; - /** - * @var \metastore\Order[] - */ public $sortCols = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\SkewedInfo - */ public $skewedInfo = null; - /** - * @var bool - */ public $storedAsSubDirectories = null; public function __construct($vals=null) { @@ -3873,61 +3629,19 @@ class StorageDescriptor { class Table { static $_TSPEC; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $owner = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var int - */ public $retention = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var \metastore\FieldSchema[] - */ public $partitionKeys = null; - /** - * @var array - */ public $parameters = null; - /** - * @var string - */ public $viewOriginalText = null; - /** - * @var string - */ public $viewExpandedText = null; - /** - * @var string - */ public $tableType = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; - /** - * @var bool - */ public $temporary = false; public function __construct($vals=null) { @@ -4319,37 +4033,13 @@ class Table { class Partition { static $_TSPEC; - /** - * @var string[] - */ public $values = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; public function __construct($vals=null) { @@ -4625,29 +4315,11 @@ class Partition { class PartitionWithoutSD { static $_TSPEC; - /** - * @var string[] - */ public $values = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var string - */ public $relativePath = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; public function __construct($vals=null) { @@ -4880,13 +4552,7 @@ class PartitionWithoutSD { class PartitionSpecWithSharedSD { static $_TSPEC; - /** - * @var \metastore\PartitionWithoutSD[] - */ public $partitions = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; public function __construct($vals=null) { @@ -5011,9 +4677,6 @@ class PartitionSpecWithSharedSD { class PartitionListComposingSpec { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -5114,25 +4777,10 @@ class PartitionListComposingSpec { class PartitionSpec { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $rootPath = null; - /** - * @var \metastore\PartitionSpecWithSharedSD - */ public $sharedSDPartitionSpec = null; - /** - * @var \metastore\PartitionListComposingSpec - */ public $partitionList = null; public function __construct($vals=null) { @@ -5291,45 +4939,15 @@ class PartitionSpec { class Index { static $_TSPEC; - /** - * @var string - */ public $indexName = null; - /** - * @var string - */ public $indexHandlerClass = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $origTableName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var string - */ public $indexTableName = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var array - */ public $parameters = null; - /** - * @var bool - */ public $deferredRebuild = null; public function __construct($vals=null) { @@ -5612,18 +5230,10 @@ class Index { class BooleanColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $numTrues = null; - /** - * @var int - */ public $numFalses = null; - /** - * @var int - */ public $numNulls = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -5640,6 +5250,10 @@ class BooleanColumnStatsData { 'var' => 'numNulls', 'type' => TType::I64, ), + 4 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -5652,6 +5266,9 @@ class BooleanColumnStatsData { if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -5695,6 +5312,13 @@ class BooleanColumnStatsData { $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -5723,6 +5347,11 @@ class BooleanColumnStatsData { $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -5733,22 +5362,11 @@ class BooleanColumnStatsData { class DoubleColumnStatsData { static $_TSPEC; - /** - * @var double - */ public $lowValue = null; - /** - * @var double - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -5769,6 +5387,10 @@ class DoubleColumnStatsData { 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -5784,6 +5406,9 @@ class DoubleColumnStatsData { if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -5834,6 +5459,13 @@ class DoubleColumnStatsData { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -5867,6 +5499,11 @@ class DoubleColumnStatsData { $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -5877,22 +5514,11 @@ class DoubleColumnStatsData { class LongColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $lowValue = null; - /** - * @var int - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -5913,6 +5539,10 @@ class LongColumnStatsData { 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -5928,6 +5558,9 @@ class LongColumnStatsData { if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -5978,6 +5611,13 @@ class LongColumnStatsData { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6011,6 +5651,11 @@ class LongColumnStatsData { $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6021,22 +5666,11 @@ class LongColumnStatsData { class StringColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $maxColLen = null; - /** - * @var double - */ public $avgColLen = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6057,6 +5691,10 @@ class StringColumnStatsData { 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -6072,6 +5710,9 @@ class StringColumnStatsData { if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -6122,6 +5763,13 @@ class StringColumnStatsData { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6155,6 +5803,11 @@ class StringColumnStatsData { $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6165,18 +5818,10 @@ class StringColumnStatsData { class BinaryColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $maxColLen = null; - /** - * @var double - */ public $avgColLen = null; - /** - * @var int - */ public $numNulls = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6193,6 +5838,10 @@ class BinaryColumnStatsData { 'var' => 'numNulls', 'type' => TType::I64, ), + 4 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -6205,6 +5854,9 @@ class BinaryColumnStatsData { if (isset($vals['numNulls'])) { $this->numNulls = $vals['numNulls']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -6248,6 +5900,13 @@ class BinaryColumnStatsData { $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6276,6 +5935,11 @@ class BinaryColumnStatsData { $xfer += $output->writeI64($this->numNulls); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 4); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6286,13 +5950,7 @@ class BinaryColumnStatsData { class Decimal { static $_TSPEC; - /** - * @var string - */ public $unscaled = null; - /** - * @var int - */ public $scale = null; public function __construct($vals=null) { @@ -6384,22 +6042,11 @@ class Decimal { class DecimalColumnStatsData { static $_TSPEC; - /** - * @var \metastore\Decimal - */ public $lowValue = null; - /** - * @var \metastore\Decimal - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6422,6 +6069,10 @@ class DecimalColumnStatsData { 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -6437,6 +6088,9 @@ class DecimalColumnStatsData { if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -6489,6 +6143,13 @@ class DecimalColumnStatsData { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6528,6 +6189,11 @@ class DecimalColumnStatsData { $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6538,9 +6204,6 @@ class DecimalColumnStatsData { class Date { static $_TSPEC; - /** - * @var int - */ public $daysSinceEpoch = null; public function __construct($vals=null) { @@ -6613,22 +6276,11 @@ class Date { class DateColumnStatsData { static $_TSPEC; - /** - * @var \metastore\Date - */ public $lowValue = null; - /** - * @var \metastore\Date - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; + public $bitVectors = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6651,6 +6303,10 @@ class DateColumnStatsData { 'var' => 'numDVs', 'type' => TType::I64, ), + 5 => array( + 'var' => 'bitVectors', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -6666,6 +6322,9 @@ class DateColumnStatsData { if (isset($vals['numDVs'])) { $this->numDVs = $vals['numDVs']; } + if (isset($vals['bitVectors'])) { + $this->bitVectors = $vals['bitVectors']; + } } } @@ -6718,6 +6377,13 @@ class DateColumnStatsData { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->bitVectors); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6757,6 +6423,11 @@ class DateColumnStatsData { $xfer += $output->writeI64($this->numDVs); $xfer += $output->writeFieldEnd(); } + if ($this->bitVectors !== null) { + $xfer += $output->writeFieldBegin('bitVectors', TType::STRING, 5); + $xfer += $output->writeString($this->bitVectors); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6767,33 +6438,12 @@ class DateColumnStatsData { class ColumnStatisticsData { static $_TSPEC; - /** - * @var \metastore\BooleanColumnStatsData - */ public $booleanStats = null; - /** - * @var \metastore\LongColumnStatsData - */ public $longStats = null; - /** - * @var \metastore\DoubleColumnStatsData - */ public $doubleStats = null; - /** - * @var \metastore\StringColumnStatsData - */ public $stringStats = null; - /** - * @var \metastore\BinaryColumnStatsData - */ public $binaryStats = null; - /** - * @var \metastore\DecimalColumnStatsData - */ public $decimalStats = null; - /** - * @var \metastore\DateColumnStatsData - */ public $dateStats = null; public function __construct($vals=null) { @@ -7015,17 +6665,8 @@ class ColumnStatisticsData { class ColumnStatisticsObj { static $_TSPEC; - /** - * @var string - */ public $colName = null; - /** - * @var string - */ public $colType = null; - /** - * @var \metastore\ColumnStatisticsData - */ public $statsData = null; public function __construct($vals=null) { @@ -7141,25 +6782,10 @@ class ColumnStatisticsObj { class ColumnStatisticsDesc { static $_TSPEC; - /** - * @var bool - */ public $isTblLevel = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $partName = null; - /** - * @var int - */ public $lastAnalyzed = null; public function __construct($vals=null) { @@ -7308,13 +6934,7 @@ class ColumnStatisticsDesc { class ColumnStatistics { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsDesc - */ public $statsDesc = null; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $statsObj = null; public function __construct($vals=null) { @@ -7439,13 +7059,7 @@ class ColumnStatistics { class AggrStats { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $colStats = null; - /** - * @var int - */ public $partsFound = null; public function __construct($vals=null) { @@ -7565,9 +7179,6 @@ class AggrStats { class SetPartitionsStatsRequest { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics[] - */ public $colStats = null; public function __construct($vals=null) { @@ -7668,13 +7279,7 @@ class SetPartitionsStatsRequest { class Schema { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $fieldSchemas = null; - /** - * @var array - */ public $properties = null; public function __construct($vals=null) { @@ -7828,9 +7433,6 @@ class Schema { class EnvironmentContext { static $_TSPEC; - /** - * @var array - */ public $properties = null; public function __construct($vals=null) { @@ -7937,13 +7539,7 @@ class EnvironmentContext { class PartitionsByExprResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; - /** - * @var bool - */ public $hasUnknownPartitions = null; public function __construct($vals=null) { @@ -8063,25 +7659,10 @@ class PartitionsByExprResult { class PartitionsByExprRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string - */ public $expr = null; - /** - * @var string - */ public $defaultPartitionName = null; - /** - * @var int - */ public $maxParts = -1; public function __construct($vals=null) { @@ -8230,9 +7811,6 @@ class PartitionsByExprRequest { class TableStatsResult { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $tableStats = null; public function __construct($vals=null) { @@ -8333,9 +7911,6 @@ class TableStatsResult { class PartitionsStatsResult { static $_TSPEC; - /** - * @var array - */ public $partStats = null; public function __construct($vals=null) { @@ -8467,17 +8042,8 @@ class PartitionsStatsResult { class TableStatsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string[] - */ public $colNames = null; public function __construct($vals=null) { @@ -8614,21 +8180,9 @@ class TableStatsRequest { class PartitionsStatsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string[] - */ public $colNames = null; - /** - * @var string[] - */ public $partNames = null; public function __construct($vals=null) { @@ -8810,9 +8364,6 @@ class PartitionsStatsRequest { class AddPartitionsResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -8913,25 +8464,10 @@ class AddPartitionsResult { class AddPartitionsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var \metastore\Partition[] - */ public $parts = null; - /** - * @var bool - */ public $ifNotExists = null; - /** - * @var bool - */ public $needResult = true; public function __construct($vals=null) { @@ -9108,9 +8644,6 @@ class AddPartitionsRequest { class DropPartitionsResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -9211,13 +8744,7 @@ class DropPartitionsResult { class DropPartitionsExpr { static $_TSPEC; - /** - * @var string - */ public $expr = null; - /** - * @var int - */ public $partArchiveLevel = null; public function __construct($vals=null) { @@ -9309,13 +8836,7 @@ class DropPartitionsExpr { class RequestPartsSpec { static $_TSPEC; - /** - * @var string[] - */ public $names = null; - /** - * @var \metastore\DropPartitionsExpr[] - */ public $exprs = null; public function __construct($vals=null) { @@ -9461,37 +8982,13 @@ class RequestPartsSpec { class DropPartitionsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var \metastore\RequestPartsSpec - */ public $parts = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var bool - */ public $ifExists = true; - /** - * @var bool - */ public $ignoreProtection = null; - /** - * @var \metastore\EnvironmentContext - */ public $environmentContext = null; - /** - * @var bool - */ public $needResult = true; public function __construct($vals=null) { @@ -9707,13 +9204,7 @@ class DropPartitionsRequest { class ResourceUri { static $_TSPEC; - /** - * @var int - */ public $resourceType = null; - /** - * @var string - */ public $uri = null; public function __construct($vals=null) { @@ -9805,37 +9296,13 @@ class ResourceUri { class Function { static $_TSPEC; - /** - * @var string - */ public $functionName = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $className = null; - /** - * @var string - */ public $ownerName = null; - /** - * @var int - */ public $ownerType = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $functionType = null; - /** - * @var \metastore\ResourceUri[] - */ public $resourceUris = null; public function __construct($vals=null) { @@ -10069,21 +9536,9 @@ class Function { class TxnInfo { static $_TSPEC; - /** - * @var int - */ public $id = null; - /** - * @var int - */ public $state = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -10213,13 +9668,7 @@ class TxnInfo { class GetOpenTxnsInfoResponse { static $_TSPEC; - /** - * @var int - */ public $txn_high_water_mark = null; - /** - * @var \metastore\TxnInfo[] - */ public $open_txns = null; public function __construct($vals=null) { @@ -10339,13 +9788,7 @@ class GetOpenTxnsInfoResponse { class GetOpenTxnsResponse { static $_TSPEC; - /** - * @var int - */ public $txn_high_water_mark = null; - /** - * @var int[] - */ public $open_txns = null; public function __construct($vals=null) { @@ -10471,17 +9914,8 @@ class GetOpenTxnsResponse { class OpenTxnRequest { static $_TSPEC; - /** - * @var int - */ public $num_txns = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -10592,9 +10026,6 @@ class OpenTxnRequest { class OpenTxnsResponse { static $_TSPEC; - /** - * @var int[] - */ public $txn_ids = null; public function __construct($vals=null) { @@ -10693,9 +10124,6 @@ class OpenTxnsResponse { class AbortTxnRequest { static $_TSPEC; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -10768,9 +10196,6 @@ class AbortTxnRequest { class CommitTxnRequest { static $_TSPEC; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -10843,25 +10268,10 @@ class CommitTxnRequest { class LockComponent { static $_TSPEC; - /** - * @var int - */ public $type = null; - /** - * @var int - */ public $level = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; public function __construct($vals=null) { @@ -11010,21 +10420,9 @@ class LockComponent { class LockRequest { static $_TSPEC; - /** - * @var \metastore\LockComponent[] - */ public $component = null; - /** - * @var int - */ public $txnid = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -11182,13 +10580,7 @@ class LockRequest { class LockResponse { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var int - */ public $state = null; public function __construct($vals=null) { @@ -11280,9 +10672,6 @@ class LockResponse { class CheckLockRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; public function __construct($vals=null) { @@ -11355,9 +10744,6 @@ class CheckLockRequest { class UnlockRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; public function __construct($vals=null) { @@ -11480,49 +10866,16 @@ class ShowLocksRequest { class ShowLocksResponseElement { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partname = null; - /** - * @var int - */ public $state = null; - /** - * @var int - */ public $type = null; - /** - * @var int - */ public $txnid = null; - /** - * @var int - */ public $lastheartbeat = null; - /** - * @var int - */ public $acquiredat = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -11785,9 +11138,6 @@ class ShowLocksResponseElement { class ShowLocksResponse { static $_TSPEC; - /** - * @var \metastore\ShowLocksResponseElement[] - */ public $locks = null; public function __construct($vals=null) { @@ -11888,13 +11238,7 @@ class ShowLocksResponse { class HeartbeatRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -11986,13 +11330,7 @@ class HeartbeatRequest { class HeartbeatTxnRangeRequest { static $_TSPEC; - /** - * @var int - */ public $min = null; - /** - * @var int - */ public $max = null; public function __construct($vals=null) { @@ -12084,13 +11422,7 @@ class HeartbeatTxnRangeRequest { class HeartbeatTxnRangeResponse { static $_TSPEC; - /** - * @var int[] - */ public $aborted = null; - /** - * @var int[] - */ public $nosuch = null; public function __construct($vals=null) { @@ -12250,25 +11582,10 @@ class HeartbeatTxnRangeResponse { class CompactionRequest { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; - /** - * @var int - */ public $type = null; - /** - * @var string - */ public $runas = null; public function __construct($vals=null) { @@ -12467,37 +11784,13 @@ class ShowCompactRequest { class ShowCompactResponseElement { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; - /** - * @var int - */ public $type = null; - /** - * @var string - */ public $state = null; - /** - * @var string - */ public $workerid = null; - /** - * @var int - */ public $start = null; - /** - * @var string - */ public $runAs = null; public function __construct($vals=null) { @@ -12703,9 +11996,6 @@ class ShowCompactResponseElement { class ShowCompactResponse { static $_TSPEC; - /** - * @var \metastore\ShowCompactResponseElement[] - */ public $compacts = null; public function __construct($vals=null) { @@ -12806,21 +12096,9 @@ class ShowCompactResponse { class AddDynamicPartitions { static $_TSPEC; - /** - * @var int - */ public $txnid = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string[] - */ public $partitionnames = null; public function __construct($vals=null) { @@ -12976,13 +12254,7 @@ class AddDynamicPartitions { class NotificationEventRequest { static $_TSPEC; - /** - * @var int - */ public $lastEvent = null; - /** - * @var int - */ public $maxEvents = null; public function __construct($vals=null) { @@ -13074,29 +12346,11 @@ class NotificationEventRequest { class NotificationEvent { static $_TSPEC; - /** - * @var int - */ public $eventId = null; - /** - * @var int - */ public $eventTime = null; - /** - * @var string - */ public $eventType = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -13264,9 +12518,6 @@ class NotificationEvent { class NotificationEventResponse { static $_TSPEC; - /** - * @var \metastore\NotificationEvent[] - */ public $events = null; public function __construct($vals=null) { @@ -13367,9 +12618,6 @@ class NotificationEventResponse { class CurrentNotificationEventId { static $_TSPEC; - /** - * @var int - */ public $eventId = null; public function __construct($vals=null) { @@ -13442,9 +12690,6 @@ class CurrentNotificationEventId { class InsertEventRequestData { static $_TSPEC; - /** - * @var string[] - */ public $filesAdded = null; public function __construct($vals=null) { @@ -13543,9 +12788,6 @@ class InsertEventRequestData { class FireEventRequestData { static $_TSPEC; - /** - * @var \metastore\InsertEventRequestData - */ public $insertData = null; public function __construct($vals=null) { @@ -13623,25 +12865,10 @@ class FireEventRequestData { class FireEventRequest { static $_TSPEC; - /** - * @var bool - */ public $successful = null; - /** - * @var \metastore\FireEventRequestData - */ public $data = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string[] - */ public $partitionVals = null; public function __construct($vals=null) { @@ -13871,13 +13098,7 @@ class FireEventResponse { class MetadataPpdResult { static $_TSPEC; - /** - * @var string - */ public $metadata = null; - /** - * @var string - */ public $includeBitset = null; public function __construct($vals=null) { @@ -13969,13 +13190,7 @@ class MetadataPpdResult { class GetFileMetadataByExprResult { static $_TSPEC; - /** - * @var array - */ public $metadata = null; - /** - * @var bool - */ public $isSupported = null; public function __construct($vals=null) { @@ -14103,21 +13318,9 @@ class GetFileMetadataByExprResult { class GetFileMetadataByExprRequest { static $_TSPEC; - /** - * @var int[] - */ public $fileIds = null; - /** - * @var string - */ public $expr = null; - /** - * @var bool - */ public $doGetFooters = null; - /** - * @var int - */ public $type = null; public function __construct($vals=null) { @@ -14273,13 +13476,7 @@ class GetFileMetadataByExprRequest { class GetFileMetadataResult { static $_TSPEC; - /** - * @var array - */ public $metadata = null; - /** - * @var bool - */ public $isSupported = null; public function __construct($vals=null) { @@ -14405,9 +13602,6 @@ class GetFileMetadataResult { class GetFileMetadataRequest { static $_TSPEC; - /** - * @var int[] - */ public $fileIds = null; public function __construct($vals=null) { @@ -14556,17 +13750,8 @@ class PutFileMetadataResult { class PutFileMetadataRequest { static $_TSPEC; - /** - * @var int[] - */ public $fileIds = null; - /** - * @var string[] - */ public $metadata = null; - /** - * @var int - */ public $type = null; public function __construct($vals=null) { @@ -14779,9 +13964,6 @@ class ClearFileMetadataResult { class ClearFileMetadataRequest { static $_TSPEC; - /** - * @var int[] - */ public $fileIds = null; public function __construct($vals=null) { @@ -14880,9 +14062,6 @@ class ClearFileMetadataRequest { class CacheFileMetadataResult { static $_TSPEC; - /** - * @var bool - */ public $isSupported = null; public function __construct($vals=null) { @@ -14955,21 +14134,9 @@ class CacheFileMetadataResult { class CacheFileMetadataRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string - */ public $partName = null; - /** - * @var bool - */ public $isAllParts = null; public function __construct($vals=null) { @@ -15099,9 +14266,6 @@ class CacheFileMetadataRequest { class GetAllFunctionsResponse { static $_TSPEC; - /** - * @var \metastore\Function[] - */ public $functions = null; public function __construct($vals=null) { @@ -15202,21 +14366,9 @@ class GetAllFunctionsResponse { class TableMeta { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $tableType = null; - /** - * @var string - */ public $comments = null; public function __construct($vals=null) { @@ -15346,9 +14498,6 @@ class TableMeta { class MetaException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15421,9 +14570,6 @@ class MetaException extends TException { class UnknownTableException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15496,9 +14642,6 @@ class UnknownTableException extends TException { class UnknownDBException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15571,9 +14714,6 @@ class UnknownDBException extends TException { class AlreadyExistsException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15646,9 +14786,6 @@ class AlreadyExistsException extends TException { class InvalidPartitionException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15721,9 +14858,6 @@ class InvalidPartitionException extends TException { class UnknownPartitionException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15796,9 +14930,6 @@ class UnknownPartitionException extends TException { class InvalidObjectException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15871,9 +15002,6 @@ class InvalidObjectException extends TException { class NoSuchObjectException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15946,9 +15074,6 @@ class NoSuchObjectException extends TException { class IndexAlreadyExistsException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16021,9 +15146,6 @@ class IndexAlreadyExistsException extends TException { class InvalidOperationException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16096,9 +15218,6 @@ class InvalidOperationException extends TException { class ConfigValSecurityException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16171,9 +15290,6 @@ class ConfigValSecurityException extends TException { class InvalidInputException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16246,9 +15362,6 @@ class InvalidInputException extends TException { class NoSuchTxnException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16321,9 +15434,6 @@ class NoSuchTxnException extends TException { class TxnAbortedException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16396,9 +15506,6 @@ class TxnAbortedException extends TException { class TxnOpenException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16471,9 +15578,6 @@ class TxnOpenException extends TException { class NoSuchLockException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -16543,122 +15647,50 @@ class NoSuchLockException extends TException { } -final class Constant extends \Thrift\Type\TConstant { - static protected $DDL_TIME; - static protected $HIVE_FILTER_FIELD_OWNER; - static protected $HIVE_FILTER_FIELD_PARAMS; - static protected $HIVE_FILTER_FIELD_LAST_ACCESS; - static protected $IS_ARCHIVED; - static protected $ORIGINAL_LOCATION; - static protected $IS_IMMUTABLE; - static protected $META_TABLE_COLUMNS; - static protected $META_TABLE_COLUMN_TYPES; - static protected $BUCKET_FIELD_NAME; - static protected $BUCKET_COUNT; - static protected $FIELD_TO_DIMENSION; - static protected $META_TABLE_NAME; - static protected $META_TABLE_DB; - static protected $META_TABLE_LOCATION; - static protected $META_TABLE_SERDE; - static protected $META_TABLE_PARTITION_COLUMNS; - static protected $META_TABLE_PARTITION_COLUMN_TYPES; - static protected $FILE_INPUT_FORMAT; - static protected $FILE_OUTPUT_FORMAT; - static protected $META_TABLE_STORAGE; - static protected $TABLE_IS_TRANSACTIONAL; - static protected $TABLE_NO_AUTO_COMPACT; +$GLOBALS['hive_metastore_CONSTANTS']['DDL_TIME'] = "transient_lastDdlTime"; - static protected function init_DDL_TIME() { - return "transient_lastDdlTime"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_OWNER'] = "hive_filter_field_owner__"; - static protected function init_HIVE_FILTER_FIELD_OWNER() { - return "hive_filter_field_owner__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_PARAMS'] = "hive_filter_field_params__"; - static protected function init_HIVE_FILTER_FIELD_PARAMS() { - return "hive_filter_field_params__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_LAST_ACCESS'] = "hive_filter_field_last_access__"; - static protected function init_HIVE_FILTER_FIELD_LAST_ACCESS() { - return "hive_filter_field_last_access__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['IS_ARCHIVED'] = "is_archived"; - static protected function init_IS_ARCHIVED() { - return "is_archived"; - } +$GLOBALS['hive_metastore_CONSTANTS']['ORIGINAL_LOCATION'] = "original_location"; - static protected function init_ORIGINAL_LOCATION() { - return "original_location"; - } +$GLOBALS['hive_metastore_CONSTANTS']['IS_IMMUTABLE'] = "immutable"; - static protected function init_IS_IMMUTABLE() { - return "immutable"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMNS'] = "columns"; - static protected function init_META_TABLE_COLUMNS() { - return "columns"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMN_TYPES'] = "columns.types"; - static protected function init_META_TABLE_COLUMN_TYPES() { - return "columns.types"; - } +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_FIELD_NAME'] = "bucket_field_name"; - static protected function init_BUCKET_FIELD_NAME() { - return "bucket_field_name"; - } +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_COUNT'] = "bucket_count"; - static protected function init_BUCKET_COUNT() { - return "bucket_count"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FIELD_TO_DIMENSION'] = "field_to_dimension"; - static protected function init_FIELD_TO_DIMENSION() { - return "field_to_dimension"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_NAME'] = "name"; - static protected function init_META_TABLE_NAME() { - return "name"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_DB'] = "db"; - static protected function init_META_TABLE_DB() { - return "db"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_LOCATION'] = "location"; - static protected function init_META_TABLE_LOCATION() { - return "location"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_SERDE'] = "serde"; - static protected function init_META_TABLE_SERDE() { - return "serde"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_PARTITION_COLUMNS'] = "partition_columns"; - static protected function init_META_TABLE_PARTITION_COLUMNS() { - return "partition_columns"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_PARTITION_COLUMN_TYPES'] = "partition_columns.types"; - static protected function init_META_TABLE_PARTITION_COLUMN_TYPES() { - return "partition_columns.types"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FILE_INPUT_FORMAT'] = "file.inputformat"; - static protected function init_FILE_INPUT_FORMAT() { - return "file.inputformat"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FILE_OUTPUT_FORMAT'] = "file.outputformat"; - static protected function init_FILE_OUTPUT_FORMAT() { - return "file.outputformat"; - } - - static protected function init_META_TABLE_STORAGE() { - return "storage_handler"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_STORAGE'] = "storage_handler"; - static protected function init_TABLE_IS_TRANSACTIONAL() { - return "transactional"; - } +$GLOBALS['hive_metastore_CONSTANTS']['TABLE_IS_TRANSACTIONAL'] = "transactional"; - static protected function init_TABLE_NO_AUTO_COMPACT() { - return "no_auto_compaction"; - } -} +$GLOBALS['hive_metastore_CONSTANTS']['TABLE_NO_AUTO_COMPACT'] = "no_auto_compaction"; diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 407f73c..998d013 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -12,165 +12,151 @@ import pprint from urlparse import urlparse from thrift.transport import TTransport from thrift.transport import TSocket -from thrift.transport import TSSLSocket from thrift.transport import THttpClient from thrift.protocol import TBinaryProtocol -from hive_metastore import ThriftHiveMetastore -from hive_metastore.ttypes import * +import ThriftHiveMetastore +from ttypes import * if len(sys.argv) <= 1 or sys.argv[1] == '--help': - print('') - print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]') - print('') - print('Functions:') - print(' string getMetaConf(string key)') - print(' void setMetaConf(string key, string value)') - print(' void create_database(Database database)') - print(' Database get_database(string name)') - print(' void drop_database(string name, bool deleteData, bool cascade)') - print(' get_databases(string pattern)') - print(' get_all_databases()') - print(' void alter_database(string dbname, Database db)') - print(' Type get_type(string name)') - print(' bool create_type(Type type)') - print(' bool drop_type(string type)') - print(' get_type_all(string name)') - print(' get_fields(string db_name, string table_name)') - print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' get_schema(string db_name, string table_name)') - print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' void create_table(Table tbl)') - print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') - print(' void drop_table(string dbname, string name, bool deleteData)') - print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') - print(' get_tables(string db_name, string pattern)') - print(' get_table_meta(string db_patterns, string tbl_patterns, tbl_types)') - print(' get_all_tables(string db_name)') - print(' Table get_table(string dbname, string tbl_name)') - print(' get_table_objects_by_name(string dbname, tbl_names)') - print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)') - print(' void alter_table(string dbname, string tbl_name, Table new_tbl)') - print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)') - print(' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)') - print(' Partition add_partition(Partition new_part)') - print(' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)') - print(' i32 add_partitions( new_parts)') - print(' i32 add_partitions_pspec( new_parts)') - print(' Partition append_partition(string db_name, string tbl_name, part_vals)') - print(' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)') - print(' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)') - print(' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)') - print(' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)') - print(' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)') - print(' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)') - print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)') - print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') - print(' Partition get_partition(string db_name, string tbl_name, part_vals)') - print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') - print(' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') - print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') - print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') - print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') - print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') - print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)') - print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)') - print(' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)') - print(' i32 get_num_partitions_by_filter(string db_name, string tbl_name, string filter)') - print(' get_partitions_by_names(string db_name, string tbl_name, names)') - print(' void alter_partition(string db_name, string tbl_name, Partition new_part)') - print(' void alter_partitions(string db_name, string tbl_name, new_parts)') - print(' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)') - print(' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)') - print(' bool partition_name_has_valid_characters( part_vals, bool throw_exception)') - print(' string get_config_value(string name, string defaultValue)') - print(' partition_name_to_vals(string part_name)') - print(' partition_name_to_spec(string part_name)') - print(' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' Index add_index(Index new_index, Table index_table)') - print(' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)') - print(' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)') - print(' Index get_index_by_name(string db_name, string tbl_name, string index_name)') - print(' get_indexes(string db_name, string tbl_name, i16 max_indexes)') - print(' get_index_names(string db_name, string tbl_name, i16 max_indexes)') - print(' bool update_table_column_statistics(ColumnStatistics stats_obj)') - print(' bool update_partition_column_statistics(ColumnStatistics stats_obj)') - print(' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)') - print(' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' TableStatsResult get_table_statistics_req(TableStatsRequest request)') - print(' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)') - print(' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)') - print(' bool set_aggr_stats_for(SetPartitionsStatsRequest request)') - print(' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)') - print(' void create_function(Function func)') - print(' void drop_function(string dbName, string funcName)') - print(' void alter_function(string dbName, string funcName, Function newFunc)') - print(' get_functions(string dbName, string pattern)') - print(' Function get_function(string dbName, string funcName)') - print(' GetAllFunctionsResponse get_all_functions()') - print(' bool create_role(Role role)') - print(' bool drop_role(string role_name)') - print(' get_role_names()') - print(' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)') - print(' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)') - print(' list_roles(string principal_name, PrincipalType principal_type)') - print(' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)') - print(' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)') - print(' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)') - print(' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)') - print(' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)') - print(' bool grant_privileges(PrivilegeBag privileges)') - print(' bool revoke_privileges(PrivilegeBag privileges)') - print(' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)') - print(' set_ugi(string user_name, group_names)') - print(' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)') - print(' i64 renew_delegation_token(string token_str_form)') - print(' void cancel_delegation_token(string token_str_form)') - print(' GetOpenTxnsResponse get_open_txns()') - print(' GetOpenTxnsInfoResponse get_open_txns_info()') - print(' OpenTxnsResponse open_txns(OpenTxnRequest rqst)') - print(' void abort_txn(AbortTxnRequest rqst)') - print(' void commit_txn(CommitTxnRequest rqst)') - print(' LockResponse lock(LockRequest rqst)') - print(' LockResponse check_lock(CheckLockRequest rqst)') - print(' void unlock(UnlockRequest rqst)') - print(' ShowLocksResponse show_locks(ShowLocksRequest rqst)') - print(' void heartbeat(HeartbeatRequest ids)') - print(' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)') - print(' void compact(CompactionRequest rqst)') - print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') - print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') - print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') - print(' CurrentNotificationEventId get_current_notificationEventId()') - print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') - print(' void flushCache()') - print(' GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req)') - print(' GetFileMetadataResult get_file_metadata(GetFileMetadataRequest req)') - print(' PutFileMetadataResult put_file_metadata(PutFileMetadataRequest req)') - print(' ClearFileMetadataResult clear_file_metadata(ClearFileMetadataRequest req)') - print(' CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req)') - print(' string getName()') - print(' string getVersion()') - print(' fb_status getStatus()') - print(' string getStatusDetails()') - print(' getCounters()') - print(' i64 getCounter(string key)') - print(' void setOption(string key, string value)') - print(' string getOption(string key)') - print(' getOptions()') - print(' string getCpuProfile(i32 profileDurationInSec)') - print(' i64 aliveSince()') - print(' void reinitialize()') - print(' void shutdown()') - print('') + print '' + print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]' + print '' + print 'Functions:' + print ' string getMetaConf(string key)' + print ' void setMetaConf(string key, string value)' + print ' void create_database(Database database)' + print ' Database get_database(string name)' + print ' void drop_database(string name, bool deleteData, bool cascade)' + print ' get_databases(string pattern)' + print ' get_all_databases()' + print ' void alter_database(string dbname, Database db)' + print ' Type get_type(string name)' + print ' bool create_type(Type type)' + print ' bool drop_type(string type)' + print ' get_type_all(string name)' + print ' get_fields(string db_name, string table_name)' + print ' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)' + print ' get_schema(string db_name, string table_name)' + print ' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)' + print ' void create_table(Table tbl)' + print ' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)' + print ' void drop_table(string dbname, string name, bool deleteData)' + print ' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)' + print ' get_tables(string db_name, string pattern)' + print ' get_table_meta(string db_patterns, string tbl_patterns, tbl_types)' + print ' get_all_tables(string db_name)' + print ' Table get_table(string dbname, string tbl_name)' + print ' get_table_objects_by_name(string dbname, tbl_names)' + print ' get_table_names_by_filter(string dbname, string filter, i16 max_tables)' + print ' void alter_table(string dbname, string tbl_name, Table new_tbl)' + print ' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)' + print ' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)' + print ' Partition add_partition(Partition new_part)' + print ' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)' + print ' i32 add_partitions( new_parts)' + print ' i32 add_partitions_pspec( new_parts)' + print ' Partition append_partition(string db_name, string tbl_name, part_vals)' + print ' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)' + print ' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)' + print ' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)' + print ' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)' + print ' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)' + print ' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)' + print ' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)' + print ' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)' + print ' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)' + print ' Partition get_partition(string db_name, string tbl_name, part_vals)' + print ' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)' + print ' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)' + print ' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)' + print ' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)' + print ' get_partitions(string db_name, string tbl_name, i16 max_parts)' + print ' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)' + print ' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)' + print ' get_partition_names(string db_name, string tbl_name, i16 max_parts)' + print ' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)' + print ' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)' + print ' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)' + print ' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)' + print ' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)' + print ' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)' + print ' i32 get_num_partitions_by_filter(string db_name, string tbl_name, string filter)' + print ' get_partitions_by_names(string db_name, string tbl_name, names)' + print ' void alter_partition(string db_name, string tbl_name, Partition new_part)' + print ' void alter_partitions(string db_name, string tbl_name, new_parts)' + print ' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)' + print ' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)' + print ' bool partition_name_has_valid_characters( part_vals, bool throw_exception)' + print ' string get_config_value(string name, string defaultValue)' + print ' partition_name_to_vals(string part_name)' + print ' partition_name_to_spec(string part_name)' + print ' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)' + print ' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)' + print ' Index add_index(Index new_index, Table index_table)' + print ' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)' + print ' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)' + print ' Index get_index_by_name(string db_name, string tbl_name, string index_name)' + print ' get_indexes(string db_name, string tbl_name, i16 max_indexes)' + print ' get_index_names(string db_name, string tbl_name, i16 max_indexes)' + print ' bool update_table_column_statistics(ColumnStatistics stats_obj)' + print ' bool update_partition_column_statistics(ColumnStatistics stats_obj)' + print ' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)' + print ' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' + print ' TableStatsResult get_table_statistics_req(TableStatsRequest request)' + print ' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)' + print ' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)' + print ' bool set_aggr_stats_for(SetPartitionsStatsRequest request)' + print ' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' + print ' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)' + print ' void create_function(Function func)' + print ' void drop_function(string dbName, string funcName)' + print ' void alter_function(string dbName, string funcName, Function newFunc)' + print ' get_functions(string dbName, string pattern)' + print ' Function get_function(string dbName, string funcName)' + print ' GetAllFunctionsResponse get_all_functions()' + print ' bool create_role(Role role)' + print ' bool drop_role(string role_name)' + print ' get_role_names()' + print ' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)' + print ' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)' + print ' list_roles(string principal_name, PrincipalType principal_type)' + print ' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)' + print ' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)' + print ' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)' + print ' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)' + print ' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)' + print ' bool grant_privileges(PrivilegeBag privileges)' + print ' bool revoke_privileges(PrivilegeBag privileges)' + print ' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)' + print ' set_ugi(string user_name, group_names)' + print ' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)' + print ' i64 renew_delegation_token(string token_str_form)' + print ' void cancel_delegation_token(string token_str_form)' + print ' GetOpenTxnsResponse get_open_txns()' + print ' GetOpenTxnsInfoResponse get_open_txns_info()' + print ' OpenTxnsResponse open_txns(OpenTxnRequest rqst)' + print ' void abort_txn(AbortTxnRequest rqst)' + print ' void commit_txn(CommitTxnRequest rqst)' + print ' LockResponse lock(LockRequest rqst)' + print ' LockResponse check_lock(CheckLockRequest rqst)' + print ' void unlock(UnlockRequest rqst)' + print ' ShowLocksResponse show_locks(ShowLocksRequest rqst)' + print ' void heartbeat(HeartbeatRequest ids)' + print ' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)' + print ' void compact(CompactionRequest rqst)' + print ' ShowCompactResponse show_compact(ShowCompactRequest rqst)' + print ' void add_dynamic_partitions(AddDynamicPartitions rqst)' + print ' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)' + print ' CurrentNotificationEventId get_current_notificationEventId()' + print ' FireEventResponse fire_listener_event(FireEventRequest rqst)' + print ' void flushCache()' + print ' GetFileMetadataByExprResult get_file_metadata_by_expr(GetFileMetadataByExprRequest req)' + print ' GetFileMetadataResult get_file_metadata(GetFileMetadataRequest req)' + print ' PutFileMetadataResult put_file_metadata(PutFileMetadataRequest req)' + print ' ClearFileMetadataResult clear_file_metadata(ClearFileMetadataRequest req)' + print ' CacheFileMetadataResult cache_file_metadata(CacheFileMetadataRequest req)' + print '' sys.exit(0) pp = pprint.PrettyPrinter(indent = 2) @@ -178,7 +164,6 @@ host = 'localhost' port = 9090 uri = '' framed = False -ssl = False http = False argi = 1 @@ -207,17 +192,13 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': framed = True argi += 1 -if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': - ssl = True - argi += 1 - cmd = sys.argv[argi] args = sys.argv[argi+1:] if http: transport = THttpClient.THttpClient(host, port, uri) else: - socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port) + socket = TSocket.TSocket(host, port) if framed: transport = TTransport.TFramedTransport(socket) else: @@ -228,882 +209,804 @@ transport.open() if cmd == 'getMetaConf': if len(args) != 1: - print('getMetaConf requires 1 args') + print 'getMetaConf requires 1 args' sys.exit(1) pp.pprint(client.getMetaConf(args[0],)) elif cmd == 'setMetaConf': if len(args) != 2: - print('setMetaConf requires 2 args') + print 'setMetaConf requires 2 args' sys.exit(1) pp.pprint(client.setMetaConf(args[0],args[1],)) elif cmd == 'create_database': if len(args) != 1: - print('create_database requires 1 args') + print 'create_database requires 1 args' sys.exit(1) pp.pprint(client.create_database(eval(args[0]),)) elif cmd == 'get_database': if len(args) != 1: - print('get_database requires 1 args') + print 'get_database requires 1 args' sys.exit(1) pp.pprint(client.get_database(args[0],)) elif cmd == 'drop_database': if len(args) != 3: - print('drop_database requires 3 args') + print 'drop_database requires 3 args' sys.exit(1) pp.pprint(client.drop_database(args[0],eval(args[1]),eval(args[2]),)) elif cmd == 'get_databases': if len(args) != 1: - print('get_databases requires 1 args') + print 'get_databases requires 1 args' sys.exit(1) pp.pprint(client.get_databases(args[0],)) elif cmd == 'get_all_databases': if len(args) != 0: - print('get_all_databases requires 0 args') + print 'get_all_databases requires 0 args' sys.exit(1) pp.pprint(client.get_all_databases()) elif cmd == 'alter_database': if len(args) != 2: - print('alter_database requires 2 args') + print 'alter_database requires 2 args' sys.exit(1) pp.pprint(client.alter_database(args[0],eval(args[1]),)) elif cmd == 'get_type': if len(args) != 1: - print('get_type requires 1 args') + print 'get_type requires 1 args' sys.exit(1) pp.pprint(client.get_type(args[0],)) elif cmd == 'create_type': if len(args) != 1: - print('create_type requires 1 args') + print 'create_type requires 1 args' sys.exit(1) pp.pprint(client.create_type(eval(args[0]),)) elif cmd == 'drop_type': if len(args) != 1: - print('drop_type requires 1 args') + print 'drop_type requires 1 args' sys.exit(1) pp.pprint(client.drop_type(args[0],)) elif cmd == 'get_type_all': if len(args) != 1: - print('get_type_all requires 1 args') + print 'get_type_all requires 1 args' sys.exit(1) pp.pprint(client.get_type_all(args[0],)) elif cmd == 'get_fields': if len(args) != 2: - print('get_fields requires 2 args') + print 'get_fields requires 2 args' sys.exit(1) pp.pprint(client.get_fields(args[0],args[1],)) elif cmd == 'get_fields_with_environment_context': if len(args) != 3: - print('get_fields_with_environment_context requires 3 args') + print 'get_fields_with_environment_context requires 3 args' sys.exit(1) pp.pprint(client.get_fields_with_environment_context(args[0],args[1],eval(args[2]),)) elif cmd == 'get_schema': if len(args) != 2: - print('get_schema requires 2 args') + print 'get_schema requires 2 args' sys.exit(1) pp.pprint(client.get_schema(args[0],args[1],)) elif cmd == 'get_schema_with_environment_context': if len(args) != 3: - print('get_schema_with_environment_context requires 3 args') + print 'get_schema_with_environment_context requires 3 args' sys.exit(1) pp.pprint(client.get_schema_with_environment_context(args[0],args[1],eval(args[2]),)) elif cmd == 'create_table': if len(args) != 1: - print('create_table requires 1 args') + print 'create_table requires 1 args' sys.exit(1) pp.pprint(client.create_table(eval(args[0]),)) elif cmd == 'create_table_with_environment_context': if len(args) != 2: - print('create_table_with_environment_context requires 2 args') + print 'create_table_with_environment_context requires 2 args' sys.exit(1) pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),)) elif cmd == 'drop_table': if len(args) != 3: - print('drop_table requires 3 args') + print 'drop_table requires 3 args' sys.exit(1) pp.pprint(client.drop_table(args[0],args[1],eval(args[2]),)) elif cmd == 'drop_table_with_environment_context': if len(args) != 4: - print('drop_table_with_environment_context requires 4 args') + print 'drop_table_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.drop_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_tables': if len(args) != 2: - print('get_tables requires 2 args') + print 'get_tables requires 2 args' sys.exit(1) pp.pprint(client.get_tables(args[0],args[1],)) elif cmd == 'get_table_meta': if len(args) != 3: - print('get_table_meta requires 3 args') + print 'get_table_meta requires 3 args' sys.exit(1) pp.pprint(client.get_table_meta(args[0],args[1],eval(args[2]),)) elif cmd == 'get_all_tables': if len(args) != 1: - print('get_all_tables requires 1 args') + print 'get_all_tables requires 1 args' sys.exit(1) pp.pprint(client.get_all_tables(args[0],)) elif cmd == 'get_table': if len(args) != 2: - print('get_table requires 2 args') + print 'get_table requires 2 args' sys.exit(1) pp.pprint(client.get_table(args[0],args[1],)) elif cmd == 'get_table_objects_by_name': if len(args) != 2: - print('get_table_objects_by_name requires 2 args') + print 'get_table_objects_by_name requires 2 args' sys.exit(1) pp.pprint(client.get_table_objects_by_name(args[0],eval(args[1]),)) elif cmd == 'get_table_names_by_filter': if len(args) != 3: - print('get_table_names_by_filter requires 3 args') + print 'get_table_names_by_filter requires 3 args' sys.exit(1) pp.pprint(client.get_table_names_by_filter(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_table': if len(args) != 3: - print('alter_table requires 3 args') + print 'alter_table requires 3 args' sys.exit(1) pp.pprint(client.alter_table(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_table_with_environment_context': if len(args) != 4: - print('alter_table_with_environment_context requires 4 args') + print 'alter_table_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.alter_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'alter_table_with_cascade': if len(args) != 4: - print('alter_table_with_cascade requires 4 args') + print 'alter_table_with_cascade requires 4 args' sys.exit(1) pp.pprint(client.alter_table_with_cascade(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'add_partition': if len(args) != 1: - print('add_partition requires 1 args') + print 'add_partition requires 1 args' sys.exit(1) pp.pprint(client.add_partition(eval(args[0]),)) elif cmd == 'add_partition_with_environment_context': if len(args) != 2: - print('add_partition_with_environment_context requires 2 args') + print 'add_partition_with_environment_context requires 2 args' sys.exit(1) pp.pprint(client.add_partition_with_environment_context(eval(args[0]),eval(args[1]),)) elif cmd == 'add_partitions': if len(args) != 1: - print('add_partitions requires 1 args') + print 'add_partitions requires 1 args' sys.exit(1) pp.pprint(client.add_partitions(eval(args[0]),)) elif cmd == 'add_partitions_pspec': if len(args) != 1: - print('add_partitions_pspec requires 1 args') + print 'add_partitions_pspec requires 1 args' sys.exit(1) pp.pprint(client.add_partitions_pspec(eval(args[0]),)) elif cmd == 'append_partition': if len(args) != 3: - print('append_partition requires 3 args') + print 'append_partition requires 3 args' sys.exit(1) pp.pprint(client.append_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'add_partitions_req': if len(args) != 1: - print('add_partitions_req requires 1 args') + print 'add_partitions_req requires 1 args' sys.exit(1) pp.pprint(client.add_partitions_req(eval(args[0]),)) elif cmd == 'append_partition_with_environment_context': if len(args) != 4: - print('append_partition_with_environment_context requires 4 args') + print 'append_partition_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.append_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'append_partition_by_name': if len(args) != 3: - print('append_partition_by_name requires 3 args') + print 'append_partition_by_name requires 3 args' sys.exit(1) pp.pprint(client.append_partition_by_name(args[0],args[1],args[2],)) elif cmd == 'append_partition_by_name_with_environment_context': if len(args) != 4: - print('append_partition_by_name_with_environment_context requires 4 args') + print 'append_partition_by_name_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.append_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_partition': if len(args) != 4: - print('drop_partition requires 4 args') + print 'drop_partition requires 4 args' sys.exit(1) pp.pprint(client.drop_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'drop_partition_with_environment_context': if len(args) != 5: - print('drop_partition_with_environment_context requires 5 args') + print 'drop_partition_with_environment_context requires 5 args' sys.exit(1) pp.pprint(client.drop_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) elif cmd == 'drop_partition_by_name': if len(args) != 4: - print('drop_partition_by_name requires 4 args') + print 'drop_partition_by_name requires 4 args' sys.exit(1) pp.pprint(client.drop_partition_by_name(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_partition_by_name_with_environment_context': if len(args) != 5: - print('drop_partition_by_name_with_environment_context requires 5 args') + print 'drop_partition_by_name_with_environment_context requires 5 args' sys.exit(1) pp.pprint(client.drop_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) elif cmd == 'drop_partitions_req': if len(args) != 1: - print('drop_partitions_req requires 1 args') + print 'drop_partitions_req requires 1 args' sys.exit(1) pp.pprint(client.drop_partitions_req(eval(args[0]),)) elif cmd == 'get_partition': if len(args) != 3: - print('get_partition requires 3 args') + print 'get_partition requires 3 args' sys.exit(1) pp.pprint(client.get_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'exchange_partition': if len(args) != 5: - print('exchange_partition requires 5 args') + print 'exchange_partition requires 5 args' sys.exit(1) pp.pprint(client.exchange_partition(eval(args[0]),args[1],args[2],args[3],args[4],)) elif cmd == 'exchange_partitions': if len(args) != 5: - print('exchange_partitions requires 5 args') + print 'exchange_partitions requires 5 args' sys.exit(1) pp.pprint(client.exchange_partitions(eval(args[0]),args[1],args[2],args[3],args[4],)) elif cmd == 'get_partition_with_auth': if len(args) != 5: - print('get_partition_with_auth requires 5 args') + print 'get_partition_with_auth requires 5 args' sys.exit(1) pp.pprint(client.get_partition_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) elif cmd == 'get_partition_by_name': if len(args) != 3: - print('get_partition_by_name requires 3 args') + print 'get_partition_by_name requires 3 args' sys.exit(1) pp.pprint(client.get_partition_by_name(args[0],args[1],args[2],)) elif cmd == 'get_partitions': if len(args) != 3: - print('get_partitions requires 3 args') + print 'get_partitions requires 3 args' sys.exit(1) pp.pprint(client.get_partitions(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partitions_with_auth': if len(args) != 5: - print('get_partitions_with_auth requires 5 args') + print 'get_partitions_with_auth requires 5 args' sys.exit(1) pp.pprint(client.get_partitions_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) elif cmd == 'get_partitions_pspec': if len(args) != 3: - print('get_partitions_pspec requires 3 args') + print 'get_partitions_pspec requires 3 args' sys.exit(1) pp.pprint(client.get_partitions_pspec(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partition_names': if len(args) != 3: - print('get_partition_names requires 3 args') + print 'get_partition_names requires 3 args' sys.exit(1) pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partitions_ps': if len(args) != 4: - print('get_partitions_ps requires 4 args') + print 'get_partitions_ps requires 4 args' sys.exit(1) pp.pprint(client.get_partitions_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_partitions_ps_with_auth': if len(args) != 6: - print('get_partitions_ps_with_auth requires 6 args') + print 'get_partitions_ps_with_auth requires 6 args' sys.exit(1) pp.pprint(client.get_partitions_ps_with_auth(args[0],args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),)) elif cmd == 'get_partition_names_ps': if len(args) != 4: - print('get_partition_names_ps requires 4 args') + print 'get_partition_names_ps requires 4 args' sys.exit(1) pp.pprint(client.get_partition_names_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_partitions_by_filter': if len(args) != 4: - print('get_partitions_by_filter requires 4 args') + print 'get_partitions_by_filter requires 4 args' sys.exit(1) pp.pprint(client.get_partitions_by_filter(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_part_specs_by_filter': if len(args) != 4: - print('get_part_specs_by_filter requires 4 args') + print 'get_part_specs_by_filter requires 4 args' sys.exit(1) pp.pprint(client.get_part_specs_by_filter(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_partitions_by_expr': if len(args) != 1: - print('get_partitions_by_expr requires 1 args') + print 'get_partitions_by_expr requires 1 args' sys.exit(1) pp.pprint(client.get_partitions_by_expr(eval(args[0]),)) elif cmd == 'get_num_partitions_by_filter': if len(args) != 3: - print('get_num_partitions_by_filter requires 3 args') + print 'get_num_partitions_by_filter requires 3 args' sys.exit(1) pp.pprint(client.get_num_partitions_by_filter(args[0],args[1],args[2],)) elif cmd == 'get_partitions_by_names': if len(args) != 3: - print('get_partitions_by_names requires 3 args') + print 'get_partitions_by_names requires 3 args' sys.exit(1) pp.pprint(client.get_partitions_by_names(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partition': if len(args) != 3: - print('alter_partition requires 3 args') + print 'alter_partition requires 3 args' sys.exit(1) pp.pprint(client.alter_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partitions': if len(args) != 3: - print('alter_partitions requires 3 args') + print 'alter_partitions requires 3 args' sys.exit(1) pp.pprint(client.alter_partitions(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partition_with_environment_context': if len(args) != 4: - print('alter_partition_with_environment_context requires 4 args') + print 'alter_partition_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.alter_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'rename_partition': if len(args) != 4: - print('rename_partition requires 4 args') + print 'rename_partition requires 4 args' sys.exit(1) pp.pprint(client.rename_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'partition_name_has_valid_characters': if len(args) != 2: - print('partition_name_has_valid_characters requires 2 args') + print 'partition_name_has_valid_characters requires 2 args' sys.exit(1) pp.pprint(client.partition_name_has_valid_characters(eval(args[0]),eval(args[1]),)) elif cmd == 'get_config_value': if len(args) != 2: - print('get_config_value requires 2 args') + print 'get_config_value requires 2 args' sys.exit(1) pp.pprint(client.get_config_value(args[0],args[1],)) elif cmd == 'partition_name_to_vals': if len(args) != 1: - print('partition_name_to_vals requires 1 args') + print 'partition_name_to_vals requires 1 args' sys.exit(1) pp.pprint(client.partition_name_to_vals(args[0],)) elif cmd == 'partition_name_to_spec': if len(args) != 1: - print('partition_name_to_spec requires 1 args') + print 'partition_name_to_spec requires 1 args' sys.exit(1) pp.pprint(client.partition_name_to_spec(args[0],)) elif cmd == 'markPartitionForEvent': if len(args) != 4: - print('markPartitionForEvent requires 4 args') + print 'markPartitionForEvent requires 4 args' sys.exit(1) pp.pprint(client.markPartitionForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'isPartitionMarkedForEvent': if len(args) != 4: - print('isPartitionMarkedForEvent requires 4 args') + print 'isPartitionMarkedForEvent requires 4 args' sys.exit(1) pp.pprint(client.isPartitionMarkedForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'add_index': if len(args) != 2: - print('add_index requires 2 args') + print 'add_index requires 2 args' sys.exit(1) pp.pprint(client.add_index(eval(args[0]),eval(args[1]),)) elif cmd == 'alter_index': if len(args) != 4: - print('alter_index requires 4 args') + print 'alter_index requires 4 args' sys.exit(1) pp.pprint(client.alter_index(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_index_by_name': if len(args) != 4: - print('drop_index_by_name requires 4 args') + print 'drop_index_by_name requires 4 args' sys.exit(1) pp.pprint(client.drop_index_by_name(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_index_by_name': if len(args) != 3: - print('get_index_by_name requires 3 args') + print 'get_index_by_name requires 3 args' sys.exit(1) pp.pprint(client.get_index_by_name(args[0],args[1],args[2],)) elif cmd == 'get_indexes': if len(args) != 3: - print('get_indexes requires 3 args') + print 'get_indexes requires 3 args' sys.exit(1) pp.pprint(client.get_indexes(args[0],args[1],eval(args[2]),)) elif cmd == 'get_index_names': if len(args) != 3: - print('get_index_names requires 3 args') + print 'get_index_names requires 3 args' sys.exit(1) pp.pprint(client.get_index_names(args[0],args[1],eval(args[2]),)) elif cmd == 'update_table_column_statistics': if len(args) != 1: - print('update_table_column_statistics requires 1 args') + print 'update_table_column_statistics requires 1 args' sys.exit(1) pp.pprint(client.update_table_column_statistics(eval(args[0]),)) elif cmd == 'update_partition_column_statistics': if len(args) != 1: - print('update_partition_column_statistics requires 1 args') + print 'update_partition_column_statistics requires 1 args' sys.exit(1) pp.pprint(client.update_partition_column_statistics(eval(args[0]),)) elif cmd == 'get_table_column_statistics': if len(args) != 3: - print('get_table_column_statistics requires 3 args') + print 'get_table_column_statistics requires 3 args' sys.exit(1) pp.pprint(client.get_table_column_statistics(args[0],args[1],args[2],)) elif cmd == 'get_partition_column_statistics': if len(args) != 4: - print('get_partition_column_statistics requires 4 args') + print 'get_partition_column_statistics requires 4 args' sys.exit(1) pp.pprint(client.get_partition_column_statistics(args[0],args[1],args[2],args[3],)) elif cmd == 'get_table_statistics_req': if len(args) != 1: - print('get_table_statistics_req requires 1 args') + print 'get_table_statistics_req requires 1 args' sys.exit(1) pp.pprint(client.get_table_statistics_req(eval(args[0]),)) elif cmd == 'get_partitions_statistics_req': if len(args) != 1: - print('get_partitions_statistics_req requires 1 args') + print 'get_partitions_statistics_req requires 1 args' sys.exit(1) pp.pprint(client.get_partitions_statistics_req(eval(args[0]),)) elif cmd == 'get_aggr_stats_for': if len(args) != 1: - print('get_aggr_stats_for requires 1 args') + print 'get_aggr_stats_for requires 1 args' sys.exit(1) pp.pprint(client.get_aggr_stats_for(eval(args[0]),)) elif cmd == 'set_aggr_stats_for': if len(args) != 1: - print('set_aggr_stats_for requires 1 args') + print 'set_aggr_stats_for requires 1 args' sys.exit(1) pp.pprint(client.set_aggr_stats_for(eval(args[0]),)) elif cmd == 'delete_partition_column_statistics': if len(args) != 4: - print('delete_partition_column_statistics requires 4 args') + print 'delete_partition_column_statistics requires 4 args' sys.exit(1) pp.pprint(client.delete_partition_column_statistics(args[0],args[1],args[2],args[3],)) elif cmd == 'delete_table_column_statistics': if len(args) != 3: - print('delete_table_column_statistics requires 3 args') + print 'delete_table_column_statistics requires 3 args' sys.exit(1) pp.pprint(client.delete_table_column_statistics(args[0],args[1],args[2],)) elif cmd == 'create_function': if len(args) != 1: - print('create_function requires 1 args') + print 'create_function requires 1 args' sys.exit(1) pp.pprint(client.create_function(eval(args[0]),)) elif cmd == 'drop_function': if len(args) != 2: - print('drop_function requires 2 args') + print 'drop_function requires 2 args' sys.exit(1) pp.pprint(client.drop_function(args[0],args[1],)) elif cmd == 'alter_function': if len(args) != 3: - print('alter_function requires 3 args') + print 'alter_function requires 3 args' sys.exit(1) pp.pprint(client.alter_function(args[0],args[1],eval(args[2]),)) elif cmd == 'get_functions': if len(args) != 2: - print('get_functions requires 2 args') + print 'get_functions requires 2 args' sys.exit(1) pp.pprint(client.get_functions(args[0],args[1],)) elif cmd == 'get_function': if len(args) != 2: - print('get_function requires 2 args') + print 'get_function requires 2 args' sys.exit(1) pp.pprint(client.get_function(args[0],args[1],)) elif cmd == 'get_all_functions': if len(args) != 0: - print('get_all_functions requires 0 args') + print 'get_all_functions requires 0 args' sys.exit(1) pp.pprint(client.get_all_functions()) elif cmd == 'create_role': if len(args) != 1: - print('create_role requires 1 args') + print 'create_role requires 1 args' sys.exit(1) pp.pprint(client.create_role(eval(args[0]),)) elif cmd == 'drop_role': if len(args) != 1: - print('drop_role requires 1 args') + print 'drop_role requires 1 args' sys.exit(1) pp.pprint(client.drop_role(args[0],)) elif cmd == 'get_role_names': if len(args) != 0: - print('get_role_names requires 0 args') + print 'get_role_names requires 0 args' sys.exit(1) pp.pprint(client.get_role_names()) elif cmd == 'grant_role': if len(args) != 6: - print('grant_role requires 6 args') + print 'grant_role requires 6 args' sys.exit(1) pp.pprint(client.grant_role(args[0],args[1],eval(args[2]),args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'revoke_role': if len(args) != 3: - print('revoke_role requires 3 args') + print 'revoke_role requires 3 args' sys.exit(1) pp.pprint(client.revoke_role(args[0],args[1],eval(args[2]),)) elif cmd == 'list_roles': if len(args) != 2: - print('list_roles requires 2 args') + print 'list_roles requires 2 args' sys.exit(1) pp.pprint(client.list_roles(args[0],eval(args[1]),)) elif cmd == 'grant_revoke_role': if len(args) != 1: - print('grant_revoke_role requires 1 args') + print 'grant_revoke_role requires 1 args' sys.exit(1) pp.pprint(client.grant_revoke_role(eval(args[0]),)) elif cmd == 'get_principals_in_role': if len(args) != 1: - print('get_principals_in_role requires 1 args') + print 'get_principals_in_role requires 1 args' sys.exit(1) pp.pprint(client.get_principals_in_role(eval(args[0]),)) elif cmd == 'get_role_grants_for_principal': if len(args) != 1: - print('get_role_grants_for_principal requires 1 args') + print 'get_role_grants_for_principal requires 1 args' sys.exit(1) pp.pprint(client.get_role_grants_for_principal(eval(args[0]),)) elif cmd == 'get_privilege_set': if len(args) != 3: - print('get_privilege_set requires 3 args') + print 'get_privilege_set requires 3 args' sys.exit(1) pp.pprint(client.get_privilege_set(eval(args[0]),args[1],eval(args[2]),)) elif cmd == 'list_privileges': if len(args) != 3: - print('list_privileges requires 3 args') + print 'list_privileges requires 3 args' sys.exit(1) pp.pprint(client.list_privileges(args[0],eval(args[1]),eval(args[2]),)) elif cmd == 'grant_privileges': if len(args) != 1: - print('grant_privileges requires 1 args') + print 'grant_privileges requires 1 args' sys.exit(1) pp.pprint(client.grant_privileges(eval(args[0]),)) elif cmd == 'revoke_privileges': if len(args) != 1: - print('revoke_privileges requires 1 args') + print 'revoke_privileges requires 1 args' sys.exit(1) pp.pprint(client.revoke_privileges(eval(args[0]),)) elif cmd == 'grant_revoke_privileges': if len(args) != 1: - print('grant_revoke_privileges requires 1 args') + print 'grant_revoke_privileges requires 1 args' sys.exit(1) pp.pprint(client.grant_revoke_privileges(eval(args[0]),)) elif cmd == 'set_ugi': if len(args) != 2: - print('set_ugi requires 2 args') + print 'set_ugi requires 2 args' sys.exit(1) pp.pprint(client.set_ugi(args[0],eval(args[1]),)) elif cmd == 'get_delegation_token': if len(args) != 2: - print('get_delegation_token requires 2 args') + print 'get_delegation_token requires 2 args' sys.exit(1) pp.pprint(client.get_delegation_token(args[0],args[1],)) elif cmd == 'renew_delegation_token': if len(args) != 1: - print('renew_delegation_token requires 1 args') + print 'renew_delegation_token requires 1 args' sys.exit(1) pp.pprint(client.renew_delegation_token(args[0],)) elif cmd == 'cancel_delegation_token': if len(args) != 1: - print('cancel_delegation_token requires 1 args') + print 'cancel_delegation_token requires 1 args' sys.exit(1) pp.pprint(client.cancel_delegation_token(args[0],)) elif cmd == 'get_open_txns': if len(args) != 0: - print('get_open_txns requires 0 args') + print 'get_open_txns requires 0 args' sys.exit(1) pp.pprint(client.get_open_txns()) elif cmd == 'get_open_txns_info': if len(args) != 0: - print('get_open_txns_info requires 0 args') + print 'get_open_txns_info requires 0 args' sys.exit(1) pp.pprint(client.get_open_txns_info()) elif cmd == 'open_txns': if len(args) != 1: - print('open_txns requires 1 args') + print 'open_txns requires 1 args' sys.exit(1) pp.pprint(client.open_txns(eval(args[0]),)) elif cmd == 'abort_txn': if len(args) != 1: - print('abort_txn requires 1 args') + print 'abort_txn requires 1 args' sys.exit(1) pp.pprint(client.abort_txn(eval(args[0]),)) elif cmd == 'commit_txn': if len(args) != 1: - print('commit_txn requires 1 args') + print 'commit_txn requires 1 args' sys.exit(1) pp.pprint(client.commit_txn(eval(args[0]),)) elif cmd == 'lock': if len(args) != 1: - print('lock requires 1 args') + print 'lock requires 1 args' sys.exit(1) pp.pprint(client.lock(eval(args[0]),)) elif cmd == 'check_lock': if len(args) != 1: - print('check_lock requires 1 args') + print 'check_lock requires 1 args' sys.exit(1) pp.pprint(client.check_lock(eval(args[0]),)) elif cmd == 'unlock': if len(args) != 1: - print('unlock requires 1 args') + print 'unlock requires 1 args' sys.exit(1) pp.pprint(client.unlock(eval(args[0]),)) elif cmd == 'show_locks': if len(args) != 1: - print('show_locks requires 1 args') + print 'show_locks requires 1 args' sys.exit(1) pp.pprint(client.show_locks(eval(args[0]),)) elif cmd == 'heartbeat': if len(args) != 1: - print('heartbeat requires 1 args') + print 'heartbeat requires 1 args' sys.exit(1) pp.pprint(client.heartbeat(eval(args[0]),)) elif cmd == 'heartbeat_txn_range': if len(args) != 1: - print('heartbeat_txn_range requires 1 args') + print 'heartbeat_txn_range requires 1 args' sys.exit(1) pp.pprint(client.heartbeat_txn_range(eval(args[0]),)) elif cmd == 'compact': if len(args) != 1: - print('compact requires 1 args') + print 'compact requires 1 args' sys.exit(1) pp.pprint(client.compact(eval(args[0]),)) elif cmd == 'show_compact': if len(args) != 1: - print('show_compact requires 1 args') + print 'show_compact requires 1 args' sys.exit(1) pp.pprint(client.show_compact(eval(args[0]),)) elif cmd == 'add_dynamic_partitions': if len(args) != 1: - print('add_dynamic_partitions requires 1 args') + print 'add_dynamic_partitions requires 1 args' sys.exit(1) pp.pprint(client.add_dynamic_partitions(eval(args[0]),)) elif cmd == 'get_next_notification': if len(args) != 1: - print('get_next_notification requires 1 args') + print 'get_next_notification requires 1 args' sys.exit(1) pp.pprint(client.get_next_notification(eval(args[0]),)) elif cmd == 'get_current_notificationEventId': if len(args) != 0: - print('get_current_notificationEventId requires 0 args') + print 'get_current_notificationEventId requires 0 args' sys.exit(1) pp.pprint(client.get_current_notificationEventId()) elif cmd == 'fire_listener_event': if len(args) != 1: - print('fire_listener_event requires 1 args') + print 'fire_listener_event requires 1 args' sys.exit(1) pp.pprint(client.fire_listener_event(eval(args[0]),)) elif cmd == 'flushCache': if len(args) != 0: - print('flushCache requires 0 args') + print 'flushCache requires 0 args' sys.exit(1) pp.pprint(client.flushCache()) elif cmd == 'get_file_metadata_by_expr': if len(args) != 1: - print('get_file_metadata_by_expr requires 1 args') + print 'get_file_metadata_by_expr requires 1 args' sys.exit(1) pp.pprint(client.get_file_metadata_by_expr(eval(args[0]),)) elif cmd == 'get_file_metadata': if len(args) != 1: - print('get_file_metadata requires 1 args') + print 'get_file_metadata requires 1 args' sys.exit(1) pp.pprint(client.get_file_metadata(eval(args[0]),)) elif cmd == 'put_file_metadata': if len(args) != 1: - print('put_file_metadata requires 1 args') + print 'put_file_metadata requires 1 args' sys.exit(1) pp.pprint(client.put_file_metadata(eval(args[0]),)) elif cmd == 'clear_file_metadata': if len(args) != 1: - print('clear_file_metadata requires 1 args') + print 'clear_file_metadata requires 1 args' sys.exit(1) pp.pprint(client.clear_file_metadata(eval(args[0]),)) elif cmd == 'cache_file_metadata': if len(args) != 1: - print('cache_file_metadata requires 1 args') + print 'cache_file_metadata requires 1 args' sys.exit(1) pp.pprint(client.cache_file_metadata(eval(args[0]),)) -elif cmd == 'getName': - if len(args) != 0: - print('getName requires 0 args') - sys.exit(1) - pp.pprint(client.getName()) - -elif cmd == 'getVersion': - if len(args) != 0: - print('getVersion requires 0 args') - sys.exit(1) - pp.pprint(client.getVersion()) - -elif cmd == 'getStatus': - if len(args) != 0: - print('getStatus requires 0 args') - sys.exit(1) - pp.pprint(client.getStatus()) - -elif cmd == 'getStatusDetails': - if len(args) != 0: - print('getStatusDetails requires 0 args') - sys.exit(1) - pp.pprint(client.getStatusDetails()) - -elif cmd == 'getCounters': - if len(args) != 0: - print('getCounters requires 0 args') - sys.exit(1) - pp.pprint(client.getCounters()) - -elif cmd == 'getCounter': - if len(args) != 1: - print('getCounter requires 1 args') - sys.exit(1) - pp.pprint(client.getCounter(args[0],)) - -elif cmd == 'setOption': - if len(args) != 2: - print('setOption requires 2 args') - sys.exit(1) - pp.pprint(client.setOption(args[0],args[1],)) - -elif cmd == 'getOption': - if len(args) != 1: - print('getOption requires 1 args') - sys.exit(1) - pp.pprint(client.getOption(args[0],)) - -elif cmd == 'getOptions': - if len(args) != 0: - print('getOptions requires 0 args') - sys.exit(1) - pp.pprint(client.getOptions()) - -elif cmd == 'getCpuProfile': - if len(args) != 1: - print('getCpuProfile requires 1 args') - sys.exit(1) - pp.pprint(client.getCpuProfile(eval(args[0]),)) - -elif cmd == 'aliveSince': - if len(args) != 0: - print('aliveSince requires 0 args') - sys.exit(1) - pp.pprint(client.aliveSince()) - -elif cmd == 'reinitialize': - if len(args) != 0: - print('reinitialize requires 0 args') - sys.exit(1) - pp.pprint(client.reinitialize()) - -elif cmd == 'shutdown': - if len(args) != 0: - print('shutdown requires 0 args') - sys.exit(1) - pp.pprint(client.shutdown()) - else: - print('Unrecognized method %s' % cmd) + print 'Unrecognized method %s' % cmd sys.exit(1) transport.close() diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 26d8a02..0dde06b 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -8,7 +8,6 @@ from thrift.Thrift import TType, TMessageType, TException, TApplicationException import fb303.FacebookService -import logging from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport @@ -68,7 +67,7 @@ def get_databases(self, pattern): """ pass - def get_all_databases(self): + def get_all_databases(self, ): pass def alter_database(self, dbname, db): @@ -805,7 +804,7 @@ def get_function(self, dbName, funcName): """ pass - def get_all_functions(self): + def get_all_functions(self, ): pass def create_role(self, role): @@ -822,7 +821,7 @@ def drop_role(self, role_name): """ pass - def get_role_names(self): + def get_role_names(self, ): pass def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option): @@ -944,10 +943,10 @@ def cancel_delegation_token(self, token_str_form): """ pass - def get_open_txns(self): + def get_open_txns(self, ): pass - def get_open_txns_info(self): + def get_open_txns_info(self, ): pass def open_txns(self, rqst): @@ -1041,7 +1040,7 @@ def get_next_notification(self, rqst): """ pass - def get_current_notificationEventId(self): + def get_current_notificationEventId(self, ): pass def fire_listener_event(self, rqst): @@ -1051,7 +1050,7 @@ def fire_listener_event(self, rqst): """ pass - def flushCache(self): + def flushCache(self, ): pass def get_file_metadata_by_expr(self, req): @@ -1113,22 +1112,21 @@ def send_getMetaConf(self, key): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getMetaConf(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getMetaConf(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getMetaConf_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaConf failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "getMetaConf failed: unknown result"); def setMetaConf(self, key, value): """ @@ -1148,17 +1146,16 @@ def send_setMetaConf(self, key, value): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_setMetaConf(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_setMetaConf(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = setMetaConf_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return @@ -1179,17 +1176,16 @@ def send_create_database(self, database): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1214,24 +1210,23 @@ def send_get_database(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result"); def drop_database(self, name, deleteData, cascade): """ @@ -1253,17 +1248,16 @@ def send_drop_database(self, name, deleteData, cascade): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1288,50 +1282,48 @@ def send_get_databases(self, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_databases(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_databases(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_databases_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result"); - def get_all_databases(self): + def get_all_databases(self, ): self.send_get_all_databases() return self.recv_get_all_databases() - def send_get_all_databases(self): + def send_get_all_databases(self, ): self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid) args = get_all_databases_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_databases(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_databases(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_databases_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result"); def alter_database(self, dbname, db): """ @@ -1351,17 +1343,16 @@ def send_alter_database(self, dbname, db): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1384,24 +1375,23 @@ def send_get_type(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type failed: unknown result"); def create_type(self, type): """ @@ -1419,17 +1409,16 @@ def send_create_type(self, type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1438,7 +1427,7 @@ def recv_create_type(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result"); def drop_type(self, type): """ @@ -1456,24 +1445,23 @@ def send_drop_type(self, type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_type failed: unknown result"); def get_type_all(self, name): """ @@ -1491,22 +1479,21 @@ def send_get_type_all(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_type_all(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_type_all(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_type_all_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_type_all failed: unknown result"); def get_fields(self, db_name, table_name): """ @@ -1526,17 +1513,16 @@ def send_get_fields(self, db_name, table_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_fields(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_fields(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_fields_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1545,7 +1531,7 @@ def recv_get_fields(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields failed: unknown result"); def get_fields_with_environment_context(self, db_name, table_name, environment_context): """ @@ -1567,17 +1553,16 @@ def send_get_fields_with_environment_context(self, db_name, table_name, environm self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_fields_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_fields_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_fields_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1586,7 +1571,7 @@ def recv_get_fields_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_fields_with_environment_context failed: unknown result"); def get_schema(self, db_name, table_name): """ @@ -1606,17 +1591,16 @@ def send_get_schema(self, db_name, table_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_schema(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_schema(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_schema_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1625,7 +1609,7 @@ def recv_get_schema(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema failed: unknown result"); def get_schema_with_environment_context(self, db_name, table_name, environment_context): """ @@ -1647,17 +1631,16 @@ def send_get_schema_with_environment_context(self, db_name, table_name, environm self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_schema_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_schema_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_schema_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1666,7 +1649,7 @@ def recv_get_schema_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); def create_table(self, tbl): """ @@ -1684,17 +1667,16 @@ def send_create_table(self, tbl): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1723,17 +1705,16 @@ def send_create_table_with_environment_context(self, tbl, environment_context): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1764,17 +1745,16 @@ def send_drop_table(self, dbname, name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -1803,17 +1783,16 @@ def send_drop_table_with_environment_context(self, dbname, name, deleteData, env self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -1838,22 +1817,21 @@ def send_get_tables(self, db_name, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_tables(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_tables(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_tables_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result"); def get_table_meta(self, db_patterns, tbl_patterns, tbl_types): """ @@ -1875,22 +1853,21 @@ def send_get_table_meta(self, db_patterns, tbl_patterns, tbl_types): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_meta(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_meta(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_meta_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_meta failed: unknown result"); def get_all_tables(self, db_name): """ @@ -1908,22 +1885,21 @@ def send_get_all_tables(self, db_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_tables(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_tables(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_tables_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result"); def get_table(self, dbname, tbl_name): """ @@ -1943,24 +1919,23 @@ def send_get_table(self, dbname, tbl_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table failed: unknown result"); def get_table_objects_by_name(self, dbname, tbl_names): """ @@ -1980,17 +1955,16 @@ def send_get_table_objects_by_name(self, dbname, tbl_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_objects_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_objects_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_objects_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1999,7 +1973,7 @@ def recv_get_table_objects_by_name(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_objects_by_name failed: unknown result"); def get_table_names_by_filter(self, dbname, filter, max_tables): """ @@ -2021,17 +1995,16 @@ def send_get_table_names_by_filter(self, dbname, filter, max_tables): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_names_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_names_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_names_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2040,7 +2013,7 @@ def recv_get_table_names_by_filter(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_names_by_filter failed: unknown result"); def alter_table(self, dbname, tbl_name, new_tbl): """ @@ -2062,17 +2035,16 @@ def send_alter_table(self, dbname, tbl_name, new_tbl): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -2101,17 +2073,16 @@ def send_alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, e self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -2140,17 +2111,16 @@ def send_alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table_with_cascade(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table_with_cascade(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_with_cascade_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -2173,17 +2143,16 @@ def send_add_partition(self, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2192,7 +2161,7 @@ def recv_add_partition(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition failed: unknown result"); def add_partition_with_environment_context(self, new_part, environment_context): """ @@ -2212,17 +2181,16 @@ def send_add_partition_with_environment_context(self, new_part, environment_cont self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2231,7 +2199,7 @@ def recv_add_partition_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partition_with_environment_context failed: unknown result"); def add_partitions(self, new_parts): """ @@ -2249,17 +2217,16 @@ def send_add_partitions(self, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2268,7 +2235,7 @@ def recv_add_partitions(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions failed: unknown result"); def add_partitions_pspec(self, new_parts): """ @@ -2286,17 +2253,16 @@ def send_add_partitions_pspec(self, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions_pspec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions_pspec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_pspec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2305,7 +2271,7 @@ def recv_add_partitions_pspec(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_pspec failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_pspec failed: unknown result"); def append_partition(self, db_name, tbl_name, part_vals): """ @@ -2327,17 +2293,16 @@ def send_append_partition(self, db_name, tbl_name, part_vals): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2346,7 +2311,7 @@ def recv_append_partition(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition failed: unknown result"); def add_partitions_req(self, request): """ @@ -2364,17 +2329,16 @@ def send_add_partitions_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2383,7 +2347,7 @@ def recv_add_partitions_req(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_req failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_partitions_req failed: unknown result"); def append_partition_with_environment_context(self, db_name, tbl_name, part_vals, environment_context): """ @@ -2407,17 +2371,16 @@ def send_append_partition_with_environment_context(self, db_name, tbl_name, part self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2426,7 +2389,7 @@ def recv_append_partition_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_with_environment_context failed: unknown result"); def append_partition_by_name(self, db_name, tbl_name, part_name): """ @@ -2448,17 +2411,16 @@ def send_append_partition_by_name(self, db_name, tbl_name, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2467,7 +2429,7 @@ def recv_append_partition_by_name(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name failed: unknown result"); def append_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, environment_context): """ @@ -2491,17 +2453,16 @@ def send_append_partition_by_name_with_environment_context(self, db_name, tbl_na self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_by_name_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_by_name_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_by_name_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2510,7 +2471,7 @@ def recv_append_partition_by_name_with_environment_context(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result"); def drop_partition(self, db_name, tbl_name, part_vals, deleteData): """ @@ -2534,24 +2495,23 @@ def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): """ @@ -2577,24 +2537,23 @@ def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_v self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result"); def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): """ @@ -2618,24 +2577,23 @@ def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name failed: unknown result"); def drop_partition_by_name_with_environment_context(self, db_name, tbl_name, part_name, deleteData, environment_context): """ @@ -2661,24 +2619,23 @@ def send_drop_partition_by_name_with_environment_context(self, db_name, tbl_name self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_by_name_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_by_name_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_by_name_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_by_name_with_environment_context failed: unknown result"); def drop_partitions_req(self, req): """ @@ -2696,24 +2653,23 @@ def send_drop_partitions_req(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partitions_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partitions_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partitions_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions_req failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions_req failed: unknown result"); def get_partition(self, db_name, tbl_name, part_vals): """ @@ -2735,24 +2691,23 @@ def send_get_partition(self, db_name, tbl_name, part_vals): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition failed: unknown result"); def exchange_partition(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): """ @@ -2778,17 +2733,16 @@ def send_exchange_partition(self, partitionSpecs, source_db, source_table_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_exchange_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_exchange_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = exchange_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2799,7 +2753,7 @@ def recv_exchange_partition(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partition failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partition failed: unknown result"); def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): """ @@ -2825,17 +2779,16 @@ def send_exchange_partitions(self, partitionSpecs, source_db, source_table_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_exchange_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_exchange_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = exchange_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2846,7 +2799,7 @@ def recv_exchange_partitions(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result"); def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names): """ @@ -2872,24 +2825,23 @@ def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_with_auth failed: unknown result"); def get_partition_by_name(self, db_name, tbl_name, part_name): """ @@ -2911,24 +2863,23 @@ def send_get_partition_by_name(self, db_name, tbl_name, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_by_name failed: unknown result"); def get_partitions(self, db_name, tbl_name, max_parts): """ @@ -2950,24 +2901,23 @@ def send_get_partitions(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions failed: unknown result"); def get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, group_names): """ @@ -2993,24 +2943,23 @@ def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_with_auth failed: unknown result"); def get_partitions_pspec(self, db_name, tbl_name, max_parts): """ @@ -3032,24 +2981,23 @@ def send_get_partitions_pspec(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_pspec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_pspec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_pspec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_pspec failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_pspec failed: unknown result"); def get_partition_names(self, db_name, tbl_name, max_parts): """ @@ -3071,22 +3019,21 @@ def send_get_partition_names(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): """ @@ -3110,24 +3057,23 @@ def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_ps(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_ps(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_ps_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps failed: unknown result"); def get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_parts, user_name, group_names): """ @@ -3155,24 +3101,23 @@ def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_par self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_ps_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_ps_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_ps_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result"); def get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): """ @@ -3196,24 +3141,23 @@ def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_names_ps(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_names_ps(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_names_ps_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_ps failed: unknown result"); def get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): """ @@ -3237,24 +3181,23 @@ def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_filter failed: unknown result"); def get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): """ @@ -3278,24 +3221,23 @@ def send_get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_part_specs_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_part_specs_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_part_specs_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_part_specs_by_filter failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_part_specs_by_filter failed: unknown result"); def get_partitions_by_expr(self, req): """ @@ -3313,24 +3255,23 @@ def send_get_partitions_by_expr(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_expr(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_expr(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_expr_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result"); def get_num_partitions_by_filter(self, db_name, tbl_name, filter): """ @@ -3352,24 +3293,23 @@ def send_get_num_partitions_by_filter(self, db_name, tbl_name, filter): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_num_partitions_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_num_partitions_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_num_partitions_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result"); def get_partitions_by_names(self, db_name, tbl_name, names): """ @@ -3391,24 +3331,23 @@ def send_get_partitions_by_names(self, db_name, tbl_name, names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_names failed: unknown result"); def alter_partition(self, db_name, tbl_name, new_part): """ @@ -3430,17 +3369,16 @@ def send_alter_partition(self, db_name, tbl_name, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3467,17 +3405,16 @@ def send_alter_partitions(self, db_name, tbl_name, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3506,17 +3443,16 @@ def send_alter_partition_with_environment_context(self, db_name, tbl_name, new_p self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3545,17 +3481,16 @@ def send_rename_partition(self, db_name, tbl_name, part_vals, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_rename_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_rename_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = rename_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3580,22 +3515,21 @@ def send_partition_name_has_valid_characters(self, part_vals, throw_exception): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_has_valid_characters(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_has_valid_characters(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_has_valid_characters_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_has_valid_characters failed: unknown result"); def get_config_value(self, name, defaultValue): """ @@ -3615,22 +3549,21 @@ def send_get_config_value(self, name, defaultValue): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_config_value(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_config_value(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_config_value_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_config_value failed: unknown result"); def partition_name_to_vals(self, part_name): """ @@ -3648,22 +3581,21 @@ def send_partition_name_to_vals(self, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_to_vals(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_to_vals(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_to_vals_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_vals failed: unknown result"); def partition_name_to_spec(self, part_name): """ @@ -3681,22 +3613,21 @@ def send_partition_name_to_spec(self, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_to_spec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_to_spec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_to_spec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "partition_name_to_spec failed: unknown result"); def markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType): """ @@ -3720,17 +3651,16 @@ def send_markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_markPartitionForEvent(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_markPartitionForEvent(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = markPartitionForEvent_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3767,17 +3697,16 @@ def send_isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_isPartitionMarkedForEvent(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_isPartitionMarkedForEvent(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = isPartitionMarkedForEvent_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3792,7 +3721,7 @@ def recv_isPartitionMarkedForEvent(self): raise result.o5 if result.o6 is not None: raise result.o6 - raise TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "isPartitionMarkedForEvent failed: unknown result"); def add_index(self, new_index, index_table): """ @@ -3812,17 +3741,16 @@ def send_add_index(self, new_index, index_table): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_index(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_index(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_index_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3831,7 +3759,7 @@ def recv_add_index(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_index failed: unknown result"); def alter_index(self, dbname, base_tbl_name, idx_name, new_idx): """ @@ -3855,17 +3783,16 @@ def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_index(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_index(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_index_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3894,24 +3821,23 @@ def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_index_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_index_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_index_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_index_by_name failed: unknown result"); def get_index_by_name(self, db_name, tbl_name, index_name): """ @@ -3933,24 +3859,23 @@ def send_get_index_by_name(self, db_name, tbl_name, index_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_index_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_index_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_index_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_by_name failed: unknown result"); def get_indexes(self, db_name, tbl_name, max_indexes): """ @@ -3972,24 +3897,23 @@ def send_get_indexes(self, db_name, tbl_name, max_indexes): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_indexes(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_indexes(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_indexes_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_indexes failed: unknown result"); def get_index_names(self, db_name, tbl_name, max_indexes): """ @@ -4011,22 +3935,21 @@ def send_get_index_names(self, db_name, tbl_name, max_indexes): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_index_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_index_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_index_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result"); def update_table_column_statistics(self, stats_obj): """ @@ -4044,17 +3967,16 @@ def send_update_table_column_statistics(self, stats_obj): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_update_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_update_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = update_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4065,7 +3987,7 @@ def recv_update_table_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "update_table_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "update_table_column_statistics failed: unknown result"); def update_partition_column_statistics(self, stats_obj): """ @@ -4083,17 +4005,16 @@ def send_update_partition_column_statistics(self, stats_obj): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_update_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_update_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = update_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4104,7 +4025,7 @@ def recv_update_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "update_partition_column_statistics failed: unknown result"); def get_table_column_statistics(self, db_name, tbl_name, col_name): """ @@ -4126,17 +4047,16 @@ def send_get_table_column_statistics(self, db_name, tbl_name, col_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4147,7 +4067,7 @@ def recv_get_table_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_column_statistics failed: unknown result"); def get_partition_column_statistics(self, db_name, tbl_name, part_name, col_name): """ @@ -4171,17 +4091,16 @@ def send_get_partition_column_statistics(self, db_name, tbl_name, part_name, col self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4192,7 +4111,7 @@ def recv_get_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_column_statistics failed: unknown result"); def get_table_statistics_req(self, request): """ @@ -4210,24 +4129,23 @@ def send_get_table_statistics_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_statistics_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_statistics_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_statistics_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_statistics_req failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_table_statistics_req failed: unknown result"); def get_partitions_statistics_req(self, request): """ @@ -4245,24 +4163,23 @@ def send_get_partitions_statistics_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_statistics_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_statistics_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_statistics_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result"); def get_aggr_stats_for(self, request): """ @@ -4280,24 +4197,23 @@ def send_get_aggr_stats_for(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_aggr_stats_for(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_aggr_stats_for(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_aggr_stats_for_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result"); def set_aggr_stats_for(self, request): """ @@ -4315,17 +4231,16 @@ def send_set_aggr_stats_for(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_set_aggr_stats_for(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_set_aggr_stats_for(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = set_aggr_stats_for_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4336,7 +4251,7 @@ def recv_set_aggr_stats_for(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "set_aggr_stats_for failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "set_aggr_stats_for failed: unknown result"); def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name): """ @@ -4360,17 +4275,16 @@ def send_delete_partition_column_statistics(self, db_name, tbl_name, part_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_delete_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_delete_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = delete_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4381,7 +4295,7 @@ def recv_delete_partition_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_partition_column_statistics failed: unknown result"); def delete_table_column_statistics(self, db_name, tbl_name, col_name): """ @@ -4403,17 +4317,16 @@ def send_delete_table_column_statistics(self, db_name, tbl_name, col_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_delete_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_delete_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = delete_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4424,7 +4337,7 @@ def recv_delete_table_column_statistics(self): raise result.o3 if result.o4 is not None: raise result.o4 - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_table_column_statistics failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_table_column_statistics failed: unknown result"); def create_function(self, func): """ @@ -4442,17 +4355,16 @@ def send_create_function(self, func): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -4481,17 +4393,16 @@ def send_drop_function(self, dbName, funcName): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -4518,17 +4429,16 @@ def send_alter_function(self, dbName, funcName, newFunc): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -4553,22 +4463,21 @@ def send_get_functions(self, dbName, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_functions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_functions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_functions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_functions failed: unknown result"); def get_function(self, dbName, funcName): """ @@ -4588,52 +4497,50 @@ def send_get_function(self, dbName, funcName): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function failed: unknown result"); - def get_all_functions(self): + def get_all_functions(self, ): self.send_get_all_functions() return self.recv_get_all_functions() - def send_get_all_functions(self): + def send_get_all_functions(self, ): self._oprot.writeMessageBegin('get_all_functions', TMessageType.CALL, self._seqid) args = get_all_functions_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_functions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_functions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_functions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_functions failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_all_functions failed: unknown result"); def create_role(self, role): """ @@ -4651,22 +4558,21 @@ def send_create_role(self, role): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_role failed: unknown result"); def drop_role(self, role_name): """ @@ -4684,50 +4590,48 @@ def send_drop_role(self, role_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result"); - def get_role_names(self): + def get_role_names(self, ): self.send_get_role_names() return self.recv_get_role_names() - def send_get_role_names(self): + def send_get_role_names(self, ): self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid) args = get_role_names_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_role_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_role_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_role_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_names failed: unknown result"); def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option): """ @@ -4755,22 +4659,21 @@ def send_grant_role(self, role_name, principal_name, principal_type, grantor, gr self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_role failed: unknown result"); def revoke_role(self, role_name, principal_name, principal_type): """ @@ -4792,22 +4695,21 @@ def send_revoke_role(self, role_name, principal_name, principal_type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_revoke_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_revoke_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = revoke_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_role failed: unknown result"); def list_roles(self, principal_name, principal_type): """ @@ -4827,22 +4729,21 @@ def send_list_roles(self, principal_name, principal_type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_list_roles(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_list_roles(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = list_roles_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); def grant_revoke_role(self, request): """ @@ -4860,22 +4761,21 @@ def send_grant_revoke_role(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_revoke_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_revoke_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_revoke_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_role failed: unknown result"); def get_principals_in_role(self, request): """ @@ -4893,22 +4793,21 @@ def send_get_principals_in_role(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_principals_in_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_principals_in_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_principals_in_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result"); def get_role_grants_for_principal(self, request): """ @@ -4926,22 +4825,21 @@ def send_get_role_grants_for_principal(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_role_grants_for_principal(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_role_grants_for_principal(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_role_grants_for_principal_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); def get_privilege_set(self, hiveObject, user_name, group_names): """ @@ -4963,22 +4861,21 @@ def send_get_privilege_set(self, hiveObject, user_name, group_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_privilege_set(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_privilege_set(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_privilege_set_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_privilege_set failed: unknown result"); def list_privileges(self, principal_name, principal_type, hiveObject): """ @@ -5000,22 +4897,21 @@ def send_list_privileges(self, principal_name, principal_type, hiveObject): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_list_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_list_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = list_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "list_privileges failed: unknown result"); def grant_privileges(self, privileges): """ @@ -5033,22 +4929,21 @@ def send_grant_privileges(self, privileges): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_privileges failed: unknown result"); def revoke_privileges(self, privileges): """ @@ -5066,22 +4961,21 @@ def send_revoke_privileges(self, privileges): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_revoke_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_revoke_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = revoke_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "revoke_privileges failed: unknown result"); def grant_revoke_privileges(self, request): """ @@ -5099,22 +4993,21 @@ def send_grant_revoke_privileges(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_revoke_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_revoke_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_revoke_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_privileges failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "grant_revoke_privileges failed: unknown result"); def set_ugi(self, user_name, group_names): """ @@ -5134,22 +5027,21 @@ def send_set_ugi(self, user_name, group_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_set_ugi(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_set_ugi(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = set_ugi_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "set_ugi failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "set_ugi failed: unknown result"); def get_delegation_token(self, token_owner, renewer_kerberos_principal_name): """ @@ -5169,22 +5061,21 @@ def send_get_delegation_token(self, token_owner, renewer_kerberos_principal_name self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_delegation_token failed: unknown result"); def renew_delegation_token(self, token_str_form): """ @@ -5202,22 +5093,21 @@ def send_renew_delegation_token(self, token_str_form): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_renew_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_renew_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = renew_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 - raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "renew_delegation_token failed: unknown result"); def cancel_delegation_token(self, token_str_form): """ @@ -5235,72 +5125,69 @@ def send_cancel_delegation_token(self, token_str_form): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_cancel_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_cancel_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = cancel_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return - def get_open_txns(self): + def get_open_txns(self, ): self.send_get_open_txns() return self.recv_get_open_txns() - def send_get_open_txns(self): + def send_get_open_txns(self, ): self._oprot.writeMessageBegin('get_open_txns', TMessageType.CALL, self._seqid) args = get_open_txns_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_open_txns(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_open_txns(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_open_txns_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns failed: unknown result"); - def get_open_txns_info(self): + def get_open_txns_info(self, ): self.send_get_open_txns_info() return self.recv_get_open_txns_info() - def send_get_open_txns_info(self): + def send_get_open_txns_info(self, ): self._oprot.writeMessageBegin('get_open_txns_info', TMessageType.CALL, self._seqid) args = get_open_txns_info_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_open_txns_info(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_open_txns_info(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_open_txns_info_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns_info failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns_info failed: unknown result"); def open_txns(self, rqst): """ @@ -5318,20 +5205,19 @@ def send_open_txns(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_open_txns(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_open_txns(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = open_txns_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "open_txns failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "open_txns failed: unknown result"); def abort_txn(self, rqst): """ @@ -5349,17 +5235,16 @@ def send_abort_txn(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_abort_txn(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_abort_txn(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = abort_txn_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return @@ -5380,17 +5265,16 @@ def send_commit_txn(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_commit_txn(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_commit_txn(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = commit_txn_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5413,24 +5297,23 @@ def send_lock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_lock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_lock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = lock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "lock failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "lock failed: unknown result"); def check_lock(self, rqst): """ @@ -5448,17 +5331,16 @@ def send_check_lock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_check_lock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_check_lock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = check_lock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -5467,7 +5349,7 @@ def recv_check_lock(self): raise result.o2 if result.o3 is not None: raise result.o3 - raise TApplicationException(TApplicationException.MISSING_RESULT, "check_lock failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "check_lock failed: unknown result"); def unlock(self, rqst): """ @@ -5485,17 +5367,16 @@ def send_unlock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_unlock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_unlock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = unlock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5518,20 +5399,19 @@ def send_show_locks(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_show_locks(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_show_locks(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = show_locks_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "show_locks failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "show_locks failed: unknown result"); def heartbeat(self, ids): """ @@ -5549,17 +5429,16 @@ def send_heartbeat(self, ids): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_heartbeat(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_heartbeat(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = heartbeat_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5584,20 +5463,19 @@ def send_heartbeat_txn_range(self, txns): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_heartbeat_txn_range(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_heartbeat_txn_range(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = heartbeat_txn_range_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_txn_range failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_txn_range failed: unknown result"); def compact(self, rqst): """ @@ -5615,17 +5493,16 @@ def send_compact(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_compact(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_compact(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = compact_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() return def show_compact(self, rqst): @@ -5644,20 +5521,19 @@ def send_show_compact(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_show_compact(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_show_compact(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = show_compact_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result"); def add_dynamic_partitions(self, rqst): """ @@ -5675,17 +5551,16 @@ def send_add_dynamic_partitions(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_dynamic_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_dynamic_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_dynamic_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5708,46 +5583,44 @@ def send_get_next_notification(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_next_notification(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_next_notification(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_next_notification_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_notification failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_notification failed: unknown result"); - def get_current_notificationEventId(self): + def get_current_notificationEventId(self, ): self.send_get_current_notificationEventId() return self.recv_get_current_notificationEventId() - def send_get_current_notificationEventId(self): + def send_get_current_notificationEventId(self, ): self._oprot.writeMessageBegin('get_current_notificationEventId', TMessageType.CALL, self._seqid) args = get_current_notificationEventId_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_current_notificationEventId(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_current_notificationEventId(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_current_notificationEventId_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); def fire_listener_event(self, rqst): """ @@ -5765,43 +5638,41 @@ def send_fire_listener_event(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_fire_listener_event(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_fire_listener_event(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = fire_listener_event_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "fire_listener_event failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "fire_listener_event failed: unknown result"); - def flushCache(self): + def flushCache(self, ): self.send_flushCache() self.recv_flushCache() - def send_flushCache(self): + def send_flushCache(self, ): self._oprot.writeMessageBegin('flushCache', TMessageType.CALL, self._seqid) args = flushCache_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_flushCache(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_flushCache(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = flushCache_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() return def get_file_metadata_by_expr(self, req): @@ -5820,20 +5691,19 @@ def send_get_file_metadata_by_expr(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_file_metadata_by_expr(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_file_metadata_by_expr(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_file_metadata_by_expr_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata_by_expr failed: unknown result"); def get_file_metadata(self, req): """ @@ -5851,20 +5721,19 @@ def send_get_file_metadata(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_file_metadata(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_file_metadata(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_file_metadata_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_file_metadata failed: unknown result"); def put_file_metadata(self, req): """ @@ -5882,20 +5751,19 @@ def send_put_file_metadata(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_put_file_metadata(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_put_file_metadata(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = put_file_metadata_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "put_file_metadata failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "put_file_metadata failed: unknown result"); def clear_file_metadata(self, req): """ @@ -5913,20 +5781,19 @@ def send_clear_file_metadata(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_clear_file_metadata(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_clear_file_metadata(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = clear_file_metadata_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "clear_file_metadata failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "clear_file_metadata failed: unknown result"); def cache_file_metadata(self, req): """ @@ -5944,20 +5811,19 @@ def send_cache_file_metadata(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_cache_file_metadata(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_cache_file_metadata(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = cache_file_metadata_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result") + raise TApplicationException(TApplicationException.MISSING_RESULT, "cache_file_metadata failed: unknown result"); class Processor(fb303.FacebookService.Processor, Iface, TProcessor): @@ -6119,17 +5985,9 @@ def process_getMetaConf(self, seqid, iprot, oprot): result = getMetaConf_result() try: result.success = self._handler.getMetaConf(args.key) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("getMetaConf", msg_type, seqid) + oprot.writeMessageBegin("getMetaConf", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6141,17 +5999,9 @@ def process_setMetaConf(self, seqid, iprot, oprot): result = setMetaConf_result() try: self._handler.setMetaConf(args.key, args.value) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("setMetaConf", msg_type, seqid) + oprot.writeMessageBegin("setMetaConf", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6163,23 +6013,13 @@ def process_create_database(self, seqid, iprot, oprot): result = create_database_result() try: self._handler.create_database(args.database) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except AlreadyExistsException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_database", msg_type, seqid) + oprot.writeMessageBegin("create_database", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6191,20 +6031,11 @@ def process_get_database(self, seqid, iprot, oprot): result = get_database_result() try: result.success = self._handler.get_database(args.name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_database", msg_type, seqid) + oprot.writeMessageBegin("get_database", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6216,23 +6047,13 @@ def process_drop_database(self, seqid, iprot, oprot): result = drop_database_result() try: self._handler.drop_database(args.name, args.deleteData, args.cascade) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidOperationException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_database", msg_type, seqid) + oprot.writeMessageBegin("drop_database", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6244,17 +6065,9 @@ def process_get_databases(self, seqid, iprot, oprot): result = get_databases_result() try: result.success = self._handler.get_databases(args.pattern) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_databases", msg_type, seqid) + oprot.writeMessageBegin("get_databases", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6266,17 +6079,9 @@ def process_get_all_databases(self, seqid, iprot, oprot): result = get_all_databases_result() try: result.success = self._handler.get_all_databases() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_all_databases", msg_type, seqid) + oprot.writeMessageBegin("get_all_databases", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6288,20 +6093,11 @@ def process_alter_database(self, seqid, iprot, oprot): result = alter_database_result() try: self._handler.alter_database(args.dbname, args.db) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_database", msg_type, seqid) + oprot.writeMessageBegin("alter_database", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6313,20 +6109,11 @@ def process_get_type(self, seqid, iprot, oprot): result = get_type_result() try: result.success = self._handler.get_type(args.name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_type", msg_type, seqid) + oprot.writeMessageBegin("get_type", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6338,23 +6125,13 @@ def process_create_type(self, seqid, iprot, oprot): result = create_type_result() try: result.success = self._handler.create_type(args.type) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except AlreadyExistsException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_type", msg_type, seqid) + oprot.writeMessageBegin("create_type", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6366,20 +6143,11 @@ def process_drop_type(self, seqid, iprot, oprot): result = drop_type_result() try: result.success = self._handler.drop_type(args.type) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_type", msg_type, seqid) + oprot.writeMessageBegin("drop_type", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6391,17 +6159,9 @@ def process_get_type_all(self, seqid, iprot, oprot): result = get_type_all_result() try: result.success = self._handler.get_type_all(args.name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_type_all", msg_type, seqid) + oprot.writeMessageBegin("get_type_all", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6413,23 +6173,13 @@ def process_get_fields(self, seqid, iprot, oprot): result = get_fields_result() try: result.success = self._handler.get_fields(args.db_name, args.table_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except UnknownTableException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_fields", msg_type, seqid) + oprot.writeMessageBegin("get_fields", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6441,23 +6191,13 @@ def process_get_fields_with_environment_context(self, seqid, iprot, oprot): result = get_fields_with_environment_context_result() try: result.success = self._handler.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except UnknownTableException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_fields_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("get_fields_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6469,23 +6209,13 @@ def process_get_schema(self, seqid, iprot, oprot): result = get_schema_result() try: result.success = self._handler.get_schema(args.db_name, args.table_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except UnknownTableException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_schema", msg_type, seqid) + oprot.writeMessageBegin("get_schema", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6497,23 +6227,13 @@ def process_get_schema_with_environment_context(self, seqid, iprot, oprot): result = get_schema_with_environment_context_result() try: result.success = self._handler.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except UnknownTableException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_schema_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("get_schema_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6525,26 +6245,15 @@ def process_create_table(self, seqid, iprot, oprot): result = create_table_result() try: self._handler.create_table(args.tbl) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except AlreadyExistsException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except NoSuchObjectException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_table", msg_type, seqid) + oprot.writeMessageBegin("create_table", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6556,26 +6265,15 @@ def process_create_table_with_environment_context(self, seqid, iprot, oprot): result = create_table_with_environment_context_result() try: self._handler.create_table_with_environment_context(args.tbl, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except AlreadyExistsException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except NoSuchObjectException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_table_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("create_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6587,20 +6285,11 @@ def process_drop_table(self, seqid, iprot, oprot): result = drop_table_result() try: self._handler.drop_table(args.dbname, args.name, args.deleteData) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_table", msg_type, seqid) + oprot.writeMessageBegin("drop_table", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6612,20 +6301,11 @@ def process_drop_table_with_environment_context(self, seqid, iprot, oprot): result = drop_table_with_environment_context_result() try: self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_table_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("drop_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6637,17 +6317,9 @@ def process_get_tables(self, seqid, iprot, oprot): result = get_tables_result() try: result.success = self._handler.get_tables(args.db_name, args.pattern) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_tables", msg_type, seqid) + oprot.writeMessageBegin("get_tables", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6659,17 +6331,9 @@ def process_get_table_meta(self, seqid, iprot, oprot): result = get_table_meta_result() try: result.success = self._handler.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table_meta", msg_type, seqid) + oprot.writeMessageBegin("get_table_meta", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6681,17 +6345,9 @@ def process_get_all_tables(self, seqid, iprot, oprot): result = get_all_tables_result() try: result.success = self._handler.get_all_tables(args.db_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_all_tables", msg_type, seqid) + oprot.writeMessageBegin("get_all_tables", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6703,20 +6359,11 @@ def process_get_table(self, seqid, iprot, oprot): result = get_table_result() try: result.success = self._handler.get_table(args.dbname, args.tbl_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table", msg_type, seqid) + oprot.writeMessageBegin("get_table", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6728,23 +6375,13 @@ def process_get_table_objects_by_name(self, seqid, iprot, oprot): result = get_table_objects_by_name_result() try: result.success = self._handler.get_table_objects_by_name(args.dbname, args.tbl_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidOperationException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table_objects_by_name", msg_type, seqid) + oprot.writeMessageBegin("get_table_objects_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6756,23 +6393,13 @@ def process_get_table_names_by_filter(self, seqid, iprot, oprot): result = get_table_names_by_filter_result() try: result.success = self._handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidOperationException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table_names_by_filter", msg_type, seqid) + oprot.writeMessageBegin("get_table_names_by_filter", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6784,20 +6411,11 @@ def process_alter_table(self, seqid, iprot, oprot): result = alter_table_result() try: self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_table", msg_type, seqid) + oprot.writeMessageBegin("alter_table", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6809,20 +6427,11 @@ def process_alter_table_with_environment_context(self, seqid, iprot, oprot): result = alter_table_with_environment_context_result() try: self._handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_table_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("alter_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6834,20 +6443,11 @@ def process_alter_table_with_cascade(self, seqid, iprot, oprot): result = alter_table_with_cascade_result() try: self._handler.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_table_with_cascade", msg_type, seqid) + oprot.writeMessageBegin("alter_table_with_cascade", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6859,23 +6459,13 @@ def process_add_partition(self, seqid, iprot, oprot): result = add_partition_result() try: result.success = self._handler.add_partition(args.new_part) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_partition", msg_type, seqid) + oprot.writeMessageBegin("add_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6887,23 +6477,13 @@ def process_add_partition_with_environment_context(self, seqid, iprot, oprot): result = add_partition_with_environment_context_result() try: result.success = self._handler.add_partition_with_environment_context(args.new_part, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_partition_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("add_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6915,23 +6495,13 @@ def process_add_partitions(self, seqid, iprot, oprot): result = add_partitions_result() try: result.success = self._handler.add_partitions(args.new_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_partitions", msg_type, seqid) + oprot.writeMessageBegin("add_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6943,23 +6513,13 @@ def process_add_partitions_pspec(self, seqid, iprot, oprot): result = add_partitions_pspec_result() try: result.success = self._handler.add_partitions_pspec(args.new_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_partitions_pspec", msg_type, seqid) + oprot.writeMessageBegin("add_partitions_pspec", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6971,23 +6531,13 @@ def process_append_partition(self, seqid, iprot, oprot): result = append_partition_result() try: result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("append_partition", msg_type, seqid) + oprot.writeMessageBegin("append_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -6999,23 +6549,13 @@ def process_add_partitions_req(self, seqid, iprot, oprot): result = add_partitions_req_result() try: result.success = self._handler.add_partitions_req(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_partitions_req", msg_type, seqid) + oprot.writeMessageBegin("add_partitions_req", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7027,23 +6567,13 @@ def process_append_partition_with_environment_context(self, seqid, iprot, oprot) result = append_partition_with_environment_context_result() try: result.success = self._handler.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("append_partition_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("append_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7055,23 +6585,13 @@ def process_append_partition_by_name(self, seqid, iprot, oprot): result = append_partition_by_name_result() try: result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("append_partition_by_name", msg_type, seqid) + oprot.writeMessageBegin("append_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7083,23 +6603,13 @@ def process_append_partition_by_name_with_environment_context(self, seqid, iprot result = append_partition_by_name_with_environment_context_result() try: result.success = self._handler.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("append_partition_by_name_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("append_partition_by_name_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7111,20 +6621,11 @@ def process_drop_partition(self, seqid, iprot, oprot): result = drop_partition_result() try: result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_partition", msg_type, seqid) + oprot.writeMessageBegin("drop_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7136,20 +6637,11 @@ def process_drop_partition_with_environment_context(self, seqid, iprot, oprot): result = drop_partition_with_environment_context_result() try: result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_partition_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("drop_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7161,20 +6653,11 @@ def process_drop_partition_by_name(self, seqid, iprot, oprot): result = drop_partition_by_name_result() try: result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_partition_by_name", msg_type, seqid) + oprot.writeMessageBegin("drop_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7186,20 +6669,11 @@ def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, result = drop_partition_by_name_with_environment_context_result() try: result.success = self._handler.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7211,20 +6685,11 @@ def process_drop_partitions_req(self, seqid, iprot, oprot): result = drop_partitions_req_result() try: result.success = self._handler.drop_partitions_req(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_partitions_req", msg_type, seqid) + oprot.writeMessageBegin("drop_partitions_req", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7236,20 +6701,11 @@ def process_get_partition(self, seqid, iprot, oprot): result = get_partition_result() try: result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition", msg_type, seqid) + oprot.writeMessageBegin("get_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7261,26 +6717,15 @@ def process_exchange_partition(self, seqid, iprot, oprot): result = exchange_partition_result() try: result.success = self._handler.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidObjectException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("exchange_partition", msg_type, seqid) + oprot.writeMessageBegin("exchange_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7292,26 +6737,15 @@ def process_exchange_partitions(self, seqid, iprot, oprot): result = exchange_partitions_result() try: result.success = self._handler.exchange_partitions(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidObjectException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("exchange_partitions", msg_type, seqid) + oprot.writeMessageBegin("exchange_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7323,20 +6757,11 @@ def process_get_partition_with_auth(self, seqid, iprot, oprot): result = get_partition_with_auth_result() try: result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition_with_auth", msg_type, seqid) + oprot.writeMessageBegin("get_partition_with_auth", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7348,20 +6773,11 @@ def process_get_partition_by_name(self, seqid, iprot, oprot): result = get_partition_by_name_result() try: result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition_by_name", msg_type, seqid) + oprot.writeMessageBegin("get_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7373,20 +6789,11 @@ def process_get_partitions(self, seqid, iprot, oprot): result = get_partitions_result() try: result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions", msg_type, seqid) + oprot.writeMessageBegin("get_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7398,20 +6805,11 @@ def process_get_partitions_with_auth(self, seqid, iprot, oprot): result = get_partitions_with_auth_result() try: result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_with_auth", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_with_auth", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7423,20 +6821,11 @@ def process_get_partitions_pspec(self, seqid, iprot, oprot): result = get_partitions_pspec_result() try: result.success = self._handler.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_pspec", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_pspec", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7448,17 +6837,9 @@ def process_get_partition_names(self, seqid, iprot, oprot): result = get_partition_names_result() try: result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition_names", msg_type, seqid) + oprot.writeMessageBegin("get_partition_names", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7470,20 +6851,11 @@ def process_get_partitions_ps(self, seqid, iprot, oprot): result = get_partitions_ps_result() try: result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_ps", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_ps", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7495,20 +6867,11 @@ def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot): result = get_partitions_ps_with_auth_result() try: result.success = self._handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_ps_with_auth", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_ps_with_auth", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7520,20 +6883,11 @@ def process_get_partition_names_ps(self, seqid, iprot, oprot): result = get_partition_names_ps_result() try: result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition_names_ps", msg_type, seqid) + oprot.writeMessageBegin("get_partition_names_ps", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7545,20 +6899,11 @@ def process_get_partitions_by_filter(self, seqid, iprot, oprot): result = get_partitions_by_filter_result() try: result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_by_filter", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_by_filter", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7570,20 +6915,11 @@ def process_get_part_specs_by_filter(self, seqid, iprot, oprot): result = get_part_specs_by_filter_result() try: result.success = self._handler.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_part_specs_by_filter", msg_type, seqid) + oprot.writeMessageBegin("get_part_specs_by_filter", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7595,20 +6931,11 @@ def process_get_partitions_by_expr(self, seqid, iprot, oprot): result = get_partitions_by_expr_result() try: result.success = self._handler.get_partitions_by_expr(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_by_expr", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_by_expr", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7620,20 +6947,11 @@ def process_get_num_partitions_by_filter(self, seqid, iprot, oprot): result = get_num_partitions_by_filter_result() try: result.success = self._handler.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_num_partitions_by_filter", msg_type, seqid) + oprot.writeMessageBegin("get_num_partitions_by_filter", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7645,20 +6963,11 @@ def process_get_partitions_by_names(self, seqid, iprot, oprot): result = get_partitions_by_names_result() try: result.success = self._handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_by_names", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_by_names", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7670,20 +6979,11 @@ def process_alter_partition(self, seqid, iprot, oprot): result = alter_partition_result() try: self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_partition", msg_type, seqid) + oprot.writeMessageBegin("alter_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7695,20 +6995,11 @@ def process_alter_partitions(self, seqid, iprot, oprot): result = alter_partitions_result() try: self._handler.alter_partitions(args.db_name, args.tbl_name, args.new_parts) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_partitions", msg_type, seqid) + oprot.writeMessageBegin("alter_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7720,20 +7011,11 @@ def process_alter_partition_with_environment_context(self, seqid, iprot, oprot): result = alter_partition_with_environment_context_result() try: self._handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_partition_with_environment_context", msg_type, seqid) + oprot.writeMessageBegin("alter_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7745,20 +7027,11 @@ def process_rename_partition(self, seqid, iprot, oprot): result = rename_partition_result() try: self._handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("rename_partition", msg_type, seqid) + oprot.writeMessageBegin("rename_partition", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7770,17 +7043,9 @@ def process_partition_name_has_valid_characters(self, seqid, iprot, oprot): result = partition_name_has_valid_characters_result() try: result.success = self._handler.partition_name_has_valid_characters(args.part_vals, args.throw_exception) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("partition_name_has_valid_characters", msg_type, seqid) + oprot.writeMessageBegin("partition_name_has_valid_characters", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7792,17 +7057,9 @@ def process_get_config_value(self, seqid, iprot, oprot): result = get_config_value_result() try: result.success = self._handler.get_config_value(args.name, args.defaultValue) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except ConfigValSecurityException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_config_value", msg_type, seqid) + oprot.writeMessageBegin("get_config_value", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7814,17 +7071,9 @@ def process_partition_name_to_vals(self, seqid, iprot, oprot): result = partition_name_to_vals_result() try: result.success = self._handler.partition_name_to_vals(args.part_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("partition_name_to_vals", msg_type, seqid) + oprot.writeMessageBegin("partition_name_to_vals", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7836,17 +7085,9 @@ def process_partition_name_to_spec(self, seqid, iprot, oprot): result = partition_name_to_spec_result() try: result.success = self._handler.partition_name_to_spec(args.part_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("partition_name_to_spec", msg_type, seqid) + oprot.writeMessageBegin("partition_name_to_spec", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7858,32 +7099,19 @@ def process_markPartitionForEvent(self, seqid, iprot, oprot): result = markPartitionForEvent_result() try: self._handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except UnknownTableException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 except UnknownPartitionException as o5: - msg_type = TMessageType.REPLY result.o5 = o5 except InvalidPartitionException as o6: - msg_type = TMessageType.REPLY result.o6 = o6 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("markPartitionForEvent", msg_type, seqid) + oprot.writeMessageBegin("markPartitionForEvent", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7895,32 +7123,19 @@ def process_isPartitionMarkedForEvent(self, seqid, iprot, oprot): result = isPartitionMarkedForEvent_result() try: result.success = self._handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except UnknownDBException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except UnknownTableException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 except UnknownPartitionException as o5: - msg_type = TMessageType.REPLY result.o5 = o5 except InvalidPartitionException as o6: - msg_type = TMessageType.REPLY result.o6 = o6 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("isPartitionMarkedForEvent", msg_type, seqid) + oprot.writeMessageBegin("isPartitionMarkedForEvent", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7932,23 +7147,13 @@ def process_add_index(self, seqid, iprot, oprot): result = add_index_result() try: result.success = self._handler.add_index(args.new_index, args.index_table) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except AlreadyExistsException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_index", msg_type, seqid) + oprot.writeMessageBegin("add_index", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7960,20 +7165,11 @@ def process_alter_index(self, seqid, iprot, oprot): result = alter_index_result() try: self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_index", msg_type, seqid) + oprot.writeMessageBegin("alter_index", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -7985,20 +7181,11 @@ def process_drop_index_by_name(self, seqid, iprot, oprot): result = drop_index_by_name_result() try: result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_index_by_name", msg_type, seqid) + oprot.writeMessageBegin("drop_index_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8010,20 +7197,11 @@ def process_get_index_by_name(self, seqid, iprot, oprot): result = get_index_by_name_result() try: result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_index_by_name", msg_type, seqid) + oprot.writeMessageBegin("get_index_by_name", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8035,20 +7213,11 @@ def process_get_indexes(self, seqid, iprot, oprot): result = get_indexes_result() try: result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_indexes", msg_type, seqid) + oprot.writeMessageBegin("get_indexes", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8060,17 +7229,9 @@ def process_get_index_names(self, seqid, iprot, oprot): result = get_index_names_result() try: result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_index_names", msg_type, seqid) + oprot.writeMessageBegin("get_index_names", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8082,26 +7243,15 @@ def process_update_table_column_statistics(self, seqid, iprot, oprot): result = update_table_column_statistics_result() try: result.success = self._handler.update_table_column_statistics(args.stats_obj) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("update_table_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("update_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8113,26 +7263,15 @@ def process_update_partition_column_statistics(self, seqid, iprot, oprot): result = update_partition_column_statistics_result() try: result.success = self._handler.update_partition_column_statistics(args.stats_obj) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("update_partition_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("update_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8144,26 +7283,15 @@ def process_get_table_column_statistics(self, seqid, iprot, oprot): result = get_table_column_statistics_result() try: result.success = self._handler.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidInputException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidObjectException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("get_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8175,26 +7303,15 @@ def process_get_partition_column_statistics(self, seqid, iprot, oprot): result = get_partition_column_statistics_result() try: result.success = self._handler.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidInputException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidObjectException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partition_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("get_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8206,20 +7323,11 @@ def process_get_table_statistics_req(self, seqid, iprot, oprot): result = get_table_statistics_req_result() try: result.success = self._handler.get_table_statistics_req(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_table_statistics_req", msg_type, seqid) + oprot.writeMessageBegin("get_table_statistics_req", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8231,20 +7339,11 @@ def process_get_partitions_statistics_req(self, seqid, iprot, oprot): result = get_partitions_statistics_req_result() try: result.success = self._handler.get_partitions_statistics_req(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_partitions_statistics_req", msg_type, seqid) + oprot.writeMessageBegin("get_partitions_statistics_req", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8256,20 +7355,11 @@ def process_get_aggr_stats_for(self, seqid, iprot, oprot): result = get_aggr_stats_for_result() try: result.success = self._handler.get_aggr_stats_for(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_aggr_stats_for", msg_type, seqid) + oprot.writeMessageBegin("get_aggr_stats_for", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8281,26 +7371,15 @@ def process_set_aggr_stats_for(self, seqid, iprot, oprot): result = set_aggr_stats_for_result() try: result.success = self._handler.set_aggr_stats_for(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("set_aggr_stats_for", msg_type, seqid) + oprot.writeMessageBegin("set_aggr_stats_for", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8312,26 +7391,15 @@ def process_delete_partition_column_statistics(self, seqid, iprot, oprot): result = delete_partition_column_statistics_result() try: result.success = self._handler.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidObjectException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("delete_partition_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("delete_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8343,26 +7411,15 @@ def process_delete_table_column_statistics(self, seqid, iprot, oprot): result = delete_table_column_statistics_result() try: result.success = self._handler.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except InvalidObjectException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except InvalidInputException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("delete_table_column_statistics", msg_type, seqid) + oprot.writeMessageBegin("delete_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8374,26 +7431,15 @@ def process_create_function(self, seqid, iprot, oprot): result = create_function_result() try: self._handler.create_function(args.func) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except AlreadyExistsException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except InvalidObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 except NoSuchObjectException as o4: - msg_type = TMessageType.REPLY result.o4 = o4 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_function", msg_type, seqid) + oprot.writeMessageBegin("create_function", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8405,20 +7451,11 @@ def process_drop_function(self, seqid, iprot, oprot): result = drop_function_result() try: self._handler.drop_function(args.dbName, args.funcName) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchObjectException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_function", msg_type, seqid) + oprot.writeMessageBegin("drop_function", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8430,20 +7467,11 @@ def process_alter_function(self, seqid, iprot, oprot): result = alter_function_result() try: self._handler.alter_function(args.dbName, args.funcName, args.newFunc) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except InvalidOperationException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except MetaException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("alter_function", msg_type, seqid) + oprot.writeMessageBegin("alter_function", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8455,17 +7483,9 @@ def process_get_functions(self, seqid, iprot, oprot): result = get_functions_result() try: result.success = self._handler.get_functions(args.dbName, args.pattern) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_functions", msg_type, seqid) + oprot.writeMessageBegin("get_functions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8477,20 +7497,11 @@ def process_get_function(self, seqid, iprot, oprot): result = get_function_result() try: result.success = self._handler.get_function(args.dbName, args.funcName) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchObjectException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_function", msg_type, seqid) + oprot.writeMessageBegin("get_function", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8502,17 +7513,9 @@ def process_get_all_functions(self, seqid, iprot, oprot): result = get_all_functions_result() try: result.success = self._handler.get_all_functions() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_all_functions", msg_type, seqid) + oprot.writeMessageBegin("get_all_functions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8524,17 +7527,9 @@ def process_create_role(self, seqid, iprot, oprot): result = create_role_result() try: result.success = self._handler.create_role(args.role) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("create_role", msg_type, seqid) + oprot.writeMessageBegin("create_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8546,17 +7541,9 @@ def process_drop_role(self, seqid, iprot, oprot): result = drop_role_result() try: result.success = self._handler.drop_role(args.role_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("drop_role", msg_type, seqid) + oprot.writeMessageBegin("drop_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8568,17 +7555,9 @@ def process_get_role_names(self, seqid, iprot, oprot): result = get_role_names_result() try: result.success = self._handler.get_role_names() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_role_names", msg_type, seqid) + oprot.writeMessageBegin("get_role_names", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8590,17 +7569,9 @@ def process_grant_role(self, seqid, iprot, oprot): result = grant_role_result() try: result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("grant_role", msg_type, seqid) + oprot.writeMessageBegin("grant_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8612,17 +7583,9 @@ def process_revoke_role(self, seqid, iprot, oprot): result = revoke_role_result() try: result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("revoke_role", msg_type, seqid) + oprot.writeMessageBegin("revoke_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8634,17 +7597,9 @@ def process_list_roles(self, seqid, iprot, oprot): result = list_roles_result() try: result.success = self._handler.list_roles(args.principal_name, args.principal_type) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("list_roles", msg_type, seqid) + oprot.writeMessageBegin("list_roles", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8656,17 +7611,9 @@ def process_grant_revoke_role(self, seqid, iprot, oprot): result = grant_revoke_role_result() try: result.success = self._handler.grant_revoke_role(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("grant_revoke_role", msg_type, seqid) + oprot.writeMessageBegin("grant_revoke_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8678,17 +7625,9 @@ def process_get_principals_in_role(self, seqid, iprot, oprot): result = get_principals_in_role_result() try: result.success = self._handler.get_principals_in_role(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_principals_in_role", msg_type, seqid) + oprot.writeMessageBegin("get_principals_in_role", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8700,17 +7639,9 @@ def process_get_role_grants_for_principal(self, seqid, iprot, oprot): result = get_role_grants_for_principal_result() try: result.success = self._handler.get_role_grants_for_principal(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_role_grants_for_principal", msg_type, seqid) + oprot.writeMessageBegin("get_role_grants_for_principal", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8722,17 +7653,9 @@ def process_get_privilege_set(self, seqid, iprot, oprot): result = get_privilege_set_result() try: result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_privilege_set", msg_type, seqid) + oprot.writeMessageBegin("get_privilege_set", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8744,17 +7667,9 @@ def process_list_privileges(self, seqid, iprot, oprot): result = list_privileges_result() try: result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("list_privileges", msg_type, seqid) + oprot.writeMessageBegin("list_privileges", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8766,17 +7681,9 @@ def process_grant_privileges(self, seqid, iprot, oprot): result = grant_privileges_result() try: result.success = self._handler.grant_privileges(args.privileges) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("grant_privileges", msg_type, seqid) + oprot.writeMessageBegin("grant_privileges", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8788,17 +7695,9 @@ def process_revoke_privileges(self, seqid, iprot, oprot): result = revoke_privileges_result() try: result.success = self._handler.revoke_privileges(args.privileges) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("revoke_privileges", msg_type, seqid) + oprot.writeMessageBegin("revoke_privileges", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8810,17 +7709,9 @@ def process_grant_revoke_privileges(self, seqid, iprot, oprot): result = grant_revoke_privileges_result() try: result.success = self._handler.grant_revoke_privileges(args.request) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("grant_revoke_privileges", msg_type, seqid) + oprot.writeMessageBegin("grant_revoke_privileges", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8832,17 +7723,9 @@ def process_set_ugi(self, seqid, iprot, oprot): result = set_ugi_result() try: result.success = self._handler.set_ugi(args.user_name, args.group_names) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("set_ugi", msg_type, seqid) + oprot.writeMessageBegin("set_ugi", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8854,17 +7737,9 @@ def process_get_delegation_token(self, seqid, iprot, oprot): result = get_delegation_token_result() try: result.success = self._handler.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_delegation_token", msg_type, seqid) + oprot.writeMessageBegin("get_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8876,17 +7751,9 @@ def process_renew_delegation_token(self, seqid, iprot, oprot): result = renew_delegation_token_result() try: result.success = self._handler.renew_delegation_token(args.token_str_form) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("renew_delegation_token", msg_type, seqid) + oprot.writeMessageBegin("renew_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8898,17 +7765,9 @@ def process_cancel_delegation_token(self, seqid, iprot, oprot): result = cancel_delegation_token_result() try: self._handler.cancel_delegation_token(args.token_str_form) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except MetaException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("cancel_delegation_token", msg_type, seqid) + oprot.writeMessageBegin("cancel_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8918,16 +7777,8 @@ def process_get_open_txns(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_open_txns_result() - try: - result.success = self._handler.get_open_txns() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_open_txns", msg_type, seqid) + result.success = self._handler.get_open_txns() + oprot.writeMessageBegin("get_open_txns", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8937,16 +7788,8 @@ def process_get_open_txns_info(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_open_txns_info_result() - try: - result.success = self._handler.get_open_txns_info() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_open_txns_info", msg_type, seqid) + result.success = self._handler.get_open_txns_info() + oprot.writeMessageBegin("get_open_txns_info", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8956,16 +7799,8 @@ def process_open_txns(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = open_txns_result() - try: - result.success = self._handler.open_txns(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("open_txns", msg_type, seqid) + result.success = self._handler.open_txns(args.rqst) + oprot.writeMessageBegin("open_txns", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8977,17 +7812,9 @@ def process_abort_txn(self, seqid, iprot, oprot): result = abort_txn_result() try: self._handler.abort_txn(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchTxnException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("abort_txn", msg_type, seqid) + oprot.writeMessageBegin("abort_txn", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -8999,20 +7826,11 @@ def process_commit_txn(self, seqid, iprot, oprot): result = commit_txn_result() try: self._handler.commit_txn(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchTxnException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except TxnAbortedException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("commit_txn", msg_type, seqid) + oprot.writeMessageBegin("commit_txn", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9024,20 +7842,11 @@ def process_lock(self, seqid, iprot, oprot): result = lock_result() try: result.success = self._handler.lock(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchTxnException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except TxnAbortedException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("lock", msg_type, seqid) + oprot.writeMessageBegin("lock", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9049,23 +7858,13 @@ def process_check_lock(self, seqid, iprot, oprot): result = check_lock_result() try: result.success = self._handler.check_lock(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchTxnException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except TxnAbortedException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except NoSuchLockException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("check_lock", msg_type, seqid) + oprot.writeMessageBegin("check_lock", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9077,20 +7876,11 @@ def process_unlock(self, seqid, iprot, oprot): result = unlock_result() try: self._handler.unlock(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchLockException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except TxnOpenException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("unlock", msg_type, seqid) + oprot.writeMessageBegin("unlock", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9100,16 +7890,8 @@ def process_show_locks(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = show_locks_result() - try: - result.success = self._handler.show_locks(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("show_locks", msg_type, seqid) + result.success = self._handler.show_locks(args.rqst) + oprot.writeMessageBegin("show_locks", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9121,23 +7903,13 @@ def process_heartbeat(self, seqid, iprot, oprot): result = heartbeat_result() try: self._handler.heartbeat(args.ids) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchLockException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except NoSuchTxnException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 except TxnAbortedException as o3: - msg_type = TMessageType.REPLY result.o3 = o3 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("heartbeat", msg_type, seqid) + oprot.writeMessageBegin("heartbeat", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9147,16 +7919,8 @@ def process_heartbeat_txn_range(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = heartbeat_txn_range_result() - try: - result.success = self._handler.heartbeat_txn_range(args.txns) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("heartbeat_txn_range", msg_type, seqid) + result.success = self._handler.heartbeat_txn_range(args.txns) + oprot.writeMessageBegin("heartbeat_txn_range", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9166,16 +7930,8 @@ def process_compact(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = compact_result() - try: - self._handler.compact(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("compact", msg_type, seqid) + self._handler.compact(args.rqst) + oprot.writeMessageBegin("compact", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9185,16 +7941,8 @@ def process_show_compact(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = show_compact_result() - try: - result.success = self._handler.show_compact(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("show_compact", msg_type, seqid) + result.success = self._handler.show_compact(args.rqst) + oprot.writeMessageBegin("show_compact", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9206,20 +7954,11 @@ def process_add_dynamic_partitions(self, seqid, iprot, oprot): result = add_dynamic_partitions_result() try: self._handler.add_dynamic_partitions(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise except NoSuchTxnException as o1: - msg_type = TMessageType.REPLY result.o1 = o1 except TxnAbortedException as o2: - msg_type = TMessageType.REPLY result.o2 = o2 - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("add_dynamic_partitions", msg_type, seqid) + oprot.writeMessageBegin("add_dynamic_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9229,16 +7968,8 @@ def process_get_next_notification(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_next_notification_result() - try: - result.success = self._handler.get_next_notification(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_next_notification", msg_type, seqid) + result.success = self._handler.get_next_notification(args.rqst) + oprot.writeMessageBegin("get_next_notification", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9248,16 +7979,8 @@ def process_get_current_notificationEventId(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_current_notificationEventId_result() - try: - result.success = self._handler.get_current_notificationEventId() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_current_notificationEventId", msg_type, seqid) + result.success = self._handler.get_current_notificationEventId() + oprot.writeMessageBegin("get_current_notificationEventId", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9267,16 +7990,8 @@ def process_fire_listener_event(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = fire_listener_event_result() - try: - result.success = self._handler.fire_listener_event(args.rqst) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("fire_listener_event", msg_type, seqid) + result.success = self._handler.fire_listener_event(args.rqst) + oprot.writeMessageBegin("fire_listener_event", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9286,16 +8001,8 @@ def process_flushCache(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = flushCache_result() - try: - self._handler.flushCache() - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("flushCache", msg_type, seqid) + self._handler.flushCache() + oprot.writeMessageBegin("flushCache", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9305,16 +8012,8 @@ def process_get_file_metadata_by_expr(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_file_metadata_by_expr_result() - try: - result.success = self._handler.get_file_metadata_by_expr(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_file_metadata_by_expr", msg_type, seqid) + result.success = self._handler.get_file_metadata_by_expr(args.req) + oprot.writeMessageBegin("get_file_metadata_by_expr", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9324,16 +8023,8 @@ def process_get_file_metadata(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = get_file_metadata_result() - try: - result.success = self._handler.get_file_metadata(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("get_file_metadata", msg_type, seqid) + result.success = self._handler.get_file_metadata(args.req) + oprot.writeMessageBegin("get_file_metadata", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9343,16 +8034,8 @@ def process_put_file_metadata(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = put_file_metadata_result() - try: - result.success = self._handler.put_file_metadata(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("put_file_metadata", msg_type, seqid) + result.success = self._handler.put_file_metadata(args.req) + oprot.writeMessageBegin("put_file_metadata", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9362,16 +8045,8 @@ def process_clear_file_metadata(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = clear_file_metadata_result() - try: - result.success = self._handler.clear_file_metadata(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("clear_file_metadata", msg_type, seqid) + result.success = self._handler.clear_file_metadata(args.req) + oprot.writeMessageBegin("clear_file_metadata", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9381,16 +8056,8 @@ def process_cache_file_metadata(self, seqid, iprot, oprot): args.read(iprot) iprot.readMessageEnd() result = cache_file_metadata_result() - try: - result.success = self._handler.cache_file_metadata(args.req) - msg_type = TMessageType.REPLY - except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): - raise - except Exception as ex: - msg_type = TMessageType.EXCEPTION - logging.exception(ex) - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') - oprot.writeMessageBegin("cache_file_metadata", msg_type, seqid) + result.success = self._handler.cache_file_metadata(args.req) + oprot.writeMessageBegin("cache_file_metadata", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9423,7 +8090,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = iprot.readString() + self.key = iprot.readString(); else: iprot.skip(ftype) else: @@ -9447,11 +8114,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.key) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9490,7 +8152,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString() + self.success = iprot.readString(); else: iprot.skip(ftype) elif fid == 1: @@ -9524,12 +8186,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9569,12 +8225,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.key = iprot.readString() + self.key = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.value = iprot.readString() + self.value = iprot.readString(); else: iprot.skip(ftype) else: @@ -9602,12 +8258,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.key) - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9669,11 +8319,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9735,11 +8380,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.database) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9827,13 +8467,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9870,7 +8503,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) else: @@ -9894,11 +8527,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9985,13 +8613,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10034,17 +8655,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: - self.cascade = iprot.readBool() + self.cascade = iprot.readBool(); else: iprot.skip(ftype) else: @@ -10076,13 +8697,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.cascade) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10170,13 +8784,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10213,7 +8820,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.pattern = iprot.readString() + self.pattern = iprot.readString(); else: iprot.skip(ftype) else: @@ -10237,11 +8844,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10283,7 +8885,7 @@ def read(self, iprot): self.success = [] (_etype525, _size522) = iprot.readListBegin() for _i526 in xrange(_size522): - _elem527 = iprot.readString() + _elem527 = iprot.readString(); self.success.append(_elem527) iprot.readListEnd() else: @@ -10322,12 +8924,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10370,10 +8966,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10415,7 +9007,7 @@ def read(self, iprot): self.success = [] (_etype532, _size529) = iprot.readListBegin() for _i533 in xrange(_size529): - _elem534 = iprot.readString() + _elem534 = iprot.readString(); self.success.append(_elem534) iprot.readListEnd() else: @@ -10454,12 +9046,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10499,7 +9085,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: @@ -10533,12 +9119,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.db) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10613,12 +9193,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10655,7 +9229,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) else: @@ -10679,11 +9253,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10770,13 +9339,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10838,11 +9400,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10887,7 +9444,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -10941,14 +9498,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10985,7 +9534,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.type = iprot.readString() + self.type = iprot.readString(); else: iprot.skip(ftype) else: @@ -11009,11 +9558,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11055,7 +9599,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -11099,13 +9643,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11142,7 +9679,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) else: @@ -11166,11 +9703,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11210,9 +9742,9 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype537, _vtype538, _size536 ) = iprot.readMapBegin() + (_ktype537, _vtype538, _size536 ) = iprot.readMapBegin() for _i540 in xrange(_size536): - _key541 = iprot.readString() + _key541 = iprot.readString(); _val542 = Type() _val542.read(iprot) self.success[_key541] = _val542 @@ -11254,12 +9786,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11299,12 +9825,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = iprot.readString() + self.table_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -11332,12 +9858,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11445,14 +9965,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11495,12 +10007,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = iprot.readString() + self.table_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -11538,13 +10050,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11652,14 +10157,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11699,12 +10196,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = iprot.readString() + self.table_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -11732,12 +10229,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11845,14 +10336,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11895,12 +10378,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.table_name = iprot.readString() + self.table_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -11938,13 +10421,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12052,14 +10528,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12121,11 +10589,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tbl) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12226,14 +10689,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12308,12 +10763,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tbl) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12414,14 +10863,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12464,17 +10905,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) else: @@ -12506,13 +10947,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12587,12 +11021,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12638,17 +11066,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) elif fid == 4: @@ -12690,14 +11118,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12772,12 +11192,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12817,12 +11231,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.pattern = iprot.readString() + self.pattern = iprot.readString(); else: iprot.skip(ftype) else: @@ -12850,12 +11264,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12897,7 +11305,7 @@ def read(self, iprot): self.success = [] (_etype576, _size573) = iprot.readListBegin() for _i577 in xrange(_size573): - _elem578 = iprot.readString() + _elem578 = iprot.readString(); self.success.append(_elem578) iprot.readListEnd() else: @@ -12936,12 +11344,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12984,12 +11386,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_patterns = iprot.readString() + self.db_patterns = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_patterns = iprot.readString() + self.tbl_patterns = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -12997,7 +11399,7 @@ def read(self, iprot): self.tbl_types = [] (_etype583, _size580) = iprot.readListBegin() for _i584 in xrange(_size580): - _elem585 = iprot.readString() + _elem585 = iprot.readString(); self.tbl_types.append(_elem585) iprot.readListEnd() else: @@ -13034,13 +11436,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_patterns) - value = (value * 31) ^ hash(self.tbl_patterns) - value = (value * 31) ^ hash(self.tbl_types) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13122,12 +11517,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13164,7 +11553,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -13188,11 +11577,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13234,7 +11618,7 @@ def read(self, iprot): self.success = [] (_etype597, _size594) = iprot.readListBegin() for _i598 in xrange(_size594): - _elem599 = iprot.readString() + _elem599 = iprot.readString(); self.success.append(_elem599) iprot.readListEnd() else: @@ -13273,12 +11657,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13318,12 +11696,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -13351,12 +11729,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13443,13 +11815,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13489,7 +11854,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: @@ -13497,7 +11862,7 @@ def read(self, iprot): self.tbl_names = [] (_etype604, _size601) = iprot.readListBegin() for _i605 in xrange(_size601): - _elem606 = iprot.readString() + _elem606 = iprot.readString(); self.tbl_names.append(_elem606) iprot.readListEnd() else: @@ -13530,12 +11895,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13643,14 +12002,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13693,17 +12044,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.filter = iprot.readString() + self.filter = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_tables = iprot.readI16() + self.max_tables = iprot.readI16(); else: iprot.skip(ftype) else: @@ -13735,13 +12086,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_tables) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13789,7 +12133,7 @@ def read(self, iprot): self.success = [] (_etype618, _size615) = iprot.readListBegin() for _i619 in xrange(_size615): - _elem620 = iprot.readString() + _elem620 = iprot.readString(); self.success.append(_elem620) iprot.readListEnd() else: @@ -13848,14 +12192,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13898,12 +12234,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -13941,13 +12277,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14022,12 +12351,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14073,12 +12396,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -14126,14 +12449,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14208,12 +12523,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14259,12 +12568,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -14275,7 +12584,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.cascade = iprot.readBool() + self.cascade = iprot.readBool(); else: iprot.skip(ftype) else: @@ -14311,14 +12620,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - value = (value * 31) ^ hash(self.cascade) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14393,12 +12694,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14460,11 +12755,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14564,14 +12854,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14646,12 +12928,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_part) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14751,14 +13027,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14828,11 +13096,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14877,7 +13140,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.I32: - self.success = iprot.readI32() + self.success = iprot.readI32(); else: iprot.skip(ftype) elif fid == 1: @@ -14931,14 +13194,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15008,11 +13263,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15057,7 +13307,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.I32: - self.success = iprot.readI32() + self.success = iprot.readI32(); else: iprot.skip(ftype) elif fid == 1: @@ -15111,14 +13361,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15161,12 +13403,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -15174,7 +13416,7 @@ def read(self, iprot): self.part_vals = [] (_etype639, _size636) = iprot.readListBegin() for _i640 in xrange(_size636): - _elem641 = iprot.readString() + _elem641 = iprot.readString(); self.part_vals.append(_elem641) iprot.readListEnd() else: @@ -15211,13 +13453,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15317,14 +13552,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15386,11 +13613,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15490,14 +13712,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15543,12 +13757,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -15556,7 +13770,7 @@ def read(self, iprot): self.part_vals = [] (_etype646, _size643) = iprot.readListBegin() for _i647 in xrange(_size643): - _elem648 = iprot.readString() + _elem648 = iprot.readString(); self.part_vals.append(_elem648) iprot.readListEnd() else: @@ -15603,14 +13817,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15710,14 +13916,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15760,17 +13958,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -15802,13 +14000,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15908,14 +14099,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15961,17 +14144,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -16013,14 +14196,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16120,14 +14295,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16173,12 +14340,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -16186,14 +14353,14 @@ def read(self, iprot): self.part_vals = [] (_etype653, _size650) = iprot.readListBegin() for _i654 in xrange(_size650): - _elem655 = iprot.readString() + _elem655 = iprot.readString(); self.part_vals.append(_elem655) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) else: @@ -16232,14 +14399,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16281,7 +14440,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -16325,13 +14484,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16380,12 +14532,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -16393,14 +14545,14 @@ def read(self, iprot): self.part_vals = [] (_etype660, _size657) = iprot.readListBegin() for _i661 in xrange(_size657): - _elem662 = iprot.readString() + _elem662 = iprot.readString(); self.part_vals.append(_elem662) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) elif fid == 5: @@ -16449,15 +14601,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16499,7 +14642,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -16543,13 +14686,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16595,22 +14731,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) else: @@ -16646,14 +14782,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16695,7 +14823,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -16739,13 +14867,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16794,22 +14915,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) elif fid == 5: @@ -16855,15 +14976,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16905,7 +15017,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -16949,13 +15061,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17017,11 +15122,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17108,13 +15208,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17157,12 +15250,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -17170,7 +15263,7 @@ def read(self, iprot): self.part_vals = [] (_etype667, _size664) = iprot.readListBegin() for _i668 in xrange(_size664): - _elem669 = iprot.readString() + _elem669 = iprot.readString(); self.part_vals.append(_elem669) iprot.readListEnd() else: @@ -17207,13 +15300,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17300,13 +15386,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17356,32 +15435,32 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() + (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() for _i675 in xrange(_size671): - _key676 = iprot.readString() - _val677 = iprot.readString() + _key676 = iprot.readString(); + _val677 = iprot.readString(); self.partitionSpecs[_key676] = _val677 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.source_db = iprot.readString() + self.source_db = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.source_table_name = iprot.readString() + self.source_table_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dest_db = iprot.readString() + self.dest_db = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.dest_table_name = iprot.readString() + self.dest_table_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -17425,15 +15504,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitionSpecs) - value = (value * 31) ^ hash(self.source_db) - value = (value * 31) ^ hash(self.source_table_name) - value = (value * 31) ^ hash(self.dest_db) - value = (value * 31) ^ hash(self.dest_table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17546,15 +15616,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17604,32 +15665,32 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype681, _vtype682, _size680 ) = iprot.readMapBegin() + (_ktype681, _vtype682, _size680 ) = iprot.readMapBegin() for _i684 in xrange(_size680): - _key685 = iprot.readString() - _val686 = iprot.readString() + _key685 = iprot.readString(); + _val686 = iprot.readString(); self.partitionSpecs[_key685] = _val686 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.source_db = iprot.readString() + self.source_db = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.source_table_name = iprot.readString() + self.source_table_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dest_db = iprot.readString() + self.dest_db = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.dest_table_name = iprot.readString() + self.dest_table_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -17673,15 +15734,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitionSpecs) - value = (value * 31) ^ hash(self.source_db) - value = (value * 31) ^ hash(self.source_table_name) - value = (value * 31) ^ hash(self.dest_db) - value = (value * 31) ^ hash(self.dest_table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17802,15 +15854,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17859,12 +15902,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -17872,14 +15915,14 @@ def read(self, iprot): self.part_vals = [] (_etype699, _size696) = iprot.readListBegin() for _i700 in xrange(_size696): - _elem701 = iprot.readString() + _elem701 = iprot.readString(); self.part_vals.append(_elem701) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user_name = iprot.readString() + self.user_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: @@ -17887,7 +15930,7 @@ def read(self, iprot): self.group_names = [] (_etype705, _size702) = iprot.readListBegin() for _i706 in xrange(_size702): - _elem707 = iprot.readString() + _elem707 = iprot.readString(); self.group_names.append(_elem707) iprot.readListEnd() else: @@ -17935,15 +15978,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18030,13 +16064,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18079,17 +16106,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -18121,13 +16148,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18214,13 +16234,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18263,17 +16276,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -18305,13 +16318,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18406,13 +16412,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18461,22 +16460,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user_name = iprot.readString() + self.user_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: @@ -18484,7 +16483,7 @@ def read(self, iprot): self.group_names = [] (_etype720, _size717) = iprot.readListBegin() for _i721 in xrange(_size717): - _elem722 = iprot.readString() + _elem722 = iprot.readString(); self.group_names.append(_elem722) iprot.readListEnd() else: @@ -18529,15 +16528,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18632,13 +16622,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18681,17 +16664,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.max_parts = iprot.readI32() + self.max_parts = iprot.readI32(); else: iprot.skip(ftype) else: @@ -18723,13 +16706,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18824,13 +16800,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18873,17 +16842,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -18915,13 +16884,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18963,7 +16925,7 @@ def read(self, iprot): self.success = [] (_etype741, _size738) = iprot.readListBegin() for _i742 in xrange(_size738): - _elem743 = iprot.readString() + _elem743 = iprot.readString(); self.success.append(_elem743) iprot.readListEnd() else: @@ -19002,12 +16964,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19053,12 +17009,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -19066,14 +17022,14 @@ def read(self, iprot): self.part_vals = [] (_etype748, _size745) = iprot.readListBegin() for _i749 in xrange(_size745): - _elem750 = iprot.readString() + _elem750 = iprot.readString(); self.part_vals.append(_elem750) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -19112,14 +17068,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19214,13 +17162,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19272,12 +17213,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -19285,19 +17226,19 @@ def read(self, iprot): self.part_vals = [] (_etype762, _size759) = iprot.readListBegin() for _i763 in xrange(_size759): - _elem764 = iprot.readString() + _elem764 = iprot.readString(); self.part_vals.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.user_name = iprot.readString() + self.user_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 6: @@ -19305,7 +17246,7 @@ def read(self, iprot): self.group_names = [] (_etype768, _size765) = iprot.readListBegin() for _i769 in xrange(_size765): - _elem770 = iprot.readString() + _elem770 = iprot.readString(); self.group_names.append(_elem770) iprot.readListEnd() else: @@ -19357,16 +17298,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19461,13 +17392,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19513,12 +17437,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -19526,14 +17450,14 @@ def read(self, iprot): self.part_vals = [] (_etype783, _size780) = iprot.readListBegin() for _i784 in xrange(_size780): - _elem785 = iprot.readString() + _elem785 = iprot.readString(); self.part_vals.append(_elem785) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -19572,14 +17496,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19624,7 +17540,7 @@ def read(self, iprot): self.success = [] (_etype790, _size787) = iprot.readListBegin() for _i791 in xrange(_size787): - _elem792 = iprot.readString() + _elem792 = iprot.readString(); self.success.append(_elem792) iprot.readListEnd() else: @@ -19673,13 +17589,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19725,22 +17634,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.filter = iprot.readString() + self.filter = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I16: - self.max_parts = iprot.readI16() + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -19776,14 +17685,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19878,13 +17779,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19930,22 +17824,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.filter = iprot.readString() + self.filter = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.max_parts = iprot.readI32() + self.max_parts = iprot.readI32(); else: iprot.skip(ftype) else: @@ -19981,14 +17875,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20083,13 +17969,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20151,11 +18030,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20242,13 +18116,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20291,17 +18158,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.filter = iprot.readString() + self.filter = iprot.readString(); else: iprot.skip(ftype) else: @@ -20333,13 +18200,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.filter) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20381,7 +18241,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.I32: - self.success = iprot.readI32() + self.success = iprot.readI32(); else: iprot.skip(ftype) elif fid == 1: @@ -20425,13 +18285,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20474,12 +18327,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -20487,7 +18340,7 @@ def read(self, iprot): self.names = [] (_etype811, _size808) = iprot.readListBegin() for _i812 in xrange(_size808): - _elem813 = iprot.readString() + _elem813 = iprot.readString(); self.names.append(_elem813) iprot.readListEnd() else: @@ -20524,13 +18377,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20625,13 +18471,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20674,12 +18513,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -20717,13 +18556,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20798,12 +18630,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20846,12 +18672,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -20897,13 +18723,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20978,12 +18797,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21029,12 +18842,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -21082,14 +18895,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_part) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21164,12 +18969,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21215,12 +19014,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -21228,7 +19027,7 @@ def read(self, iprot): self.part_vals = [] (_etype832, _size829) = iprot.readListBegin() for _i833 in xrange(_size829): - _elem834 = iprot.readString() + _elem834 = iprot.readString(); self.part_vals.append(_elem834) iprot.readListEnd() else: @@ -21275,14 +19074,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21357,12 +19148,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21405,14 +19190,14 @@ def read(self, iprot): self.part_vals = [] (_etype839, _size836) = iprot.readListBegin() for _i840 in xrange(_size836): - _elem841 = iprot.readString() + _elem841 = iprot.readString(); self.part_vals.append(_elem841) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: - self.throw_exception = iprot.readBool() + self.throw_exception = iprot.readBool(); else: iprot.skip(ftype) else: @@ -21443,12 +19228,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.throw_exception) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21487,7 +19266,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -21521,12 +19300,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21566,12 +19339,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.defaultValue = iprot.readString() + self.defaultValue = iprot.readString(); else: iprot.skip(ftype) else: @@ -21599,12 +19372,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.defaultValue) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21643,7 +19410,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString() + self.success = iprot.readString(); else: iprot.skip(ftype) elif fid == 1: @@ -21677,12 +19444,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21719,7 +19480,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -21743,11 +19504,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21789,7 +19545,7 @@ def read(self, iprot): self.success = [] (_etype846, _size843) = iprot.readListBegin() for _i847 in xrange(_size843): - _elem848 = iprot.readString() + _elem848 = iprot.readString(); self.success.append(_elem848) iprot.readListEnd() else: @@ -21828,12 +19584,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21870,7 +19620,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -21894,11 +19644,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21938,10 +19683,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype851, _vtype852, _size850 ) = iprot.readMapBegin() + (_ktype851, _vtype852, _size850 ) = iprot.readMapBegin() for _i854 in xrange(_size850): - _key855 = iprot.readString() - _val856 = iprot.readString() + _key855 = iprot.readString(); + _val856 = iprot.readString(); self.success[_key855] = _val856 iprot.readMapEnd() else: @@ -21981,12 +19726,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22032,28 +19771,28 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype860, _vtype861, _size859 ) = iprot.readMapBegin() + (_ktype860, _vtype861, _size859 ) = iprot.readMapBegin() for _i863 in xrange(_size859): - _key864 = iprot.readString() - _val865 = iprot.readString() + _key864 = iprot.readString(); + _val865 = iprot.readString(); self.part_vals[_key864] = _val865 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.eventType = iprot.readI32() + self.eventType = iprot.readI32(); else: iprot.skip(ftype) else: @@ -22093,14 +19832,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.eventType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22227,16 +19958,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - value = (value * 31) ^ hash(self.o5) - value = (value * 31) ^ hash(self.o6) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22282,28 +20003,28 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype869, _vtype870, _size868 ) = iprot.readMapBegin() + (_ktype869, _vtype870, _size868 ) = iprot.readMapBegin() for _i872 in xrange(_size868): - _key873 = iprot.readString() - _val874 = iprot.readString() + _key873 = iprot.readString(); + _val874 = iprot.readString(); self.part_vals[_key873] = _val874 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.eventType = iprot.readI32() + self.eventType = iprot.readI32(); else: iprot.skip(ftype) else: @@ -22343,14 +20064,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.eventType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22404,7 +20117,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -22488,17 +20201,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - value = (value * 31) ^ hash(self.o5) - value = (value * 31) ^ hash(self.o6) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22573,12 +20275,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_index) - value = (value * 31) ^ hash(self.index_table) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22678,14 +20374,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22731,17 +20419,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.base_tbl_name = iprot.readString() + self.base_tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.idx_name = iprot.readString() + self.idx_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -22783,14 +20471,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.base_tbl_name) - value = (value * 31) ^ hash(self.idx_name) - value = (value * 31) ^ hash(self.new_idx) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22865,12 +20545,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22916,22 +20590,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.index_name = iprot.readString() + self.index_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) else: @@ -22967,14 +20641,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.index_name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23016,7 +20682,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -23060,13 +20726,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23109,17 +20768,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.index_name = iprot.readString() + self.index_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -23151,13 +20810,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.index_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23244,13 +20896,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23293,17 +20938,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_indexes = iprot.readI16() + self.max_indexes = iprot.readI16(); else: iprot.skip(ftype) else: @@ -23335,13 +20980,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23436,13 +21074,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23485,17 +21116,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.max_indexes = iprot.readI16() + self.max_indexes = iprot.readI16(); else: iprot.skip(ftype) else: @@ -23527,13 +21158,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23575,7 +21199,7 @@ def read(self, iprot): self.success = [] (_etype887, _size884) = iprot.readListBegin() for _i888 in xrange(_size884): - _elem889 = iprot.readString() + _elem889 = iprot.readString(); self.success.append(_elem889) iprot.readListEnd() else: @@ -23614,12 +21238,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23681,11 +21299,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stats_obj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23733,7 +21346,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -23797,15 +21410,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23867,11 +21471,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stats_obj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23919,7 +21518,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -23983,15 +21582,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24034,17 +21624,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.col_name = iprot.readString() + self.col_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -24076,13 +21666,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24195,15 +21778,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24249,22 +21823,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.col_name = iprot.readString() + self.col_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -24300,14 +21874,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24420,15 +21986,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24490,11 +22047,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24581,13 +22133,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24649,11 +22194,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24740,13 +22280,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24808,11 +22341,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24899,13 +22427,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24967,11 +22488,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25019,7 +22535,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -25083,15 +22599,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25137,22 +22644,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.part_name = iprot.readString() + self.part_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.col_name = iprot.readString() + self.col_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -25188,14 +22695,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25243,7 +22742,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -25307,15 +22806,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25358,17 +22848,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.db_name = iprot.readString() + self.db_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tbl_name = iprot.readString() + self.tbl_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.col_name = iprot.readString() + self.col_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -25400,13 +22890,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25454,7 +22937,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -25518,15 +23001,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25588,11 +23062,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.func) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25693,14 +23162,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25740,12 +23201,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = iprot.readString() + self.funcName = iprot.readString(); else: iprot.skip(ftype) else: @@ -25773,12 +23234,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25853,12 +23308,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25901,12 +23350,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = iprot.readString() + self.funcName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -25944,13 +23393,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - value = (value * 31) ^ hash(self.newFunc) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26025,12 +23467,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26070,12 +23506,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.pattern = iprot.readString() + self.pattern = iprot.readString(); else: iprot.skip(ftype) else: @@ -26103,12 +23539,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26150,7 +23580,7 @@ def read(self, iprot): self.success = [] (_etype894, _size891) = iprot.readListBegin() for _i895 in xrange(_size891): - _elem896 = iprot.readString() + _elem896 = iprot.readString(); self.success.append(_elem896) iprot.readListEnd() else: @@ -26189,12 +23619,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26234,12 +23658,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.funcName = iprot.readString() + self.funcName = iprot.readString(); else: iprot.skip(ftype) else: @@ -26267,12 +23691,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26359,13 +23777,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26408,10 +23819,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26485,12 +23892,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26552,11 +23953,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26595,7 +23991,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -26629,12 +24025,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26671,7 +24061,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = iprot.readString() + self.role_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -26695,11 +24085,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26738,7 +24123,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -26772,12 +24157,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26820,10 +24199,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26865,7 +24240,7 @@ def read(self, iprot): self.success = [] (_etype901, _size898) = iprot.readListBegin() for _i902 in xrange(_size898): - _elem903 = iprot.readString() + _elem903 = iprot.readString(); self.success.append(_elem903) iprot.readListEnd() else: @@ -26904,12 +24279,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26961,32 +24330,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = iprot.readString() + self.role_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principal_name = iprot.readString() + self.principal_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.principal_type = iprot.readI32() + self.principal_type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.grantor = iprot.readString() + self.grantor = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.grantorType = iprot.readI32() + self.grantorType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.BOOL: - self.grant_option = iprot.readBool() + self.grant_option = iprot.readBool(); else: iprot.skip(ftype) else: @@ -27030,16 +24399,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grant_option) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27078,7 +24437,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -27112,12 +24471,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27160,17 +24513,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.role_name = iprot.readString() + self.role_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principal_name = iprot.readString() + self.principal_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.principal_type = iprot.readI32() + self.principal_type = iprot.readI32(); else: iprot.skip(ftype) else: @@ -27202,13 +24555,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27247,7 +24593,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -27281,12 +24627,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27326,12 +24666,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = iprot.readString() + self.principal_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.principal_type = iprot.readI32() + self.principal_type = iprot.readI32(); else: iprot.skip(ftype) else: @@ -27359,12 +24699,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27446,12 +24780,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27513,11 +24841,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27591,12 +24914,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27658,11 +24975,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27736,12 +25048,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27803,11 +25109,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27881,12 +25182,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27935,7 +25230,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user_name = iprot.readString() + self.user_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -27943,7 +25238,7 @@ def read(self, iprot): self.group_names = [] (_etype915, _size912) = iprot.readListBegin() for _i916 in xrange(_size912): - _elem917 = iprot.readString() + _elem917 = iprot.readString(); self.group_names.append(_elem917) iprot.readListEnd() else: @@ -27980,13 +25275,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.hiveObject) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28060,12 +25348,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28108,12 +25390,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = iprot.readString() + self.principal_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.principal_type = iprot.readI32() + self.principal_type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: @@ -28151,13 +25433,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.hiveObject) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28239,12 +25514,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28306,11 +25575,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28349,7 +25613,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -28383,12 +25647,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28450,11 +25708,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28493,7 +25746,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) elif fid == 1: @@ -28527,12 +25780,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28594,11 +25841,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28672,12 +25914,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28717,7 +25953,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.user_name = iprot.readString() + self.user_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: @@ -28725,7 +25961,7 @@ def read(self, iprot): self.group_names = [] (_etype929, _size926) = iprot.readListBegin() for _i930 in xrange(_size926): - _elem931 = iprot.readString() + _elem931 = iprot.readString(); self.group_names.append(_elem931) iprot.readListEnd() else: @@ -28758,12 +25994,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28805,7 +26035,7 @@ def read(self, iprot): self.success = [] (_etype936, _size933) = iprot.readListBegin() for _i937 in xrange(_size933): - _elem938 = iprot.readString() + _elem938 = iprot.readString(); self.success.append(_elem938) iprot.readListEnd() else: @@ -28844,12 +26074,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28889,12 +26113,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_owner = iprot.readString() + self.token_owner = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.renewer_kerberos_principal_name = iprot.readString() + self.renewer_kerberos_principal_name = iprot.readString(); else: iprot.skip(ftype) else: @@ -28922,12 +26146,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_owner) - value = (value * 31) ^ hash(self.renewer_kerberos_principal_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28966,7 +26184,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString() + self.success = iprot.readString(); else: iprot.skip(ftype) elif fid == 1: @@ -29000,12 +26218,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29042,7 +26254,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_str_form = iprot.readString() + self.token_str_form = iprot.readString(); else: iprot.skip(ftype) else: @@ -29066,11 +26278,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_str_form) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29109,7 +26316,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.I64: - self.success = iprot.readI64() + self.success = iprot.readI64(); else: iprot.skip(ftype) elif fid == 1: @@ -29143,12 +26350,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29185,7 +26386,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.token_str_form = iprot.readString() + self.token_str_form = iprot.readString(); else: iprot.skip(ftype) else: @@ -29209,11 +26410,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_str_form) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29275,11 +26471,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29322,10 +26513,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29386,11 +26573,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29433,10 +26615,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29497,11 +26675,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29563,11 +26736,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29628,11 +26796,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29694,11 +26857,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29760,11 +26918,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29826,11 +26979,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29905,12 +27053,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29972,11 +27114,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30063,13 +27200,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30131,11 +27261,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30235,14 +27360,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30304,11 +27421,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30383,12 +27495,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30450,11 +27556,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30515,11 +27616,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30581,11 +27677,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.ids) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30673,13 +27764,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30741,11 +27825,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30806,11 +27885,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30872,11 +27946,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30919,10 +27988,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -30984,11 +28049,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31049,11 +28109,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31115,11 +28170,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31194,12 +28244,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31261,11 +28305,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31326,11 +28365,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31373,10 +28407,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31437,11 +28467,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31503,11 +28528,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31568,11 +28588,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31615,10 +28630,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31661,10 +28672,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31726,11 +28733,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31791,11 +28793,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31857,11 +28854,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31922,11 +28914,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -31988,11 +28975,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -32053,11 +29035,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -32119,11 +29096,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -32184,11 +29156,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -32250,11 +29217,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -32315,11 +29277,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py b/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py index d1c07a5..81f70eb 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index fbeab5e..b926700 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -253,12 +253,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.version = iprot.readString() + self.version = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.comments = iprot.readString() + self.comments = iprot.readString(); else: iprot.skip(ftype) else: @@ -286,12 +286,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.version) - value = (value * 31) ^ hash(self.comments) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -334,17 +328,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type = iprot.readString() + self.type = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.comment = iprot.readString() + self.comment = iprot.readString(); else: iprot.skip(ftype) else: @@ -376,13 +370,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.comment) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -428,17 +415,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.type1 = iprot.readString() + self.type1 = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.type2 = iprot.readString() + self.type2 = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -488,14 +475,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.type1) - value = (value * 31) ^ hash(self.type2) - value = (value * 31) ^ hash(self.fields) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -544,17 +523,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.objectType = iprot.readI32() + self.objectType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.objectName = iprot.readString() + self.objectName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -562,14 +541,14 @@ def read(self, iprot): self.partValues = [] (_etype10, _size7) = iprot.readListBegin() for _i11 in xrange(_size7): - _elem12 = iprot.readString() + _elem12 = iprot.readString(); self.partValues.append(_elem12) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.columnName = iprot.readString() + self.columnName = iprot.readString(); else: iprot.skip(ftype) else: @@ -612,15 +591,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.objectType) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.objectName) - value = (value * 31) ^ hash(self.partValues) - value = (value * 31) ^ hash(self.columnName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -669,27 +639,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.privilege = iprot.readString() + self.privilege = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.grantor = iprot.readString() + self.grantor = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.grantorType = iprot.readI32() + self.grantorType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: - self.grantOption = iprot.readBool() + self.grantOption = iprot.readBool(); else: iprot.skip(ftype) else: @@ -729,15 +699,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privilege) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -789,12 +750,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principalName = iprot.readString() + self.principalName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.principalType = iprot.readI32() + self.principalType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 4: @@ -836,14 +797,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.hiveObject) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantInfo) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -913,11 +866,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -961,9 +909,9 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.userPrivileges = {} - (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() + (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() for _i25 in xrange(_size21): - _key26 = iprot.readString() + _key26 = iprot.readString(); _val27 = [] (_etype31, _size28) = iprot.readListBegin() for _i32 in xrange(_size28): @@ -978,9 +926,9 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.groupPrivileges = {} - (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() + (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() for _i38 in xrange(_size34): - _key39 = iprot.readString() + _key39 = iprot.readString(); _val40 = [] (_etype44, _size41) = iprot.readListBegin() for _i45 in xrange(_size41): @@ -995,9 +943,9 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.rolePrivileges = {} - (_ktype48, _vtype49, _size47 ) = iprot.readMapBegin() + (_ktype48, _vtype49, _size47 ) = iprot.readMapBegin() for _i51 in xrange(_size47): - _key52 = iprot.readString() + _key52 = iprot.readString(); _val53 = [] (_etype57, _size54) = iprot.readListBegin() for _i58 in xrange(_size54): @@ -1059,13 +1007,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.userPrivileges) - value = (value * 31) ^ hash(self.groupPrivileges) - value = (value * 31) ^ hash(self.rolePrivileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1108,7 +1049,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.requestType = iprot.readI32() + self.requestType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: @@ -1119,7 +1060,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: - self.revokeGrantOption = iprot.readBool() + self.revokeGrantOption = iprot.readBool(); else: iprot.skip(ftype) else: @@ -1151,13 +1092,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.requestType) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.revokeGrantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1194,7 +1128,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) else: @@ -1218,11 +1152,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1265,17 +1194,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = iprot.readString() + self.roleName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.ownerName = iprot.readString() + self.ownerName = iprot.readString(); else: iprot.skip(ftype) else: @@ -1307,13 +1236,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.ownerName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1368,37 +1290,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = iprot.readString() + self.roleName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.principalName = iprot.readString() + self.principalName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.principalType = iprot.readI32() + self.principalType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.grantOption = iprot.readBool() + self.grantOption = iprot.readBool(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.grantTime = iprot.readI32() + self.grantTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.grantorName = iprot.readString() + self.grantorName = iprot.readString(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: - self.grantorPrincipalType = iprot.readI32() + self.grantorPrincipalType = iprot.readI32(); else: iprot.skip(ftype) else: @@ -1446,17 +1368,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantOption) - value = (value * 31) ^ hash(self.grantTime) - value = (value * 31) ^ hash(self.grantorName) - value = (value * 31) ^ hash(self.grantorPrincipalType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1496,12 +1407,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.principal_name = iprot.readString() + self.principal_name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.principal_type = iprot.readI32() + self.principal_type = iprot.readI32(); else: iprot.skip(ftype) else: @@ -1533,12 +1444,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1610,11 +1515,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principalGrants) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1651,7 +1551,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.roleName = iprot.readString() + self.roleName = iprot.readString(); else: iprot.skip(ftype) else: @@ -1677,11 +1577,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1753,11 +1648,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principalGrants) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1812,37 +1702,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.requestType = iprot.readI32() + self.requestType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.roleName = iprot.readString() + self.roleName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.principalName = iprot.readString() + self.principalName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.principalType = iprot.readI32() + self.principalType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.grantor = iprot.readString() + self.grantor = iprot.readString(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.grantorType = iprot.readI32() + self.grantorType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.BOOL: - self.grantOption = iprot.readBool() + self.grantOption = iprot.readBool(); else: iprot.skip(ftype) else: @@ -1890,17 +1780,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.requestType) - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1937,7 +1816,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.success = iprot.readBool() + self.success = iprot.readBool(); else: iprot.skip(ftype) else: @@ -1961,11 +1840,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2020,26 +1894,26 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.description = iprot.readString() + self.description = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.locationUri = iprot.readString() + self.locationUri = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype84, _vtype85, _size83 ) = iprot.readMapBegin() + (_ktype84, _vtype85, _size83 ) = iprot.readMapBegin() for _i87 in xrange(_size83): - _key88 = iprot.readString() - _val89 = iprot.readString() + _key88 = iprot.readString(); + _val89 = iprot.readString(); self.parameters[_key88] = _val89 iprot.readMapEnd() else: @@ -2052,12 +1926,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.ownerName = iprot.readString() + self.ownerName = iprot.readString(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: - self.ownerType = iprot.readI32() + self.ownerType = iprot.readI32(); else: iprot.skip(ftype) else: @@ -2109,17 +1983,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.description) - value = (value * 31) ^ hash(self.locationUri) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.ownerName) - value = (value * 31) ^ hash(self.ownerType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2162,21 +2025,21 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString() + self.name = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.serializationLib = iprot.readString() + self.serializationLib = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.parameters = {} - (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() + (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() for _i96 in xrange(_size92): - _key97 = iprot.readString() - _val98 = iprot.readString() + _key97 = iprot.readString(); + _val98 = iprot.readString(); self.parameters[_key97] = _val98 iprot.readMapEnd() else: @@ -2214,13 +2077,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.serializationLib) - value = (value * 31) ^ hash(self.parameters) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2260,12 +2116,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.col = iprot.readString() + self.col = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.order = iprot.readI32() + self.order = iprot.readI32(); else: iprot.skip(ftype) else: @@ -2293,12 +2149,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.col) - value = (value * 31) ^ hash(self.order) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2344,7 +2194,7 @@ def read(self, iprot): self.skewedColNames = [] (_etype104, _size101) = iprot.readListBegin() for _i105 in xrange(_size101): - _elem106 = iprot.readString() + _elem106 = iprot.readString(); self.skewedColNames.append(_elem106) iprot.readListEnd() else: @@ -2357,7 +2207,7 @@ def read(self, iprot): _elem112 = [] (_etype116, _size113) = iprot.readListBegin() for _i117 in xrange(_size113): - _elem118 = iprot.readString() + _elem118 = iprot.readString(); _elem112.append(_elem118) iprot.readListEnd() self.skewedColValues.append(_elem112) @@ -2367,15 +2217,15 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.skewedColValueLocationMaps = {} - (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() + (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() for _i123 in xrange(_size119): _key124 = [] (_etype129, _size126) = iprot.readListBegin() for _i130 in xrange(_size126): - _elem131 = iprot.readString() + _elem131 = iprot.readString(); _key124.append(_elem131) iprot.readListEnd() - _val125 = iprot.readString() + _val125 = iprot.readString(); self.skewedColValueLocationMaps[_key124] = _val125 iprot.readMapEnd() else: @@ -2425,13 +2275,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.skewedColNames) - value = (value * 31) ^ hash(self.skewedColValues) - value = (value * 31) ^ hash(self.skewedColValueLocationMaps) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2512,27 +2355,27 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.location = iprot.readString() + self.location = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.inputFormat = iprot.readString() + self.inputFormat = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.outputFormat = iprot.readString() + self.outputFormat = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: - self.compressed = iprot.readBool() + self.compressed = iprot.readBool(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.numBuckets = iprot.readI32() + self.numBuckets = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: @@ -2546,7 +2389,7 @@ def read(self, iprot): self.bucketCols = [] (_etype147, _size144) = iprot.readListBegin() for _i148 in xrange(_size144): - _elem149 = iprot.readString() + _elem149 = iprot.readString(); self.bucketCols.append(_elem149) iprot.readListEnd() else: @@ -2565,10 +2408,10 @@ def read(self, iprot): elif fid == 10: if ftype == TType.MAP: self.parameters = {} - (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() + (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() for _i160 in xrange(_size156): - _key161 = iprot.readString() - _val162 = iprot.readString() + _key161 = iprot.readString(); + _val162 = iprot.readString(); self.parameters[_key161] = _val162 iprot.readMapEnd() else: @@ -2581,7 +2424,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 12: if ftype == TType.BOOL: - self.storedAsSubDirectories = iprot.readBool() + self.storedAsSubDirectories = iprot.readBool(); else: iprot.skip(ftype) else: @@ -2662,22 +2505,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.cols) - value = (value * 31) ^ hash(self.location) - value = (value * 31) ^ hash(self.inputFormat) - value = (value * 31) ^ hash(self.outputFormat) - value = (value * 31) ^ hash(self.compressed) - value = (value * 31) ^ hash(self.numBuckets) - value = (value * 31) ^ hash(self.serdeInfo) - value = (value * 31) ^ hash(self.bucketCols) - value = (value * 31) ^ hash(self.sortCols) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.skewedInfo) - value = (value * 31) ^ hash(self.storedAsSubDirectories) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2753,32 +2580,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.owner = iprot.readString() + self.owner = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() + self.lastAccessTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.retention = iprot.readI32() + self.retention = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: @@ -2801,27 +2628,27 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() + (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() for _i178 in xrange(_size174): - _key179 = iprot.readString() - _val180 = iprot.readString() + _key179 = iprot.readString(); + _val180 = iprot.readString(); self.parameters[_key179] = _val180 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.viewOriginalText = iprot.readString() + self.viewOriginalText = iprot.readString(); else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.viewExpandedText = iprot.readString() + self.viewExpandedText = iprot.readString(); else: iprot.skip(ftype) elif fid == 12: if ftype == TType.STRING: - self.tableType = iprot.readString() + self.tableType = iprot.readString(); else: iprot.skip(ftype) elif fid == 13: @@ -2832,7 +2659,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 14: if ftype == TType.BOOL: - self.temporary = iprot.readBool() + self.temporary = iprot.readBool(); else: iprot.skip(ftype) else: @@ -2915,24 +2742,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.owner) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.retention) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.partitionKeys) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.viewOriginalText) - value = (value * 31) ^ hash(self.viewExpandedText) - value = (value * 31) ^ hash(self.tableType) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.temporary) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2993,29 +2802,29 @@ def read(self, iprot): self.values = [] (_etype187, _size184) = iprot.readListBegin() for _i188 in xrange(_size184): - _elem189 = iprot.readString() + _elem189 = iprot.readString(); self.values.append(_elem189) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() + self.lastAccessTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: @@ -3027,10 +2836,10 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() + (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() for _i194 in xrange(_size190): - _key195 = iprot.readString() - _val196 = iprot.readString() + _key195 = iprot.readString(); + _val196 = iprot.readString(); self.parameters[_key195] = _val196 iprot.readMapEnd() else: @@ -3097,18 +2906,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3163,33 +2960,33 @@ def read(self, iprot): self.values = [] (_etype203, _size200) = iprot.readListBegin() for _i204 in xrange(_size200): - _elem205 = iprot.readString() + _elem205 = iprot.readString(); self.values.append(_elem205) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() + self.lastAccessTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.relativePath = iprot.readString() + self.relativePath = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype207, _vtype208, _size206 ) = iprot.readMapBegin() + (_ktype207, _vtype208, _size206 ) = iprot.readMapBegin() for _i210 in xrange(_size206): - _key211 = iprot.readString() - _val212 = iprot.readString() + _key211 = iprot.readString(); + _val212 = iprot.readString(); self.parameters[_key211] = _val212 iprot.readMapEnd() else: @@ -3248,16 +3045,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.relativePath) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3340,12 +3127,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - value = (value * 31) ^ hash(self.sd) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3415,11 +3196,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3468,17 +3244,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.rootPath = iprot.readString() + self.rootPath = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -3530,15 +3306,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.rootPath) - value = (value * 31) ^ hash(self.sharedSDPartitionSpec) - value = (value * 31) ^ hash(self.partitionList) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3602,37 +3369,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.indexName = iprot.readString() + self.indexName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.indexHandlerClass = iprot.readString() + self.indexHandlerClass = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.origTableName = iprot.readString() + self.origTableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.lastAccessTime = iprot.readI32() + self.lastAccessTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.indexTableName = iprot.readString() + self.indexTableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 8: @@ -3644,17 +3411,17 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype231, _vtype232, _size230 ) = iprot.readMapBegin() + (_ktype231, _vtype232, _size230 ) = iprot.readMapBegin() for _i234 in xrange(_size230): - _key235 = iprot.readString() - _val236 = iprot.readString() + _key235 = iprot.readString(); + _val236 = iprot.readString(); self.parameters[_key235] = _val236 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.BOOL: - self.deferredRebuild = iprot.readBool() + self.deferredRebuild = iprot.readBool(); else: iprot.skip(ftype) else: @@ -3718,20 +3485,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.indexName) - value = (value * 31) ^ hash(self.indexHandlerClass) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.origTableName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.indexTableName) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.deferredRebuild) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3749,6 +3502,7 @@ class BooleanColumnStatsData: - numTrues - numFalses - numNulls + - bitVectors """ thrift_spec = ( @@ -3756,12 +3510,14 @@ class BooleanColumnStatsData: (1, TType.I64, 'numTrues', None, None, ), # 1 (2, TType.I64, 'numFalses', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.STRING, 'bitVectors', None, None, ), # 4 ) - def __init__(self, numTrues=None, numFalses=None, numNulls=None,): + def __init__(self, numTrues=None, numFalses=None, numNulls=None, bitVectors=None,): self.numTrues = numTrues self.numFalses = numFalses self.numNulls = numNulls + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -3774,17 +3530,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.numTrues = iprot.readI64() + self.numTrues = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.numFalses = iprot.readI64() + self.numFalses = iprot.readI64(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -3809,6 +3570,10 @@ def write(self, oprot): oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 4) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3819,16 +3584,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numFalses is unset!') if self.numNulls is None: raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.numTrues) - value = (value * 31) ^ hash(self.numFalses) - value = (value * 31) ^ hash(self.numNulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3847,6 +3607,7 @@ class DoubleColumnStatsData: - highValue - numNulls - numDVs + - bitVectors """ thrift_spec = ( @@ -3855,13 +3616,15 @@ class DoubleColumnStatsData: (2, TType.DOUBLE, 'highValue', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None,): + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -3874,22 +3637,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.DOUBLE: - self.lowValue = iprot.readDouble() + self.lowValue = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.DOUBLE: - self.highValue = iprot.readDouble() + self.highValue = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: - self.numDVs = iprot.readI64() + self.numDVs = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -3918,6 +3686,10 @@ def write(self, oprot): oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3926,17 +3698,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: raise TProtocol.TProtocolException(message='Required field numDVs is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3955,6 +3721,7 @@ class LongColumnStatsData: - highValue - numNulls - numDVs + - bitVectors """ thrift_spec = ( @@ -3963,13 +3730,15 @@ class LongColumnStatsData: (2, TType.I64, 'highValue', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None,): + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -3982,22 +3751,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lowValue = iprot.readI64() + self.lowValue = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.highValue = iprot.readI64() + self.highValue = iprot.readI64(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: - self.numDVs = iprot.readI64() + self.numDVs = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -4026,6 +3800,10 @@ def write(self, oprot): oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4034,17 +3812,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: raise TProtocol.TProtocolException(message='Required field numDVs is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4063,6 +3835,7 @@ class StringColumnStatsData: - avgColLen - numNulls - numDVs + - bitVectors """ thrift_spec = ( @@ -4071,13 +3844,15 @@ class StringColumnStatsData: (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, numDVs=None,): + def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, numDVs=None, bitVectors=None,): self.maxColLen = maxColLen self.avgColLen = avgColLen self.numNulls = numNulls self.numDVs = numDVs + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4090,22 +3865,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.maxColLen = iprot.readI64() + self.maxColLen = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.DOUBLE: - self.avgColLen = iprot.readDouble() + self.avgColLen = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: - self.numDVs = iprot.readI64() + self.numDVs = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -4134,6 +3914,10 @@ def write(self, oprot): oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4146,17 +3930,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: raise TProtocol.TProtocolException(message='Required field numDVs is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4174,6 +3952,7 @@ class BinaryColumnStatsData: - maxColLen - avgColLen - numNulls + - bitVectors """ thrift_spec = ( @@ -4181,12 +3960,14 @@ class BinaryColumnStatsData: (1, TType.I64, 'maxColLen', None, None, ), # 1 (2, TType.DOUBLE, 'avgColLen', None, None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 + (4, TType.STRING, 'bitVectors', None, None, ), # 4 ) - def __init__(self, maxColLen=None, avgColLen=None, numNulls=None,): + def __init__(self, maxColLen=None, avgColLen=None, numNulls=None, bitVectors=None,): self.maxColLen = maxColLen self.avgColLen = avgColLen self.numNulls = numNulls + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4199,17 +3980,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.maxColLen = iprot.readI64() + self.maxColLen = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.DOUBLE: - self.avgColLen = iprot.readDouble() + self.avgColLen = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -4234,6 +4020,10 @@ def write(self, oprot): oprot.writeFieldBegin('numNulls', TType.I64, 3) oprot.writeI64(self.numNulls) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 4) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4244,16 +4034,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field avgColLen is unset!') if self.numNulls is None: raise TProtocol.TProtocolException(message='Required field numNulls is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) - value = (value * 31) ^ hash(self.numNulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4294,12 +4079,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.unscaled = iprot.readString() + self.unscaled = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.scale = iprot.readI16() + self.scale = iprot.readI16(); else: iprot.skip(ftype) else: @@ -4331,12 +4116,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.unscaled) - value = (value * 31) ^ hash(self.scale) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4355,6 +4134,7 @@ class DecimalColumnStatsData: - highValue - numNulls - numDVs + - bitVectors """ thrift_spec = ( @@ -4363,13 +4143,15 @@ class DecimalColumnStatsData: (2, TType.STRUCT, 'highValue', (Decimal, Decimal.thrift_spec), None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None,): + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4394,12 +4176,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: - self.numDVs = iprot.readI64() + self.numDVs = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -4428,6 +4215,10 @@ def write(self, oprot): oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4436,17 +4227,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: raise TProtocol.TProtocolException(message='Required field numDVs is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4483,7 +4268,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.daysSinceEpoch = iprot.readI64() + self.daysSinceEpoch = iprot.readI64(); else: iprot.skip(ftype) else: @@ -4509,11 +4294,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.daysSinceEpoch) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4532,6 +4312,7 @@ class DateColumnStatsData: - highValue - numNulls - numDVs + - bitVectors """ thrift_spec = ( @@ -4540,13 +4321,15 @@ class DateColumnStatsData: (2, TType.STRUCT, 'highValue', (Date, Date.thrift_spec), None, ), # 2 (3, TType.I64, 'numNulls', None, None, ), # 3 (4, TType.I64, 'numDVs', None, None, ), # 4 + (5, TType.STRING, 'bitVectors', None, None, ), # 5 ) - def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None,): + def __init__(self, lowValue=None, highValue=None, numNulls=None, numDVs=None, bitVectors=None,): self.lowValue = lowValue self.highValue = highValue self.numNulls = numNulls self.numDVs = numDVs + self.bitVectors = bitVectors def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4571,12 +4354,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.I64: - self.numNulls = iprot.readI64() + self.numNulls = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I64: - self.numDVs = iprot.readI64() + self.numDVs = iprot.readI64(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.bitVectors = iprot.readString(); else: iprot.skip(ftype) else: @@ -4605,6 +4393,10 @@ def write(self, oprot): oprot.writeFieldBegin('numDVs', TType.I64, 4) oprot.writeI64(self.numDVs) oprot.writeFieldEnd() + if self.bitVectors is not None: + oprot.writeFieldBegin('bitVectors', TType.STRING, 5) + oprot.writeString(self.bitVectors) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4613,17 +4405,11 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field numNulls is unset!') if self.numDVs is None: raise TProtocol.TProtocolException(message='Required field numDVs is unset!') + if self.bitVectors is None: + raise TProtocol.TProtocolException(message='Required field bitVectors is unset!') return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4763,17 +4549,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.booleanStats) - value = (value * 31) ^ hash(self.longStats) - value = (value * 31) ^ hash(self.doubleStats) - value = (value * 31) ^ hash(self.stringStats) - value = (value * 31) ^ hash(self.binaryStats) - value = (value * 31) ^ hash(self.decimalStats) - value = (value * 31) ^ hash(self.dateStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4816,12 +4591,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.colName = iprot.readString() + self.colName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.colType = iprot.readString() + self.colType = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -4865,13 +4640,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colName) - value = (value * 31) ^ hash(self.colType) - value = (value * 31) ^ hash(self.statsData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4920,27 +4688,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.isTblLevel = iprot.readBool() + self.isTblLevel = iprot.readBool(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.partName = iprot.readString() + self.partName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: - self.lastAnalyzed = iprot.readI64() + self.lastAnalyzed = iprot.readI64(); else: iprot.skip(ftype) else: @@ -4986,15 +4754,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.isTblLevel) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partName) - value = (value * 31) ^ hash(self.lastAnalyzed) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5081,12 +4840,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.statsDesc) - value = (value * 31) ^ hash(self.statsObj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5137,7 +4890,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.partsFound = iprot.readI64() + self.partsFound = iprot.readI64(); else: iprot.skip(ftype) else: @@ -5172,12 +4925,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colStats) - value = (value * 31) ^ hash(self.partsFound) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5249,11 +4996,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5305,10 +5047,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() + (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() for _i270 in xrange(_size266): - _key271 = iprot.readString() - _val272 = iprot.readString() + _key271 = iprot.readString(); + _val272 = iprot.readString(); self.properties[_key271] = _val272 iprot.readMapEnd() else: @@ -5345,12 +5087,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fieldSchemas) - value = (value * 31) ^ hash(self.properties) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5388,10 +5124,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() + (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() for _i280 in xrange(_size276): - _key281 = iprot.readString() - _val282 = iprot.readString() + _key281 = iprot.readString(); + _val282 = iprot.readString(); self.properties[_key281] = _val282 iprot.readMapEnd() else: @@ -5421,11 +5157,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.properties) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5476,7 +5207,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: - self.hasUnknownPartitions = iprot.readBool() + self.hasUnknownPartitions = iprot.readBool(); else: iprot.skip(ftype) else: @@ -5511,12 +5242,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - value = (value * 31) ^ hash(self.hasUnknownPartitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5565,27 +5290,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.expr = iprot.readString() + self.expr = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.defaultPartitionName = iprot.readString() + self.defaultPartitionName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I16: - self.maxParts = iprot.readI16() + self.maxParts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -5631,15 +5356,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.expr) - value = (value * 31) ^ hash(self.defaultPartitionName) - value = (value * 31) ^ hash(self.maxParts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5711,11 +5427,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tableStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5753,9 +5464,9 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype300, _vtype301, _size299 ) = iprot.readMapBegin() + (_ktype300, _vtype301, _size299 ) = iprot.readMapBegin() for _i303 in xrange(_size299): - _key304 = iprot.readString() + _key304 = iprot.readString(); _val305 = [] (_etype309, _size306) = iprot.readListBegin() for _i310 in xrange(_size306): @@ -5797,11 +5508,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5844,12 +5550,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -5857,7 +5563,7 @@ def read(self, iprot): self.colNames = [] (_etype318, _size315) = iprot.readListBegin() for _i319 in xrange(_size315): - _elem320 = iprot.readString() + _elem320 = iprot.readString(); self.colNames.append(_elem320) iprot.readListEnd() else: @@ -5900,13 +5606,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.colNames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5952,12 +5651,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -5965,7 +5664,7 @@ def read(self, iprot): self.colNames = [] (_etype325, _size322) = iprot.readListBegin() for _i326 in xrange(_size322): - _elem327 = iprot.readString() + _elem327 = iprot.readString(); self.colNames.append(_elem327) iprot.readListEnd() else: @@ -5975,7 +5674,7 @@ def read(self, iprot): self.partNames = [] (_etype331, _size328) = iprot.readListBegin() for _i332 in xrange(_size328): - _elem333 = iprot.readString() + _elem333 = iprot.readString(); self.partNames.append(_elem333) iprot.readListEnd() else: @@ -6027,14 +5726,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.colNames) - value = (value * 31) ^ hash(self.partNames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6104,11 +5795,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6157,12 +5843,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -6178,12 +5864,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.ifNotExists = iprot.readBool() + self.ifNotExists = iprot.readBool(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: - self.needResult = iprot.readBool() + self.needResult = iprot.readBool(); else: iprot.skip(ftype) else: @@ -6234,15 +5920,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.parts) - value = (value * 31) ^ hash(self.ifNotExists) - value = (value * 31) ^ hash(self.needResult) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6312,11 +5989,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6356,12 +6028,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.expr = iprot.readString() + self.expr = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.partArchiveLevel = iprot.readI32() + self.partArchiveLevel = iprot.readI32(); else: iprot.skip(ftype) else: @@ -6391,12 +6063,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.expr) - value = (value * 31) ^ hash(self.partArchiveLevel) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6439,7 +6105,7 @@ def read(self, iprot): self.names = [] (_etype360, _size357) = iprot.readListBegin() for _i361 in xrange(_size357): - _elem362 = iprot.readString() + _elem362 = iprot.readString(); self.names.append(_elem362) iprot.readListEnd() else: @@ -6486,12 +6152,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.names) - value = (value * 31) ^ hash(self.exprs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6549,12 +6209,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -6565,17 +6225,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.deleteData = iprot.readBool() + self.deleteData = iprot.readBool(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: - self.ifExists = iprot.readBool() + self.ifExists = iprot.readBool(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.BOOL: - self.ignoreProtection = iprot.readBool() + self.ignoreProtection = iprot.readBool(); else: iprot.skip(ftype) elif fid == 7: @@ -6586,7 +6246,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.BOOL: - self.needResult = iprot.readBool() + self.needResult = iprot.readBool(); else: iprot.skip(ftype) else: @@ -6644,18 +6304,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.parts) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.ifExists) - value = (value * 31) ^ hash(self.ignoreProtection) - value = (value * 31) ^ hash(self.environmentContext) - value = (value * 31) ^ hash(self.needResult) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6695,12 +6343,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.resourceType = iprot.readI32() + self.resourceType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.uri = iprot.readString() + self.uri = iprot.readString(); else: iprot.skip(ftype) else: @@ -6728,12 +6376,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.resourceType) - value = (value * 31) ^ hash(self.uri) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6791,37 +6433,37 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.functionName = iprot.readString() + self.functionName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.className = iprot.readString() + self.className = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.ownerName = iprot.readString() + self.ownerName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.ownerType = iprot.readI32() + self.ownerType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.createTime = iprot.readI32() + self.createTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I32: - self.functionType = iprot.readI32() + self.functionType = iprot.readI32(); else: iprot.skip(ftype) elif fid == 8: @@ -6887,18 +6529,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.functionName) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.className) - value = (value * 31) ^ hash(self.ownerName) - value = (value * 31) ^ hash(self.ownerType) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.functionType) - value = (value * 31) ^ hash(self.resourceUris) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6944,22 +6574,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.id = iprot.readI64() + self.id = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.state = iprot.readI32() + self.state = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.user = iprot.readString() + self.user = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.hostname = iprot.readString() + self.hostname = iprot.readString(); else: iprot.skip(ftype) else: @@ -7003,14 +6633,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.id) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7050,7 +6672,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.txn_high_water_mark = iprot.readI64() + self.txn_high_water_mark = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: @@ -7096,12 +6718,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_high_water_mark) - value = (value * 31) ^ hash(self.open_txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7141,7 +6757,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.txn_high_water_mark = iprot.readI64() + self.txn_high_water_mark = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: @@ -7149,7 +6765,7 @@ def read(self, iprot): self.open_txns = set() (_etype388, _size385) = iprot.readSetBegin() for _i389 in xrange(_size385): - _elem390 = iprot.readI64() + _elem390 = iprot.readI64(); self.open_txns.add(_elem390) iprot.readSetEnd() else: @@ -7186,12 +6802,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_high_water_mark) - value = (value * 31) ^ hash(self.open_txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7234,17 +6844,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.num_txns = iprot.readI32() + self.num_txns = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user = iprot.readString() + self.user = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.hostname = iprot.readString() + self.hostname = iprot.readString(); else: iprot.skip(ftype) else: @@ -7282,13 +6892,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.num_txns) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7328,7 +6931,7 @@ def read(self, iprot): self.txn_ids = [] (_etype395, _size392) = iprot.readListBegin() for _i396 in xrange(_size392): - _elem397 = iprot.readI64() + _elem397 = iprot.readI64(); self.txn_ids.append(_elem397) iprot.readListEnd() else: @@ -7359,11 +6962,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_ids) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7400,7 +6998,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) else: @@ -7426,11 +7024,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7467,7 +7060,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) else: @@ -7493,11 +7086,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7546,27 +7134,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.level = iprot.readI32() + self.level = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tablename = iprot.readString() + self.tablename = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.partitionname = iprot.readString() + self.partitionname = iprot.readString(); else: iprot.skip(ftype) else: @@ -7612,15 +7200,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.level) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7677,17 +7256,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.user = iprot.readString() + self.user = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.hostname = iprot.readString() + self.hostname = iprot.readString(); else: iprot.skip(ftype) else: @@ -7732,14 +7311,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.component) - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7779,12 +7350,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lockid = iprot.readI64() + self.lockid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.state = iprot.readI32() + self.state = iprot.readI32(); else: iprot.skip(ftype) else: @@ -7816,12 +7387,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.state) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7858,7 +7423,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lockid = iprot.readI64() + self.lockid = iprot.readI64(); else: iprot.skip(ftype) else: @@ -7884,11 +7449,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7925,7 +7485,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lockid = iprot.readI64() + self.lockid = iprot.readI64(); else: iprot.skip(ftype) else: @@ -7951,11 +7511,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7998,10 +7553,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8068,57 +7619,57 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lockid = iprot.readI64() + self.lockid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tablename = iprot.readString() + self.tablename = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.partname = iprot.readString() + self.partname = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I32: - self.state = iprot.readI32() + self.state = iprot.readI32(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 8: if ftype == TType.I64: - self.lastheartbeat = iprot.readI64() + self.lastheartbeat = iprot.readI64(); else: iprot.skip(ftype) elif fid == 9: if ftype == TType.I64: - self.acquiredat = iprot.readI64() + self.acquiredat = iprot.readI64(); else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.user = iprot.readString() + self.user = iprot.readString(); else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.hostname = iprot.readString() + self.hostname = iprot.readString(); else: iprot.skip(ftype) else: @@ -8196,21 +7747,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partname) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.lastheartbeat) - value = (value * 31) ^ hash(self.acquiredat) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8280,11 +7816,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.locks) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8324,12 +7855,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lockid = iprot.readI64() + self.lockid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) else: @@ -8357,12 +7888,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8402,12 +7927,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.min = iprot.readI64() + self.min = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.max = iprot.readI64() + self.max = iprot.readI64(); else: iprot.skip(ftype) else: @@ -8439,12 +7964,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.min) - value = (value * 31) ^ hash(self.max) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8487,7 +8006,7 @@ def read(self, iprot): self.aborted = set() (_etype416, _size413) = iprot.readSetBegin() for _i417 in xrange(_size413): - _elem418 = iprot.readI64() + _elem418 = iprot.readI64(); self.aborted.add(_elem418) iprot.readSetEnd() else: @@ -8497,7 +8016,7 @@ def read(self, iprot): self.nosuch = set() (_etype422, _size419) = iprot.readSetBegin() for _i423 in xrange(_size419): - _elem424 = iprot.readI64() + _elem424 = iprot.readI64(); self.nosuch.add(_elem424) iprot.readSetEnd() else: @@ -8537,12 +8056,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.aborted) - value = (value * 31) ^ hash(self.nosuch) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8591,27 +8104,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = iprot.readString() + self.tablename = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionname = iprot.readString() + self.partitionname = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.runas = iprot.readString() + self.runas = iprot.readString(); else: iprot.skip(ftype) else: @@ -8657,15 +8170,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.runas) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8708,10 +8212,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8769,42 +8269,42 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tablename = iprot.readString() + self.tablename = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partitionname = iprot.readString() + self.partitionname = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.state = iprot.readString() + self.state = iprot.readString(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.workerid = iprot.readString() + self.workerid = iprot.readString(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.I64: - self.start = iprot.readI64() + self.start = iprot.readI64(); else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.runAs = iprot.readString() + self.runAs = iprot.readString(); else: iprot.skip(ftype) else: @@ -8864,18 +8364,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.workerid) - value = (value * 31) ^ hash(self.start) - value = (value * 31) ^ hash(self.runAs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8947,11 +8435,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.compacts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8997,17 +8480,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.txnid = iprot.readI64() + self.txnid = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.dbname = iprot.readString() + self.dbname = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tablename = iprot.readString() + self.tablename = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: @@ -9015,7 +8498,7 @@ def read(self, iprot): self.partitionnames = [] (_etype437, _size434) = iprot.readListBegin() for _i438 in xrange(_size434): - _elem439 = iprot.readString() + _elem439 = iprot.readString(); self.partitionnames.append(_elem439) iprot.readListEnd() else: @@ -9064,14 +8547,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionnames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9111,12 +8586,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.lastEvent = iprot.readI64() + self.lastEvent = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.maxEvents = iprot.readI32() + self.maxEvents = iprot.readI32(); else: iprot.skip(ftype) else: @@ -9146,12 +8621,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lastEvent) - value = (value * 31) ^ hash(self.maxEvents) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9203,32 +8672,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.eventId = iprot.readI64() + self.eventId = iprot.readI64(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.eventTime = iprot.readI32() + self.eventTime = iprot.readI32(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.eventType = iprot.readString() + self.eventType = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -9280,16 +8749,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.eventId) - value = (value * 31) ^ hash(self.eventTime) - value = (value * 31) ^ hash(self.eventType) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9361,11 +8820,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.events) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9402,7 +8856,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I64: - self.eventId = iprot.readI64() + self.eventId = iprot.readI64(); else: iprot.skip(ftype) else: @@ -9428,11 +8882,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.eventId) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9472,7 +8921,7 @@ def read(self, iprot): self.filesAdded = [] (_etype451, _size448) = iprot.readListBegin() for _i452 in xrange(_size448): - _elem453 = iprot.readString() + _elem453 = iprot.readString(); self.filesAdded.append(_elem453) iprot.readListEnd() else: @@ -9503,11 +8952,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.filesAdded) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9569,11 +9013,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.insertData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9622,7 +9061,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.successful = iprot.readBool() + self.successful = iprot.readBool(); else: iprot.skip(ftype) elif fid == 2: @@ -9633,12 +9072,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: @@ -9646,7 +9085,7 @@ def read(self, iprot): self.partitionVals = [] (_etype458, _size455) = iprot.readListBegin() for _i459 in xrange(_size455): - _elem460 = iprot.readString() + _elem460 = iprot.readString(); self.partitionVals.append(_elem460) iprot.readListEnd() else: @@ -9695,15 +9134,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.successful) - value = (value * 31) ^ hash(self.data) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partitionVals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9746,10 +9176,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9789,12 +9215,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.metadata = iprot.readString() + self.metadata = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.includeBitset = iprot.readString() + self.includeBitset = iprot.readString(); else: iprot.skip(ftype) else: @@ -9822,12 +9248,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.metadata) - value = (value * 31) ^ hash(self.includeBitset) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9868,9 +9288,9 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype463, _vtype464, _size462 ) = iprot.readMapBegin() + (_ktype463, _vtype464, _size462 ) = iprot.readMapBegin() for _i466 in xrange(_size462): - _key467 = iprot.readI64() + _key467 = iprot.readI64(); _val468 = MetadataPpdResult() _val468.read(iprot) self.metadata[_key467] = _val468 @@ -9879,7 +9299,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: - self.isSupported = iprot.readBool() + self.isSupported = iprot.readBool(); else: iprot.skip(ftype) else: @@ -9915,12 +9335,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.metadata) - value = (value * 31) ^ hash(self.isSupported) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9969,24 +9383,24 @@ def read(self, iprot): self.fileIds = [] (_etype474, _size471) = iprot.readListBegin() for _i475 in xrange(_size471): - _elem476 = iprot.readI64() + _elem476 = iprot.readI64(); self.fileIds.append(_elem476) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.expr = iprot.readString() + self.expr = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.BOOL: - self.doGetFooters = iprot.readBool() + self.doGetFooters = iprot.readBool(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) else: @@ -10029,14 +9443,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fileIds) - value = (value * 31) ^ hash(self.expr) - value = (value * 31) ^ hash(self.doGetFooters) - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10077,17 +9483,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype479, _vtype480, _size478 ) = iprot.readMapBegin() + (_ktype479, _vtype480, _size478 ) = iprot.readMapBegin() for _i482 in xrange(_size478): - _key483 = iprot.readI64() - _val484 = iprot.readString() + _key483 = iprot.readI64(); + _val484 = iprot.readString(); self.metadata[_key483] = _val484 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BOOL: - self.isSupported = iprot.readBool() + self.isSupported = iprot.readBool(); else: iprot.skip(ftype) else: @@ -10123,12 +9529,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.metadata) - value = (value * 31) ^ hash(self.isSupported) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10168,7 +9568,7 @@ def read(self, iprot): self.fileIds = [] (_etype490, _size487) = iprot.readListBegin() for _i491 in xrange(_size487): - _elem492 = iprot.readI64() + _elem492 = iprot.readI64(); self.fileIds.append(_elem492) iprot.readListEnd() else: @@ -10199,11 +9599,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fileIds) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10246,10 +9641,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10295,7 +9686,7 @@ def read(self, iprot): self.fileIds = [] (_etype497, _size494) = iprot.readListBegin() for _i498 in xrange(_size494): - _elem499 = iprot.readI64() + _elem499 = iprot.readI64(); self.fileIds.append(_elem499) iprot.readListEnd() else: @@ -10305,14 +9696,14 @@ def read(self, iprot): self.metadata = [] (_etype503, _size500) = iprot.readListBegin() for _i504 in xrange(_size500): - _elem505 = iprot.readString() + _elem505 = iprot.readString(); self.metadata.append(_elem505) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.type = iprot.readI32() + self.type = iprot.readI32(); else: iprot.skip(ftype) else: @@ -10354,13 +9745,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fileIds) - value = (value * 31) ^ hash(self.metadata) - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10403,10 +9787,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10446,7 +9826,7 @@ def read(self, iprot): self.fileIds = [] (_etype511, _size508) = iprot.readListBegin() for _i512 in xrange(_size508): - _elem513 = iprot.readI64() + _elem513 = iprot.readI64(); self.fileIds.append(_elem513) iprot.readListEnd() else: @@ -10477,11 +9857,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fileIds) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10518,7 +9893,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.isSupported = iprot.readBool() + self.isSupported = iprot.readBool(); else: iprot.skip(ftype) else: @@ -10544,11 +9919,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.isSupported) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10594,22 +9964,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tblName = iprot.readString() + self.tblName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.partName = iprot.readString() + self.partName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.BOOL: - self.isAllParts = iprot.readBool() + self.isAllParts = iprot.readBool(); else: iprot.skip(ftype) else: @@ -10649,14 +10019,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.partName) - value = (value * 31) ^ hash(self.isAllParts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10726,11 +10088,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.functions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10776,22 +10133,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.dbName = iprot.readString() + self.dbName = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.tableName = iprot.readString() + self.tableName = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.tableType = iprot.readString() + self.tableType = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.comments = iprot.readString() + self.comments = iprot.readString(); else: iprot.skip(ftype) else: @@ -10833,14 +10190,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.tableType) - value = (value * 31) ^ hash(self.comments) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10877,7 +10226,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -10904,11 +10253,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10945,7 +10289,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -10972,11 +10316,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11013,7 +10352,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11040,11 +10379,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11081,7 +10415,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11108,11 +10442,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11149,7 +10478,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11176,11 +10505,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11217,7 +10541,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11244,11 +10568,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11285,7 +10604,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11312,11 +10631,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11353,7 +10667,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11380,11 +10694,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11421,7 +10730,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11448,11 +10757,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11489,7 +10793,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11516,11 +10820,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11557,7 +10856,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11584,11 +10883,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11625,7 +10919,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11652,11 +10946,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11693,7 +10982,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11720,11 +11009,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11761,7 +11045,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11788,11 +11072,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11829,7 +11108,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11856,11 +11135,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11897,7 +11171,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.message = iprot.readString() + self.message = iprot.readString(); else: iprot.skip(ftype) else: @@ -11924,11 +11198,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb index eeccc84..3208ecd 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index a7b1e86..055cec1 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -824,11 +824,13 @@ class BooleanColumnStatsData NUMTRUES = 1 NUMFALSES = 2 NUMNULLS = 3 + BITVECTORS = 4 FIELDS = { NUMTRUES => {:type => ::Thrift::Types::I64, :name => 'numTrues'}, NUMFALSES => {:type => ::Thrift::Types::I64, :name => 'numFalses'}, - NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'} + NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -837,6 +839,7 @@ class BooleanColumnStatsData raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numTrues is unset!') unless @numTrues raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numFalses is unset!') unless @numFalses raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -848,12 +851,14 @@ class DoubleColumnStatsData HIGHVALUE = 2 NUMNULLS = 3 NUMDVS = 4 + BITVECTORS = 5 FIELDS = { LOWVALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'lowValue', :optional => true}, HIGHVALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'highValue', :optional => true}, NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, - NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'} + NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -861,6 +866,7 @@ class DoubleColumnStatsData def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numDVs is unset!') unless @numDVs + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -872,12 +878,14 @@ class LongColumnStatsData HIGHVALUE = 2 NUMNULLS = 3 NUMDVS = 4 + BITVECTORS = 5 FIELDS = { LOWVALUE => {:type => ::Thrift::Types::I64, :name => 'lowValue', :optional => true}, HIGHVALUE => {:type => ::Thrift::Types::I64, :name => 'highValue', :optional => true}, NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, - NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'} + NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -885,6 +893,7 @@ class LongColumnStatsData def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numDVs is unset!') unless @numDVs + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -896,12 +905,14 @@ class StringColumnStatsData AVGCOLLEN = 2 NUMNULLS = 3 NUMDVS = 4 + BITVECTORS = 5 FIELDS = { MAXCOLLEN => {:type => ::Thrift::Types::I64, :name => 'maxColLen'}, AVGCOLLEN => {:type => ::Thrift::Types::DOUBLE, :name => 'avgColLen'}, NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, - NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'} + NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -911,6 +922,7 @@ class StringColumnStatsData raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field avgColLen is unset!') unless @avgColLen raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numDVs is unset!') unless @numDVs + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -921,11 +933,13 @@ class BinaryColumnStatsData MAXCOLLEN = 1 AVGCOLLEN = 2 NUMNULLS = 3 + BITVECTORS = 4 FIELDS = { MAXCOLLEN => {:type => ::Thrift::Types::I64, :name => 'maxColLen'}, AVGCOLLEN => {:type => ::Thrift::Types::DOUBLE, :name => 'avgColLen'}, - NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'} + NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -934,6 +948,7 @@ class BinaryColumnStatsData raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field maxColLen is unset!') unless @maxColLen raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field avgColLen is unset!') unless @avgColLen raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -965,12 +980,14 @@ class DecimalColumnStatsData HIGHVALUE = 2 NUMNULLS = 3 NUMDVS = 4 + BITVECTORS = 5 FIELDS = { LOWVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'lowValue', :class => ::Decimal, :optional => true}, HIGHVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'highValue', :class => ::Decimal, :optional => true}, NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, - NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'} + NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -978,6 +995,7 @@ class DecimalColumnStatsData def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numDVs is unset!') unless @numDVs + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self @@ -1006,12 +1024,14 @@ class DateColumnStatsData HIGHVALUE = 2 NUMNULLS = 3 NUMDVS = 4 + BITVECTORS = 5 FIELDS = { LOWVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'lowValue', :class => ::Date, :optional => true}, HIGHVALUE => {:type => ::Thrift::Types::STRUCT, :name => 'highValue', :class => ::Date, :optional => true}, NUMNULLS => {:type => ::Thrift::Types::I64, :name => 'numNulls'}, - NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'} + NUMDVS => {:type => ::Thrift::Types::I64, :name => 'numDVs'}, + BITVECTORS => {:type => ::Thrift::Types::STRING, :name => 'bitVectors'} } def struct_fields; FIELDS; end @@ -1019,6 +1039,7 @@ class DateColumnStatsData def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numNulls is unset!') unless @numNulls raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numDVs is unset!') unless @numDVs + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field bitVectors is unset!') unless @bitVectors end ::Thrift::Struct.generate_accessors self diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 9b9a27c..485ba8d 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/NumDistinctValueEstimator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/NumDistinctValueEstimator.java new file mode 100644 index 0000000..da12923 --- /dev/null +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/NumDistinctValueEstimator.java @@ -0,0 +1,359 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.metastore; +import java.util.Random; + +import javolution.util.FastBitSet; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.hadoop.hive.common.type.HiveDecimal; +import org.apache.hadoop.io.Text; + +public class NumDistinctValueEstimator { + + static final Log LOG = LogFactory.getLog(NumDistinctValueEstimator.class.getName()); + + /* We want a,b,x to come from a finite field of size 0 to k, where k is a prime number. + * 2^p - 1 is prime for p = 31. Hence bitvectorSize has to be 31. Pick k to be 2^p -1. + * If a,b,x didn't come from a finite field ax1 + b mod k and ax2 + b mod k will not be pair wise + * independent. As a consequence, the hash values will not distribute uniformly from 0 to 2^p-1 + * thus introducing errors in the estimates. + */ + private static final int BIT_VECTOR_SIZE = 31; + private final int numBitVectors; + + // Refer to Flajolet-Martin'86 for the value of phi + private static final double PHI = 0.77351; + + private final int[] a; + private final int[] b; + private final FastBitSet[] bitVector; + + private final Random aValue; + private final Random bValue; + + /* Create a new distinctValueEstimator + */ + public NumDistinctValueEstimator(int numBitVectors) { + this.numBitVectors = numBitVectors; + bitVector = new FastBitSet[numBitVectors]; + for (int i=0; i< numBitVectors; i++) { + bitVector[i] = new FastBitSet(BIT_VECTOR_SIZE); + } + + a = new int[numBitVectors]; + b = new int[numBitVectors]; + + /* Use a large prime number as a seed to the random number generator. + * Java's random number generator uses the Linear Congruential Generator to generate random + * numbers using the following recurrence relation, + * + * X(n+1) = (a X(n) + c ) mod m + * + * where X0 is the seed. Java implementation uses m = 2^48. This is problematic because 2^48 + * is not a prime number and hence the set of numbers from 0 to m don't form a finite field. + * If these numbers don't come from a finite field any give X(n) and X(n+1) may not be pair + * wise independent. + * + * However, empirically passing in prime numbers as seeds seems to work better than when passing + * composite numbers as seeds. Ideally Java's Random should pick m such that m is prime. + * + */ + aValue = new Random(99397); + bValue = new Random(9876413); + + for (int i = 0; i < numBitVectors; i++) { + int randVal; + /* a and b shouldn't be even; If a and b are even, then none of the values + * will set bit 0 thus introducing errors in the estimate. Both a and b can be even + * 25% of the times and as a result 25% of the bit vectors could be inaccurate. To avoid this + * always pick odd values for a and b. + */ + do { + randVal = aValue.nextInt(); + } while (randVal % 2 == 0); + + a[i] = randVal; + + do { + randVal = bValue.nextInt(); + } while (randVal % 2 == 0); + + b[i] = randVal; + + if (a[i] < 0) { + a[i] = a[i] + (1 << BIT_VECTOR_SIZE - 1); + } + + if (b[i] < 0) { + b[i] = b[i] + (1 << BIT_VECTOR_SIZE - 1); + } + } + } + + public NumDistinctValueEstimator(String s, int numBitVectors) { + this.numBitVectors = numBitVectors; + FastBitSet bitVectorDeser[] = deserialize(s, numBitVectors); + bitVector = new FastBitSet[numBitVectors]; + for(int i=0; i = '0' && c <= '9') { + String t = new String(); + t = t + c; + c = s.charAt(i); + i = i + 1; + + while (c != ',' && c!= '}') { + t = t + c; + c = s.charAt(i); + i = i + 1; + } + + int bitIndex = Integer.parseInt(t); + assert(bitIndex >= 0); + assert(vectorIndex < numBitVectors); + b[vectorIndex].set(bitIndex); + if (c == '}') { + vectorIndex = vectorIndex + 1; + } + } + } + return b; + } + + private int generateHash(long v, int hashNum) { + int mod = (1<> 1; + } + + // Set bitvector[index] := 1 + bitVector[i].set(index); + } + } + + public void addToEstimatorPCSA(long v) { + int hash = generateHashForPCSA(v); + int rho = hash/numBitVectors; + int index; + + // Find the index of the least significant bit that is 1 + for (index=0; index> 1; + } + + // Set bitvector[index] := 1 + bitVector[hash%numBitVectors].set(index); + } + + public void addToEstimator(double d) { + int v = new Double(d).hashCode(); + addToEstimator(v); + } + + public void addToEstimatorPCSA(double d) { + int v = new Double(d).hashCode(); + addToEstimatorPCSA(v); + } + + public void addToEstimator(HiveDecimal decimal) { + int v = decimal.hashCode(); + addToEstimator(v); + } + + public void addToEstimatorPCSA(HiveDecimal decimal) { + int v = decimal.hashCode(); + addToEstimatorPCSA(v); + } + + public void mergeEstimators(NumDistinctValueEstimator o) { + // Bitwise OR the bitvector with the bitvector in the agg buffer + for (int i=0; i() { @Override public AggrStats load(StatsCacheKey key) throws Exception { + final boolean useBitVector = HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_METASTORE_BITVECTOR); + int numBitVectors = 0; + if(useBitVector){ + numBitVectors = HiveStatsUtils.getNumBitVectorsForNDVEstimation(conf); + } HBaseReadWrite hrw = HBaseReadWrite.getInstance(); AggrStats aggrStats = hrw.getAggregatedStats(key.hashed); if (aggrStats == null) { @@ -103,7 +110,7 @@ public AggrStats load(StatsCacheKey key) throws Exception { } if (aggregator == null) { aggregator = ColumnStatsAggregatorFactory.getColumnStatsAggregator( - cso.getStatsData().getSetField()); + cso.getStatsData().getSetField(), numBitVectors); } aggregator.aggregate(statsObj, cso); } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BinaryColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BinaryColumnStatsAggregator.java index bbd2c7b..40340dd 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BinaryColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BinaryColumnStatsAggregator.java @@ -22,7 +22,7 @@ import org.apache.hadoop.hive.metastore.api.BinaryColumnStatsData; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -public class BinaryColumnStatsAggregator implements ColumnStatsAggregator{ +public class BinaryColumnStatsAggregator extends ColumnStatsAggregator{ @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BooleanColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BooleanColumnStatsAggregator.java index 9047f68..735d965 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BooleanColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/BooleanColumnStatsAggregator.java @@ -22,7 +22,7 @@ import org.apache.hadoop.hive.metastore.api.BooleanColumnStatsData; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -public class BooleanColumnStatsAggregator implements ColumnStatsAggregator { +public class BooleanColumnStatsAggregator extends ColumnStatsAggregator { @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregator.java index 217b654..694e53b 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregator.java @@ -19,8 +19,10 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -public interface ColumnStatsAggregator { - public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats); +public abstract class ColumnStatsAggregator { + NumDistinctValueEstimator ndvEstimator = null; + public abstract void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats); } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregatorFactory.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregatorFactory.java index a8dbc1f..8eb127b 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregatorFactory.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/ColumnStatsAggregatorFactory.java @@ -19,6 +19,7 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.BinaryColumnStatsData; import org.apache.hadoop.hive.metastore.api.BooleanColumnStatsData; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsData; @@ -34,23 +35,34 @@ private ColumnStatsAggregatorFactory() { } - public static ColumnStatsAggregator getColumnStatsAggregator(_Fields type) { + public static ColumnStatsAggregator getColumnStatsAggregator(_Fields type, int numBitVectors) { + ColumnStatsAggregator agg; switch (type) { case BOOLEAN_STATS: - return new BooleanColumnStatsAggregator(); + agg = new BooleanColumnStatsAggregator(); + break; case LONG_STATS: - return new LongColumnStatsAggregator(); + agg = new LongColumnStatsAggregator(); + break; case DOUBLE_STATS: - return new DoubleColumnStatsAggregator(); + agg = new DoubleColumnStatsAggregator(); + break; case STRING_STATS: - return new StringColumnStatsAggregator(); + agg = new StringColumnStatsAggregator(); + break; case BINARY_STATS: - return new BinaryColumnStatsAggregator(); + agg = new BinaryColumnStatsAggregator(); + break; case DECIMAL_STATS: - return new DecimalColumnStatsAggregator(); + agg = new DecimalColumnStatsAggregator(); + break; default: throw new RuntimeException("Woh, bad. Unknown stats type " + type.toString()); } + if (numBitVectors > 0) { + agg.ndvEstimator = new NumDistinctValueEstimator(numBitVectors); + } + return agg; } public static ColumnStatisticsObj newColumnStaticsObj(String colName, String colType, _Fields type) { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DecimalColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DecimalColumnStatsAggregator.java index ec25b31..41084f9 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DecimalColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DecimalColumnStatsAggregator.java @@ -19,11 +19,12 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.Decimal; import org.apache.hadoop.hive.metastore.api.DecimalColumnStatsData; -public class DecimalColumnStatsAggregator implements ColumnStatsAggregator { +public class DecimalColumnStatsAggregator extends ColumnStatsAggregator { @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { @@ -38,6 +39,12 @@ public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj .getHighValue() : newData.getHighValue(); aggregateData.setHighValue(highValue); aggregateData.setNumNulls(aggregateData.getNumNulls() + newData.getNumNulls()); - aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + if (ndvEstimator == null) { + aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + } else { + ndvEstimator.mergeEstimators(new NumDistinctValueEstimator(newData.getBitVectors(), + ndvEstimator.getnumBitVectors())); + aggregateData.setNumDVs(ndvEstimator.estimateNumDistinctValues()); + } } } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DoubleColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DoubleColumnStatsAggregator.java index 71af0ac..5914bad 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DoubleColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/DoubleColumnStatsAggregator.java @@ -19,10 +19,11 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.DoubleColumnStatsData; -public class DoubleColumnStatsAggregator implements ColumnStatsAggregator { +public class DoubleColumnStatsAggregator extends ColumnStatsAggregator { @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { @@ -31,6 +32,12 @@ public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj aggregateData.setLowValue(Math.min(aggregateData.getLowValue(), newData.getLowValue())); aggregateData.setHighValue(Math.max(aggregateData.getHighValue(), newData.getHighValue())); aggregateData.setNumNulls(aggregateData.getNumNulls() + newData.getNumNulls()); - aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + if (ndvEstimator == null) { + aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + } else { + ndvEstimator.mergeEstimators(new NumDistinctValueEstimator(newData.getBitVectors(), + ndvEstimator.getnumBitVectors())); + aggregateData.setNumDVs(ndvEstimator.estimateNumDistinctValues()); + } } } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/LongColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/LongColumnStatsAggregator.java index 15b8cf7..0dc743f 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/LongColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/LongColumnStatsAggregator.java @@ -19,10 +19,11 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.LongColumnStatsData; -public class LongColumnStatsAggregator implements ColumnStatsAggregator { +public class LongColumnStatsAggregator extends ColumnStatsAggregator { @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { @@ -31,6 +32,12 @@ public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj aggregateData.setLowValue(Math.min(aggregateData.getLowValue(), newData.getLowValue())); aggregateData.setHighValue(Math.max(aggregateData.getHighValue(), newData.getHighValue())); aggregateData.setNumNulls(aggregateData.getNumNulls() + newData.getNumNulls()); - aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + if (ndvEstimator == null) { + aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + } else { + ndvEstimator.mergeEstimators(new NumDistinctValueEstimator(newData.getBitVectors(), + ndvEstimator.getnumBitVectors())); + aggregateData.setNumDVs(ndvEstimator.estimateNumDistinctValues()); + } } } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/StringColumnStatsAggregator.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/StringColumnStatsAggregator.java index fe1a04c..a2a1f75 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/StringColumnStatsAggregator.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/stats/StringColumnStatsAggregator.java @@ -19,10 +19,11 @@ package org.apache.hadoop.hive.metastore.hbase.stats; +import org.apache.hadoop.hive.metastore.NumDistinctValueEstimator; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.StringColumnStatsData; -public class StringColumnStatsAggregator implements ColumnStatsAggregator { +public class StringColumnStatsAggregator extends ColumnStatsAggregator { @Override public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj newColStats) { @@ -31,6 +32,12 @@ public void aggregate(ColumnStatisticsObj aggregateColStats, ColumnStatisticsObj aggregateData.setMaxColLen(Math.max(aggregateData.getMaxColLen(), newData.getMaxColLen())); aggregateData.setAvgColLen(Math.max(aggregateData.getAvgColLen(), newData.getAvgColLen())); aggregateData.setNumNulls(aggregateData.getNumNulls() + newData.getNumNulls()); - aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + if (ndvEstimator == null) { + aggregateData.setNumDVs(Math.max(aggregateData.getNumDVs(), newData.getNumDVs())); + } else { + ndvEstimator.mergeEstimators(new NumDistinctValueEstimator(newData.getBitVectors(), + ndvEstimator.getnumBitVectors())); + aggregateData.setNumDVs(ndvEstimator.estimateNumDistinctValues()); + } } } diff --git a/metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto b/metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto index 0d0ef89..466fdf9 100644 --- a/metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto +++ b/metastore/src/protobuf/org/apache/hadoop/hive/metastore/hbase/hbase_metastore_proto.proto @@ -93,6 +93,7 @@ message ColumnStats { optional StringStats binary_stats = 9; optional DecimalStats decimal_stats = 10; optional string column_name = 11; + optional string bit_vectors = 12; } message Database { diff --git a/ql/pom.xml b/ql/pom.xml index 5075185..2d09dfc 100644 --- a/ql/pom.xml +++ b/ql/pom.xml @@ -397,11 +397,6 @@ ${guava.version} - com.google.protobuf - protobuf-java - ${protobuf.version} - - com.googlecode.javaewah JavaEWAH ${javaewah.version} diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp b/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp index 9186bad..4f9aeaf 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp +++ b/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_constants.h b/ql/src/gen/thrift/gen-cpp/queryplan_constants.h index 6cc8af0..5dce5dd 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_constants.h +++ b/ql/src/gen/thrift/gen-cpp/queryplan_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp index e92d776..e36299a 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "queryplan_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -133,26 +130,11 @@ const char* _kStageTypeNames[] = { }; const std::map _StageType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(12, _kStageTypeValues, _kStageTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -Adjacency::~Adjacency() throw() { -} - - -void Adjacency::__set_node(const std::string& val) { - this->node = val; -} - -void Adjacency::__set_children(const std::vector & val) { - this->children = val; -} - -void Adjacency::__set_adjacencyType(const AdjacencyType::type val) { - this->adjacencyType = val; -} +const char* Adjacency::ascii_fingerprint = "BC4F8C394677A1003AA9F56ED26D8204"; +const uint8_t Adjacency::binary_fingerprint[16] = {0xBC,0x4F,0x8C,0x39,0x46,0x77,0xA1,0x00,0x3A,0xA9,0xF5,0x6E,0xD2,0x6D,0x82,0x04}; uint32_t Adjacency::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -223,7 +205,6 @@ uint32_t Adjacency::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Adjacency::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Adjacency"); xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRING, 1); @@ -259,48 +240,11 @@ void swap(Adjacency &a, Adjacency &b) { swap(a.__isset, b.__isset); } -Adjacency::Adjacency(const Adjacency& other7) { - node = other7.node; - children = other7.children; - adjacencyType = other7.adjacencyType; - __isset = other7.__isset; -} -Adjacency& Adjacency::operator=(const Adjacency& other8) { - node = other8.node; - children = other8.children; - adjacencyType = other8.adjacencyType; - __isset = other8.__isset; - return *this; -} -void Adjacency::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Adjacency("; - out << "node=" << to_string(node); - out << ", " << "children=" << to_string(children); - out << ", " << "adjacencyType=" << to_string(adjacencyType); - out << ")"; -} - - -Graph::~Graph() throw() { -} - - -void Graph::__set_nodeType(const NodeType::type val) { - this->nodeType = val; -} - -void Graph::__set_roots(const std::vector & val) { - this->roots = val; -} - -void Graph::__set_adjacencyList(const std::vector & val) { - this->adjacencyList = val; -} +const char* Graph::ascii_fingerprint = "1F7FB604B3EF8F7AFB5DEAD15F2FC0B5"; +const uint8_t Graph::binary_fingerprint[16] = {0x1F,0x7F,0xB6,0x04,0xB3,0xEF,0x8F,0x7A,0xFB,0x5D,0xEA,0xD1,0x5F,0x2F,0xC0,0xB5}; uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -321,9 +265,9 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast9; - xfer += iprot->readI32(ecast9); - this->nodeType = (NodeType::type)ecast9; + int32_t ecast7; + xfer += iprot->readI32(ecast7); + this->nodeType = (NodeType::type)ecast7; this->__isset.nodeType = true; } else { xfer += iprot->skip(ftype); @@ -333,14 +277,14 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->roots.clear(); - uint32_t _size10; - ::apache::thrift::protocol::TType _etype13; - xfer += iprot->readListBegin(_etype13, _size10); - this->roots.resize(_size10); - uint32_t _i14; - for (_i14 = 0; _i14 < _size10; ++_i14) + uint32_t _size8; + ::apache::thrift::protocol::TType _etype11; + xfer += iprot->readListBegin(_etype11, _size8); + this->roots.resize(_size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { - xfer += iprot->readString(this->roots[_i14]); + xfer += iprot->readString(this->roots[_i12]); } xfer += iprot->readListEnd(); } @@ -353,14 +297,14 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->adjacencyList.clear(); - uint32_t _size15; - ::apache::thrift::protocol::TType _etype18; - xfer += iprot->readListBegin(_etype18, _size15); - this->adjacencyList.resize(_size15); - uint32_t _i19; - for (_i19 = 0; _i19 < _size15; ++_i19) + uint32_t _size13; + ::apache::thrift::protocol::TType _etype16; + xfer += iprot->readListBegin(_etype16, _size13); + this->adjacencyList.resize(_size13); + uint32_t _i17; + for (_i17 = 0; _i17 < _size13; ++_i17) { - xfer += this->adjacencyList[_i19].read(iprot); + xfer += this->adjacencyList[_i17].read(iprot); } xfer += iprot->readListEnd(); } @@ -383,7 +327,6 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Graph"); xfer += oprot->writeFieldBegin("nodeType", ::apache::thrift::protocol::T_I32, 1); @@ -393,10 +336,10 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("roots", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->roots.size())); - std::vector ::const_iterator _iter20; - for (_iter20 = this->roots.begin(); _iter20 != this->roots.end(); ++_iter20) + std::vector ::const_iterator _iter18; + for (_iter18 = this->roots.begin(); _iter18 != this->roots.end(); ++_iter18) { - xfer += oprot->writeString((*_iter20)); + xfer += oprot->writeString((*_iter18)); } xfer += oprot->writeListEnd(); } @@ -405,10 +348,10 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("adjacencyList", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->adjacencyList.size())); - std::vector ::const_iterator _iter21; - for (_iter21 = this->adjacencyList.begin(); _iter21 != this->adjacencyList.end(); ++_iter21) + std::vector ::const_iterator _iter19; + for (_iter19 = this->adjacencyList.begin(); _iter19 != this->adjacencyList.end(); ++_iter19) { - xfer += (*_iter21).write(oprot); + xfer += (*_iter19).write(oprot); } xfer += oprot->writeListEnd(); } @@ -427,60 +370,11 @@ void swap(Graph &a, Graph &b) { swap(a.__isset, b.__isset); } -Graph::Graph(const Graph& other22) { - nodeType = other22.nodeType; - roots = other22.roots; - adjacencyList = other22.adjacencyList; - __isset = other22.__isset; -} -Graph& Graph::operator=(const Graph& other23) { - nodeType = other23.nodeType; - roots = other23.roots; - adjacencyList = other23.adjacencyList; - __isset = other23.__isset; - return *this; -} -void Graph::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Graph("; - out << "nodeType=" << to_string(nodeType); - out << ", " << "roots=" << to_string(roots); - out << ", " << "adjacencyList=" << to_string(adjacencyList); - out << ")"; -} - - -Operator::~Operator() throw() { -} - - -void Operator::__set_operatorId(const std::string& val) { - this->operatorId = val; -} - -void Operator::__set_operatorType(const OperatorType::type val) { - this->operatorType = val; -} - -void Operator::__set_operatorAttributes(const std::map & val) { - this->operatorAttributes = val; -} - -void Operator::__set_operatorCounters(const std::map & val) { - this->operatorCounters = val; -} - -void Operator::__set_done(const bool val) { - this->done = val; -} - -void Operator::__set_started(const bool val) { - this->started = val; -} +const char* Operator::ascii_fingerprint = "30917C758A752485AF223B697479DE6C"; +const uint8_t Operator::binary_fingerprint[16] = {0x30,0x91,0x7C,0x75,0x8A,0x75,0x24,0x85,0xAF,0x22,0x3B,0x69,0x74,0x79,0xDE,0x6C}; uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -509,9 +403,9 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast24; - xfer += iprot->readI32(ecast24); - this->operatorType = (OperatorType::type)ecast24; + int32_t ecast20; + xfer += iprot->readI32(ecast20); + this->operatorType = (OperatorType::type)ecast20; this->__isset.operatorType = true; } else { xfer += iprot->skip(ftype); @@ -521,17 +415,17 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->operatorAttributes.clear(); - uint32_t _size25; - ::apache::thrift::protocol::TType _ktype26; - ::apache::thrift::protocol::TType _vtype27; - xfer += iprot->readMapBegin(_ktype26, _vtype27, _size25); - uint32_t _i29; - for (_i29 = 0; _i29 < _size25; ++_i29) + uint32_t _size21; + ::apache::thrift::protocol::TType _ktype22; + ::apache::thrift::protocol::TType _vtype23; + xfer += iprot->readMapBegin(_ktype22, _vtype23, _size21); + uint32_t _i25; + for (_i25 = 0; _i25 < _size21; ++_i25) { - std::string _key30; - xfer += iprot->readString(_key30); - std::string& _val31 = this->operatorAttributes[_key30]; - xfer += iprot->readString(_val31); + std::string _key26; + xfer += iprot->readString(_key26); + std::string& _val27 = this->operatorAttributes[_key26]; + xfer += iprot->readString(_val27); } xfer += iprot->readMapEnd(); } @@ -544,17 +438,17 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->operatorCounters.clear(); - uint32_t _size32; - ::apache::thrift::protocol::TType _ktype33; - ::apache::thrift::protocol::TType _vtype34; - xfer += iprot->readMapBegin(_ktype33, _vtype34, _size32); - uint32_t _i36; - for (_i36 = 0; _i36 < _size32; ++_i36) + uint32_t _size28; + ::apache::thrift::protocol::TType _ktype29; + ::apache::thrift::protocol::TType _vtype30; + xfer += iprot->readMapBegin(_ktype29, _vtype30, _size28); + uint32_t _i32; + for (_i32 = 0; _i32 < _size28; ++_i32) { - std::string _key37; - xfer += iprot->readString(_key37); - int64_t& _val38 = this->operatorCounters[_key37]; - xfer += iprot->readI64(_val38); + std::string _key33; + xfer += iprot->readString(_key33); + int64_t& _val34 = this->operatorCounters[_key33]; + xfer += iprot->readI64(_val34); } xfer += iprot->readMapEnd(); } @@ -593,7 +487,6 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Operator"); xfer += oprot->writeFieldBegin("operatorId", ::apache::thrift::protocol::T_STRING, 1); @@ -607,11 +500,11 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->operatorAttributes.size())); - std::map ::const_iterator _iter39; - for (_iter39 = this->operatorAttributes.begin(); _iter39 != this->operatorAttributes.end(); ++_iter39) + std::map ::const_iterator _iter35; + for (_iter35 = this->operatorAttributes.begin(); _iter35 != this->operatorAttributes.end(); ++_iter35) { - xfer += oprot->writeString(_iter39->first); - xfer += oprot->writeString(_iter39->second); + xfer += oprot->writeString(_iter35->first); + xfer += oprot->writeString(_iter35->second); } xfer += oprot->writeMapEnd(); } @@ -620,11 +513,11 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->operatorCounters.size())); - std::map ::const_iterator _iter40; - for (_iter40 = this->operatorCounters.begin(); _iter40 != this->operatorCounters.end(); ++_iter40) + std::map ::const_iterator _iter36; + for (_iter36 = this->operatorCounters.begin(); _iter36 != this->operatorCounters.end(); ++_iter36) { - xfer += oprot->writeString(_iter40->first); - xfer += oprot->writeI64(_iter40->second); + xfer += oprot->writeString(_iter36->first); + xfer += oprot->writeI64(_iter36->second); } xfer += oprot->writeMapEnd(); } @@ -654,79 +547,11 @@ void swap(Operator &a, Operator &b) { swap(a.__isset, b.__isset); } -Operator::Operator(const Operator& other41) { - operatorId = other41.operatorId; - operatorType = other41.operatorType; - operatorAttributes = other41.operatorAttributes; - operatorCounters = other41.operatorCounters; - done = other41.done; - started = other41.started; - __isset = other41.__isset; -} -Operator& Operator::operator=(const Operator& other42) { - operatorId = other42.operatorId; - operatorType = other42.operatorType; - operatorAttributes = other42.operatorAttributes; - operatorCounters = other42.operatorCounters; - done = other42.done; - started = other42.started; - __isset = other42.__isset; - return *this; -} -void Operator::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Operator("; - out << "operatorId=" << to_string(operatorId); - out << ", " << "operatorType=" << to_string(operatorType); - out << ", " << "operatorAttributes=" << to_string(operatorAttributes); - out << ", " << "operatorCounters=" << to_string(operatorCounters); - out << ", " << "done=" << to_string(done); - out << ", " << "started=" << to_string(started); - out << ")"; -} - - -Task::~Task() throw() { -} - - -void Task::__set_taskId(const std::string& val) { - this->taskId = val; -} - -void Task::__set_taskType(const TaskType::type val) { - this->taskType = val; -} - -void Task::__set_taskAttributes(const std::map & val) { - this->taskAttributes = val; -} - -void Task::__set_taskCounters(const std::map & val) { - this->taskCounters = val; -} - -void Task::__set_operatorGraph(const Graph& val) { - this->operatorGraph = val; -__isset.operatorGraph = true; -} - -void Task::__set_operatorList(const std::vector & val) { - this->operatorList = val; -__isset.operatorList = true; -} - -void Task::__set_done(const bool val) { - this->done = val; -} - -void Task::__set_started(const bool val) { - this->started = val; -} +const char* Task::ascii_fingerprint = "AC741A136EFA51843AFC3A12F6A793D1"; +const uint8_t Task::binary_fingerprint[16] = {0xAC,0x74,0x1A,0x13,0x6E,0xFA,0x51,0x84,0x3A,0xFC,0x3A,0x12,0xF6,0xA7,0x93,0xD1}; uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -755,9 +580,9 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast43; - xfer += iprot->readI32(ecast43); - this->taskType = (TaskType::type)ecast43; + int32_t ecast37; + xfer += iprot->readI32(ecast37); + this->taskType = (TaskType::type)ecast37; this->__isset.taskType = true; } else { xfer += iprot->skip(ftype); @@ -767,17 +592,17 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->taskAttributes.clear(); - uint32_t _size44; - ::apache::thrift::protocol::TType _ktype45; - ::apache::thrift::protocol::TType _vtype46; - xfer += iprot->readMapBegin(_ktype45, _vtype46, _size44); - uint32_t _i48; - for (_i48 = 0; _i48 < _size44; ++_i48) + uint32_t _size38; + ::apache::thrift::protocol::TType _ktype39; + ::apache::thrift::protocol::TType _vtype40; + xfer += iprot->readMapBegin(_ktype39, _vtype40, _size38); + uint32_t _i42; + for (_i42 = 0; _i42 < _size38; ++_i42) { - std::string _key49; - xfer += iprot->readString(_key49); - std::string& _val50 = this->taskAttributes[_key49]; - xfer += iprot->readString(_val50); + std::string _key43; + xfer += iprot->readString(_key43); + std::string& _val44 = this->taskAttributes[_key43]; + xfer += iprot->readString(_val44); } xfer += iprot->readMapEnd(); } @@ -790,17 +615,17 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->taskCounters.clear(); - uint32_t _size51; - ::apache::thrift::protocol::TType _ktype52; - ::apache::thrift::protocol::TType _vtype53; - xfer += iprot->readMapBegin(_ktype52, _vtype53, _size51); - uint32_t _i55; - for (_i55 = 0; _i55 < _size51; ++_i55) + uint32_t _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - std::string _key56; - xfer += iprot->readString(_key56); - int64_t& _val57 = this->taskCounters[_key56]; - xfer += iprot->readI64(_val57); + std::string _key50; + xfer += iprot->readString(_key50); + int64_t& _val51 = this->taskCounters[_key50]; + xfer += iprot->readI64(_val51); } xfer += iprot->readMapEnd(); } @@ -821,14 +646,14 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->operatorList.clear(); - uint32_t _size58; - ::apache::thrift::protocol::TType _etype61; - xfer += iprot->readListBegin(_etype61, _size58); - this->operatorList.resize(_size58); - uint32_t _i62; - for (_i62 = 0; _i62 < _size58; ++_i62) + uint32_t _size52; + ::apache::thrift::protocol::TType _etype55; + xfer += iprot->readListBegin(_etype55, _size52); + this->operatorList.resize(_size52); + uint32_t _i56; + for (_i56 = 0; _i56 < _size52; ++_i56) { - xfer += this->operatorList[_i62].read(iprot); + xfer += this->operatorList[_i56].read(iprot); } xfer += iprot->readListEnd(); } @@ -867,7 +692,6 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Task"); xfer += oprot->writeFieldBegin("taskId", ::apache::thrift::protocol::T_STRING, 1); @@ -881,11 +705,11 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->taskAttributes.size())); - std::map ::const_iterator _iter63; - for (_iter63 = this->taskAttributes.begin(); _iter63 != this->taskAttributes.end(); ++_iter63) + std::map ::const_iterator _iter57; + for (_iter57 = this->taskAttributes.begin(); _iter57 != this->taskAttributes.end(); ++_iter57) { - xfer += oprot->writeString(_iter63->first); - xfer += oprot->writeString(_iter63->second); + xfer += oprot->writeString(_iter57->first); + xfer += oprot->writeString(_iter57->second); } xfer += oprot->writeMapEnd(); } @@ -894,11 +718,11 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->taskCounters.size())); - std::map ::const_iterator _iter64; - for (_iter64 = this->taskCounters.begin(); _iter64 != this->taskCounters.end(); ++_iter64) + std::map ::const_iterator _iter58; + for (_iter58 = this->taskCounters.begin(); _iter58 != this->taskCounters.end(); ++_iter58) { - xfer += oprot->writeString(_iter64->first); - xfer += oprot->writeI64(_iter64->second); + xfer += oprot->writeString(_iter58->first); + xfer += oprot->writeI64(_iter58->second); } xfer += oprot->writeMapEnd(); } @@ -913,10 +737,10 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorList", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->operatorList.size())); - std::vector ::const_iterator _iter65; - for (_iter65 = this->operatorList.begin(); _iter65 != this->operatorList.end(); ++_iter65) + std::vector ::const_iterator _iter59; + for (_iter59 = this->operatorList.begin(); _iter59 != this->operatorList.end(); ++_iter59) { - xfer += (*_iter65).write(oprot); + xfer += (*_iter59).write(oprot); } xfer += oprot->writeListEnd(); } @@ -948,79 +772,11 @@ void swap(Task &a, Task &b) { swap(a.__isset, b.__isset); } -Task::Task(const Task& other66) { - taskId = other66.taskId; - taskType = other66.taskType; - taskAttributes = other66.taskAttributes; - taskCounters = other66.taskCounters; - operatorGraph = other66.operatorGraph; - operatorList = other66.operatorList; - done = other66.done; - started = other66.started; - __isset = other66.__isset; -} -Task& Task::operator=(const Task& other67) { - taskId = other67.taskId; - taskType = other67.taskType; - taskAttributes = other67.taskAttributes; - taskCounters = other67.taskCounters; - operatorGraph = other67.operatorGraph; - operatorList = other67.operatorList; - done = other67.done; - started = other67.started; - __isset = other67.__isset; - return *this; -} -void Task::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Task("; - out << "taskId=" << to_string(taskId); - out << ", " << "taskType=" << to_string(taskType); - out << ", " << "taskAttributes=" << to_string(taskAttributes); - out << ", " << "taskCounters=" << to_string(taskCounters); - out << ", " << "operatorGraph="; (__isset.operatorGraph ? (out << to_string(operatorGraph)) : (out << "")); - out << ", " << "operatorList="; (__isset.operatorList ? (out << to_string(operatorList)) : (out << "")); - out << ", " << "done=" << to_string(done); - out << ", " << "started=" << to_string(started); - out << ")"; -} - - -Stage::~Stage() throw() { -} - - -void Stage::__set_stageId(const std::string& val) { - this->stageId = val; -} - -void Stage::__set_stageType(const StageType::type val) { - this->stageType = val; -} - -void Stage::__set_stageAttributes(const std::map & val) { - this->stageAttributes = val; -} - -void Stage::__set_stageCounters(const std::map & val) { - this->stageCounters = val; -} - -void Stage::__set_taskList(const std::vector & val) { - this->taskList = val; -} - -void Stage::__set_done(const bool val) { - this->done = val; -} - -void Stage::__set_started(const bool val) { - this->started = val; -} +const char* Stage::ascii_fingerprint = "86EA3C7B0690AFED21A3D479E2B32378"; +const uint8_t Stage::binary_fingerprint[16] = {0x86,0xEA,0x3C,0x7B,0x06,0x90,0xAF,0xED,0x21,0xA3,0xD4,0x79,0xE2,0xB3,0x23,0x78}; uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1049,9 +805,9 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast68; - xfer += iprot->readI32(ecast68); - this->stageType = (StageType::type)ecast68; + int32_t ecast60; + xfer += iprot->readI32(ecast60); + this->stageType = (StageType::type)ecast60; this->__isset.stageType = true; } else { xfer += iprot->skip(ftype); @@ -1061,17 +817,17 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->stageAttributes.clear(); - uint32_t _size69; - ::apache::thrift::protocol::TType _ktype70; - ::apache::thrift::protocol::TType _vtype71; - xfer += iprot->readMapBegin(_ktype70, _vtype71, _size69); - uint32_t _i73; - for (_i73 = 0; _i73 < _size69; ++_i73) + uint32_t _size61; + ::apache::thrift::protocol::TType _ktype62; + ::apache::thrift::protocol::TType _vtype63; + xfer += iprot->readMapBegin(_ktype62, _vtype63, _size61); + uint32_t _i65; + for (_i65 = 0; _i65 < _size61; ++_i65) { - std::string _key74; - xfer += iprot->readString(_key74); - std::string& _val75 = this->stageAttributes[_key74]; - xfer += iprot->readString(_val75); + std::string _key66; + xfer += iprot->readString(_key66); + std::string& _val67 = this->stageAttributes[_key66]; + xfer += iprot->readString(_val67); } xfer += iprot->readMapEnd(); } @@ -1084,17 +840,17 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->stageCounters.clear(); - uint32_t _size76; - ::apache::thrift::protocol::TType _ktype77; - ::apache::thrift::protocol::TType _vtype78; - xfer += iprot->readMapBegin(_ktype77, _vtype78, _size76); - uint32_t _i80; - for (_i80 = 0; _i80 < _size76; ++_i80) + uint32_t _size68; + ::apache::thrift::protocol::TType _ktype69; + ::apache::thrift::protocol::TType _vtype70; + xfer += iprot->readMapBegin(_ktype69, _vtype70, _size68); + uint32_t _i72; + for (_i72 = 0; _i72 < _size68; ++_i72) { - std::string _key81; - xfer += iprot->readString(_key81); - int64_t& _val82 = this->stageCounters[_key81]; - xfer += iprot->readI64(_val82); + std::string _key73; + xfer += iprot->readString(_key73); + int64_t& _val74 = this->stageCounters[_key73]; + xfer += iprot->readI64(_val74); } xfer += iprot->readMapEnd(); } @@ -1107,14 +863,14 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->taskList.clear(); - uint32_t _size83; - ::apache::thrift::protocol::TType _etype86; - xfer += iprot->readListBegin(_etype86, _size83); - this->taskList.resize(_size83); - uint32_t _i87; - for (_i87 = 0; _i87 < _size83; ++_i87) + uint32_t _size75; + ::apache::thrift::protocol::TType _etype78; + xfer += iprot->readListBegin(_etype78, _size75); + this->taskList.resize(_size75); + uint32_t _i79; + for (_i79 = 0; _i79 < _size75; ++_i79) { - xfer += this->taskList[_i87].read(iprot); + xfer += this->taskList[_i79].read(iprot); } xfer += iprot->readListEnd(); } @@ -1153,7 +909,6 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Stage"); xfer += oprot->writeFieldBegin("stageId", ::apache::thrift::protocol::T_STRING, 1); @@ -1167,11 +922,11 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->stageAttributes.size())); - std::map ::const_iterator _iter88; - for (_iter88 = this->stageAttributes.begin(); _iter88 != this->stageAttributes.end(); ++_iter88) + std::map ::const_iterator _iter80; + for (_iter80 = this->stageAttributes.begin(); _iter80 != this->stageAttributes.end(); ++_iter80) { - xfer += oprot->writeString(_iter88->first); - xfer += oprot->writeString(_iter88->second); + xfer += oprot->writeString(_iter80->first); + xfer += oprot->writeString(_iter80->second); } xfer += oprot->writeMapEnd(); } @@ -1180,11 +935,11 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->stageCounters.size())); - std::map ::const_iterator _iter89; - for (_iter89 = this->stageCounters.begin(); _iter89 != this->stageCounters.end(); ++_iter89) + std::map ::const_iterator _iter81; + for (_iter81 = this->stageCounters.begin(); _iter81 != this->stageCounters.end(); ++_iter81) { - xfer += oprot->writeString(_iter89->first); - xfer += oprot->writeI64(_iter89->second); + xfer += oprot->writeString(_iter81->first); + xfer += oprot->writeI64(_iter81->second); } xfer += oprot->writeMapEnd(); } @@ -1193,10 +948,10 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskList", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->taskList.size())); - std::vector ::const_iterator _iter90; - for (_iter90 = this->taskList.begin(); _iter90 != this->taskList.end(); ++_iter90) + std::vector ::const_iterator _iter82; + for (_iter82 = this->taskList.begin(); _iter82 != this->taskList.end(); ++_iter82) { - xfer += (*_iter90).write(oprot); + xfer += (*_iter82).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1227,80 +982,11 @@ void swap(Stage &a, Stage &b) { swap(a.__isset, b.__isset); } -Stage::Stage(const Stage& other91) { - stageId = other91.stageId; - stageType = other91.stageType; - stageAttributes = other91.stageAttributes; - stageCounters = other91.stageCounters; - taskList = other91.taskList; - done = other91.done; - started = other91.started; - __isset = other91.__isset; -} -Stage& Stage::operator=(const Stage& other92) { - stageId = other92.stageId; - stageType = other92.stageType; - stageAttributes = other92.stageAttributes; - stageCounters = other92.stageCounters; - taskList = other92.taskList; - done = other92.done; - started = other92.started; - __isset = other92.__isset; - return *this; -} -void Stage::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Stage("; - out << "stageId=" << to_string(stageId); - out << ", " << "stageType=" << to_string(stageType); - out << ", " << "stageAttributes=" << to_string(stageAttributes); - out << ", " << "stageCounters=" << to_string(stageCounters); - out << ", " << "taskList=" << to_string(taskList); - out << ", " << "done=" << to_string(done); - out << ", " << "started=" << to_string(started); - out << ")"; -} - - -Query::~Query() throw() { -} - - -void Query::__set_queryId(const std::string& val) { - this->queryId = val; -} - -void Query::__set_queryType(const std::string& val) { - this->queryType = val; -} - -void Query::__set_queryAttributes(const std::map & val) { - this->queryAttributes = val; -} - -void Query::__set_queryCounters(const std::map & val) { - this->queryCounters = val; -} - -void Query::__set_stageGraph(const Graph& val) { - this->stageGraph = val; -} - -void Query::__set_stageList(const std::vector & val) { - this->stageList = val; -} - -void Query::__set_done(const bool val) { - this->done = val; -} - -void Query::__set_started(const bool val) { - this->started = val; -} +const char* Query::ascii_fingerprint = "68300D63A5D40F2D17B9A9440FF626C1"; +const uint8_t Query::binary_fingerprint[16] = {0x68,0x30,0x0D,0x63,0xA5,0xD4,0x0F,0x2D,0x17,0xB9,0xA9,0x44,0x0F,0xF6,0x26,0xC1}; uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1339,17 +1025,17 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->queryAttributes.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _ktype94; - ::apache::thrift::protocol::TType _vtype95; - xfer += iprot->readMapBegin(_ktype94, _vtype95, _size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size83; + ::apache::thrift::protocol::TType _ktype84; + ::apache::thrift::protocol::TType _vtype85; + xfer += iprot->readMapBegin(_ktype84, _vtype85, _size83); + uint32_t _i87; + for (_i87 = 0; _i87 < _size83; ++_i87) { - std::string _key98; - xfer += iprot->readString(_key98); - std::string& _val99 = this->queryAttributes[_key98]; - xfer += iprot->readString(_val99); + std::string _key88; + xfer += iprot->readString(_key88); + std::string& _val89 = this->queryAttributes[_key88]; + xfer += iprot->readString(_val89); } xfer += iprot->readMapEnd(); } @@ -1362,17 +1048,17 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->queryCounters.clear(); - uint32_t _size100; - ::apache::thrift::protocol::TType _ktype101; - ::apache::thrift::protocol::TType _vtype102; - xfer += iprot->readMapBegin(_ktype101, _vtype102, _size100); - uint32_t _i104; - for (_i104 = 0; _i104 < _size100; ++_i104) + uint32_t _size90; + ::apache::thrift::protocol::TType _ktype91; + ::apache::thrift::protocol::TType _vtype92; + xfer += iprot->readMapBegin(_ktype91, _vtype92, _size90); + uint32_t _i94; + for (_i94 = 0; _i94 < _size90; ++_i94) { - std::string _key105; - xfer += iprot->readString(_key105); - int64_t& _val106 = this->queryCounters[_key105]; - xfer += iprot->readI64(_val106); + std::string _key95; + xfer += iprot->readString(_key95); + int64_t& _val96 = this->queryCounters[_key95]; + xfer += iprot->readI64(_val96); } xfer += iprot->readMapEnd(); } @@ -1393,14 +1079,14 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->stageList.clear(); - uint32_t _size107; - ::apache::thrift::protocol::TType _etype110; - xfer += iprot->readListBegin(_etype110, _size107); - this->stageList.resize(_size107); - uint32_t _i111; - for (_i111 = 0; _i111 < _size107; ++_i111) + uint32_t _size97; + ::apache::thrift::protocol::TType _etype100; + xfer += iprot->readListBegin(_etype100, _size97); + this->stageList.resize(_size97); + uint32_t _i101; + for (_i101 = 0; _i101 < _size97; ++_i101) { - xfer += this->stageList[_i111].read(iprot); + xfer += this->stageList[_i101].read(iprot); } xfer += iprot->readListEnd(); } @@ -1439,7 +1125,6 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Query"); xfer += oprot->writeFieldBegin("queryId", ::apache::thrift::protocol::T_STRING, 1); @@ -1453,11 +1138,11 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("queryAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->queryAttributes.size())); - std::map ::const_iterator _iter112; - for (_iter112 = this->queryAttributes.begin(); _iter112 != this->queryAttributes.end(); ++_iter112) + std::map ::const_iterator _iter102; + for (_iter102 = this->queryAttributes.begin(); _iter102 != this->queryAttributes.end(); ++_iter102) { - xfer += oprot->writeString(_iter112->first); - xfer += oprot->writeString(_iter112->second); + xfer += oprot->writeString(_iter102->first); + xfer += oprot->writeString(_iter102->second); } xfer += oprot->writeMapEnd(); } @@ -1466,11 +1151,11 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("queryCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->queryCounters.size())); - std::map ::const_iterator _iter113; - for (_iter113 = this->queryCounters.begin(); _iter113 != this->queryCounters.end(); ++_iter113) + std::map ::const_iterator _iter103; + for (_iter103 = this->queryCounters.begin(); _iter103 != this->queryCounters.end(); ++_iter103) { - xfer += oprot->writeString(_iter113->first); - xfer += oprot->writeI64(_iter113->second); + xfer += oprot->writeString(_iter103->first); + xfer += oprot->writeI64(_iter103->second); } xfer += oprot->writeMapEnd(); } @@ -1483,10 +1168,10 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageList", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->stageList.size())); - std::vector ::const_iterator _iter114; - for (_iter114 = this->stageList.begin(); _iter114 != this->stageList.end(); ++_iter114) + std::vector ::const_iterator _iter104; + for (_iter104 = this->stageList.begin(); _iter104 != this->stageList.end(); ++_iter104) { - xfer += (*_iter114).write(oprot); + xfer += (*_iter104).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1518,63 +1203,11 @@ void swap(Query &a, Query &b) { swap(a.__isset, b.__isset); } -Query::Query(const Query& other115) { - queryId = other115.queryId; - queryType = other115.queryType; - queryAttributes = other115.queryAttributes; - queryCounters = other115.queryCounters; - stageGraph = other115.stageGraph; - stageList = other115.stageList; - done = other115.done; - started = other115.started; - __isset = other115.__isset; -} -Query& Query::operator=(const Query& other116) { - queryId = other116.queryId; - queryType = other116.queryType; - queryAttributes = other116.queryAttributes; - queryCounters = other116.queryCounters; - stageGraph = other116.stageGraph; - stageList = other116.stageList; - done = other116.done; - started = other116.started; - __isset = other116.__isset; - return *this; -} -void Query::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Query("; - out << "queryId=" << to_string(queryId); - out << ", " << "queryType=" << to_string(queryType); - out << ", " << "queryAttributes=" << to_string(queryAttributes); - out << ", " << "queryCounters=" << to_string(queryCounters); - out << ", " << "stageGraph=" << to_string(stageGraph); - out << ", " << "stageList=" << to_string(stageList); - out << ", " << "done=" << to_string(done); - out << ", " << "started=" << to_string(started); - out << ")"; -} - - -QueryPlan::~QueryPlan() throw() { -} - - -void QueryPlan::__set_queries(const std::vector & val) { - this->queries = val; -} - -void QueryPlan::__set_done(const bool val) { - this->done = val; -} - -void QueryPlan::__set_started(const bool val) { - this->started = val; -} +const char* QueryPlan::ascii_fingerprint = "3418D1B0C20C288C8406186700B772E3"; +const uint8_t QueryPlan::binary_fingerprint[16] = {0x34,0x18,0xD1,0xB0,0xC2,0x0C,0x28,0x8C,0x84,0x06,0x18,0x67,0x00,0xB7,0x72,0xE3}; uint32_t QueryPlan::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1597,14 +1230,14 @@ uint32_t QueryPlan::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->queries.clear(); - uint32_t _size117; - ::apache::thrift::protocol::TType _etype120; - xfer += iprot->readListBegin(_etype120, _size117); - this->queries.resize(_size117); - uint32_t _i121; - for (_i121 = 0; _i121 < _size117; ++_i121) + uint32_t _size105; + ::apache::thrift::protocol::TType _etype108; + xfer += iprot->readListBegin(_etype108, _size105); + this->queries.resize(_size105); + uint32_t _i109; + for (_i109 = 0; _i109 < _size105; ++_i109) { - xfer += this->queries[_i121].read(iprot); + xfer += this->queries[_i109].read(iprot); } xfer += iprot->readListEnd(); } @@ -1643,16 +1276,15 @@ uint32_t QueryPlan::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t QueryPlan::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("QueryPlan"); xfer += oprot->writeFieldBegin("queries", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->queries.size())); - std::vector ::const_iterator _iter122; - for (_iter122 = this->queries.begin(); _iter122 != this->queries.end(); ++_iter122) + std::vector ::const_iterator _iter110; + for (_iter110 = this->queries.begin(); _iter110 != this->queries.end(); ++_iter110) { - xfer += (*_iter122).write(oprot); + xfer += (*_iter110).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1679,26 +1311,4 @@ void swap(QueryPlan &a, QueryPlan &b) { swap(a.__isset, b.__isset); } -QueryPlan::QueryPlan(const QueryPlan& other123) { - queries = other123.queries; - done = other123.done; - started = other123.started; - __isset = other123.__isset; -} -QueryPlan& QueryPlan::operator=(const QueryPlan& other124) { - queries = other124.queries; - done = other124.done; - started = other124.started; - __isset = other124.__isset; - return *this; -} -void QueryPlan::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "QueryPlan("; - out << "queries=" << to_string(queries); - out << ", " << "done=" << to_string(done); - out << ", " << "started=" << to_string(started); - out << ")"; -} - }}} // namespace diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.h b/ql/src/gen/thrift/gen-cpp/queryplan_types.h index ce37b2e..e43e42a 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.h +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef queryplan_TYPES_H #define queryplan_TYPES_H -#include - #include #include #include #include -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -99,47 +96,41 @@ struct StageType { extern const std::map _StageType_VALUES_TO_NAMES; -class Adjacency; - -class Graph; - -class Operator; - -class Task; - -class Stage; - -class Query; - -class QueryPlan; - typedef struct _Adjacency__isset { _Adjacency__isset() : node(false), children(false), adjacencyType(false) {} - bool node :1; - bool children :1; - bool adjacencyType :1; + bool node; + bool children; + bool adjacencyType; } _Adjacency__isset; class Adjacency { public: - Adjacency(const Adjacency&); - Adjacency& operator=(const Adjacency&); + static const char* ascii_fingerprint; // = "BC4F8C394677A1003AA9F56ED26D8204"; + static const uint8_t binary_fingerprint[16]; // = {0xBC,0x4F,0x8C,0x39,0x46,0x77,0xA1,0x00,0x3A,0xA9,0xF5,0x6E,0xD2,0x6D,0x82,0x04}; + Adjacency() : node(), adjacencyType((AdjacencyType::type)0) { } - virtual ~Adjacency() throw(); + virtual ~Adjacency() throw() {} + std::string node; std::vector children; AdjacencyType::type adjacencyType; _Adjacency__isset __isset; - void __set_node(const std::string& val); + void __set_node(const std::string& val) { + node = val; + } - void __set_children(const std::vector & val); + void __set_children(const std::vector & val) { + children = val; + } - void __set_adjacencyType(const AdjacencyType::type val); + void __set_adjacencyType(const AdjacencyType::type val) { + adjacencyType = val; + } bool operator == (const Adjacency & rhs) const { @@ -160,44 +151,45 @@ class Adjacency { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Adjacency &a, Adjacency &b); -inline std::ostream& operator<<(std::ostream& out, const Adjacency& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Graph__isset { _Graph__isset() : nodeType(false), roots(false), adjacencyList(false) {} - bool nodeType :1; - bool roots :1; - bool adjacencyList :1; + bool nodeType; + bool roots; + bool adjacencyList; } _Graph__isset; class Graph { public: - Graph(const Graph&); - Graph& operator=(const Graph&); + static const char* ascii_fingerprint; // = "1F7FB604B3EF8F7AFB5DEAD15F2FC0B5"; + static const uint8_t binary_fingerprint[16]; // = {0x1F,0x7F,0xB6,0x04,0xB3,0xEF,0x8F,0x7A,0xFB,0x5D,0xEA,0xD1,0x5F,0x2F,0xC0,0xB5}; + Graph() : nodeType((NodeType::type)0) { } - virtual ~Graph() throw(); + virtual ~Graph() throw() {} + NodeType::type nodeType; std::vector roots; std::vector adjacencyList; _Graph__isset __isset; - void __set_nodeType(const NodeType::type val); + void __set_nodeType(const NodeType::type val) { + nodeType = val; + } - void __set_roots(const std::vector & val); + void __set_roots(const std::vector & val) { + roots = val; + } - void __set_adjacencyList(const std::vector & val); + void __set_adjacencyList(const std::vector & val) { + adjacencyList = val; + } bool operator == (const Graph & rhs) const { @@ -218,36 +210,31 @@ class Graph { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Graph &a, Graph &b); -inline std::ostream& operator<<(std::ostream& out, const Graph& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Operator__isset { _Operator__isset() : operatorId(false), operatorType(false), operatorAttributes(false), operatorCounters(false), done(false), started(false) {} - bool operatorId :1; - bool operatorType :1; - bool operatorAttributes :1; - bool operatorCounters :1; - bool done :1; - bool started :1; + bool operatorId; + bool operatorType; + bool operatorAttributes; + bool operatorCounters; + bool done; + bool started; } _Operator__isset; class Operator { public: - Operator(const Operator&); - Operator& operator=(const Operator&); + static const char* ascii_fingerprint; // = "30917C758A752485AF223B697479DE6C"; + static const uint8_t binary_fingerprint[16]; // = {0x30,0x91,0x7C,0x75,0x8A,0x75,0x24,0x85,0xAF,0x22,0x3B,0x69,0x74,0x79,0xDE,0x6C}; + Operator() : operatorId(), operatorType((OperatorType::type)0), done(0), started(0) { } - virtual ~Operator() throw(); + virtual ~Operator() throw() {} + std::string operatorId; OperatorType::type operatorType; std::map operatorAttributes; @@ -257,17 +244,29 @@ class Operator { _Operator__isset __isset; - void __set_operatorId(const std::string& val); + void __set_operatorId(const std::string& val) { + operatorId = val; + } - void __set_operatorType(const OperatorType::type val); + void __set_operatorType(const OperatorType::type val) { + operatorType = val; + } - void __set_operatorAttributes(const std::map & val); + void __set_operatorAttributes(const std::map & val) { + operatorAttributes = val; + } - void __set_operatorCounters(const std::map & val); + void __set_operatorCounters(const std::map & val) { + operatorCounters = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Operator & rhs) const { @@ -294,38 +293,33 @@ class Operator { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Operator &a, Operator &b); -inline std::ostream& operator<<(std::ostream& out, const Operator& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Task__isset { _Task__isset() : taskId(false), taskType(false), taskAttributes(false), taskCounters(false), operatorGraph(false), operatorList(false), done(false), started(false) {} - bool taskId :1; - bool taskType :1; - bool taskAttributes :1; - bool taskCounters :1; - bool operatorGraph :1; - bool operatorList :1; - bool done :1; - bool started :1; + bool taskId; + bool taskType; + bool taskAttributes; + bool taskCounters; + bool operatorGraph; + bool operatorList; + bool done; + bool started; } _Task__isset; class Task { public: - Task(const Task&); - Task& operator=(const Task&); + static const char* ascii_fingerprint; // = "AC741A136EFA51843AFC3A12F6A793D1"; + static const uint8_t binary_fingerprint[16]; // = {0xAC,0x74,0x1A,0x13,0x6E,0xFA,0x51,0x84,0x3A,0xFC,0x3A,0x12,0xF6,0xA7,0x93,0xD1}; + Task() : taskId(), taskType((TaskType::type)0), done(0), started(0) { } - virtual ~Task() throw(); + virtual ~Task() throw() {} + std::string taskId; TaskType::type taskType; std::map taskAttributes; @@ -337,21 +331,39 @@ class Task { _Task__isset __isset; - void __set_taskId(const std::string& val); + void __set_taskId(const std::string& val) { + taskId = val; + } - void __set_taskType(const TaskType::type val); + void __set_taskType(const TaskType::type val) { + taskType = val; + } - void __set_taskAttributes(const std::map & val); + void __set_taskAttributes(const std::map & val) { + taskAttributes = val; + } - void __set_taskCounters(const std::map & val); + void __set_taskCounters(const std::map & val) { + taskCounters = val; + } - void __set_operatorGraph(const Graph& val); + void __set_operatorGraph(const Graph& val) { + operatorGraph = val; + __isset.operatorGraph = true; + } - void __set_operatorList(const std::vector & val); + void __set_operatorList(const std::vector & val) { + operatorList = val; + __isset.operatorList = true; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Task & rhs) const { @@ -386,37 +398,32 @@ class Task { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Task &a, Task &b); -inline std::ostream& operator<<(std::ostream& out, const Task& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Stage__isset { _Stage__isset() : stageId(false), stageType(false), stageAttributes(false), stageCounters(false), taskList(false), done(false), started(false) {} - bool stageId :1; - bool stageType :1; - bool stageAttributes :1; - bool stageCounters :1; - bool taskList :1; - bool done :1; - bool started :1; + bool stageId; + bool stageType; + bool stageAttributes; + bool stageCounters; + bool taskList; + bool done; + bool started; } _Stage__isset; class Stage { public: - Stage(const Stage&); - Stage& operator=(const Stage&); + static const char* ascii_fingerprint; // = "86EA3C7B0690AFED21A3D479E2B32378"; + static const uint8_t binary_fingerprint[16]; // = {0x86,0xEA,0x3C,0x7B,0x06,0x90,0xAF,0xED,0x21,0xA3,0xD4,0x79,0xE2,0xB3,0x23,0x78}; + Stage() : stageId(), stageType((StageType::type)0), done(0), started(0) { } - virtual ~Stage() throw(); + virtual ~Stage() throw() {} + std::string stageId; StageType::type stageType; std::map stageAttributes; @@ -427,19 +434,33 @@ class Stage { _Stage__isset __isset; - void __set_stageId(const std::string& val); + void __set_stageId(const std::string& val) { + stageId = val; + } - void __set_stageType(const StageType::type val); + void __set_stageType(const StageType::type val) { + stageType = val; + } - void __set_stageAttributes(const std::map & val); + void __set_stageAttributes(const std::map & val) { + stageAttributes = val; + } - void __set_stageCounters(const std::map & val); + void __set_stageCounters(const std::map & val) { + stageCounters = val; + } - void __set_taskList(const std::vector & val); + void __set_taskList(const std::vector & val) { + taskList = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Stage & rhs) const { @@ -468,38 +489,33 @@ class Stage { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Stage &a, Stage &b); -inline std::ostream& operator<<(std::ostream& out, const Stage& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Query__isset { _Query__isset() : queryId(false), queryType(false), queryAttributes(false), queryCounters(false), stageGraph(false), stageList(false), done(false), started(false) {} - bool queryId :1; - bool queryType :1; - bool queryAttributes :1; - bool queryCounters :1; - bool stageGraph :1; - bool stageList :1; - bool done :1; - bool started :1; + bool queryId; + bool queryType; + bool queryAttributes; + bool queryCounters; + bool stageGraph; + bool stageList; + bool done; + bool started; } _Query__isset; class Query { public: - Query(const Query&); - Query& operator=(const Query&); + static const char* ascii_fingerprint; // = "68300D63A5D40F2D17B9A9440FF626C1"; + static const uint8_t binary_fingerprint[16]; // = {0x68,0x30,0x0D,0x63,0xA5,0xD4,0x0F,0x2D,0x17,0xB9,0xA9,0x44,0x0F,0xF6,0x26,0xC1}; + Query() : queryId(), queryType(), done(0), started(0) { } - virtual ~Query() throw(); + virtual ~Query() throw() {} + std::string queryId; std::string queryType; std::map queryAttributes; @@ -511,21 +527,37 @@ class Query { _Query__isset __isset; - void __set_queryId(const std::string& val); + void __set_queryId(const std::string& val) { + queryId = val; + } - void __set_queryType(const std::string& val); + void __set_queryType(const std::string& val) { + queryType = val; + } - void __set_queryAttributes(const std::map & val); + void __set_queryAttributes(const std::map & val) { + queryAttributes = val; + } - void __set_queryCounters(const std::map & val); + void __set_queryCounters(const std::map & val) { + queryCounters = val; + } - void __set_stageGraph(const Graph& val); + void __set_stageGraph(const Graph& val) { + stageGraph = val; + } - void __set_stageList(const std::vector & val); + void __set_stageList(const std::vector & val) { + stageList = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Query & rhs) const { @@ -556,44 +588,45 @@ class Query { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Query &a, Query &b); -inline std::ostream& operator<<(std::ostream& out, const Query& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _QueryPlan__isset { _QueryPlan__isset() : queries(false), done(false), started(false) {} - bool queries :1; - bool done :1; - bool started :1; + bool queries; + bool done; + bool started; } _QueryPlan__isset; class QueryPlan { public: - QueryPlan(const QueryPlan&); - QueryPlan& operator=(const QueryPlan&); + static const char* ascii_fingerprint; // = "3418D1B0C20C288C8406186700B772E3"; + static const uint8_t binary_fingerprint[16]; // = {0x34,0x18,0xD1,0xB0,0xC2,0x0C,0x28,0x8C,0x84,0x06,0x18,0x67,0x00,0xB7,0x72,0xE3}; + QueryPlan() : done(0), started(0) { } - virtual ~QueryPlan() throw(); + virtual ~QueryPlan() throw() {} + std::vector queries; bool done; bool started; _QueryPlan__isset __isset; - void __set_queries(const std::vector & val); + void __set_queries(const std::vector & val) { + queries = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const QueryPlan & rhs) const { @@ -614,17 +647,10 @@ class QueryPlan { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(QueryPlan &a, QueryPlan &b); -inline std::ostream& operator<<(std::ostream& out, const QueryPlan& obj) -{ - obj.printTo(out); - return out; -} - }}} // namespace #endif diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java index 37edf2a..22ca225 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Adjacency implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Adjacency implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Adjacency"); private static final org.apache.thrift.protocol.TField NODE_FIELD_DESC = new org.apache.thrift.protocol.TField("node", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -157,7 +153,10 @@ public Adjacency(Adjacency other) { this.node = other.node; } if (other.isSetChildren()) { - List __this__children = new ArrayList(other.children); + List __this__children = new ArrayList(); + for (String other_element : other.children) { + __this__children.add(other_element); + } this.children = __this__children; } if (other.isSetAdjacencyType()) { @@ -374,60 +373,60 @@ public boolean equals(Adjacency that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_node = true && (isSetNode()); - list.add(present_node); + builder.append(present_node); if (present_node) - list.add(node); + builder.append(node); boolean present_children = true && (isSetChildren()); - list.add(present_children); + builder.append(present_children); if (present_children) - list.add(children); + builder.append(children); boolean present_adjacencyType = true && (isSetAdjacencyType()); - list.add(present_adjacencyType); + builder.append(present_adjacencyType); if (present_adjacencyType) - list.add(adjacencyType.getValue()); + builder.append(adjacencyType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Adjacency other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Adjacency typedOther = (Adjacency)other; - lastComparison = Boolean.valueOf(isSetNode()).compareTo(other.isSetNode()); + lastComparison = Boolean.valueOf(isSetNode()).compareTo(typedOther.isSetNode()); if (lastComparison != 0) { return lastComparison; } if (isSetNode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, other.node); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, typedOther.node); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetChildren()).compareTo(other.isSetChildren()); + lastComparison = Boolean.valueOf(isSetChildren()).compareTo(typedOther.isSetChildren()); if (lastComparison != 0) { return lastComparison; } if (isSetChildren()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, other.children); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAdjacencyType()).compareTo(other.isSetAdjacencyType()); + lastComparison = Boolean.valueOf(isSetAdjacencyType()).compareTo(typedOther.isSetAdjacencyType()); if (lastComparison != 0) { return lastComparison; } if (isSetAdjacencyType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyType, other.adjacencyType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyType, typedOther.adjacencyType); if (lastComparison != 0) { return lastComparison; } @@ -531,11 +530,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Adjacency struct) t { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.children = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - struct.children.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + struct.children.add(_elem2); } iprot.readListEnd(); } @@ -546,7 +545,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Adjacency struct) t break; case 3: // ADJACENCY_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); + struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -644,17 +643,17 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) th { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.children = new ArrayList(_list5.size); - String _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = iprot.readString(); - struct.children.add(_elem6); + String _elem7; // required + _elem7 = iprot.readString(); + struct.children.add(_elem7); } } struct.setChildrenIsSet(true); } if (incoming.get(2)) { - struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); + struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } } diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java index 7a716f8..7984d4e 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java index 0b454df..35aa6cb 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Graph implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Graph implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Graph"); private static final org.apache.thrift.protocol.TField NODE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("nodeType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -158,11 +154,14 @@ public Graph(Graph other) { this.nodeType = other.nodeType; } if (other.isSetRoots()) { - List __this__roots = new ArrayList(other.roots); + List __this__roots = new ArrayList(); + for (String other_element : other.roots) { + __this__roots.add(other_element); + } this.roots = __this__roots; } if (other.isSetAdjacencyList()) { - List __this__adjacencyList = new ArrayList(other.adjacencyList.size()); + List __this__adjacencyList = new ArrayList(); for (Adjacency other_element : other.adjacencyList) { __this__adjacencyList.add(new Adjacency(other_element)); } @@ -394,60 +393,60 @@ public boolean equals(Graph that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nodeType = true && (isSetNodeType()); - list.add(present_nodeType); + builder.append(present_nodeType); if (present_nodeType) - list.add(nodeType.getValue()); + builder.append(nodeType.getValue()); boolean present_roots = true && (isSetRoots()); - list.add(present_roots); + builder.append(present_roots); if (present_roots) - list.add(roots); + builder.append(roots); boolean present_adjacencyList = true && (isSetAdjacencyList()); - list.add(present_adjacencyList); + builder.append(present_adjacencyList); if (present_adjacencyList) - list.add(adjacencyList); + builder.append(adjacencyList); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Graph other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Graph typedOther = (Graph)other; - lastComparison = Boolean.valueOf(isSetNodeType()).compareTo(other.isSetNodeType()); + lastComparison = Boolean.valueOf(isSetNodeType()).compareTo(typedOther.isSetNodeType()); if (lastComparison != 0) { return lastComparison; } if (isSetNodeType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeType, other.nodeType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeType, typedOther.nodeType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRoots()).compareTo(other.isSetRoots()); + lastComparison = Boolean.valueOf(isSetRoots()).compareTo(typedOther.isSetRoots()); if (lastComparison != 0) { return lastComparison; } if (isSetRoots()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roots, other.roots); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roots, typedOther.roots); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAdjacencyList()).compareTo(other.isSetAdjacencyList()); + lastComparison = Boolean.valueOf(isSetAdjacencyList()).compareTo(typedOther.isSetAdjacencyList()); if (lastComparison != 0) { return lastComparison; } if (isSetAdjacencyList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyList, other.adjacencyList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyList, typedOther.adjacencyList); if (lastComparison != 0) { return lastComparison; } @@ -540,7 +539,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw switch (schemeField.id) { case 1: // NODE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.nodeType = org.apache.hadoop.hive.ql.plan.api.NodeType.findByValue(iprot.readI32()); + struct.nodeType = NodeType.findByValue(iprot.readI32()); struct.setNodeTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -551,11 +550,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.roots = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.roots.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.roots.add(_elem10); } iprot.readListEnd(); } @@ -569,12 +568,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw { org.apache.thrift.protocol.TList _list11 = iprot.readListBegin(); struct.adjacencyList = new ArrayList(_list11.size); - Adjacency _elem12; - for (int _i13 = 0; _i13 < _list11.size; ++_i13) + for (int _i12 = 0; _i12 < _list11.size; ++_i12) { - _elem12 = new Adjacency(); - _elem12.read(iprot); - struct.adjacencyList.add(_elem12); + Adjacency _elem13; // required + _elem13 = new Adjacency(); + _elem13.read(iprot); + struct.adjacencyList.add(_elem13); } iprot.readListEnd(); } @@ -681,18 +680,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Graph struct) throws TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.nodeType = org.apache.hadoop.hive.ql.plan.api.NodeType.findByValue(iprot.readI32()); + struct.nodeType = NodeType.findByValue(iprot.readI32()); struct.setNodeTypeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.roots = new ArrayList(_list18.size); - String _elem19; - for (int _i20 = 0; _i20 < _list18.size; ++_i20) + for (int _i19 = 0; _i19 < _list18.size; ++_i19) { - _elem19 = iprot.readString(); - struct.roots.add(_elem19); + String _elem20; // required + _elem20 = iprot.readString(); + struct.roots.add(_elem20); } } struct.setRootsIsSet(true); @@ -701,12 +700,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Graph struct) throws { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.adjacencyList = new ArrayList(_list21.size); - Adjacency _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = new Adjacency(); - _elem22.read(iprot); - struct.adjacencyList.add(_elem22); + Adjacency _elem23; // required + _elem23 = new Adjacency(); + _elem23.read(iprot); + struct.adjacencyList.add(_elem23); } } struct.setAdjacencyListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java index c3ce662..1126049 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java index 05dbb2d..f1c9e2d 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Operator implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Operator implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Operator"); private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -196,11 +192,33 @@ public Operator(Operator other) { this.operatorType = other.operatorType; } if (other.isSetOperatorAttributes()) { - Map __this__operatorAttributes = new HashMap(other.operatorAttributes); + Map __this__operatorAttributes = new HashMap(); + for (Map.Entry other_element : other.operatorAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__operatorAttributes_copy_key = other_element_key; + + String __this__operatorAttributes_copy_value = other_element_value; + + __this__operatorAttributes.put(__this__operatorAttributes_copy_key, __this__operatorAttributes_copy_value); + } this.operatorAttributes = __this__operatorAttributes; } if (other.isSetOperatorCounters()) { - Map __this__operatorCounters = new HashMap(other.operatorCounters); + Map __this__operatorCounters = new HashMap(); + for (Map.Entry other_element : other.operatorCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__operatorCounters_copy_key = other_element_key; + + Long __this__operatorCounters_copy_value = other_element_value; + + __this__operatorCounters.put(__this__operatorCounters_copy_key, __this__operatorCounters_copy_value); + } this.operatorCounters = __this__operatorCounters; } this.done = other.done; @@ -457,10 +475,10 @@ public Object getFieldValue(_Fields field) { return getOperatorCounters(); case DONE: - return isDone(); + return Boolean.valueOf(isDone()); case STARTED: - return isStarted(); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); @@ -561,105 +579,105 @@ public boolean equals(Operator that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operatorId = true && (isSetOperatorId()); - list.add(present_operatorId); + builder.append(present_operatorId); if (present_operatorId) - list.add(operatorId); + builder.append(operatorId); boolean present_operatorType = true && (isSetOperatorType()); - list.add(present_operatorType); + builder.append(present_operatorType); if (present_operatorType) - list.add(operatorType.getValue()); + builder.append(operatorType.getValue()); boolean present_operatorAttributes = true && (isSetOperatorAttributes()); - list.add(present_operatorAttributes); + builder.append(present_operatorAttributes); if (present_operatorAttributes) - list.add(operatorAttributes); + builder.append(operatorAttributes); boolean present_operatorCounters = true && (isSetOperatorCounters()); - list.add(present_operatorCounters); + builder.append(present_operatorCounters); if (present_operatorCounters) - list.add(operatorCounters); + builder.append(operatorCounters); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Operator other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Operator typedOther = (Operator)other; - lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(other.isSetOperatorId()); + lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, other.operatorId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(other.isSetOperatorType()); + lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(typedOther.isSetOperatorType()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, other.operatorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, typedOther.operatorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(other.isSetOperatorAttributes()); + lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(typedOther.isSetOperatorAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, other.operatorAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, typedOther.operatorAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(other.isSetOperatorCounters()); + lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(typedOther.isSetOperatorCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorCounters, other.operatorCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorCounters, typedOther.operatorCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -778,7 +796,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th break; case 2: // OPERATOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operatorType = org.apache.hadoop.hive.ql.plan.api.OperatorType.findByValue(iprot.readI32()); + struct.operatorType = OperatorType.findByValue(iprot.readI32()); struct.setOperatorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -789,13 +807,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th { org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); struct.operatorAttributes = new HashMap(2*_map24.size); - String _key25; - String _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + for (int _i25 = 0; _i25 < _map24.size; ++_i25) { - _key25 = iprot.readString(); - _val26 = iprot.readString(); - struct.operatorAttributes.put(_key25, _val26); + String _key26; // required + String _val27; // required + _key26 = iprot.readString(); + _val27 = iprot.readString(); + struct.operatorAttributes.put(_key26, _val27); } iprot.readMapEnd(); } @@ -809,13 +827,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th { org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin(); struct.operatorCounters = new HashMap(2*_map28.size); - String _key29; - long _val30; - for (int _i31 = 0; _i31 < _map28.size; ++_i31) + for (int _i29 = 0; _i29 < _map28.size; ++_i29) { - _key29 = iprot.readString(); - _val30 = iprot.readI64(); - struct.operatorCounters.put(_key29, _val30); + String _key30; // required + long _val31; // required + _key30 = iprot.readString(); + _val31 = iprot.readI64(); + struct.operatorCounters.put(_key30, _val31); } iprot.readMapEnd(); } @@ -975,20 +993,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Operator struct) thr struct.setOperatorIdIsSet(true); } if (incoming.get(1)) { - struct.operatorType = org.apache.hadoop.hive.ql.plan.api.OperatorType.findByValue(iprot.readI32()); + struct.operatorType = OperatorType.findByValue(iprot.readI32()); struct.setOperatorTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map36 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.operatorAttributes = new HashMap(2*_map36.size); - String _key37; - String _val38; - for (int _i39 = 0; _i39 < _map36.size; ++_i39) + for (int _i37 = 0; _i37 < _map36.size; ++_i37) { - _key37 = iprot.readString(); - _val38 = iprot.readString(); - struct.operatorAttributes.put(_key37, _val38); + String _key38; // required + String _val39; // required + _key38 = iprot.readString(); + _val39 = iprot.readString(); + struct.operatorAttributes.put(_key38, _val39); } } struct.setOperatorAttributesIsSet(true); @@ -997,13 +1015,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Operator struct) thr { org.apache.thrift.protocol.TMap _map40 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.operatorCounters = new HashMap(2*_map40.size); - String _key41; - long _val42; - for (int _i43 = 0; _i43 < _map40.size; ++_i43) + for (int _i41 = 0; _i41 < _map40.size; ++_i41) { - _key41 = iprot.readString(); - _val42 = iprot.readI64(); - struct.operatorCounters.put(_key41, _val42); + String _key42; // required + long _val43; // required + _key42 = iprot.readString(); + _val43 = iprot.readI64(); + struct.operatorCounters.put(_key42, _val43); } } struct.setOperatorCountersIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java index a002348..4dfaa22 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java index de553e1..e0d77e8 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Query implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Query implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Query"); private static final org.apache.thrift.protocol.TField QUERY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("queryId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -211,18 +207,40 @@ public Query(Query other) { this.queryType = other.queryType; } if (other.isSetQueryAttributes()) { - Map __this__queryAttributes = new HashMap(other.queryAttributes); + Map __this__queryAttributes = new HashMap(); + for (Map.Entry other_element : other.queryAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__queryAttributes_copy_key = other_element_key; + + String __this__queryAttributes_copy_value = other_element_value; + + __this__queryAttributes.put(__this__queryAttributes_copy_key, __this__queryAttributes_copy_value); + } this.queryAttributes = __this__queryAttributes; } if (other.isSetQueryCounters()) { - Map __this__queryCounters = new HashMap(other.queryCounters); + Map __this__queryCounters = new HashMap(); + for (Map.Entry other_element : other.queryCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__queryCounters_copy_key = other_element_key; + + Long __this__queryCounters_copy_value = other_element_value; + + __this__queryCounters.put(__this__queryCounters_copy_key, __this__queryCounters_copy_value); + } this.queryCounters = __this__queryCounters; } if (other.isSetStageGraph()) { this.stageGraph = new Graph(other.stageGraph); } if (other.isSetStageList()) { - List __this__stageList = new ArrayList(other.stageList.size()); + List __this__stageList = new ArrayList(); for (Stage other_element : other.stageList) { __this__stageList.add(new Stage(other_element)); } @@ -559,10 +577,10 @@ public Object getFieldValue(_Fields field) { return getStageList(); case DONE: - return isDone(); + return Boolean.valueOf(isDone()); case STARTED: - return isStarted(); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); @@ -685,135 +703,135 @@ public boolean equals(Query that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_queryId = true && (isSetQueryId()); - list.add(present_queryId); + builder.append(present_queryId); if (present_queryId) - list.add(queryId); + builder.append(queryId); boolean present_queryType = true && (isSetQueryType()); - list.add(present_queryType); + builder.append(present_queryType); if (present_queryType) - list.add(queryType); + builder.append(queryType); boolean present_queryAttributes = true && (isSetQueryAttributes()); - list.add(present_queryAttributes); + builder.append(present_queryAttributes); if (present_queryAttributes) - list.add(queryAttributes); + builder.append(queryAttributes); boolean present_queryCounters = true && (isSetQueryCounters()); - list.add(present_queryCounters); + builder.append(present_queryCounters); if (present_queryCounters) - list.add(queryCounters); + builder.append(queryCounters); boolean present_stageGraph = true && (isSetStageGraph()); - list.add(present_stageGraph); + builder.append(present_stageGraph); if (present_stageGraph) - list.add(stageGraph); + builder.append(stageGraph); boolean present_stageList = true && (isSetStageList()); - list.add(present_stageList); + builder.append(present_stageList); if (present_stageList) - list.add(stageList); + builder.append(stageList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Query other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Query typedOther = (Query)other; - lastComparison = Boolean.valueOf(isSetQueryId()).compareTo(other.isSetQueryId()); + lastComparison = Boolean.valueOf(isSetQueryId()).compareTo(typedOther.isSetQueryId()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryId, other.queryId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryId, typedOther.queryId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryType()).compareTo(other.isSetQueryType()); + lastComparison = Boolean.valueOf(isSetQueryType()).compareTo(typedOther.isSetQueryType()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryType, other.queryType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryType, typedOther.queryType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryAttributes()).compareTo(other.isSetQueryAttributes()); + lastComparison = Boolean.valueOf(isSetQueryAttributes()).compareTo(typedOther.isSetQueryAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryAttributes, other.queryAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryAttributes, typedOther.queryAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryCounters()).compareTo(other.isSetQueryCounters()); + lastComparison = Boolean.valueOf(isSetQueryCounters()).compareTo(typedOther.isSetQueryCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryCounters, other.queryCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryCounters, typedOther.queryCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageGraph()).compareTo(other.isSetStageGraph()); + lastComparison = Boolean.valueOf(isSetStageGraph()).compareTo(typedOther.isSetStageGraph()); if (lastComparison != 0) { return lastComparison; } if (isSetStageGraph()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageGraph, other.stageGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageGraph, typedOther.stageGraph); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageList()).compareTo(other.isSetStageList()); + lastComparison = Boolean.valueOf(isSetStageList()).compareTo(typedOther.isSetStageList()); if (lastComparison != 0) { return lastComparison; } if (isSetStageList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageList, other.stageList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageList, typedOther.stageList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -962,13 +980,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(); struct.queryAttributes = new HashMap(2*_map100.size); - String _key101; - String _val102; - for (int _i103 = 0; _i103 < _map100.size; ++_i103) + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - _key101 = iprot.readString(); - _val102 = iprot.readString(); - struct.queryAttributes.put(_key101, _val102); + String _key102; // required + String _val103; // required + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.queryAttributes.put(_key102, _val103); } iprot.readMapEnd(); } @@ -982,13 +1000,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); struct.queryCounters = new HashMap(2*_map104.size); - String _key105; - long _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - _key105 = iprot.readString(); - _val106 = iprot.readI64(); - struct.queryCounters.put(_key105, _val106); + String _key106; // required + long _val107; // required + _key106 = iprot.readString(); + _val107 = iprot.readI64(); + struct.queryCounters.put(_key106, _val107); } iprot.readMapEnd(); } @@ -1011,12 +1029,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TList _list108 = iprot.readListBegin(); struct.stageList = new ArrayList(_list108.size); - Stage _elem109; - for (int _i110 = 0; _i110 < _list108.size; ++_i110) + for (int _i109 = 0; _i109 < _list108.size; ++_i109) { - _elem109 = new Stage(); - _elem109.read(iprot); - struct.stageList.add(_elem109); + Stage _elem110; // required + _elem110 = new Stage(); + _elem110.read(iprot); + struct.stageList.add(_elem110); } iprot.readListEnd(); } @@ -1218,13 +1236,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TMap _map117 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.queryAttributes = new HashMap(2*_map117.size); - String _key118; - String _val119; - for (int _i120 = 0; _i120 < _map117.size; ++_i120) + for (int _i118 = 0; _i118 < _map117.size; ++_i118) { - _key118 = iprot.readString(); - _val119 = iprot.readString(); - struct.queryAttributes.put(_key118, _val119); + String _key119; // required + String _val120; // required + _key119 = iprot.readString(); + _val120 = iprot.readString(); + struct.queryAttributes.put(_key119, _val120); } } struct.setQueryAttributesIsSet(true); @@ -1233,13 +1251,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TMap _map121 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.queryCounters = new HashMap(2*_map121.size); - String _key122; - long _val123; - for (int _i124 = 0; _i124 < _map121.size; ++_i124) + for (int _i122 = 0; _i122 < _map121.size; ++_i122) { - _key122 = iprot.readString(); - _val123 = iprot.readI64(); - struct.queryCounters.put(_key122, _val123); + String _key123; // required + long _val124; // required + _key123 = iprot.readString(); + _val124 = iprot.readI64(); + struct.queryCounters.put(_key123, _val124); } } struct.setQueryCountersIsSet(true); @@ -1253,12 +1271,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.stageList = new ArrayList(_list125.size); - Stage _elem126; - for (int _i127 = 0; _i127 < _list125.size; ++_i127) + for (int _i126 = 0; _i126 < _list125.size; ++_i126) { - _elem126 = new Stage(); - _elem126.read(iprot); - struct.stageList.add(_elem126); + Stage _elem127; // required + _elem127 = new Stage(); + _elem127.read(iprot); + struct.stageList.add(_elem127); } } struct.setStageListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java index 0e12279..e8566a5 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class QueryPlan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class QueryPlan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("QueryPlan"); private static final org.apache.thrift.protocol.TField QUERIES_FIELD_DESC = new org.apache.thrift.protocol.TField("queries", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -156,7 +152,7 @@ public QueryPlan( public QueryPlan(QueryPlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetQueries()) { - List __this__queries = new ArrayList(other.queries.size()); + List __this__queries = new ArrayList(); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } @@ -296,10 +292,10 @@ public Object getFieldValue(_Fields field) { return getQueries(); case DONE: - return isDone(); + return Boolean.valueOf(isDone()); case STARTED: - return isStarted(); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); @@ -367,60 +363,60 @@ public boolean equals(QueryPlan that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_queries = true && (isSetQueries()); - list.add(present_queries); + builder.append(present_queries); if (present_queries) - list.add(queries); + builder.append(queries); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(QueryPlan other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + QueryPlan typedOther = (QueryPlan)other; - lastComparison = Boolean.valueOf(isSetQueries()).compareTo(other.isSetQueries()); + lastComparison = Boolean.valueOf(isSetQueries()).compareTo(typedOther.isSetQueries()); if (lastComparison != 0) { return lastComparison; } if (isSetQueries()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, other.queries); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, typedOther.queries); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -510,12 +506,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, QueryPlan struct) t { org.apache.thrift.protocol.TList _list128 = iprot.readListBegin(); struct.queries = new ArrayList(_list128.size); - Query _elem129; - for (int _i130 = 0; _i130 < _list128.size; ++_i130) + for (int _i129 = 0; _i129 < _list128.size; ++_i129) { - _elem129 = new Query(); - _elem129.read(iprot); - struct.queries.add(_elem129); + Query _elem130; // required + _elem130 = new Query(); + _elem130.read(iprot); + struct.queries.add(_elem130); } iprot.readListEnd(); } @@ -624,12 +620,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, QueryPlan struct) th { org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.queries = new ArrayList(_list133.size); - Query _elem134; - for (int _i135 = 0; _i135 < _list133.size; ++_i135) + for (int _i134 = 0; _i134 < _list133.size; ++_i134) { - _elem134 = new Query(); - _elem134.read(iprot); - struct.queries.add(_elem134); + Query _elem135; // required + _elem135 = new Query(); + _elem135.read(iprot); + struct.queries.add(_elem135); } } struct.setQueriesIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java index 7f86eeb..c341db2 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Stage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Stage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Stage"); private static final org.apache.thrift.protocol.TField STAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stageId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -206,15 +202,37 @@ public Stage(Stage other) { this.stageType = other.stageType; } if (other.isSetStageAttributes()) { - Map __this__stageAttributes = new HashMap(other.stageAttributes); + Map __this__stageAttributes = new HashMap(); + for (Map.Entry other_element : other.stageAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__stageAttributes_copy_key = other_element_key; + + String __this__stageAttributes_copy_value = other_element_value; + + __this__stageAttributes.put(__this__stageAttributes_copy_key, __this__stageAttributes_copy_value); + } this.stageAttributes = __this__stageAttributes; } if (other.isSetStageCounters()) { - Map __this__stageCounters = new HashMap(other.stageCounters); + Map __this__stageCounters = new HashMap(); + for (Map.Entry other_element : other.stageCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__stageCounters_copy_key = other_element_key; + + Long __this__stageCounters_copy_value = other_element_value; + + __this__stageCounters.put(__this__stageCounters_copy_key, __this__stageCounters_copy_value); + } this.stageCounters = __this__stageCounters; } if (other.isSetTaskList()) { - List __this__taskList = new ArrayList(other.taskList.size()); + List __this__taskList = new ArrayList(); for (Task other_element : other.taskList) { __this__taskList.add(new Task(other_element)); } @@ -524,10 +542,10 @@ public Object getFieldValue(_Fields field) { return getTaskList(); case DONE: - return isDone(); + return Boolean.valueOf(isDone()); case STARTED: - return isStarted(); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); @@ -639,120 +657,120 @@ public boolean equals(Stage that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stageId = true && (isSetStageId()); - list.add(present_stageId); + builder.append(present_stageId); if (present_stageId) - list.add(stageId); + builder.append(stageId); boolean present_stageType = true && (isSetStageType()); - list.add(present_stageType); + builder.append(present_stageType); if (present_stageType) - list.add(stageType.getValue()); + builder.append(stageType.getValue()); boolean present_stageAttributes = true && (isSetStageAttributes()); - list.add(present_stageAttributes); + builder.append(present_stageAttributes); if (present_stageAttributes) - list.add(stageAttributes); + builder.append(stageAttributes); boolean present_stageCounters = true && (isSetStageCounters()); - list.add(present_stageCounters); + builder.append(present_stageCounters); if (present_stageCounters) - list.add(stageCounters); + builder.append(stageCounters); boolean present_taskList = true && (isSetTaskList()); - list.add(present_taskList); + builder.append(present_taskList); if (present_taskList) - list.add(taskList); + builder.append(taskList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Stage other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Stage typedOther = (Stage)other; - lastComparison = Boolean.valueOf(isSetStageId()).compareTo(other.isSetStageId()); + lastComparison = Boolean.valueOf(isSetStageId()).compareTo(typedOther.isSetStageId()); if (lastComparison != 0) { return lastComparison; } if (isSetStageId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageId, other.stageId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageId, typedOther.stageId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageType()).compareTo(other.isSetStageType()); + lastComparison = Boolean.valueOf(isSetStageType()).compareTo(typedOther.isSetStageType()); if (lastComparison != 0) { return lastComparison; } if (isSetStageType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageType, other.stageType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageType, typedOther.stageType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageAttributes()).compareTo(other.isSetStageAttributes()); + lastComparison = Boolean.valueOf(isSetStageAttributes()).compareTo(typedOther.isSetStageAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetStageAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageAttributes, other.stageAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageAttributes, typedOther.stageAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageCounters()).compareTo(other.isSetStageCounters()); + lastComparison = Boolean.valueOf(isSetStageCounters()).compareTo(typedOther.isSetStageCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetStageCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageCounters, other.stageCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageCounters, typedOther.stageCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskList()).compareTo(other.isSetTaskList()); + lastComparison = Boolean.valueOf(isSetTaskList()).compareTo(typedOther.isSetTaskList()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskList, other.taskList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskList, typedOther.taskList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -879,7 +897,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw break; case 2: // STAGE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.stageType = org.apache.hadoop.hive.ql.plan.api.StageType.findByValue(iprot.readI32()); + struct.stageType = StageType.findByValue(iprot.readI32()); struct.setStageTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -890,13 +908,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin(); struct.stageAttributes = new HashMap(2*_map72.size); - String _key73; - String _val74; - for (int _i75 = 0; _i75 < _map72.size; ++_i75) + for (int _i73 = 0; _i73 < _map72.size; ++_i73) { - _key73 = iprot.readString(); - _val74 = iprot.readString(); - struct.stageAttributes.put(_key73, _val74); + String _key74; // required + String _val75; // required + _key74 = iprot.readString(); + _val75 = iprot.readString(); + struct.stageAttributes.put(_key74, _val75); } iprot.readMapEnd(); } @@ -910,13 +928,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TMap _map76 = iprot.readMapBegin(); struct.stageCounters = new HashMap(2*_map76.size); - String _key77; - long _val78; - for (int _i79 = 0; _i79 < _map76.size; ++_i79) + for (int _i77 = 0; _i77 < _map76.size; ++_i77) { - _key77 = iprot.readString(); - _val78 = iprot.readI64(); - struct.stageCounters.put(_key77, _val78); + String _key78; // required + long _val79; // required + _key78 = iprot.readString(); + _val79 = iprot.readI64(); + struct.stageCounters.put(_key78, _val79); } iprot.readMapEnd(); } @@ -930,12 +948,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); struct.taskList = new ArrayList(_list80.size); - Task _elem81; - for (int _i82 = 0; _i82 < _list80.size; ++_i82) + for (int _i81 = 0; _i81 < _list80.size; ++_i81) { - _elem81 = new Task(); - _elem81.read(iprot); - struct.taskList.add(_elem81); + Task _elem82; // required + _elem82 = new Task(); + _elem82.read(iprot); + struct.taskList.add(_elem82); } iprot.readListEnd(); } @@ -1119,20 +1137,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws struct.setStageIdIsSet(true); } if (incoming.get(1)) { - struct.stageType = org.apache.hadoop.hive.ql.plan.api.StageType.findByValue(iprot.readI32()); + struct.stageType = StageType.findByValue(iprot.readI32()); struct.setStageTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map89 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.stageAttributes = new HashMap(2*_map89.size); - String _key90; - String _val91; - for (int _i92 = 0; _i92 < _map89.size; ++_i92) + for (int _i90 = 0; _i90 < _map89.size; ++_i90) { - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.stageAttributes.put(_key90, _val91); + String _key91; // required + String _val92; // required + _key91 = iprot.readString(); + _val92 = iprot.readString(); + struct.stageAttributes.put(_key91, _val92); } } struct.setStageAttributesIsSet(true); @@ -1141,13 +1159,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws { org.apache.thrift.protocol.TMap _map93 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.stageCounters = new HashMap(2*_map93.size); - String _key94; - long _val95; - for (int _i96 = 0; _i96 < _map93.size; ++_i96) + for (int _i94 = 0; _i94 < _map93.size; ++_i94) { - _key94 = iprot.readString(); - _val95 = iprot.readI64(); - struct.stageCounters.put(_key94, _val95); + String _key95; // required + long _val96; // required + _key95 = iprot.readString(); + _val96 = iprot.readI64(); + struct.stageCounters.put(_key95, _val96); } } struct.setStageCountersIsSet(true); @@ -1156,12 +1174,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws { org.apache.thrift.protocol.TList _list97 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.taskList = new ArrayList(_list97.size); - Task _elem98; - for (int _i99 = 0; _i99 < _list97.size; ++_i99) + for (int _i98 = 0; _i98 < _list97.size; ++_i98) { - _elem98 = new Task(); - _elem98.read(iprot); - struct.taskList.add(_elem98); + Task _elem99; // required + _elem99 = new Task(); + _elem99.read(iprot); + struct.taskList.add(_elem99); } } struct.setTaskListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java index f20174c..3648273 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java index f978e42..fc4313f 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Task implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Task implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Task"); private static final org.apache.thrift.protocol.TField TASK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("taskId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -149,7 +145,7 @@ public String getFieldName() { private static final int __DONE_ISSET_ID = 0; private static final int __STARTED_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.OPERATOR_GRAPH,_Fields.OPERATOR_LIST}; + private _Fields optionals[] = {_Fields.OPERATOR_GRAPH,_Fields.OPERATOR_LIST}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -212,18 +208,40 @@ public Task(Task other) { this.taskType = other.taskType; } if (other.isSetTaskAttributes()) { - Map __this__taskAttributes = new HashMap(other.taskAttributes); + Map __this__taskAttributes = new HashMap(); + for (Map.Entry other_element : other.taskAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__taskAttributes_copy_key = other_element_key; + + String __this__taskAttributes_copy_value = other_element_value; + + __this__taskAttributes.put(__this__taskAttributes_copy_key, __this__taskAttributes_copy_value); + } this.taskAttributes = __this__taskAttributes; } if (other.isSetTaskCounters()) { - Map __this__taskCounters = new HashMap(other.taskCounters); + Map __this__taskCounters = new HashMap(); + for (Map.Entry other_element : other.taskCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__taskCounters_copy_key = other_element_key; + + Long __this__taskCounters_copy_value = other_element_value; + + __this__taskCounters.put(__this__taskCounters_copy_key, __this__taskCounters_copy_value); + } this.taskCounters = __this__taskCounters; } if (other.isSetOperatorGraph()) { this.operatorGraph = new Graph(other.operatorGraph); } if (other.isSetOperatorList()) { - List __this__operatorList = new ArrayList(other.operatorList.size()); + List __this__operatorList = new ArrayList(); for (Operator other_element : other.operatorList) { __this__operatorList.add(new Operator(other_element)); } @@ -568,10 +586,10 @@ public Object getFieldValue(_Fields field) { return getOperatorList(); case DONE: - return isDone(); + return Boolean.valueOf(isDone()); case STARTED: - return isStarted(); + return Boolean.valueOf(isStarted()); } throw new IllegalStateException(); @@ -694,135 +712,135 @@ public boolean equals(Task that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_taskId = true && (isSetTaskId()); - list.add(present_taskId); + builder.append(present_taskId); if (present_taskId) - list.add(taskId); + builder.append(taskId); boolean present_taskType = true && (isSetTaskType()); - list.add(present_taskType); + builder.append(present_taskType); if (present_taskType) - list.add(taskType.getValue()); + builder.append(taskType.getValue()); boolean present_taskAttributes = true && (isSetTaskAttributes()); - list.add(present_taskAttributes); + builder.append(present_taskAttributes); if (present_taskAttributes) - list.add(taskAttributes); + builder.append(taskAttributes); boolean present_taskCounters = true && (isSetTaskCounters()); - list.add(present_taskCounters); + builder.append(present_taskCounters); if (present_taskCounters) - list.add(taskCounters); + builder.append(taskCounters); boolean present_operatorGraph = true && (isSetOperatorGraph()); - list.add(present_operatorGraph); + builder.append(present_operatorGraph); if (present_operatorGraph) - list.add(operatorGraph); + builder.append(operatorGraph); boolean present_operatorList = true && (isSetOperatorList()); - list.add(present_operatorList); + builder.append(present_operatorList); if (present_operatorList) - list.add(operatorList); + builder.append(operatorList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Task other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Task typedOther = (Task)other; - lastComparison = Boolean.valueOf(isSetTaskId()).compareTo(other.isSetTaskId()); + lastComparison = Boolean.valueOf(isSetTaskId()).compareTo(typedOther.isSetTaskId()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskId, other.taskId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskId, typedOther.taskId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskType()).compareTo(other.isSetTaskType()); + lastComparison = Boolean.valueOf(isSetTaskType()).compareTo(typedOther.isSetTaskType()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, other.taskType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, typedOther.taskType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskAttributes()).compareTo(other.isSetTaskAttributes()); + lastComparison = Boolean.valueOf(isSetTaskAttributes()).compareTo(typedOther.isSetTaskAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskAttributes, other.taskAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskAttributes, typedOther.taskAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskCounters()).compareTo(other.isSetTaskCounters()); + lastComparison = Boolean.valueOf(isSetTaskCounters()).compareTo(typedOther.isSetTaskCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskCounters, other.taskCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskCounters, typedOther.taskCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorGraph()).compareTo(other.isSetOperatorGraph()); + lastComparison = Boolean.valueOf(isSetOperatorGraph()).compareTo(typedOther.isSetOperatorGraph()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorGraph()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorGraph, other.operatorGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorGraph, typedOther.operatorGraph); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorList()).compareTo(other.isSetOperatorList()); + lastComparison = Boolean.valueOf(isSetOperatorList()).compareTo(typedOther.isSetOperatorList()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorList, other.operatorList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorList, typedOther.operatorList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -964,7 +982,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws break; case 2: // TASK_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.taskType = org.apache.hadoop.hive.ql.plan.api.TaskType.findByValue(iprot.readI32()); + struct.taskType = TaskType.findByValue(iprot.readI32()); struct.setTaskTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -975,13 +993,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin(); struct.taskAttributes = new HashMap(2*_map44.size); - String _key45; - String _val46; - for (int _i47 = 0; _i47 < _map44.size; ++_i47) + for (int _i45 = 0; _i45 < _map44.size; ++_i45) { - _key45 = iprot.readString(); - _val46 = iprot.readString(); - struct.taskAttributes.put(_key45, _val46); + String _key46; // required + String _val47; // required + _key46 = iprot.readString(); + _val47 = iprot.readString(); + struct.taskAttributes.put(_key46, _val47); } iprot.readMapEnd(); } @@ -995,13 +1013,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); struct.taskCounters = new HashMap(2*_map48.size); - String _key49; - long _val50; - for (int _i51 = 0; _i51 < _map48.size; ++_i51) + for (int _i49 = 0; _i49 < _map48.size; ++_i49) { - _key49 = iprot.readString(); - _val50 = iprot.readI64(); - struct.taskCounters.put(_key49, _val50); + String _key50; // required + long _val51; // required + _key50 = iprot.readString(); + _val51 = iprot.readI64(); + struct.taskCounters.put(_key50, _val51); } iprot.readMapEnd(); } @@ -1024,12 +1042,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); struct.operatorList = new ArrayList(_list52.size); - Operator _elem53; - for (int _i54 = 0; _i54 < _list52.size; ++_i54) + for (int _i53 = 0; _i53 < _list52.size; ++_i53) { - _elem53 = new Operator(); - _elem53.read(iprot); - struct.operatorList.add(_elem53); + Operator _elem54; // required + _elem54 = new Operator(); + _elem54.read(iprot); + struct.operatorList.add(_elem54); } iprot.readListEnd(); } @@ -1228,20 +1246,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws struct.setTaskIdIsSet(true); } if (incoming.get(1)) { - struct.taskType = org.apache.hadoop.hive.ql.plan.api.TaskType.findByValue(iprot.readI32()); + struct.taskType = TaskType.findByValue(iprot.readI32()); struct.setTaskTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map61 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.taskAttributes = new HashMap(2*_map61.size); - String _key62; - String _val63; - for (int _i64 = 0; _i64 < _map61.size; ++_i64) + for (int _i62 = 0; _i62 < _map61.size; ++_i62) { - _key62 = iprot.readString(); - _val63 = iprot.readString(); - struct.taskAttributes.put(_key62, _val63); + String _key63; // required + String _val64; // required + _key63 = iprot.readString(); + _val64 = iprot.readString(); + struct.taskAttributes.put(_key63, _val64); } } struct.setTaskAttributesIsSet(true); @@ -1250,13 +1268,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws { org.apache.thrift.protocol.TMap _map65 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.taskCounters = new HashMap(2*_map65.size); - String _key66; - long _val67; - for (int _i68 = 0; _i68 < _map65.size; ++_i68) + for (int _i66 = 0; _i66 < _map65.size; ++_i66) { - _key66 = iprot.readString(); - _val67 = iprot.readI64(); - struct.taskCounters.put(_key66, _val67); + String _key67; // required + long _val68; // required + _key67 = iprot.readString(); + _val68 = iprot.readI64(); + struct.taskCounters.put(_key67, _val68); } } struct.setTaskCountersIsSet(true); @@ -1270,12 +1288,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws { org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.operatorList = new ArrayList(_list69.size); - Operator _elem70; - for (int _i71 = 0; _i71 < _list69.size; ++_i71) + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - _elem70 = new Operator(); - _elem70.read(iprot); - struct.operatorList.add(_elem70); + Operator _elem71; // required + _elem71 = new Operator(); + _elem71.read(iprot); + struct.operatorList.add(_elem71); } } struct.setOperatorListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java index d77f008..7df0029 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-php/Types.php b/ql/src/gen/thrift/gen-php/Types.php index e1693f3..eec85eb 100644 --- a/ql/src/gen/thrift/gen-php/Types.php +++ b/ql/src/gen/thrift/gen-php/Types.php @@ -1,6 +1,8 @@ getColumnTypes(List colNames) throws SemanticException{ List colTypes = new LinkedList(); @@ -396,7 +344,12 @@ public void analyze(ASTNode ast, Context origCtx) throws SemanticException { isTableLevel = true; } colType = getColumnTypes(colNames); - int numBitVectors = getNumBitVectorsForNDVEstimation(conf); + int numBitVectors; + try { + numBitVectors = HiveStatsUtils.getNumBitVectorsForNDVEstimation(conf); + } catch (Exception e) { + throw new SemanticException(e.getMessage()); + } rewrittenQuery = genRewrittenQuery(colNames, numBitVectors, partSpec, isPartitionStats); rewrittenTree = genRewrittenTree(rewrittenQuery); } else { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java index 2f78fe8..7c01761 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java @@ -46,6 +46,7 @@ import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.optimizer.stats.annotation.StatsRulesProcFactory; import org.apache.hadoop.hive.ql.parse.PrunedPartitionList; +import org.apache.hadoop.hive.ql.parse.SemanticException; import org.apache.hadoop.hive.ql.plan.ColStatistics; import org.apache.hadoop.hive.ql.plan.ColStatistics.Range; import org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc; @@ -1558,4 +1559,58 @@ public static long safeMult(long a, long b) { return Long.MAX_VALUE; } } + + public static int getNumBitVectorsForNDVEstimation(HiveConf conf) throws SemanticException { + int numBitVectors; + float percentageError = HiveConf.getFloatVar(conf, HiveConf.ConfVars.HIVE_STATS_NDV_ERROR); + + if (percentageError < 0.0) { + throw new SemanticException("hive.stats.ndv.error can't be negative"); + } else if (percentageError <= 2.4) { + numBitVectors = 1024; + LOG.info("Lowest error achievable is 2.4% but error requested is " + percentageError + "%"); + LOG.info("Choosing 1024 bit vectors.."); + } else if (percentageError <= 3.4 ) { + numBitVectors = 1024; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 1024 bit vectors.."); + } else if (percentageError <= 4.8) { + numBitVectors = 512; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 512 bit vectors.."); + } else if (percentageError <= 6.8) { + numBitVectors = 256; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 256 bit vectors.."); + } else if (percentageError <= 9.7) { + numBitVectors = 128; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 128 bit vectors.."); + } else if (percentageError <= 13.8) { + numBitVectors = 64; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 64 bit vectors.."); + } else if (percentageError <= 19.6) { + numBitVectors = 32; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 32 bit vectors.."); + } else if (percentageError <= 28.2) { + numBitVectors = 16; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 16 bit vectors.."); + } else if (percentageError <= 40.9) { + numBitVectors = 8; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 8 bit vectors.."); + } else if (percentageError <= 61.0) { + numBitVectors = 4; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 4 bit vectors.."); + } else { + numBitVectors = 2; + LOG.info("Error requested is " + percentageError + "%"); + LOG.info("Choosing 2 bit vectors.."); + } + return numBitVectors; + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFComputeStats.java b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFComputeStats.java index 0e96f89..ab47617 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFComputeStats.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFComputeStats.java @@ -401,6 +401,7 @@ public ObjectInspector init(Mode m, ObjectInspector[] parameters) throws HiveExc foi.add(getValueObjectInspector()); foi.add(PrimitiveObjectInspectorFactory.writableLongObjectInspector); foi.add(PrimitiveObjectInspectorFactory.writableLongObjectInspector); + foi.add(PrimitiveObjectInspectorFactory.writableStringObjectInspector); List fname = new ArrayList(); fname.add("columnType"); @@ -408,11 +409,13 @@ public ObjectInspector init(Mode m, ObjectInspector[] parameters) throws HiveExc fname.add("max"); fname.add("countnulls"); fname.add("numdistinctvalues"); + fname.add("ndvbitvector"); - result = new Object[5]; + result = new Object[6]; result[0] = new Text(); result[3] = new LongWritable(0); result[4] = new LongWritable(0); + result[5] = new Text(); return ObjectInspectorFactory.getStandardStructObjectInspector(fname, foi); @@ -448,6 +451,7 @@ protected Object serialize(Object[] result) { serializeCommon(result); long dv = numDV != null ? numDV.estimateNumDistinctValues() : 0; ((LongWritable) result[4]).set(dv); + ((Text) result[5]).set(numDV.serialize()); return result; } @@ -795,6 +799,7 @@ public ObjectInspector init(Mode m, ObjectInspector[] parameters) throws HiveExc foi.add(PrimitiveObjectInspectorFactory.writableDoubleObjectInspector); foi.add(PrimitiveObjectInspectorFactory.writableLongObjectInspector); foi.add(PrimitiveObjectInspectorFactory.writableLongObjectInspector); + foi.add(PrimitiveObjectInspectorFactory.writableStringObjectInspector); List fname = new ArrayList(); fname.add("columntype"); @@ -802,13 +807,15 @@ public ObjectInspector init(Mode m, ObjectInspector[] parameters) throws HiveExc fname.add("avglength"); fname.add("countnulls"); fname.add("numdistinctvalues"); + fname.add("ndvbitvector"); - result = new Object[5]; + result = new Object[6]; result[0] = new Text(); result[1] = new LongWritable(0); result[2] = new DoubleWritable(0); result[3] = new LongWritable(0); result[4] = new LongWritable(0); + result[5] = new Text(); return ObjectInspectorFactory.getStandardStructObjectInspector(fname, foi); @@ -1003,6 +1010,7 @@ public Object terminate(AggregationBuffer agg) throws HiveException { ((DoubleWritable) result[2]).set(avgLength); ((LongWritable) result[3]).set(myagg.countNulls); ((LongWritable) result[4]).set(numDV); + ((Text) result[5]).set(myagg.numDV.serialize()); return result; } diff --git a/serde/src/gen/thrift/gen-cpp/complex_constants.cpp b/serde/src/gen/thrift/gen-cpp/complex_constants.cpp index a6df39c..768fc38 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/complex_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/complex_constants.h b/serde/src/gen/thrift/gen-cpp/complex_constants.h index ee0bdca..6b115df 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_constants.h +++ b/serde/src/gen/thrift/gen-cpp/complex_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.cpp b/serde/src/gen/thrift/gen-cpp/complex_types.cpp index 36c1514..411e1b0 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/complex_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,53 +7,14 @@ #include "complex_types.h" #include -#include -#include - - -PropValueUnion::~PropValueUnion() throw() { -} - - -void PropValueUnion::__set_intValue(const int32_t val) { - this->intValue = val; -__isset.intValue = true; -} - -void PropValueUnion::__set_longValue(const int64_t val) { - this->longValue = val; -__isset.longValue = true; -} - -void PropValueUnion::__set_stringValue(const std::string& val) { - this->stringValue = val; -__isset.stringValue = true; -} - -void PropValueUnion::__set_doubleValue(const double val) { - this->doubleValue = val; -__isset.doubleValue = true; -} - -void PropValueUnion::__set_flag(const bool val) { - this->flag = val; -__isset.flag = true; -} - -void PropValueUnion::__set_lString(const std::vector & val) { - this->lString = val; -} - -void PropValueUnion::__set_unionMStringString(const std::map & val) { - this->unionMStringString = val; -} +const char* PropValueUnion::ascii_fingerprint = "123CD9D82D5B5054B5054EFD63FC8590"; +const uint8_t PropValueUnion::binary_fingerprint[16] = {0x12,0x3C,0xD9,0xD8,0x2D,0x5B,0x50,0x54,0xB5,0x05,0x4E,0xFD,0x63,0xFC,0x85,0x90}; uint32_t PropValueUnion::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -169,7 +130,6 @@ uint32_t PropValueUnion::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PropValueUnion::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("PropValueUnion"); if (this->__isset.intValue) { @@ -239,60 +199,11 @@ void swap(PropValueUnion &a, PropValueUnion &b) { swap(a.__isset, b.__isset); } -PropValueUnion::PropValueUnion(const PropValueUnion& other14) { - intValue = other14.intValue; - longValue = other14.longValue; - stringValue = other14.stringValue; - doubleValue = other14.doubleValue; - flag = other14.flag; - lString = other14.lString; - unionMStringString = other14.unionMStringString; - __isset = other14.__isset; -} -PropValueUnion& PropValueUnion::operator=(const PropValueUnion& other15) { - intValue = other15.intValue; - longValue = other15.longValue; - stringValue = other15.stringValue; - doubleValue = other15.doubleValue; - flag = other15.flag; - lString = other15.lString; - unionMStringString = other15.unionMStringString; - __isset = other15.__isset; - return *this; -} -void PropValueUnion::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "PropValueUnion("; - out << "intValue="; (__isset.intValue ? (out << to_string(intValue)) : (out << "")); - out << ", " << "longValue="; (__isset.longValue ? (out << to_string(longValue)) : (out << "")); - out << ", " << "stringValue="; (__isset.stringValue ? (out << to_string(stringValue)) : (out << "")); - out << ", " << "doubleValue="; (__isset.doubleValue ? (out << to_string(doubleValue)) : (out << "")); - out << ", " << "flag="; (__isset.flag ? (out << to_string(flag)) : (out << "")); - out << ", " << "lString=" << to_string(lString); - out << ", " << "unionMStringString=" << to_string(unionMStringString); - out << ")"; -} - - -IntString::~IntString() throw() { -} - - -void IntString::__set_myint(const int32_t val) { - this->myint = val; -} - -void IntString::__set_myString(const std::string& val) { - this->myString = val; -} - -void IntString::__set_underscore_int(const int32_t val) { - this->underscore_int = val; -} +const char* IntString::ascii_fingerprint = "52C6DAB6CF51AF617111F6D3964C6503"; +const uint8_t IntString::binary_fingerprint[16] = {0x52,0xC6,0xDA,0xB6,0xCF,0x51,0xAF,0x61,0x71,0x11,0xF6,0xD3,0x96,0x4C,0x65,0x03}; uint32_t IntString::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -349,7 +260,6 @@ uint32_t IntString::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t IntString::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("IntString"); xfer += oprot->writeFieldBegin("myint", ::apache::thrift::protocol::T_I32, 1); @@ -377,76 +287,11 @@ void swap(IntString &a, IntString &b) { swap(a.__isset, b.__isset); } -IntString::IntString(const IntString& other16) { - myint = other16.myint; - myString = other16.myString; - underscore_int = other16.underscore_int; - __isset = other16.__isset; -} -IntString& IntString::operator=(const IntString& other17) { - myint = other17.myint; - myString = other17.myString; - underscore_int = other17.underscore_int; - __isset = other17.__isset; - return *this; -} -void IntString::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "IntString("; - out << "myint=" << to_string(myint); - out << ", " << "myString=" << to_string(myString); - out << ", " << "underscore_int=" << to_string(underscore_int); - out << ")"; -} - - -Complex::~Complex() throw() { -} - - -void Complex::__set_aint(const int32_t val) { - this->aint = val; -} - -void Complex::__set_aString(const std::string& val) { - this->aString = val; -} - -void Complex::__set_lint(const std::vector & val) { - this->lint = val; -} - -void Complex::__set_lString(const std::vector & val) { - this->lString = val; -} - -void Complex::__set_lintString(const std::vector & val) { - this->lintString = val; -} - -void Complex::__set_mStringString(const std::map & val) { - this->mStringString = val; -} - -void Complex::__set_attributes(const std::map > > & val) { - this->attributes = val; -} - -void Complex::__set_unionField1(const PropValueUnion& val) { - this->unionField1 = val; -} - -void Complex::__set_unionField2(const PropValueUnion& val) { - this->unionField2 = val; -} - -void Complex::__set_unionField3(const PropValueUnion& val) { - this->unionField3 = val; -} +const char* Complex::ascii_fingerprint = "FFA84FEA7037F5858F2BFEDA73AD679A"; +const uint8_t Complex::binary_fingerprint[16] = {0xFF,0xA8,0x4F,0xEA,0x70,0x37,0xF5,0x85,0x8F,0x2B,0xFE,0xDA,0x73,0xAD,0x67,0x9A}; uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -485,14 +330,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lint.clear(); - uint32_t _size18; - ::apache::thrift::protocol::TType _etype21; - xfer += iprot->readListBegin(_etype21, _size18); - this->lint.resize(_size18); - uint32_t _i22; - for (_i22 = 0; _i22 < _size18; ++_i22) + uint32_t _size14; + ::apache::thrift::protocol::TType _etype17; + xfer += iprot->readListBegin(_etype17, _size14); + this->lint.resize(_size14); + uint32_t _i18; + for (_i18 = 0; _i18 < _size14; ++_i18) { - xfer += iprot->readI32(this->lint[_i22]); + xfer += iprot->readI32(this->lint[_i18]); } xfer += iprot->readListEnd(); } @@ -505,14 +350,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lString.clear(); - uint32_t _size23; - ::apache::thrift::protocol::TType _etype26; - xfer += iprot->readListBegin(_etype26, _size23); - this->lString.resize(_size23); - uint32_t _i27; - for (_i27 = 0; _i27 < _size23; ++_i27) + uint32_t _size19; + ::apache::thrift::protocol::TType _etype22; + xfer += iprot->readListBegin(_etype22, _size19); + this->lString.resize(_size19); + uint32_t _i23; + for (_i23 = 0; _i23 < _size19; ++_i23) { - xfer += iprot->readString(this->lString[_i27]); + xfer += iprot->readString(this->lString[_i23]); } xfer += iprot->readListEnd(); } @@ -525,14 +370,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lintString.clear(); - uint32_t _size28; - ::apache::thrift::protocol::TType _etype31; - xfer += iprot->readListBegin(_etype31, _size28); - this->lintString.resize(_size28); - uint32_t _i32; - for (_i32 = 0; _i32 < _size28; ++_i32) + uint32_t _size24; + ::apache::thrift::protocol::TType _etype27; + xfer += iprot->readListBegin(_etype27, _size24); + this->lintString.resize(_size24); + uint32_t _i28; + for (_i28 = 0; _i28 < _size24; ++_i28) { - xfer += this->lintString[_i32].read(iprot); + xfer += this->lintString[_i28].read(iprot); } xfer += iprot->readListEnd(); } @@ -545,17 +390,17 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->mStringString.clear(); - uint32_t _size33; - ::apache::thrift::protocol::TType _ktype34; - ::apache::thrift::protocol::TType _vtype35; - xfer += iprot->readMapBegin(_ktype34, _vtype35, _size33); - uint32_t _i37; - for (_i37 = 0; _i37 < _size33; ++_i37) + uint32_t _size29; + ::apache::thrift::protocol::TType _ktype30; + ::apache::thrift::protocol::TType _vtype31; + xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29); + uint32_t _i33; + for (_i33 = 0; _i33 < _size29; ++_i33) { - std::string _key38; - xfer += iprot->readString(_key38); - std::string& _val39 = this->mStringString[_key38]; - xfer += iprot->readString(_val39); + std::string _key34; + xfer += iprot->readString(_key34); + std::string& _val35 = this->mStringString[_key34]; + xfer += iprot->readString(_val35); } xfer += iprot->readMapEnd(); } @@ -568,41 +413,41 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->attributes.clear(); - uint32_t _size40; - ::apache::thrift::protocol::TType _ktype41; - ::apache::thrift::protocol::TType _vtype42; - xfer += iprot->readMapBegin(_ktype41, _vtype42, _size40); - uint32_t _i44; - for (_i44 = 0; _i44 < _size40; ++_i44) + uint32_t _size36; + ::apache::thrift::protocol::TType _ktype37; + ::apache::thrift::protocol::TType _vtype38; + xfer += iprot->readMapBegin(_ktype37, _vtype38, _size36); + uint32_t _i40; + for (_i40 = 0; _i40 < _size36; ++_i40) { - std::string _key45; - xfer += iprot->readString(_key45); - std::map > & _val46 = this->attributes[_key45]; + std::string _key41; + xfer += iprot->readString(_key41); + std::map > & _val42 = this->attributes[_key41]; { - _val46.clear(); - uint32_t _size47; - ::apache::thrift::protocol::TType _ktype48; - ::apache::thrift::protocol::TType _vtype49; - xfer += iprot->readMapBegin(_ktype48, _vtype49, _size47); - uint32_t _i51; - for (_i51 = 0; _i51 < _size47; ++_i51) + _val42.clear(); + uint32_t _size43; + ::apache::thrift::protocol::TType _ktype44; + ::apache::thrift::protocol::TType _vtype45; + xfer += iprot->readMapBegin(_ktype44, _vtype45, _size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) { - std::string _key52; - xfer += iprot->readString(_key52); - std::map & _val53 = _val46[_key52]; + std::string _key48; + xfer += iprot->readString(_key48); + std::map & _val49 = _val42[_key48]; { - _val53.clear(); - uint32_t _size54; - ::apache::thrift::protocol::TType _ktype55; - ::apache::thrift::protocol::TType _vtype56; - xfer += iprot->readMapBegin(_ktype55, _vtype56, _size54); - uint32_t _i58; - for (_i58 = 0; _i58 < _size54; ++_i58) + _val49.clear(); + uint32_t _size50; + ::apache::thrift::protocol::TType _ktype51; + ::apache::thrift::protocol::TType _vtype52; + xfer += iprot->readMapBegin(_ktype51, _vtype52, _size50); + uint32_t _i54; + for (_i54 = 0; _i54 < _size50; ++_i54) { - std::string _key59; - xfer += iprot->readString(_key59); - PropValueUnion& _val60 = _val53[_key59]; - xfer += _val60.read(iprot); + std::string _key55; + xfer += iprot->readString(_key55); + PropValueUnion& _val56 = _val49[_key55]; + xfer += _val56.read(iprot); } xfer += iprot->readMapEnd(); } @@ -655,7 +500,6 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("Complex"); xfer += oprot->writeFieldBegin("aint", ::apache::thrift::protocol::T_I32, 1); @@ -669,10 +513,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lint", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->lint.size())); - std::vector ::const_iterator _iter61; - for (_iter61 = this->lint.begin(); _iter61 != this->lint.end(); ++_iter61) + std::vector ::const_iterator _iter57; + for (_iter57 = this->lint.begin(); _iter57 != this->lint.end(); ++_iter57) { - xfer += oprot->writeI32((*_iter61)); + xfer += oprot->writeI32((*_iter57)); } xfer += oprot->writeListEnd(); } @@ -681,10 +525,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lString", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->lString.size())); - std::vector ::const_iterator _iter62; - for (_iter62 = this->lString.begin(); _iter62 != this->lString.end(); ++_iter62) + std::vector ::const_iterator _iter58; + for (_iter58 = this->lString.begin(); _iter58 != this->lString.end(); ++_iter58) { - xfer += oprot->writeString((*_iter62)); + xfer += oprot->writeString((*_iter58)); } xfer += oprot->writeListEnd(); } @@ -693,10 +537,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lintString", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->lintString.size())); - std::vector ::const_iterator _iter63; - for (_iter63 = this->lintString.begin(); _iter63 != this->lintString.end(); ++_iter63) + std::vector ::const_iterator _iter59; + for (_iter59 = this->lintString.begin(); _iter59 != this->lintString.end(); ++_iter59) { - xfer += (*_iter63).write(oprot); + xfer += (*_iter59).write(oprot); } xfer += oprot->writeListEnd(); } @@ -705,11 +549,11 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("mStringString", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->mStringString.size())); - std::map ::const_iterator _iter64; - for (_iter64 = this->mStringString.begin(); _iter64 != this->mStringString.end(); ++_iter64) + std::map ::const_iterator _iter60; + for (_iter60 = this->mStringString.begin(); _iter60 != this->mStringString.end(); ++_iter60) { - xfer += oprot->writeString(_iter64->first); - xfer += oprot->writeString(_iter64->second); + xfer += oprot->writeString(_iter60->first); + xfer += oprot->writeString(_iter60->second); } xfer += oprot->writeMapEnd(); } @@ -718,23 +562,23 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("attributes", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(this->attributes.size())); - std::map > > ::const_iterator _iter65; - for (_iter65 = this->attributes.begin(); _iter65 != this->attributes.end(); ++_iter65) + std::map > > ::const_iterator _iter61; + for (_iter61 = this->attributes.begin(); _iter61 != this->attributes.end(); ++_iter61) { - xfer += oprot->writeString(_iter65->first); + xfer += oprot->writeString(_iter61->first); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(_iter65->second.size())); - std::map > ::const_iterator _iter66; - for (_iter66 = _iter65->second.begin(); _iter66 != _iter65->second.end(); ++_iter66) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(_iter61->second.size())); + std::map > ::const_iterator _iter62; + for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62) { - xfer += oprot->writeString(_iter66->first); + xfer += oprot->writeString(_iter62->first); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter66->second.size())); - std::map ::const_iterator _iter67; - for (_iter67 = _iter66->second.begin(); _iter67 != _iter66->second.end(); ++_iter67) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter62->second.size())); + std::map ::const_iterator _iter63; + for (_iter63 = _iter62->second.begin(); _iter63 != _iter62->second.end(); ++_iter63) { - xfer += oprot->writeString(_iter67->first); - xfer += _iter67->second.write(oprot); + xfer += oprot->writeString(_iter63->first); + xfer += _iter63->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -778,65 +622,11 @@ void swap(Complex &a, Complex &b) { swap(a.__isset, b.__isset); } -Complex::Complex(const Complex& other68) { - aint = other68.aint; - aString = other68.aString; - lint = other68.lint; - lString = other68.lString; - lintString = other68.lintString; - mStringString = other68.mStringString; - attributes = other68.attributes; - unionField1 = other68.unionField1; - unionField2 = other68.unionField2; - unionField3 = other68.unionField3; - __isset = other68.__isset; -} -Complex& Complex::operator=(const Complex& other69) { - aint = other69.aint; - aString = other69.aString; - lint = other69.lint; - lString = other69.lString; - lintString = other69.lintString; - mStringString = other69.mStringString; - attributes = other69.attributes; - unionField1 = other69.unionField1; - unionField2 = other69.unionField2; - unionField3 = other69.unionField3; - __isset = other69.__isset; - return *this; -} -void Complex::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "Complex("; - out << "aint=" << to_string(aint); - out << ", " << "aString=" << to_string(aString); - out << ", " << "lint=" << to_string(lint); - out << ", " << "lString=" << to_string(lString); - out << ", " << "lintString=" << to_string(lintString); - out << ", " << "mStringString=" << to_string(mStringString); - out << ", " << "attributes=" << to_string(attributes); - out << ", " << "unionField1=" << to_string(unionField1); - out << ", " << "unionField2=" << to_string(unionField2); - out << ", " << "unionField3=" << to_string(unionField3); - out << ")"; -} - - -SetIntString::~SetIntString() throw() { -} - - -void SetIntString::__set_sIntString(const std::set & val) { - this->sIntString = val; -} - -void SetIntString::__set_aString(const std::string& val) { - this->aString = val; -} +const char* SetIntString::ascii_fingerprint = "842B41C940D05DFB16183142A90DFC54"; +const uint8_t SetIntString::binary_fingerprint[16] = {0x84,0x2B,0x41,0xC9,0x40,0xD0,0x5D,0xFB,0x16,0x18,0x31,0x42,0xA9,0x0D,0xFC,0x54}; uint32_t SetIntString::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -859,15 +649,15 @@ uint32_t SetIntString::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->sIntString.clear(); - uint32_t _size70; - ::apache::thrift::protocol::TType _etype73; - xfer += iprot->readSetBegin(_etype73, _size70); - uint32_t _i74; - for (_i74 = 0; _i74 < _size70; ++_i74) + uint32_t _size64; + ::apache::thrift::protocol::TType _etype67; + xfer += iprot->readSetBegin(_etype67, _size64); + uint32_t _i68; + for (_i68 = 0; _i68 < _size64; ++_i68) { - IntString _elem75; - xfer += _elem75.read(iprot); - this->sIntString.insert(_elem75); + IntString _elem69; + xfer += _elem69.read(iprot); + this->sIntString.insert(_elem69); } xfer += iprot->readSetEnd(); } @@ -898,16 +688,15 @@ uint32_t SetIntString::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SetIntString::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("SetIntString"); xfer += oprot->writeFieldBegin("sIntString", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sIntString.size())); - std::set ::const_iterator _iter76; - for (_iter76 = this->sIntString.begin(); _iter76 != this->sIntString.end(); ++_iter76) + std::set ::const_iterator _iter70; + for (_iter70 = this->sIntString.begin(); _iter70 != this->sIntString.end(); ++_iter70) { - xfer += (*_iter76).write(oprot); + xfer += (*_iter70).write(oprot); } xfer += oprot->writeSetEnd(); } @@ -929,23 +718,4 @@ void swap(SetIntString &a, SetIntString &b) { swap(a.__isset, b.__isset); } -SetIntString::SetIntString(const SetIntString& other77) { - sIntString = other77.sIntString; - aString = other77.aString; - __isset = other77.__isset; -} -SetIntString& SetIntString::operator=(const SetIntString& other78) { - sIntString = other78.sIntString; - aString = other78.aString; - __isset = other78.__isset; - return *this; -} -void SetIntString::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "SetIntString("; - out << "sIntString=" << to_string(sIntString); - out << ", " << "aString=" << to_string(aString); - out << ")"; -} - diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.h b/serde/src/gen/thrift/gen-cpp/complex_types.h index 38fa559..3f4c760 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_types.h +++ b/serde/src/gen/thrift/gen-cpp/complex_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,46 +7,37 @@ #ifndef complex_TYPES_H #define complex_TYPES_H -#include - #include #include #include #include -#include - - - - -class PropValueUnion; -class IntString; -class Complex; -class SetIntString; typedef struct _PropValueUnion__isset { _PropValueUnion__isset() : intValue(false), longValue(false), stringValue(false), doubleValue(false), flag(false), lString(false), unionMStringString(false) {} - bool intValue :1; - bool longValue :1; - bool stringValue :1; - bool doubleValue :1; - bool flag :1; - bool lString :1; - bool unionMStringString :1; + bool intValue; + bool longValue; + bool stringValue; + bool doubleValue; + bool flag; + bool lString; + bool unionMStringString; } _PropValueUnion__isset; class PropValueUnion { public: - PropValueUnion(const PropValueUnion&); - PropValueUnion& operator=(const PropValueUnion&); + static const char* ascii_fingerprint; // = "123CD9D82D5B5054B5054EFD63FC8590"; + static const uint8_t binary_fingerprint[16]; // = {0x12,0x3C,0xD9,0xD8,0x2D,0x5B,0x50,0x54,0xB5,0x05,0x4E,0xFD,0x63,0xFC,0x85,0x90}; + PropValueUnion() : intValue(0), longValue(0), stringValue(), doubleValue(0), flag(0) { } - virtual ~PropValueUnion() throw(); + virtual ~PropValueUnion() throw() {} + int32_t intValue; int64_t longValue; std::string stringValue; @@ -57,19 +48,38 @@ class PropValueUnion { _PropValueUnion__isset __isset; - void __set_intValue(const int32_t val); + void __set_intValue(const int32_t val) { + intValue = val; + __isset.intValue = true; + } - void __set_longValue(const int64_t val); + void __set_longValue(const int64_t val) { + longValue = val; + __isset.longValue = true; + } - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + __isset.stringValue = true; + } - void __set_doubleValue(const double val); + void __set_doubleValue(const double val) { + doubleValue = val; + __isset.doubleValue = true; + } - void __set_flag(const bool val); + void __set_flag(const bool val) { + flag = val; + __isset.flag = true; + } - void __set_lString(const std::vector & val); + void __set_lString(const std::vector & val) { + lString = val; + } - void __set_unionMStringString(const std::map & val); + void __set_unionMStringString(const std::map & val) { + unionMStringString = val; + } bool operator == (const PropValueUnion & rhs) const { @@ -108,44 +118,45 @@ class PropValueUnion { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(PropValueUnion &a, PropValueUnion &b); -inline std::ostream& operator<<(std::ostream& out, const PropValueUnion& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _IntString__isset { _IntString__isset() : myint(false), myString(false), underscore_int(false) {} - bool myint :1; - bool myString :1; - bool underscore_int :1; + bool myint; + bool myString; + bool underscore_int; } _IntString__isset; class IntString { public: - IntString(const IntString&); - IntString& operator=(const IntString&); + static const char* ascii_fingerprint; // = "52C6DAB6CF51AF617111F6D3964C6503"; + static const uint8_t binary_fingerprint[16]; // = {0x52,0xC6,0xDA,0xB6,0xCF,0x51,0xAF,0x61,0x71,0x11,0xF6,0xD3,0x96,0x4C,0x65,0x03}; + IntString() : myint(0), myString(), underscore_int(0) { } - virtual ~IntString() throw(); + virtual ~IntString() throw() {} + int32_t myint; std::string myString; int32_t underscore_int; _IntString__isset __isset; - void __set_myint(const int32_t val); + void __set_myint(const int32_t val) { + myint = val; + } - void __set_myString(const std::string& val); + void __set_myString(const std::string& val) { + myString = val; + } - void __set_underscore_int(const int32_t val); + void __set_underscore_int(const int32_t val) { + underscore_int = val; + } bool operator == (const IntString & rhs) const { @@ -166,40 +177,35 @@ class IntString { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(IntString &a, IntString &b); -inline std::ostream& operator<<(std::ostream& out, const IntString& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _Complex__isset { _Complex__isset() : aint(false), aString(false), lint(false), lString(false), lintString(false), mStringString(false), attributes(false), unionField1(false), unionField2(false), unionField3(false) {} - bool aint :1; - bool aString :1; - bool lint :1; - bool lString :1; - bool lintString :1; - bool mStringString :1; - bool attributes :1; - bool unionField1 :1; - bool unionField2 :1; - bool unionField3 :1; + bool aint; + bool aString; + bool lint; + bool lString; + bool lintString; + bool mStringString; + bool attributes; + bool unionField1; + bool unionField2; + bool unionField3; } _Complex__isset; class Complex { public: - Complex(const Complex&); - Complex& operator=(const Complex&); + static const char* ascii_fingerprint; // = "FFA84FEA7037F5858F2BFEDA73AD679A"; + static const uint8_t binary_fingerprint[16]; // = {0xFF,0xA8,0x4F,0xEA,0x70,0x37,0xF5,0x85,0x8F,0x2B,0xFE,0xDA,0x73,0xAD,0x67,0x9A}; + Complex() : aint(0), aString() { } - virtual ~Complex() throw(); + virtual ~Complex() throw() {} + int32_t aint; std::string aString; std::vector lint; @@ -213,25 +219,45 @@ class Complex { _Complex__isset __isset; - void __set_aint(const int32_t val); + void __set_aint(const int32_t val) { + aint = val; + } - void __set_aString(const std::string& val); + void __set_aString(const std::string& val) { + aString = val; + } - void __set_lint(const std::vector & val); + void __set_lint(const std::vector & val) { + lint = val; + } - void __set_lString(const std::vector & val); + void __set_lString(const std::vector & val) { + lString = val; + } - void __set_lintString(const std::vector & val); + void __set_lintString(const std::vector & val) { + lintString = val; + } - void __set_mStringString(const std::map & val); + void __set_mStringString(const std::map & val) { + mStringString = val; + } - void __set_attributes(const std::map > > & val); + void __set_attributes(const std::map > > & val) { + attributes = val; + } - void __set_unionField1(const PropValueUnion& val); + void __set_unionField1(const PropValueUnion& val) { + unionField1 = val; + } - void __set_unionField2(const PropValueUnion& val); + void __set_unionField2(const PropValueUnion& val) { + unionField2 = val; + } - void __set_unionField3(const PropValueUnion& val); + void __set_unionField3(const PropValueUnion& val) { + unionField3 = val; + } bool operator == (const Complex & rhs) const { @@ -266,40 +292,39 @@ class Complex { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(Complex &a, Complex &b); -inline std::ostream& operator<<(std::ostream& out, const Complex& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _SetIntString__isset { _SetIntString__isset() : sIntString(false), aString(false) {} - bool sIntString :1; - bool aString :1; + bool sIntString; + bool aString; } _SetIntString__isset; class SetIntString { public: - SetIntString(const SetIntString&); - SetIntString& operator=(const SetIntString&); + static const char* ascii_fingerprint; // = "842B41C940D05DFB16183142A90DFC54"; + static const uint8_t binary_fingerprint[16]; // = {0x84,0x2B,0x41,0xC9,0x40,0xD0,0x5D,0xFB,0x16,0x18,0x31,0x42,0xA9,0x0D,0xFC,0x54}; + SetIntString() : aString() { } - virtual ~SetIntString() throw(); + virtual ~SetIntString() throw() {} + std::set sIntString; std::string aString; _SetIntString__isset __isset; - void __set_sIntString(const std::set & val); + void __set_sIntString(const std::set & val) { + sIntString = val; + } - void __set_aString(const std::string& val); + void __set_aString(const std::string& val) { + aString = val; + } bool operator == (const SetIntString & rhs) const { @@ -318,17 +343,10 @@ class SetIntString { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(SetIntString &a, SetIntString &b); -inline std::ostream& operator<<(std::ostream& out, const SetIntString& obj) -{ - obj.printTo(out); - return out; -} - #endif diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp b/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp index c3e3794..4bd82a1 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_constants.h b/serde/src/gen/thrift/gen-cpp/megastruct_constants.h index e08f8a3..9897f8f 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_constants.h +++ b/serde/src/gen/thrift/gen-cpp/megastruct_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp index 42f7e31..2d46b7f 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "megastruct_types.h" #include -#include - -#include @@ -23,24 +20,11 @@ const char* _kMyEnumNames[] = { }; const std::map _MyEnum_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kMyEnumValues, _kMyEnumNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -MiniStruct::~MiniStruct() throw() { -} - - -void MiniStruct::__set_my_string(const std::string& val) { - this->my_string = val; -__isset.my_string = true; -} - -void MiniStruct::__set_my_enum(const MyEnum::type val) { - this->my_enum = val; -__isset.my_enum = true; -} +const char* MiniStruct::ascii_fingerprint = "4ED2B10931906B61ED0B1592EE860A37"; +const uint8_t MiniStruct::binary_fingerprint[16] = {0x4E,0xD2,0xB1,0x09,0x31,0x90,0x6B,0x61,0xED,0x0B,0x15,0x92,0xEE,0x86,0x0A,0x37}; uint32_t MiniStruct::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -91,7 +75,6 @@ uint32_t MiniStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MiniStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("MiniStruct"); if (this->__isset.my_string) { @@ -116,133 +99,11 @@ void swap(MiniStruct &a, MiniStruct &b) { swap(a.__isset, b.__isset); } -MiniStruct::MiniStruct(const MiniStruct& other1) { - my_string = other1.my_string; - my_enum = other1.my_enum; - __isset = other1.__isset; -} -MiniStruct& MiniStruct::operator=(const MiniStruct& other2) { - my_string = other2.my_string; - my_enum = other2.my_enum; - __isset = other2.__isset; - return *this; -} -void MiniStruct::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "MiniStruct("; - out << "my_string="; (__isset.my_string ? (out << to_string(my_string)) : (out << "")); - out << ", " << "my_enum="; (__isset.my_enum ? (out << to_string(my_enum)) : (out << "")); - out << ")"; -} - - -MegaStruct::~MegaStruct() throw() { -} - - -void MegaStruct::__set_my_bool(const bool val) { - this->my_bool = val; -__isset.my_bool = true; -} - -void MegaStruct::__set_my_byte(const int8_t val) { - this->my_byte = val; -__isset.my_byte = true; -} - -void MegaStruct::__set_my_16bit_int(const int16_t val) { - this->my_16bit_int = val; -__isset.my_16bit_int = true; -} - -void MegaStruct::__set_my_32bit_int(const int32_t val) { - this->my_32bit_int = val; -__isset.my_32bit_int = true; -} - -void MegaStruct::__set_my_64bit_int(const int64_t val) { - this->my_64bit_int = val; -__isset.my_64bit_int = true; -} - -void MegaStruct::__set_my_double(const double val) { - this->my_double = val; -__isset.my_double = true; -} - -void MegaStruct::__set_my_string(const std::string& val) { - this->my_string = val; -__isset.my_string = true; -} - -void MegaStruct::__set_my_binary(const std::string& val) { - this->my_binary = val; -__isset.my_binary = true; -} - -void MegaStruct::__set_my_string_string_map(const std::map & val) { - this->my_string_string_map = val; -__isset.my_string_string_map = true; -} - -void MegaStruct::__set_my_string_enum_map(const std::map & val) { - this->my_string_enum_map = val; -__isset.my_string_enum_map = true; -} - -void MegaStruct::__set_my_enum_string_map(const std::map & val) { - this->my_enum_string_map = val; -__isset.my_enum_string_map = true; -} - -void MegaStruct::__set_my_enum_struct_map(const std::map & val) { - this->my_enum_struct_map = val; -__isset.my_enum_struct_map = true; -} - -void MegaStruct::__set_my_enum_stringlist_map(const std::map > & val) { - this->my_enum_stringlist_map = val; -__isset.my_enum_stringlist_map = true; -} - -void MegaStruct::__set_my_enum_structlist_map(const std::map > & val) { - this->my_enum_structlist_map = val; -__isset.my_enum_structlist_map = true; -} - -void MegaStruct::__set_my_stringlist(const std::vector & val) { - this->my_stringlist = val; -__isset.my_stringlist = true; -} - -void MegaStruct::__set_my_structlist(const std::vector & val) { - this->my_structlist = val; -__isset.my_structlist = true; -} - -void MegaStruct::__set_my_enumlist(const std::vector & val) { - this->my_enumlist = val; -__isset.my_enumlist = true; -} - -void MegaStruct::__set_my_stringset(const std::set & val) { - this->my_stringset = val; -__isset.my_stringset = true; -} - -void MegaStruct::__set_my_enumset(const std::set & val) { - this->my_enumset = val; -__isset.my_enumset = true; -} - -void MegaStruct::__set_my_structset(const std::set & val) { - this->my_structset = val; -__isset.my_structset = true; -} +const char* MegaStruct::ascii_fingerprint = "9979EEF0CA19988228E64220A3AA9120"; +const uint8_t MegaStruct::binary_fingerprint[16] = {0x99,0x79,0xEE,0xF0,0xCA,0x19,0x98,0x82,0x28,0xE6,0x42,0x20,0xA3,0xAA,0x91,0x20}; uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -329,17 +190,17 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_string_string_map.clear(); - uint32_t _size3; - ::apache::thrift::protocol::TType _ktype4; - ::apache::thrift::protocol::TType _vtype5; - xfer += iprot->readMapBegin(_ktype4, _vtype5, _size3); - uint32_t _i7; - for (_i7 = 0; _i7 < _size3; ++_i7) + uint32_t _size1; + ::apache::thrift::protocol::TType _ktype2; + ::apache::thrift::protocol::TType _vtype3; + xfer += iprot->readMapBegin(_ktype2, _vtype3, _size1); + uint32_t _i5; + for (_i5 = 0; _i5 < _size1; ++_i5) { - std::string _key8; - xfer += iprot->readString(_key8); - std::string& _val9 = this->my_string_string_map[_key8]; - xfer += iprot->readString(_val9); + std::string _key6; + xfer += iprot->readString(_key6); + std::string& _val7 = this->my_string_string_map[_key6]; + xfer += iprot->readString(_val7); } xfer += iprot->readMapEnd(); } @@ -352,19 +213,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_string_enum_map.clear(); - uint32_t _size10; - ::apache::thrift::protocol::TType _ktype11; - ::apache::thrift::protocol::TType _vtype12; - xfer += iprot->readMapBegin(_ktype11, _vtype12, _size10); - uint32_t _i14; - for (_i14 = 0; _i14 < _size10; ++_i14) + uint32_t _size8; + ::apache::thrift::protocol::TType _ktype9; + ::apache::thrift::protocol::TType _vtype10; + xfer += iprot->readMapBegin(_ktype9, _vtype10, _size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { - std::string _key15; - xfer += iprot->readString(_key15); - MyEnum::type& _val16 = this->my_string_enum_map[_key15]; - int32_t ecast17; - xfer += iprot->readI32(ecast17); - _val16 = (MyEnum::type)ecast17; + std::string _key13; + xfer += iprot->readString(_key13); + MyEnum::type& _val14 = this->my_string_enum_map[_key13]; + int32_t ecast15; + xfer += iprot->readI32(ecast15); + _val14 = (MyEnum::type)ecast15; } xfer += iprot->readMapEnd(); } @@ -377,19 +238,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_string_map.clear(); - uint32_t _size18; - ::apache::thrift::protocol::TType _ktype19; - ::apache::thrift::protocol::TType _vtype20; - xfer += iprot->readMapBegin(_ktype19, _vtype20, _size18); - uint32_t _i22; - for (_i22 = 0; _i22 < _size18; ++_i22) + uint32_t _size16; + ::apache::thrift::protocol::TType _ktype17; + ::apache::thrift::protocol::TType _vtype18; + xfer += iprot->readMapBegin(_ktype17, _vtype18, _size16); + uint32_t _i20; + for (_i20 = 0; _i20 < _size16; ++_i20) { - MyEnum::type _key23; - int32_t ecast25; - xfer += iprot->readI32(ecast25); - _key23 = (MyEnum::type)ecast25; - std::string& _val24 = this->my_enum_string_map[_key23]; - xfer += iprot->readString(_val24); + MyEnum::type _key21; + int32_t ecast23; + xfer += iprot->readI32(ecast23); + _key21 = (MyEnum::type)ecast23; + std::string& _val22 = this->my_enum_string_map[_key21]; + xfer += iprot->readString(_val22); } xfer += iprot->readMapEnd(); } @@ -402,19 +263,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_struct_map.clear(); - uint32_t _size26; - ::apache::thrift::protocol::TType _ktype27; - ::apache::thrift::protocol::TType _vtype28; - xfer += iprot->readMapBegin(_ktype27, _vtype28, _size26); - uint32_t _i30; - for (_i30 = 0; _i30 < _size26; ++_i30) + uint32_t _size24; + ::apache::thrift::protocol::TType _ktype25; + ::apache::thrift::protocol::TType _vtype26; + xfer += iprot->readMapBegin(_ktype25, _vtype26, _size24); + uint32_t _i28; + for (_i28 = 0; _i28 < _size24; ++_i28) { - MyEnum::type _key31; - int32_t ecast33; - xfer += iprot->readI32(ecast33); - _key31 = (MyEnum::type)ecast33; - MiniStruct& _val32 = this->my_enum_struct_map[_key31]; - xfer += _val32.read(iprot); + MyEnum::type _key29; + int32_t ecast31; + xfer += iprot->readI32(ecast31); + _key29 = (MyEnum::type)ecast31; + MiniStruct& _val30 = this->my_enum_struct_map[_key29]; + xfer += _val30.read(iprot); } xfer += iprot->readMapEnd(); } @@ -427,28 +288,28 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_stringlist_map.clear(); - uint32_t _size34; - ::apache::thrift::protocol::TType _ktype35; - ::apache::thrift::protocol::TType _vtype36; - xfer += iprot->readMapBegin(_ktype35, _vtype36, _size34); - uint32_t _i38; - for (_i38 = 0; _i38 < _size34; ++_i38) + uint32_t _size32; + ::apache::thrift::protocol::TType _ktype33; + ::apache::thrift::protocol::TType _vtype34; + xfer += iprot->readMapBegin(_ktype33, _vtype34, _size32); + uint32_t _i36; + for (_i36 = 0; _i36 < _size32; ++_i36) { - MyEnum::type _key39; - int32_t ecast41; - xfer += iprot->readI32(ecast41); - _key39 = (MyEnum::type)ecast41; - std::vector & _val40 = this->my_enum_stringlist_map[_key39]; + MyEnum::type _key37; + int32_t ecast39; + xfer += iprot->readI32(ecast39); + _key37 = (MyEnum::type)ecast39; + std::vector & _val38 = this->my_enum_stringlist_map[_key37]; { - _val40.clear(); - uint32_t _size42; - ::apache::thrift::protocol::TType _etype45; - xfer += iprot->readListBegin(_etype45, _size42); - _val40.resize(_size42); - uint32_t _i46; - for (_i46 = 0; _i46 < _size42; ++_i46) + _val38.clear(); + uint32_t _size40; + ::apache::thrift::protocol::TType _etype43; + xfer += iprot->readListBegin(_etype43, _size40); + _val38.resize(_size40); + uint32_t _i44; + for (_i44 = 0; _i44 < _size40; ++_i44) { - xfer += iprot->readString(_val40[_i46]); + xfer += iprot->readString(_val38[_i44]); } xfer += iprot->readListEnd(); } @@ -464,28 +325,28 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_structlist_map.clear(); - uint32_t _size47; - ::apache::thrift::protocol::TType _ktype48; - ::apache::thrift::protocol::TType _vtype49; - xfer += iprot->readMapBegin(_ktype48, _vtype49, _size47); - uint32_t _i51; - for (_i51 = 0; _i51 < _size47; ++_i51) + uint32_t _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - MyEnum::type _key52; - int32_t ecast54; - xfer += iprot->readI32(ecast54); - _key52 = (MyEnum::type)ecast54; - std::vector & _val53 = this->my_enum_structlist_map[_key52]; + MyEnum::type _key50; + int32_t ecast52; + xfer += iprot->readI32(ecast52); + _key50 = (MyEnum::type)ecast52; + std::vector & _val51 = this->my_enum_structlist_map[_key50]; { - _val53.clear(); - uint32_t _size55; - ::apache::thrift::protocol::TType _etype58; - xfer += iprot->readListBegin(_etype58, _size55); - _val53.resize(_size55); - uint32_t _i59; - for (_i59 = 0; _i59 < _size55; ++_i59) + _val51.clear(); + uint32_t _size53; + ::apache::thrift::protocol::TType _etype56; + xfer += iprot->readListBegin(_etype56, _size53); + _val51.resize(_size53); + uint32_t _i57; + for (_i57 = 0; _i57 < _size53; ++_i57) { - xfer += _val53[_i59].read(iprot); + xfer += _val51[_i57].read(iprot); } xfer += iprot->readListEnd(); } @@ -501,14 +362,14 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_stringlist.clear(); - uint32_t _size60; - ::apache::thrift::protocol::TType _etype63; - xfer += iprot->readListBegin(_etype63, _size60); - this->my_stringlist.resize(_size60); - uint32_t _i64; - for (_i64 = 0; _i64 < _size60; ++_i64) + uint32_t _size58; + ::apache::thrift::protocol::TType _etype61; + xfer += iprot->readListBegin(_etype61, _size58); + this->my_stringlist.resize(_size58); + uint32_t _i62; + for (_i62 = 0; _i62 < _size58; ++_i62) { - xfer += iprot->readString(this->my_stringlist[_i64]); + xfer += iprot->readString(this->my_stringlist[_i62]); } xfer += iprot->readListEnd(); } @@ -521,14 +382,14 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_structlist.clear(); - uint32_t _size65; - ::apache::thrift::protocol::TType _etype68; - xfer += iprot->readListBegin(_etype68, _size65); - this->my_structlist.resize(_size65); - uint32_t _i69; - for (_i69 = 0; _i69 < _size65; ++_i69) + uint32_t _size63; + ::apache::thrift::protocol::TType _etype66; + xfer += iprot->readListBegin(_etype66, _size63); + this->my_structlist.resize(_size63); + uint32_t _i67; + for (_i67 = 0; _i67 < _size63; ++_i67) { - xfer += this->my_structlist[_i69].read(iprot); + xfer += this->my_structlist[_i67].read(iprot); } xfer += iprot->readListEnd(); } @@ -541,16 +402,16 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_enumlist.clear(); - uint32_t _size70; - ::apache::thrift::protocol::TType _etype73; - xfer += iprot->readListBegin(_etype73, _size70); - this->my_enumlist.resize(_size70); - uint32_t _i74; - for (_i74 = 0; _i74 < _size70; ++_i74) + uint32_t _size68; + ::apache::thrift::protocol::TType _etype71; + xfer += iprot->readListBegin(_etype71, _size68); + this->my_enumlist.resize(_size68); + uint32_t _i72; + for (_i72 = 0; _i72 < _size68; ++_i72) { - int32_t ecast75; - xfer += iprot->readI32(ecast75); - this->my_enumlist[_i74] = (MyEnum::type)ecast75; + int32_t ecast73; + xfer += iprot->readI32(ecast73); + this->my_enumlist[_i72] = (MyEnum::type)ecast73; } xfer += iprot->readListEnd(); } @@ -563,15 +424,15 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_stringset.clear(); - uint32_t _size76; - ::apache::thrift::protocol::TType _etype79; - xfer += iprot->readSetBegin(_etype79, _size76); - uint32_t _i80; - for (_i80 = 0; _i80 < _size76; ++_i80) + uint32_t _size74; + ::apache::thrift::protocol::TType _etype77; + xfer += iprot->readSetBegin(_etype77, _size74); + uint32_t _i78; + for (_i78 = 0; _i78 < _size74; ++_i78) { - std::string _elem81; - xfer += iprot->readString(_elem81); - this->my_stringset.insert(_elem81); + std::string _elem79; + xfer += iprot->readString(_elem79); + this->my_stringset.insert(_elem79); } xfer += iprot->readSetEnd(); } @@ -584,17 +445,17 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_enumset.clear(); - uint32_t _size82; - ::apache::thrift::protocol::TType _etype85; - xfer += iprot->readSetBegin(_etype85, _size82); - uint32_t _i86; - for (_i86 = 0; _i86 < _size82; ++_i86) + uint32_t _size80; + ::apache::thrift::protocol::TType _etype83; + xfer += iprot->readSetBegin(_etype83, _size80); + uint32_t _i84; + for (_i84 = 0; _i84 < _size80; ++_i84) { - MyEnum::type _elem87; - int32_t ecast88; - xfer += iprot->readI32(ecast88); - _elem87 = (MyEnum::type)ecast88; - this->my_enumset.insert(_elem87); + MyEnum::type _elem85; + int32_t ecast86; + xfer += iprot->readI32(ecast86); + _elem85 = (MyEnum::type)ecast86; + this->my_enumset.insert(_elem85); } xfer += iprot->readSetEnd(); } @@ -607,15 +468,15 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_structset.clear(); - uint32_t _size89; - ::apache::thrift::protocol::TType _etype92; - xfer += iprot->readSetBegin(_etype92, _size89); - uint32_t _i93; - for (_i93 = 0; _i93 < _size89; ++_i93) + uint32_t _size87; + ::apache::thrift::protocol::TType _etype90; + xfer += iprot->readSetBegin(_etype90, _size87); + uint32_t _i91; + for (_i91 = 0; _i91 < _size87; ++_i91) { - MiniStruct _elem94; - xfer += _elem94.read(iprot); - this->my_structset.insert(_elem94); + MiniStruct _elem92; + xfer += _elem92.read(iprot); + this->my_structset.insert(_elem92); } xfer += iprot->readSetEnd(); } @@ -638,7 +499,6 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("MegaStruct"); if (this->__isset.my_bool) { @@ -685,11 +545,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_string_string_map", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->my_string_string_map.size())); - std::map ::const_iterator _iter95; - for (_iter95 = this->my_string_string_map.begin(); _iter95 != this->my_string_string_map.end(); ++_iter95) + std::map ::const_iterator _iter93; + for (_iter93 = this->my_string_string_map.begin(); _iter93 != this->my_string_string_map.end(); ++_iter93) { - xfer += oprot->writeString(_iter95->first); - xfer += oprot->writeString(_iter95->second); + xfer += oprot->writeString(_iter93->first); + xfer += oprot->writeString(_iter93->second); } xfer += oprot->writeMapEnd(); } @@ -699,11 +559,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_string_enum_map", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->my_string_enum_map.size())); - std::map ::const_iterator _iter96; - for (_iter96 = this->my_string_enum_map.begin(); _iter96 != this->my_string_enum_map.end(); ++_iter96) + std::map ::const_iterator _iter94; + for (_iter94 = this->my_string_enum_map.begin(); _iter94 != this->my_string_enum_map.end(); ++_iter94) { - xfer += oprot->writeString(_iter96->first); - xfer += oprot->writeI32((int32_t)_iter96->second); + xfer += oprot->writeString(_iter94->first); + xfer += oprot->writeI32((int32_t)_iter94->second); } xfer += oprot->writeMapEnd(); } @@ -713,11 +573,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_string_map", ::apache::thrift::protocol::T_MAP, 11); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast(this->my_enum_string_map.size())); - std::map ::const_iterator _iter97; - for (_iter97 = this->my_enum_string_map.begin(); _iter97 != this->my_enum_string_map.end(); ++_iter97) + std::map ::const_iterator _iter95; + for (_iter95 = this->my_enum_string_map.begin(); _iter95 != this->my_enum_string_map.end(); ++_iter95) { - xfer += oprot->writeI32((int32_t)_iter97->first); - xfer += oprot->writeString(_iter97->second); + xfer += oprot->writeI32((int32_t)_iter95->first); + xfer += oprot->writeString(_iter95->second); } xfer += oprot->writeMapEnd(); } @@ -727,11 +587,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_struct_map", ::apache::thrift::protocol::T_MAP, 12); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRUCT, static_cast(this->my_enum_struct_map.size())); - std::map ::const_iterator _iter98; - for (_iter98 = this->my_enum_struct_map.begin(); _iter98 != this->my_enum_struct_map.end(); ++_iter98) + std::map ::const_iterator _iter96; + for (_iter96 = this->my_enum_struct_map.begin(); _iter96 != this->my_enum_struct_map.end(); ++_iter96) { - xfer += oprot->writeI32((int32_t)_iter98->first); - xfer += _iter98->second.write(oprot); + xfer += oprot->writeI32((int32_t)_iter96->first); + xfer += _iter96->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -741,16 +601,16 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_stringlist_map", ::apache::thrift::protocol::T_MAP, 13); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_LIST, static_cast(this->my_enum_stringlist_map.size())); - std::map > ::const_iterator _iter99; - for (_iter99 = this->my_enum_stringlist_map.begin(); _iter99 != this->my_enum_stringlist_map.end(); ++_iter99) + std::map > ::const_iterator _iter97; + for (_iter97 = this->my_enum_stringlist_map.begin(); _iter97 != this->my_enum_stringlist_map.end(); ++_iter97) { - xfer += oprot->writeI32((int32_t)_iter99->first); + xfer += oprot->writeI32((int32_t)_iter97->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter99->second.size())); - std::vector ::const_iterator _iter100; - for (_iter100 = _iter99->second.begin(); _iter100 != _iter99->second.end(); ++_iter100) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter97->second.size())); + std::vector ::const_iterator _iter98; + for (_iter98 = _iter97->second.begin(); _iter98 != _iter97->second.end(); ++_iter98) { - xfer += oprot->writeString((*_iter100)); + xfer += oprot->writeString((*_iter98)); } xfer += oprot->writeListEnd(); } @@ -763,16 +623,16 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_structlist_map", ::apache::thrift::protocol::T_MAP, 14); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_LIST, static_cast(this->my_enum_structlist_map.size())); - std::map > ::const_iterator _iter101; - for (_iter101 = this->my_enum_structlist_map.begin(); _iter101 != this->my_enum_structlist_map.end(); ++_iter101) + std::map > ::const_iterator _iter99; + for (_iter99 = this->my_enum_structlist_map.begin(); _iter99 != this->my_enum_structlist_map.end(); ++_iter99) { - xfer += oprot->writeI32((int32_t)_iter101->first); + xfer += oprot->writeI32((int32_t)_iter99->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter101->second.size())); - std::vector ::const_iterator _iter102; - for (_iter102 = _iter101->second.begin(); _iter102 != _iter101->second.end(); ++_iter102) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter99->second.size())); + std::vector ::const_iterator _iter100; + for (_iter100 = _iter99->second.begin(); _iter100 != _iter99->second.end(); ++_iter100) { - xfer += (*_iter102).write(oprot); + xfer += (*_iter100).write(oprot); } xfer += oprot->writeListEnd(); } @@ -785,10 +645,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_stringlist", ::apache::thrift::protocol::T_LIST, 15); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->my_stringlist.size())); - std::vector ::const_iterator _iter103; - for (_iter103 = this->my_stringlist.begin(); _iter103 != this->my_stringlist.end(); ++_iter103) + std::vector ::const_iterator _iter101; + for (_iter101 = this->my_stringlist.begin(); _iter101 != this->my_stringlist.end(); ++_iter101) { - xfer += oprot->writeString((*_iter103)); + xfer += oprot->writeString((*_iter101)); } xfer += oprot->writeListEnd(); } @@ -798,10 +658,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_structlist", ::apache::thrift::protocol::T_LIST, 16); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->my_structlist.size())); - std::vector ::const_iterator _iter104; - for (_iter104 = this->my_structlist.begin(); _iter104 != this->my_structlist.end(); ++_iter104) + std::vector ::const_iterator _iter102; + for (_iter102 = this->my_structlist.begin(); _iter102 != this->my_structlist.end(); ++_iter102) { - xfer += (*_iter104).write(oprot); + xfer += (*_iter102).write(oprot); } xfer += oprot->writeListEnd(); } @@ -811,10 +671,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enumlist", ::apache::thrift::protocol::T_LIST, 17); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->my_enumlist.size())); - std::vector ::const_iterator _iter105; - for (_iter105 = this->my_enumlist.begin(); _iter105 != this->my_enumlist.end(); ++_iter105) + std::vector ::const_iterator _iter103; + for (_iter103 = this->my_enumlist.begin(); _iter103 != this->my_enumlist.end(); ++_iter103) { - xfer += oprot->writeI32((int32_t)(*_iter105)); + xfer += oprot->writeI32((int32_t)(*_iter103)); } xfer += oprot->writeListEnd(); } @@ -824,10 +684,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_stringset", ::apache::thrift::protocol::T_SET, 18); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->my_stringset.size())); - std::set ::const_iterator _iter106; - for (_iter106 = this->my_stringset.begin(); _iter106 != this->my_stringset.end(); ++_iter106) + std::set ::const_iterator _iter104; + for (_iter104 = this->my_stringset.begin(); _iter104 != this->my_stringset.end(); ++_iter104) { - xfer += oprot->writeString((*_iter106)); + xfer += oprot->writeString((*_iter104)); } xfer += oprot->writeSetEnd(); } @@ -837,10 +697,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enumset", ::apache::thrift::protocol::T_SET, 19); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->my_enumset.size())); - std::set ::const_iterator _iter107; - for (_iter107 = this->my_enumset.begin(); _iter107 != this->my_enumset.end(); ++_iter107) + std::set ::const_iterator _iter105; + for (_iter105 = this->my_enumset.begin(); _iter105 != this->my_enumset.end(); ++_iter105) { - xfer += oprot->writeI32((int32_t)(*_iter107)); + xfer += oprot->writeI32((int32_t)(*_iter105)); } xfer += oprot->writeSetEnd(); } @@ -850,10 +710,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_structset", ::apache::thrift::protocol::T_SET, 20); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->my_structset.size())); - std::set ::const_iterator _iter108; - for (_iter108 = this->my_structset.begin(); _iter108 != this->my_structset.end(); ++_iter108) + std::set ::const_iterator _iter106; + for (_iter106 = this->my_structset.begin(); _iter106 != this->my_structset.end(); ++_iter106) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter106).write(oprot); } xfer += oprot->writeSetEnd(); } @@ -889,77 +749,4 @@ void swap(MegaStruct &a, MegaStruct &b) { swap(a.__isset, b.__isset); } -MegaStruct::MegaStruct(const MegaStruct& other109) { - my_bool = other109.my_bool; - my_byte = other109.my_byte; - my_16bit_int = other109.my_16bit_int; - my_32bit_int = other109.my_32bit_int; - my_64bit_int = other109.my_64bit_int; - my_double = other109.my_double; - my_string = other109.my_string; - my_binary = other109.my_binary; - my_string_string_map = other109.my_string_string_map; - my_string_enum_map = other109.my_string_enum_map; - my_enum_string_map = other109.my_enum_string_map; - my_enum_struct_map = other109.my_enum_struct_map; - my_enum_stringlist_map = other109.my_enum_stringlist_map; - my_enum_structlist_map = other109.my_enum_structlist_map; - my_stringlist = other109.my_stringlist; - my_structlist = other109.my_structlist; - my_enumlist = other109.my_enumlist; - my_stringset = other109.my_stringset; - my_enumset = other109.my_enumset; - my_structset = other109.my_structset; - __isset = other109.__isset; -} -MegaStruct& MegaStruct::operator=(const MegaStruct& other110) { - my_bool = other110.my_bool; - my_byte = other110.my_byte; - my_16bit_int = other110.my_16bit_int; - my_32bit_int = other110.my_32bit_int; - my_64bit_int = other110.my_64bit_int; - my_double = other110.my_double; - my_string = other110.my_string; - my_binary = other110.my_binary; - my_string_string_map = other110.my_string_string_map; - my_string_enum_map = other110.my_string_enum_map; - my_enum_string_map = other110.my_enum_string_map; - my_enum_struct_map = other110.my_enum_struct_map; - my_enum_stringlist_map = other110.my_enum_stringlist_map; - my_enum_structlist_map = other110.my_enum_structlist_map; - my_stringlist = other110.my_stringlist; - my_structlist = other110.my_structlist; - my_enumlist = other110.my_enumlist; - my_stringset = other110.my_stringset; - my_enumset = other110.my_enumset; - my_structset = other110.my_structset; - __isset = other110.__isset; - return *this; -} -void MegaStruct::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "MegaStruct("; - out << "my_bool="; (__isset.my_bool ? (out << to_string(my_bool)) : (out << "")); - out << ", " << "my_byte="; (__isset.my_byte ? (out << to_string(my_byte)) : (out << "")); - out << ", " << "my_16bit_int="; (__isset.my_16bit_int ? (out << to_string(my_16bit_int)) : (out << "")); - out << ", " << "my_32bit_int="; (__isset.my_32bit_int ? (out << to_string(my_32bit_int)) : (out << "")); - out << ", " << "my_64bit_int="; (__isset.my_64bit_int ? (out << to_string(my_64bit_int)) : (out << "")); - out << ", " << "my_double="; (__isset.my_double ? (out << to_string(my_double)) : (out << "")); - out << ", " << "my_string="; (__isset.my_string ? (out << to_string(my_string)) : (out << "")); - out << ", " << "my_binary="; (__isset.my_binary ? (out << to_string(my_binary)) : (out << "")); - out << ", " << "my_string_string_map="; (__isset.my_string_string_map ? (out << to_string(my_string_string_map)) : (out << "")); - out << ", " << "my_string_enum_map="; (__isset.my_string_enum_map ? (out << to_string(my_string_enum_map)) : (out << "")); - out << ", " << "my_enum_string_map="; (__isset.my_enum_string_map ? (out << to_string(my_enum_string_map)) : (out << "")); - out << ", " << "my_enum_struct_map="; (__isset.my_enum_struct_map ? (out << to_string(my_enum_struct_map)) : (out << "")); - out << ", " << "my_enum_stringlist_map="; (__isset.my_enum_stringlist_map ? (out << to_string(my_enum_stringlist_map)) : (out << "")); - out << ", " << "my_enum_structlist_map="; (__isset.my_enum_structlist_map ? (out << to_string(my_enum_structlist_map)) : (out << "")); - out << ", " << "my_stringlist="; (__isset.my_stringlist ? (out << to_string(my_stringlist)) : (out << "")); - out << ", " << "my_structlist="; (__isset.my_structlist ? (out << to_string(my_structlist)) : (out << "")); - out << ", " << "my_enumlist="; (__isset.my_enumlist ? (out << to_string(my_enumlist)) : (out << "")); - out << ", " << "my_stringset="; (__isset.my_stringset ? (out << to_string(my_stringset)) : (out << "")); - out << ", " << "my_enumset="; (__isset.my_enumset ? (out << to_string(my_enumset)) : (out << "")); - out << ", " << "my_structset="; (__isset.my_structset ? (out << to_string(my_structset)) : (out << "")); - out << ")"; -} - diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.h b/serde/src/gen/thrift/gen-cpp/megastruct_types.h index d04a814..b5a8295 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_types.h +++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef megastruct_TYPES_H #define megastruct_TYPES_H -#include - #include #include #include #include -#include @@ -28,33 +25,37 @@ struct MyEnum { extern const std::map _MyEnum_VALUES_TO_NAMES; -class MiniStruct; - -class MegaStruct; - typedef struct _MiniStruct__isset { _MiniStruct__isset() : my_string(false), my_enum(false) {} - bool my_string :1; - bool my_enum :1; + bool my_string; + bool my_enum; } _MiniStruct__isset; class MiniStruct { public: - MiniStruct(const MiniStruct&); - MiniStruct& operator=(const MiniStruct&); + static const char* ascii_fingerprint; // = "4ED2B10931906B61ED0B1592EE860A37"; + static const uint8_t binary_fingerprint[16]; // = {0x4E,0xD2,0xB1,0x09,0x31,0x90,0x6B,0x61,0xED,0x0B,0x15,0x92,0xEE,0x86,0x0A,0x37}; + MiniStruct() : my_string(), my_enum((MyEnum::type)0) { } - virtual ~MiniStruct() throw(); + virtual ~MiniStruct() throw() {} + std::string my_string; MyEnum::type my_enum; _MiniStruct__isset __isset; - void __set_my_string(const std::string& val); + void __set_my_string(const std::string& val) { + my_string = val; + __isset.my_string = true; + } - void __set_my_enum(const MyEnum::type val); + void __set_my_enum(const MyEnum::type val) { + my_enum = val; + __isset.my_enum = true; + } bool operator == (const MiniStruct & rhs) const { @@ -77,50 +78,45 @@ class MiniStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(MiniStruct &a, MiniStruct &b); -inline std::ostream& operator<<(std::ostream& out, const MiniStruct& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _MegaStruct__isset { _MegaStruct__isset() : my_bool(false), my_byte(false), my_16bit_int(false), my_32bit_int(false), my_64bit_int(false), my_double(false), my_string(false), my_binary(false), my_string_string_map(false), my_string_enum_map(false), my_enum_string_map(false), my_enum_struct_map(false), my_enum_stringlist_map(false), my_enum_structlist_map(false), my_stringlist(false), my_structlist(false), my_enumlist(false), my_stringset(false), my_enumset(false), my_structset(false) {} - bool my_bool :1; - bool my_byte :1; - bool my_16bit_int :1; - bool my_32bit_int :1; - bool my_64bit_int :1; - bool my_double :1; - bool my_string :1; - bool my_binary :1; - bool my_string_string_map :1; - bool my_string_enum_map :1; - bool my_enum_string_map :1; - bool my_enum_struct_map :1; - bool my_enum_stringlist_map :1; - bool my_enum_structlist_map :1; - bool my_stringlist :1; - bool my_structlist :1; - bool my_enumlist :1; - bool my_stringset :1; - bool my_enumset :1; - bool my_structset :1; + bool my_bool; + bool my_byte; + bool my_16bit_int; + bool my_32bit_int; + bool my_64bit_int; + bool my_double; + bool my_string; + bool my_binary; + bool my_string_string_map; + bool my_string_enum_map; + bool my_enum_string_map; + bool my_enum_struct_map; + bool my_enum_stringlist_map; + bool my_enum_structlist_map; + bool my_stringlist; + bool my_structlist; + bool my_enumlist; + bool my_stringset; + bool my_enumset; + bool my_structset; } _MegaStruct__isset; class MegaStruct { public: - MegaStruct(const MegaStruct&); - MegaStruct& operator=(const MegaStruct&); + static const char* ascii_fingerprint; // = "9979EEF0CA19988228E64220A3AA9120"; + static const uint8_t binary_fingerprint[16]; // = {0x99,0x79,0xEE,0xF0,0xCA,0x19,0x98,0x82,0x28,0xE6,0x42,0x20,0xA3,0xAA,0x91,0x20}; + MegaStruct() : my_bool(0), my_byte(0), my_16bit_int(0), my_32bit_int(0), my_64bit_int(0), my_double(0), my_string(), my_binary() { } - virtual ~MegaStruct() throw(); + virtual ~MegaStruct() throw() {} + bool my_bool; int8_t my_byte; int16_t my_16bit_int; @@ -144,45 +140,105 @@ class MegaStruct { _MegaStruct__isset __isset; - void __set_my_bool(const bool val); + void __set_my_bool(const bool val) { + my_bool = val; + __isset.my_bool = true; + } - void __set_my_byte(const int8_t val); + void __set_my_byte(const int8_t val) { + my_byte = val; + __isset.my_byte = true; + } - void __set_my_16bit_int(const int16_t val); + void __set_my_16bit_int(const int16_t val) { + my_16bit_int = val; + __isset.my_16bit_int = true; + } - void __set_my_32bit_int(const int32_t val); + void __set_my_32bit_int(const int32_t val) { + my_32bit_int = val; + __isset.my_32bit_int = true; + } - void __set_my_64bit_int(const int64_t val); + void __set_my_64bit_int(const int64_t val) { + my_64bit_int = val; + __isset.my_64bit_int = true; + } - void __set_my_double(const double val); + void __set_my_double(const double val) { + my_double = val; + __isset.my_double = true; + } - void __set_my_string(const std::string& val); + void __set_my_string(const std::string& val) { + my_string = val; + __isset.my_string = true; + } - void __set_my_binary(const std::string& val); + void __set_my_binary(const std::string& val) { + my_binary = val; + __isset.my_binary = true; + } - void __set_my_string_string_map(const std::map & val); + void __set_my_string_string_map(const std::map & val) { + my_string_string_map = val; + __isset.my_string_string_map = true; + } - void __set_my_string_enum_map(const std::map & val); + void __set_my_string_enum_map(const std::map & val) { + my_string_enum_map = val; + __isset.my_string_enum_map = true; + } - void __set_my_enum_string_map(const std::map & val); + void __set_my_enum_string_map(const std::map & val) { + my_enum_string_map = val; + __isset.my_enum_string_map = true; + } - void __set_my_enum_struct_map(const std::map & val); + void __set_my_enum_struct_map(const std::map & val) { + my_enum_struct_map = val; + __isset.my_enum_struct_map = true; + } - void __set_my_enum_stringlist_map(const std::map > & val); + void __set_my_enum_stringlist_map(const std::map > & val) { + my_enum_stringlist_map = val; + __isset.my_enum_stringlist_map = true; + } - void __set_my_enum_structlist_map(const std::map > & val); + void __set_my_enum_structlist_map(const std::map > & val) { + my_enum_structlist_map = val; + __isset.my_enum_structlist_map = true; + } - void __set_my_stringlist(const std::vector & val); + void __set_my_stringlist(const std::vector & val) { + my_stringlist = val; + __isset.my_stringlist = true; + } - void __set_my_structlist(const std::vector & val); + void __set_my_structlist(const std::vector & val) { + my_structlist = val; + __isset.my_structlist = true; + } - void __set_my_enumlist(const std::vector & val); + void __set_my_enumlist(const std::vector & val) { + my_enumlist = val; + __isset.my_enumlist = true; + } - void __set_my_stringset(const std::set & val); + void __set_my_stringset(const std::set & val) { + my_stringset = val; + __isset.my_stringset = true; + } - void __set_my_enumset(const std::set & val); + void __set_my_enumset(const std::set & val) { + my_enumset = val; + __isset.my_enumset = true; + } - void __set_my_structset(const std::set & val); + void __set_my_structset(const std::set & val) { + my_structset = val; + __isset.my_structset = true; + } bool operator == (const MegaStruct & rhs) const { @@ -277,17 +333,10 @@ class MegaStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(MegaStruct &a, MegaStruct &b); -inline std::ostream& operator<<(std::ostream& out, const MegaStruct& obj) -{ - obj.printTo(out); - return out; -} - #endif diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp index 243d3b8..bda8ce8 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.h b/serde/src/gen/thrift/gen-cpp/serde_constants.h index 3566ead..0d33b52 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_constants.h +++ b/serde/src/gen/thrift/gen-cpp/serde_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/serde_types.cpp b/serde/src/gen/thrift/gen-cpp/serde_types.cpp index c05f86d..20d1fbd 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/serde_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "serde_types.h" #include -#include - -#include namespace Hive { diff --git a/serde/src/gen/thrift/gen-cpp/serde_types.h b/serde/src/gen/thrift/gen-cpp/serde_types.h index bdaab33..7fafa7d 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_types.h +++ b/serde/src/gen/thrift/gen-cpp/serde_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef serde_TYPES_H #define serde_TYPES_H -#include - #include #include #include #include -#include namespace Hive { diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp b/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp index 9538dae..3dbbf1b 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_constants.h b/serde/src/gen/thrift/gen-cpp/testthrift_constants.h index 45fdc28..76e5f0c 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_constants.h +++ b/serde/src/gen/thrift/gen-cpp/testthrift_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp index c76e2fd..7949f23 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,24 +7,14 @@ #include "testthrift_types.h" #include -#include -#include - - -InnerStruct::~InnerStruct() throw() { -} - - -void InnerStruct::__set_field0(const int32_t val) { - this->field0 = val; -} +const char* InnerStruct::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4"; +const uint8_t InnerStruct::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; uint32_t InnerStruct::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -65,7 +55,6 @@ uint32_t InnerStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t InnerStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("InnerStruct"); xfer += oprot->writeFieldBegin("field0", ::apache::thrift::protocol::T_I32, 1); @@ -83,42 +72,11 @@ void swap(InnerStruct &a, InnerStruct &b) { swap(a.__isset, b.__isset); } -InnerStruct::InnerStruct(const InnerStruct& other0) { - field0 = other0.field0; - __isset = other0.__isset; -} -InnerStruct& InnerStruct::operator=(const InnerStruct& other1) { - field0 = other1.field0; - __isset = other1.__isset; - return *this; -} -void InnerStruct::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "InnerStruct("; - out << "field0=" << to_string(field0); - out << ")"; -} - - -ThriftTestObj::~ThriftTestObj() throw() { -} - - -void ThriftTestObj::__set_field1(const int32_t val) { - this->field1 = val; -} - -void ThriftTestObj::__set_field2(const std::string& val) { - this->field2 = val; -} - -void ThriftTestObj::__set_field3(const std::vector & val) { - this->field3 = val; -} +const char* ThriftTestObj::ascii_fingerprint = "2BA5D8DAACFBBE6599779830A6185706"; +const uint8_t ThriftTestObj::binary_fingerprint[16] = {0x2B,0xA5,0xD8,0xDA,0xAC,0xFB,0xBE,0x65,0x99,0x77,0x98,0x30,0xA6,0x18,0x57,0x06}; uint32_t ThriftTestObj::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -157,14 +115,14 @@ uint32_t ThriftTestObj::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->field3.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _etype5; - xfer += iprot->readListBegin(_etype5, _size2); - this->field3.resize(_size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->field3.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += this->field3[_i6].read(iprot); + xfer += this->field3[_i4].read(iprot); } xfer += iprot->readListEnd(); } @@ -187,7 +145,6 @@ uint32_t ThriftTestObj::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftTestObj"); xfer += oprot->writeFieldBegin("field1", ::apache::thrift::protocol::T_I32, 1); @@ -201,10 +158,10 @@ uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("field3", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->field3.size())); - std::vector ::const_iterator _iter7; - for (_iter7 = this->field3.begin(); _iter7 != this->field3.end(); ++_iter7) + std::vector ::const_iterator _iter5; + for (_iter5 = this->field3.begin(); _iter5 != this->field3.end(); ++_iter5) { - xfer += (*_iter7).write(oprot); + xfer += (*_iter5).write(oprot); } xfer += oprot->writeListEnd(); } @@ -223,26 +180,4 @@ void swap(ThriftTestObj &a, ThriftTestObj &b) { swap(a.__isset, b.__isset); } -ThriftTestObj::ThriftTestObj(const ThriftTestObj& other8) { - field1 = other8.field1; - field2 = other8.field2; - field3 = other8.field3; - __isset = other8.__isset; -} -ThriftTestObj& ThriftTestObj::operator=(const ThriftTestObj& other9) { - field1 = other9.field1; - field2 = other9.field2; - field3 = other9.field3; - __isset = other9.__isset; - return *this; -} -void ThriftTestObj::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ThriftTestObj("; - out << "field1=" << to_string(field1); - out << ", " << "field2=" << to_string(field2); - out << ", " << "field3=" << to_string(field3); - out << ")"; -} - diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.h b/serde/src/gen/thrift/gen-cpp/testthrift_types.h index a59346a..6c84b9f 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_types.h +++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,41 +7,38 @@ #ifndef testthrift_TYPES_H #define testthrift_TYPES_H -#include - #include #include #include #include -#include - -class InnerStruct; - -class ThriftTestObj; typedef struct _InnerStruct__isset { _InnerStruct__isset() : field0(false) {} - bool field0 :1; + bool field0; } _InnerStruct__isset; class InnerStruct { public: - InnerStruct(const InnerStruct&); - InnerStruct& operator=(const InnerStruct&); + static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; + static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; + InnerStruct() : field0(0) { } - virtual ~InnerStruct() throw(); + virtual ~InnerStruct() throw() {} + int32_t field0; _InnerStruct__isset __isset; - void __set_field0(const int32_t val); + void __set_field0(const int32_t val) { + field0 = val; + } bool operator == (const InnerStruct & rhs) const { @@ -58,44 +55,45 @@ class InnerStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(InnerStruct &a, InnerStruct &b); -inline std::ostream& operator<<(std::ostream& out, const InnerStruct& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _ThriftTestObj__isset { _ThriftTestObj__isset() : field1(false), field2(false), field3(false) {} - bool field1 :1; - bool field2 :1; - bool field3 :1; + bool field1; + bool field2; + bool field3; } _ThriftTestObj__isset; class ThriftTestObj { public: - ThriftTestObj(const ThriftTestObj&); - ThriftTestObj& operator=(const ThriftTestObj&); + static const char* ascii_fingerprint; // = "2BA5D8DAACFBBE6599779830A6185706"; + static const uint8_t binary_fingerprint[16]; // = {0x2B,0xA5,0xD8,0xDA,0xAC,0xFB,0xBE,0x65,0x99,0x77,0x98,0x30,0xA6,0x18,0x57,0x06}; + ThriftTestObj() : field1(0), field2() { } - virtual ~ThriftTestObj() throw(); + virtual ~ThriftTestObj() throw() {} + int32_t field1; std::string field2; std::vector field3; _ThriftTestObj__isset __isset; - void __set_field1(const int32_t val); + void __set_field1(const int32_t val) { + field1 = val; + } - void __set_field2(const std::string& val); + void __set_field2(const std::string& val) { + field2 = val; + } - void __set_field3(const std::vector & val); + void __set_field3(const std::vector & val) { + field3 = val; + } bool operator == (const ThriftTestObj & rhs) const { @@ -116,17 +114,10 @@ class ThriftTestObj { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(ThriftTestObj &a, ThriftTestObj &b); -inline std::ostream& operator<<(std::ostream& out, const ThriftTestObj& obj) -{ - obj.printTo(out); - return out; -} - #endif diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java index 8b3eeb7..aa4d066 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class serdeConstants { public static final String SERIALIZATION_LIB = "serialization.lib"; diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java index 01a84fe..72a28ae 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class InnerStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InnerStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerStruct"); private static final org.apache.thrift.protocol.TField FIELD0_FIELD_DESC = new org.apache.thrift.protocol.TField("field0", org.apache.thrift.protocol.TType.I32, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case FIELD0: - return getField0(); + return Integer.valueOf(getField0()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(InnerStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_field0 = true; - list.add(present_field0); + builder.append(present_field0); if (present_field0) - list.add(field0); + builder.append(field0); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InnerStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InnerStruct typedOther = (InnerStruct)other; - lastComparison = Boolean.valueOf(isSetField0()).compareTo(other.isSetField0()); + lastComparison = Boolean.valueOf(isSetField0()).compareTo(typedOther.isSetField0()); if (lastComparison != 0) { return lastComparison; } if (isSetField0()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field0, other.field0); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field0, typedOther.field0); if (lastComparison != 0) { return lastComparison; } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java index d2f78f5..1b708dd 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class ThriftTestObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ThriftTestObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ThriftTestObj"); private static final org.apache.thrift.protocol.TField FIELD1_FIELD_DESC = new org.apache.thrift.protocol.TField("field1", org.apache.thrift.protocol.TType.I32, (short)1); @@ -158,7 +154,7 @@ public ThriftTestObj(ThriftTestObj other) { this.field2 = other.field2; } if (other.isSetField3()) { - List __this__field3 = new ArrayList(other.field3.size()); + List __this__field3 = new ArrayList(); for (InnerStruct other_element : other.field3) { __this__field3.add(new InnerStruct(other_element)); } @@ -293,7 +289,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case FIELD1: - return getField1(); + return Integer.valueOf(getField1()); case FIELD2: return getField2(); @@ -367,60 +363,60 @@ public boolean equals(ThriftTestObj that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_field1 = true; - list.add(present_field1); + builder.append(present_field1); if (present_field1) - list.add(field1); + builder.append(field1); boolean present_field2 = true && (isSetField2()); - list.add(present_field2); + builder.append(present_field2); if (present_field2) - list.add(field2); + builder.append(field2); boolean present_field3 = true && (isSetField3()); - list.add(present_field3); + builder.append(present_field3); if (present_field3) - list.add(field3); + builder.append(field3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ThriftTestObj other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ThriftTestObj typedOther = (ThriftTestObj)other; - lastComparison = Boolean.valueOf(isSetField1()).compareTo(other.isSetField1()); + lastComparison = Boolean.valueOf(isSetField1()).compareTo(typedOther.isSetField1()); if (lastComparison != 0) { return lastComparison; } if (isSetField1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field1, other.field1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field1, typedOther.field1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetField2()).compareTo(other.isSetField2()); + lastComparison = Boolean.valueOf(isSetField2()).compareTo(typedOther.isSetField2()); if (lastComparison != 0) { return lastComparison; } if (isSetField2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field2, other.field2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field2, typedOther.field2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetField3()).compareTo(other.isSetField3()); + lastComparison = Boolean.valueOf(isSetField3()).compareTo(typedOther.isSetField3()); if (lastComparison != 0) { return lastComparison; } if (isSetField3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field3, other.field3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field3, typedOther.field3); if (lastComparison != 0) { return lastComparison; } @@ -530,12 +526,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftTestObj struc { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.field3 = new ArrayList(_list0.size); - InnerStruct _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = new InnerStruct(); - _elem1.read(iprot); - struct.field3.add(_elem1); + InnerStruct _elem2; // required + _elem2 = new InnerStruct(); + _elem2.read(iprot); + struct.field3.add(_elem2); } iprot.readListEnd(); } @@ -638,12 +634,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ThriftTestObj struct { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.field3 = new ArrayList(_list5.size); - InnerStruct _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = new InnerStruct(); - _elem6.read(iprot); - struct.field3.add(_elem6); + InnerStruct _elem7; // required + _elem7 = new InnerStruct(); + _elem7.read(iprot); + struct.field3.add(_elem7); } } struct.setField3IsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java index 6f0c721..07ea8b9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class Complex implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Complex implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Complex"); private static final org.apache.thrift.protocol.TField AINT_FIELD_DESC = new org.apache.thrift.protocol.TField("aint", org.apache.thrift.protocol.TType.I32, (short)1); @@ -231,26 +227,43 @@ public Complex(Complex other) { this.aString = other.aString; } if (other.isSetLint()) { - List __this__lint = new ArrayList(other.lint); + List __this__lint = new ArrayList(); + for (Integer other_element : other.lint) { + __this__lint.add(other_element); + } this.lint = __this__lint; } if (other.isSetLString()) { - List __this__lString = new ArrayList(other.lString); + List __this__lString = new ArrayList(); + for (String other_element : other.lString) { + __this__lString.add(other_element); + } this.lString = __this__lString; } if (other.isSetLintString()) { - List __this__lintString = new ArrayList(other.lintString.size()); + List __this__lintString = new ArrayList(); for (IntString other_element : other.lintString) { __this__lintString.add(new IntString(other_element)); } this.lintString = __this__lintString; } if (other.isSetMStringString()) { - Map __this__mStringString = new HashMap(other.mStringString); + Map __this__mStringString = new HashMap(); + for (Map.Entry other_element : other.mStringString.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__mStringString_copy_key = other_element_key; + + String __this__mStringString_copy_value = other_element_value; + + __this__mStringString.put(__this__mStringString_copy_key, __this__mStringString_copy_value); + } this.mStringString = __this__mStringString; } if (other.isSetAttributes()) { - Map>> __this__attributes = new HashMap>>(other.attributes.size()); + Map>> __this__attributes = new HashMap>>(); for (Map.Entry>> other_element : other.attributes.entrySet()) { String other_element_key = other_element.getKey(); @@ -258,7 +271,7 @@ public Complex(Complex other) { String __this__attributes_copy_key = other_element_key; - Map> __this__attributes_copy_value = new HashMap>(other_element_value.size()); + Map> __this__attributes_copy_value = new HashMap>(); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); @@ -266,7 +279,7 @@ public Complex(Complex other) { String __this__attributes_copy_value_copy_key = other_element_value_element_key; - Map __this__attributes_copy_value_copy_value = new HashMap(other_element_value_element_value.size()); + Map __this__attributes_copy_value_copy_value = new HashMap(); for (Map.Entry other_element_value_element_value_element : other_element_value_element_value.entrySet()) { String other_element_value_element_value_element_key = other_element_value_element_value_element.getKey(); @@ -700,7 +713,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case AINT: - return getAint(); + return Integer.valueOf(getAint()); case A_STRING: return getAString(); @@ -872,165 +885,165 @@ public boolean equals(Complex that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_aint = true; - list.add(present_aint); + builder.append(present_aint); if (present_aint) - list.add(aint); + builder.append(aint); boolean present_aString = true && (isSetAString()); - list.add(present_aString); + builder.append(present_aString); if (present_aString) - list.add(aString); + builder.append(aString); boolean present_lint = true && (isSetLint()); - list.add(present_lint); + builder.append(present_lint); if (present_lint) - list.add(lint); + builder.append(lint); boolean present_lString = true && (isSetLString()); - list.add(present_lString); + builder.append(present_lString); if (present_lString) - list.add(lString); + builder.append(lString); boolean present_lintString = true && (isSetLintString()); - list.add(present_lintString); + builder.append(present_lintString); if (present_lintString) - list.add(lintString); + builder.append(lintString); boolean present_mStringString = true && (isSetMStringString()); - list.add(present_mStringString); + builder.append(present_mStringString); if (present_mStringString) - list.add(mStringString); + builder.append(mStringString); boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); + builder.append(present_attributes); if (present_attributes) - list.add(attributes); + builder.append(attributes); boolean present_unionField1 = true && (isSetUnionField1()); - list.add(present_unionField1); + builder.append(present_unionField1); if (present_unionField1) - list.add(unionField1); + builder.append(unionField1); boolean present_unionField2 = true && (isSetUnionField2()); - list.add(present_unionField2); + builder.append(present_unionField2); if (present_unionField2) - list.add(unionField2); + builder.append(unionField2); boolean present_unionField3 = true && (isSetUnionField3()); - list.add(present_unionField3); + builder.append(present_unionField3); if (present_unionField3) - list.add(unionField3); + builder.append(unionField3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Complex other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Complex typedOther = (Complex)other; - lastComparison = Boolean.valueOf(isSetAint()).compareTo(other.isSetAint()); + lastComparison = Boolean.valueOf(isSetAint()).compareTo(typedOther.isSetAint()); if (lastComparison != 0) { return lastComparison; } if (isSetAint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aint, other.aint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aint, typedOther.aint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString()); + lastComparison = Boolean.valueOf(isSetAString()).compareTo(typedOther.isSetAString()); if (lastComparison != 0) { return lastComparison; } if (isSetAString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLint()).compareTo(other.isSetLint()); + lastComparison = Boolean.valueOf(isSetLint()).compareTo(typedOther.isSetLint()); if (lastComparison != 0) { return lastComparison; } if (isSetLint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lint, other.lint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lint, typedOther.lint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLString()).compareTo(other.isSetLString()); + lastComparison = Boolean.valueOf(isSetLString()).compareTo(typedOther.isSetLString()); if (lastComparison != 0) { return lastComparison; } if (isSetLString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lString, other.lString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lString, typedOther.lString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLintString()).compareTo(other.isSetLintString()); + lastComparison = Boolean.valueOf(isSetLintString()).compareTo(typedOther.isSetLintString()); if (lastComparison != 0) { return lastComparison; } if (isSetLintString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lintString, other.lintString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lintString, typedOther.lintString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMStringString()).compareTo(other.isSetMStringString()); + lastComparison = Boolean.valueOf(isSetMStringString()).compareTo(typedOther.isSetMStringString()); if (lastComparison != 0) { return lastComparison; } if (isSetMStringString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mStringString, other.mStringString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mStringString, typedOther.mStringString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField1()).compareTo(other.isSetUnionField1()); + lastComparison = Boolean.valueOf(isSetUnionField1()).compareTo(typedOther.isSetUnionField1()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField1, other.unionField1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField1, typedOther.unionField1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField2()).compareTo(other.isSetUnionField2()); + lastComparison = Boolean.valueOf(isSetUnionField2()).compareTo(typedOther.isSetUnionField2()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField2, other.unionField2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField2, typedOther.unionField2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField3()).compareTo(other.isSetUnionField3()); + lastComparison = Boolean.valueOf(isSetUnionField3()).compareTo(typedOther.isSetUnionField3()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField3, other.unionField3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField3, typedOther.unionField3); if (lastComparison != 0) { return lastComparison; } @@ -1196,11 +1209,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list18 = iprot.readListBegin(); struct.lint = new ArrayList(_list18.size); - int _elem19; - for (int _i20 = 0; _i20 < _list18.size; ++_i20) + for (int _i19 = 0; _i19 < _list18.size; ++_i19) { - _elem19 = iprot.readI32(); - struct.lint.add(_elem19); + int _elem20; // required + _elem20 = iprot.readI32(); + struct.lint.add(_elem20); } iprot.readListEnd(); } @@ -1214,11 +1227,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(); struct.lString = new ArrayList(_list21.size); - String _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = iprot.readString(); - struct.lString.add(_elem22); + String _elem23; // required + _elem23 = iprot.readString(); + struct.lString.add(_elem23); } iprot.readListEnd(); } @@ -1232,12 +1245,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); struct.lintString = new ArrayList(_list24.size); - IntString _elem25; - for (int _i26 = 0; _i26 < _list24.size; ++_i26) + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - _elem25 = new IntString(); - _elem25.read(iprot); - struct.lintString.add(_elem25); + IntString _elem26; // required + _elem26 = new IntString(); + _elem26.read(iprot); + struct.lintString.add(_elem26); } iprot.readListEnd(); } @@ -1251,13 +1264,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin(); struct.mStringString = new HashMap(2*_map27.size); - String _key28; - String _val29; - for (int _i30 = 0; _i30 < _map27.size; ++_i30) + for (int _i28 = 0; _i28 < _map27.size; ++_i28) { - _key28 = iprot.readString(); - _val29 = iprot.readString(); - struct.mStringString.put(_key28, _val29); + String _key29; // required + String _val30; // required + _key29 = iprot.readString(); + _val30 = iprot.readString(); + struct.mStringString.put(_key29, _val30); } iprot.readMapEnd(); } @@ -1271,38 +1284,38 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin(); struct.attributes = new HashMap>>(2*_map31.size); - String _key32; - Map> _val33; - for (int _i34 = 0; _i34 < _map31.size; ++_i34) + for (int _i32 = 0; _i32 < _map31.size; ++_i32) { - _key32 = iprot.readString(); + String _key33; // required + Map> _val34; // required + _key33 = iprot.readString(); { org.apache.thrift.protocol.TMap _map35 = iprot.readMapBegin(); - _val33 = new HashMap>(2*_map35.size); - String _key36; - Map _val37; - for (int _i38 = 0; _i38 < _map35.size; ++_i38) + _val34 = new HashMap>(2*_map35.size); + for (int _i36 = 0; _i36 < _map35.size; ++_i36) { - _key36 = iprot.readString(); + String _key37; // required + Map _val38; // required + _key37 = iprot.readString(); { org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin(); - _val37 = new HashMap(2*_map39.size); - String _key40; - PropValueUnion _val41; - for (int _i42 = 0; _i42 < _map39.size; ++_i42) + _val38 = new HashMap(2*_map39.size); + for (int _i40 = 0; _i40 < _map39.size; ++_i40) { - _key40 = iprot.readString(); - _val41 = new PropValueUnion(); - _val41.read(iprot); - _val37.put(_key40, _val41); + String _key41; // required + PropValueUnion _val42; // required + _key41 = iprot.readString(); + _val42 = new PropValueUnion(); + _val42.read(iprot); + _val38.put(_key41, _val42); } iprot.readMapEnd(); } - _val33.put(_key36, _val37); + _val34.put(_key37, _val38); } iprot.readMapEnd(); } - struct.attributes.put(_key32, _val33); + struct.attributes.put(_key33, _val34); } iprot.readMapEnd(); } @@ -1595,11 +1608,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list57 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.lint = new ArrayList(_list57.size); - int _elem58; - for (int _i59 = 0; _i59 < _list57.size; ++_i59) + for (int _i58 = 0; _i58 < _list57.size; ++_i58) { - _elem58 = iprot.readI32(); - struct.lint.add(_elem58); + int _elem59; // required + _elem59 = iprot.readI32(); + struct.lint.add(_elem59); } } struct.setLintIsSet(true); @@ -1608,11 +1621,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list60 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.lString = new ArrayList(_list60.size); - String _elem61; - for (int _i62 = 0; _i62 < _list60.size; ++_i62) + for (int _i61 = 0; _i61 < _list60.size; ++_i61) { - _elem61 = iprot.readString(); - struct.lString.add(_elem61); + String _elem62; // required + _elem62 = iprot.readString(); + struct.lString.add(_elem62); } } struct.setLStringIsSet(true); @@ -1621,12 +1634,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.lintString = new ArrayList(_list63.size); - IntString _elem64; - for (int _i65 = 0; _i65 < _list63.size; ++_i65) + for (int _i64 = 0; _i64 < _list63.size; ++_i64) { - _elem64 = new IntString(); - _elem64.read(iprot); - struct.lintString.add(_elem64); + IntString _elem65; // required + _elem65 = new IntString(); + _elem65.read(iprot); + struct.lintString.add(_elem65); } } struct.setLintStringIsSet(true); @@ -1635,13 +1648,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TMap _map66 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.mStringString = new HashMap(2*_map66.size); - String _key67; - String _val68; - for (int _i69 = 0; _i69 < _map66.size; ++_i69) + for (int _i67 = 0; _i67 < _map66.size; ++_i67) { - _key67 = iprot.readString(); - _val68 = iprot.readString(); - struct.mStringString.put(_key67, _val68); + String _key68; // required + String _val69; // required + _key68 = iprot.readString(); + _val69 = iprot.readString(); + struct.mStringString.put(_key68, _val69); } } struct.setMStringStringIsSet(true); @@ -1650,36 +1663,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TMap _map70 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.attributes = new HashMap>>(2*_map70.size); - String _key71; - Map> _val72; - for (int _i73 = 0; _i73 < _map70.size; ++_i73) + for (int _i71 = 0; _i71 < _map70.size; ++_i71) { - _key71 = iprot.readString(); + String _key72; // required + Map> _val73; // required + _key72 = iprot.readString(); { org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); - _val72 = new HashMap>(2*_map74.size); - String _key75; - Map _val76; - for (int _i77 = 0; _i77 < _map74.size; ++_i77) + _val73 = new HashMap>(2*_map74.size); + for (int _i75 = 0; _i75 < _map74.size; ++_i75) { - _key75 = iprot.readString(); + String _key76; // required + Map _val77; // required + _key76 = iprot.readString(); { org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val76 = new HashMap(2*_map78.size); - String _key79; - PropValueUnion _val80; - for (int _i81 = 0; _i81 < _map78.size; ++_i81) + _val77 = new HashMap(2*_map78.size); + for (int _i79 = 0; _i79 < _map78.size; ++_i79) { - _key79 = iprot.readString(); - _val80 = new PropValueUnion(); - _val80.read(iprot); - _val76.put(_key79, _val80); + String _key80; // required + PropValueUnion _val81; // required + _key80 = iprot.readString(); + _val81 = new PropValueUnion(); + _val81.read(iprot); + _val77.put(_key80, _val81); } } - _val72.put(_key75, _val76); + _val73.put(_key76, _val77); } } - struct.attributes.put(_key71, _val72); + struct.attributes.put(_key72, _val73); } } struct.setAttributesIsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java index ea7747f..bd580ad 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class IntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class IntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IntString"); private static final org.apache.thrift.protocol.TField MYINT_FIELD_DESC = new org.apache.thrift.protocol.TField("myint", org.apache.thrift.protocol.TType.I32, (short)1); @@ -273,13 +269,13 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case MYINT: - return getMyint(); + return Integer.valueOf(getMyint()); case MY_STRING: return getMyString(); case UNDERSCORE_INT: - return getUnderscore_int(); + return Integer.valueOf(getUnderscore_int()); } throw new IllegalStateException(); @@ -347,60 +343,60 @@ public boolean equals(IntString that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_myint = true; - list.add(present_myint); + builder.append(present_myint); if (present_myint) - list.add(myint); + builder.append(myint); boolean present_myString = true && (isSetMyString()); - list.add(present_myString); + builder.append(present_myString); if (present_myString) - list.add(myString); + builder.append(myString); boolean present_underscore_int = true; - list.add(present_underscore_int); + builder.append(present_underscore_int); if (present_underscore_int) - list.add(underscore_int); + builder.append(underscore_int); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(IntString other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + IntString typedOther = (IntString)other; - lastComparison = Boolean.valueOf(isSetMyint()).compareTo(other.isSetMyint()); + lastComparison = Boolean.valueOf(isSetMyint()).compareTo(typedOther.isSetMyint()); if (lastComparison != 0) { return lastComparison; } if (isSetMyint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, other.myint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, typedOther.myint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMyString()).compareTo(other.isSetMyString()); + lastComparison = Boolean.valueOf(isSetMyString()).compareTo(typedOther.isSetMyString()); if (lastComparison != 0) { return lastComparison; } if (isSetMyString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, other.myString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, typedOther.myString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnderscore_int()).compareTo(other.isSetUnderscore_int()); + lastComparison = Boolean.valueOf(isSetUnderscore_int()).compareTo(typedOther.isSetUnderscore_int()); if (lastComparison != 0) { return lastComparison; } if (isSetUnderscore_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, other.underscore_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, typedOther.underscore_int); if (lastComparison != 0) { return lastComparison; } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java index b8f8dfd..386fef9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class MegaStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MegaStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MegaStruct"); private static final org.apache.thrift.protocol.TField MY_BOOL_FIELD_DESC = new org.apache.thrift.protocol.TField("my_bool", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -209,7 +205,7 @@ public String getFieldName() { private static final int __MY_64BIT_INT_ISSET_ID = 4; private static final int __MY_DOUBLE_ISSET_ID = 5; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET}; + private _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -296,13 +292,25 @@ public MegaStruct(MegaStruct other) { } if (other.isSetMy_binary()) { this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(other.my_binary); +; } if (other.isSetMy_string_string_map()) { - Map __this__my_string_string_map = new HashMap(other.my_string_string_map); + Map __this__my_string_string_map = new HashMap(); + for (Map.Entry other_element : other.my_string_string_map.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__my_string_string_map_copy_key = other_element_key; + + String __this__my_string_string_map_copy_value = other_element_value; + + __this__my_string_string_map.put(__this__my_string_string_map_copy_key, __this__my_string_string_map_copy_value); + } this.my_string_string_map = __this__my_string_string_map; } if (other.isSetMy_string_enum_map()) { - Map __this__my_string_enum_map = new HashMap(other.my_string_enum_map.size()); + Map __this__my_string_enum_map = new HashMap(); for (Map.Entry other_element : other.my_string_enum_map.entrySet()) { String other_element_key = other_element.getKey(); @@ -317,7 +325,7 @@ public MegaStruct(MegaStruct other) { this.my_string_enum_map = __this__my_string_enum_map; } if (other.isSetMy_enum_string_map()) { - Map __this__my_enum_string_map = new HashMap(other.my_enum_string_map.size()); + Map __this__my_enum_string_map = new HashMap(); for (Map.Entry other_element : other.my_enum_string_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -332,7 +340,7 @@ public MegaStruct(MegaStruct other) { this.my_enum_string_map = __this__my_enum_string_map; } if (other.isSetMy_enum_struct_map()) { - Map __this__my_enum_struct_map = new HashMap(other.my_enum_struct_map.size()); + Map __this__my_enum_struct_map = new HashMap(); for (Map.Entry other_element : other.my_enum_struct_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -347,7 +355,7 @@ public MegaStruct(MegaStruct other) { this.my_enum_struct_map = __this__my_enum_struct_map; } if (other.isSetMy_enum_stringlist_map()) { - Map> __this__my_enum_stringlist_map = new HashMap>(other.my_enum_stringlist_map.size()); + Map> __this__my_enum_stringlist_map = new HashMap>(); for (Map.Entry> other_element : other.my_enum_stringlist_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -355,14 +363,17 @@ public MegaStruct(MegaStruct other) { MyEnum __this__my_enum_stringlist_map_copy_key = other_element_key; - List __this__my_enum_stringlist_map_copy_value = new ArrayList(other_element_value); + List __this__my_enum_stringlist_map_copy_value = new ArrayList(); + for (String other_element_value_element : other_element_value) { + __this__my_enum_stringlist_map_copy_value.add(other_element_value_element); + } __this__my_enum_stringlist_map.put(__this__my_enum_stringlist_map_copy_key, __this__my_enum_stringlist_map_copy_value); } this.my_enum_stringlist_map = __this__my_enum_stringlist_map; } if (other.isSetMy_enum_structlist_map()) { - Map> __this__my_enum_structlist_map = new HashMap>(other.my_enum_structlist_map.size()); + Map> __this__my_enum_structlist_map = new HashMap>(); for (Map.Entry> other_element : other.my_enum_structlist_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -370,7 +381,7 @@ public MegaStruct(MegaStruct other) { MyEnum __this__my_enum_structlist_map_copy_key = other_element_key; - List __this__my_enum_structlist_map_copy_value = new ArrayList(other_element_value.size()); + List __this__my_enum_structlist_map_copy_value = new ArrayList(); for (MiniStruct other_element_value_element : other_element_value) { __this__my_enum_structlist_map_copy_value.add(new MiniStruct(other_element_value_element)); } @@ -380,36 +391,42 @@ public MegaStruct(MegaStruct other) { this.my_enum_structlist_map = __this__my_enum_structlist_map; } if (other.isSetMy_stringlist()) { - List __this__my_stringlist = new ArrayList(other.my_stringlist); + List __this__my_stringlist = new ArrayList(); + for (String other_element : other.my_stringlist) { + __this__my_stringlist.add(other_element); + } this.my_stringlist = __this__my_stringlist; } if (other.isSetMy_structlist()) { - List __this__my_structlist = new ArrayList(other.my_structlist.size()); + List __this__my_structlist = new ArrayList(); for (MiniStruct other_element : other.my_structlist) { __this__my_structlist.add(new MiniStruct(other_element)); } this.my_structlist = __this__my_structlist; } if (other.isSetMy_enumlist()) { - List __this__my_enumlist = new ArrayList(other.my_enumlist.size()); + List __this__my_enumlist = new ArrayList(); for (MyEnum other_element : other.my_enumlist) { __this__my_enumlist.add(other_element); } this.my_enumlist = __this__my_enumlist; } if (other.isSetMy_stringset()) { - Set __this__my_stringset = new HashSet(other.my_stringset); + Set __this__my_stringset = new HashSet(); + for (String other_element : other.my_stringset) { + __this__my_stringset.add(other_element); + } this.my_stringset = __this__my_stringset; } if (other.isSetMy_enumset()) { - Set __this__my_enumset = new HashSet(other.my_enumset.size()); + Set __this__my_enumset = new HashSet(); for (MyEnum other_element : other.my_enumset) { __this__my_enumset.add(other_element); } this.my_enumset = __this__my_enumset; } if (other.isSetMy_structset()) { - Set __this__my_structset = new HashSet(other.my_structset.size()); + Set __this__my_structset = new HashSet(); for (MiniStruct other_element : other.my_structset) { __this__my_structset.add(new MiniStruct(other_element)); } @@ -612,15 +629,15 @@ public void setMy_stringIsSet(boolean value) { } public ByteBuffer bufferForMy_binary() { - return org.apache.thrift.TBaseHelper.copyBinary(my_binary); + return my_binary; } public void setMy_binary(byte[] my_binary) { - this.my_binary = my_binary == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(my_binary, my_binary.length)); + setMy_binary(my_binary == null ? (ByteBuffer)null : ByteBuffer.wrap(my_binary)); } public void setMy_binary(ByteBuffer my_binary) { - this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(my_binary); + this.my_binary = my_binary; } public void unsetMy_binary() { @@ -1238,22 +1255,22 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case MY_BOOL: - return isMy_bool(); + return Boolean.valueOf(isMy_bool()); case MY_BYTE: - return getMy_byte(); + return Byte.valueOf(getMy_byte()); case MY_16BIT_INT: - return getMy_16bit_int(); + return Short.valueOf(getMy_16bit_int()); case MY_32BIT_INT: - return getMy_32bit_int(); + return Integer.valueOf(getMy_32bit_int()); case MY_64BIT_INT: - return getMy_64bit_int(); + return Long.valueOf(getMy_64bit_int()); case MY_DOUBLE: - return getMy_double(); + return Double.valueOf(getMy_double()); case MY_STRING: return getMy_string(); @@ -1550,315 +1567,315 @@ public boolean equals(MegaStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_my_bool = true && (isSetMy_bool()); - list.add(present_my_bool); + builder.append(present_my_bool); if (present_my_bool) - list.add(my_bool); + builder.append(my_bool); boolean present_my_byte = true && (isSetMy_byte()); - list.add(present_my_byte); + builder.append(present_my_byte); if (present_my_byte) - list.add(my_byte); + builder.append(my_byte); boolean present_my_16bit_int = true && (isSetMy_16bit_int()); - list.add(present_my_16bit_int); + builder.append(present_my_16bit_int); if (present_my_16bit_int) - list.add(my_16bit_int); + builder.append(my_16bit_int); boolean present_my_32bit_int = true && (isSetMy_32bit_int()); - list.add(present_my_32bit_int); + builder.append(present_my_32bit_int); if (present_my_32bit_int) - list.add(my_32bit_int); + builder.append(my_32bit_int); boolean present_my_64bit_int = true && (isSetMy_64bit_int()); - list.add(present_my_64bit_int); + builder.append(present_my_64bit_int); if (present_my_64bit_int) - list.add(my_64bit_int); + builder.append(my_64bit_int); boolean present_my_double = true && (isSetMy_double()); - list.add(present_my_double); + builder.append(present_my_double); if (present_my_double) - list.add(my_double); + builder.append(my_double); boolean present_my_string = true && (isSetMy_string()); - list.add(present_my_string); + builder.append(present_my_string); if (present_my_string) - list.add(my_string); + builder.append(my_string); boolean present_my_binary = true && (isSetMy_binary()); - list.add(present_my_binary); + builder.append(present_my_binary); if (present_my_binary) - list.add(my_binary); + builder.append(my_binary); boolean present_my_string_string_map = true && (isSetMy_string_string_map()); - list.add(present_my_string_string_map); + builder.append(present_my_string_string_map); if (present_my_string_string_map) - list.add(my_string_string_map); + builder.append(my_string_string_map); boolean present_my_string_enum_map = true && (isSetMy_string_enum_map()); - list.add(present_my_string_enum_map); + builder.append(present_my_string_enum_map); if (present_my_string_enum_map) - list.add(my_string_enum_map); + builder.append(my_string_enum_map); boolean present_my_enum_string_map = true && (isSetMy_enum_string_map()); - list.add(present_my_enum_string_map); + builder.append(present_my_enum_string_map); if (present_my_enum_string_map) - list.add(my_enum_string_map); + builder.append(my_enum_string_map); boolean present_my_enum_struct_map = true && (isSetMy_enum_struct_map()); - list.add(present_my_enum_struct_map); + builder.append(present_my_enum_struct_map); if (present_my_enum_struct_map) - list.add(my_enum_struct_map); + builder.append(my_enum_struct_map); boolean present_my_enum_stringlist_map = true && (isSetMy_enum_stringlist_map()); - list.add(present_my_enum_stringlist_map); + builder.append(present_my_enum_stringlist_map); if (present_my_enum_stringlist_map) - list.add(my_enum_stringlist_map); + builder.append(my_enum_stringlist_map); boolean present_my_enum_structlist_map = true && (isSetMy_enum_structlist_map()); - list.add(present_my_enum_structlist_map); + builder.append(present_my_enum_structlist_map); if (present_my_enum_structlist_map) - list.add(my_enum_structlist_map); + builder.append(my_enum_structlist_map); boolean present_my_stringlist = true && (isSetMy_stringlist()); - list.add(present_my_stringlist); + builder.append(present_my_stringlist); if (present_my_stringlist) - list.add(my_stringlist); + builder.append(my_stringlist); boolean present_my_structlist = true && (isSetMy_structlist()); - list.add(present_my_structlist); + builder.append(present_my_structlist); if (present_my_structlist) - list.add(my_structlist); + builder.append(my_structlist); boolean present_my_enumlist = true && (isSetMy_enumlist()); - list.add(present_my_enumlist); + builder.append(present_my_enumlist); if (present_my_enumlist) - list.add(my_enumlist); + builder.append(my_enumlist); boolean present_my_stringset = true && (isSetMy_stringset()); - list.add(present_my_stringset); + builder.append(present_my_stringset); if (present_my_stringset) - list.add(my_stringset); + builder.append(my_stringset); boolean present_my_enumset = true && (isSetMy_enumset()); - list.add(present_my_enumset); + builder.append(present_my_enumset); if (present_my_enumset) - list.add(my_enumset); + builder.append(my_enumset); boolean present_my_structset = true && (isSetMy_structset()); - list.add(present_my_structset); + builder.append(present_my_structset); if (present_my_structset) - list.add(my_structset); + builder.append(my_structset); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MegaStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MegaStruct typedOther = (MegaStruct)other; - lastComparison = Boolean.valueOf(isSetMy_bool()).compareTo(other.isSetMy_bool()); + lastComparison = Boolean.valueOf(isSetMy_bool()).compareTo(typedOther.isSetMy_bool()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_bool()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_bool, other.my_bool); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_bool, typedOther.my_bool); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_byte()).compareTo(other.isSetMy_byte()); + lastComparison = Boolean.valueOf(isSetMy_byte()).compareTo(typedOther.isSetMy_byte()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_byte()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_byte, other.my_byte); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_byte, typedOther.my_byte); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_16bit_int()).compareTo(other.isSetMy_16bit_int()); + lastComparison = Boolean.valueOf(isSetMy_16bit_int()).compareTo(typedOther.isSetMy_16bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_16bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_16bit_int, other.my_16bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_16bit_int, typedOther.my_16bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_32bit_int()).compareTo(other.isSetMy_32bit_int()); + lastComparison = Boolean.valueOf(isSetMy_32bit_int()).compareTo(typedOther.isSetMy_32bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_32bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_32bit_int, other.my_32bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_32bit_int, typedOther.my_32bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_64bit_int()).compareTo(other.isSetMy_64bit_int()); + lastComparison = Boolean.valueOf(isSetMy_64bit_int()).compareTo(typedOther.isSetMy_64bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_64bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_64bit_int, other.my_64bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_64bit_int, typedOther.my_64bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_double()).compareTo(other.isSetMy_double()); + lastComparison = Boolean.valueOf(isSetMy_double()).compareTo(typedOther.isSetMy_double()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_double()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_double, other.my_double); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_double, typedOther.my_double); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(other.isSetMy_string()); + lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(typedOther.isSetMy_string()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, other.my_string); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, typedOther.my_string); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_binary()).compareTo(other.isSetMy_binary()); + lastComparison = Boolean.valueOf(isSetMy_binary()).compareTo(typedOther.isSetMy_binary()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_binary()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_binary, other.my_binary); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_binary, typedOther.my_binary); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string_string_map()).compareTo(other.isSetMy_string_string_map()); + lastComparison = Boolean.valueOf(isSetMy_string_string_map()).compareTo(typedOther.isSetMy_string_string_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string_string_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_string_map, other.my_string_string_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_string_map, typedOther.my_string_string_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string_enum_map()).compareTo(other.isSetMy_string_enum_map()); + lastComparison = Boolean.valueOf(isSetMy_string_enum_map()).compareTo(typedOther.isSetMy_string_enum_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string_enum_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_enum_map, other.my_string_enum_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_enum_map, typedOther.my_string_enum_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_string_map()).compareTo(other.isSetMy_enum_string_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_string_map()).compareTo(typedOther.isSetMy_enum_string_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_string_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_string_map, other.my_enum_string_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_string_map, typedOther.my_enum_string_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_struct_map()).compareTo(other.isSetMy_enum_struct_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_struct_map()).compareTo(typedOther.isSetMy_enum_struct_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_struct_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_struct_map, other.my_enum_struct_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_struct_map, typedOther.my_enum_struct_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_stringlist_map()).compareTo(other.isSetMy_enum_stringlist_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_stringlist_map()).compareTo(typedOther.isSetMy_enum_stringlist_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_stringlist_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_stringlist_map, other.my_enum_stringlist_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_stringlist_map, typedOther.my_enum_stringlist_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_structlist_map()).compareTo(other.isSetMy_enum_structlist_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_structlist_map()).compareTo(typedOther.isSetMy_enum_structlist_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_structlist_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_structlist_map, other.my_enum_structlist_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_structlist_map, typedOther.my_enum_structlist_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_stringlist()).compareTo(other.isSetMy_stringlist()); + lastComparison = Boolean.valueOf(isSetMy_stringlist()).compareTo(typedOther.isSetMy_stringlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_stringlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringlist, other.my_stringlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringlist, typedOther.my_stringlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_structlist()).compareTo(other.isSetMy_structlist()); + lastComparison = Boolean.valueOf(isSetMy_structlist()).compareTo(typedOther.isSetMy_structlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_structlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structlist, other.my_structlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structlist, typedOther.my_structlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enumlist()).compareTo(other.isSetMy_enumlist()); + lastComparison = Boolean.valueOf(isSetMy_enumlist()).compareTo(typedOther.isSetMy_enumlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enumlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumlist, other.my_enumlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumlist, typedOther.my_enumlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_stringset()).compareTo(other.isSetMy_stringset()); + lastComparison = Boolean.valueOf(isSetMy_stringset()).compareTo(typedOther.isSetMy_stringset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_stringset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringset, other.my_stringset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringset, typedOther.my_stringset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enumset()).compareTo(other.isSetMy_enumset()); + lastComparison = Boolean.valueOf(isSetMy_enumset()).compareTo(typedOther.isSetMy_enumset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enumset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumset, other.my_enumset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumset, typedOther.my_enumset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_structset()).compareTo(other.isSetMy_structset()); + lastComparison = Boolean.valueOf(isSetMy_structset()).compareTo(typedOther.isSetMy_structset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_structset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structset, other.my_structset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structset, typedOther.my_structset); if (lastComparison != 0) { return lastComparison; } @@ -2172,13 +2189,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); struct.my_string_string_map = new HashMap(2*_map0.size); - String _key1; - String _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + for (int _i1 = 0; _i1 < _map0.size; ++_i1) { - _key1 = iprot.readString(); - _val2 = iprot.readString(); - struct.my_string_string_map.put(_key1, _val2); + String _key2; // required + String _val3; // required + _key2 = iprot.readString(); + _val3 = iprot.readString(); + struct.my_string_string_map.put(_key2, _val3); } iprot.readMapEnd(); } @@ -2192,13 +2209,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map4 = iprot.readMapBegin(); struct.my_string_enum_map = new HashMap(2*_map4.size); - String _key5; - MyEnum _val6; - for (int _i7 = 0; _i7 < _map4.size; ++_i7) + for (int _i5 = 0; _i5 < _map4.size; ++_i5) { - _key5 = iprot.readString(); - _val6 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_string_enum_map.put(_key5, _val6); + String _key6; // required + MyEnum _val7; // required + _key6 = iprot.readString(); + _val7 = MyEnum.findByValue(iprot.readI32()); + struct.my_string_enum_map.put(_key6, _val7); } iprot.readMapEnd(); } @@ -2212,13 +2229,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); struct.my_enum_string_map = new HashMap(2*_map8.size); - MyEnum _key9; - String _val10; - for (int _i11 = 0; _i11 < _map8.size; ++_i11) + for (int _i9 = 0; _i9 < _map8.size; ++_i9) { - _key9 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val10 = iprot.readString(); - struct.my_enum_string_map.put(_key9, _val10); + MyEnum _key10; // required + String _val11; // required + _key10 = MyEnum.findByValue(iprot.readI32()); + _val11 = iprot.readString(); + struct.my_enum_string_map.put(_key10, _val11); } iprot.readMapEnd(); } @@ -2232,14 +2249,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin(); struct.my_enum_struct_map = new HashMap(2*_map12.size); - MyEnum _key13; - MiniStruct _val14; - for (int _i15 = 0; _i15 < _map12.size; ++_i15) + for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - _key13 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val14 = new MiniStruct(); - _val14.read(iprot); - struct.my_enum_struct_map.put(_key13, _val14); + MyEnum _key14; // required + MiniStruct _val15; // required + _key14 = MyEnum.findByValue(iprot.readI32()); + _val15 = new MiniStruct(); + _val15.read(iprot); + struct.my_enum_struct_map.put(_key14, _val15); } iprot.readMapEnd(); } @@ -2253,23 +2270,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin(); struct.my_enum_stringlist_map = new HashMap>(2*_map16.size); - MyEnum _key17; - List _val18; - for (int _i19 = 0; _i19 < _map16.size; ++_i19) + for (int _i17 = 0; _i17 < _map16.size; ++_i17) { - _key17 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key18; // required + List _val19; // required + _key18 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list20 = iprot.readListBegin(); - _val18 = new ArrayList(_list20.size); - String _elem21; - for (int _i22 = 0; _i22 < _list20.size; ++_i22) + _val19 = new ArrayList(_list20.size); + for (int _i21 = 0; _i21 < _list20.size; ++_i21) { - _elem21 = iprot.readString(); - _val18.add(_elem21); + String _elem22; // required + _elem22 = iprot.readString(); + _val19.add(_elem22); } iprot.readListEnd(); } - struct.my_enum_stringlist_map.put(_key17, _val18); + struct.my_enum_stringlist_map.put(_key18, _val19); } iprot.readMapEnd(); } @@ -2283,24 +2300,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map23 = iprot.readMapBegin(); struct.my_enum_structlist_map = new HashMap>(2*_map23.size); - MyEnum _key24; - List _val25; - for (int _i26 = 0; _i26 < _map23.size; ++_i26) + for (int _i24 = 0; _i24 < _map23.size; ++_i24) { - _key24 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key25; // required + List _val26; // required + _key25 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list27 = iprot.readListBegin(); - _val25 = new ArrayList(_list27.size); - MiniStruct _elem28; - for (int _i29 = 0; _i29 < _list27.size; ++_i29) + _val26 = new ArrayList(_list27.size); + for (int _i28 = 0; _i28 < _list27.size; ++_i28) { - _elem28 = new MiniStruct(); - _elem28.read(iprot); - _val25.add(_elem28); + MiniStruct _elem29; // required + _elem29 = new MiniStruct(); + _elem29.read(iprot); + _val26.add(_elem29); } iprot.readListEnd(); } - struct.my_enum_structlist_map.put(_key24, _val25); + struct.my_enum_structlist_map.put(_key25, _val26); } iprot.readMapEnd(); } @@ -2314,11 +2331,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); struct.my_stringlist = new ArrayList(_list30.size); - String _elem31; - for (int _i32 = 0; _i32 < _list30.size; ++_i32) + for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - _elem31 = iprot.readString(); - struct.my_stringlist.add(_elem31); + String _elem32; // required + _elem32 = iprot.readString(); + struct.my_stringlist.add(_elem32); } iprot.readListEnd(); } @@ -2332,12 +2349,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list33 = iprot.readListBegin(); struct.my_structlist = new ArrayList(_list33.size); - MiniStruct _elem34; - for (int _i35 = 0; _i35 < _list33.size; ++_i35) + for (int _i34 = 0; _i34 < _list33.size; ++_i34) { - _elem34 = new MiniStruct(); - _elem34.read(iprot); - struct.my_structlist.add(_elem34); + MiniStruct _elem35; // required + _elem35 = new MiniStruct(); + _elem35.read(iprot); + struct.my_structlist.add(_elem35); } iprot.readListEnd(); } @@ -2351,11 +2368,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list36 = iprot.readListBegin(); struct.my_enumlist = new ArrayList(_list36.size); - MyEnum _elem37; - for (int _i38 = 0; _i38 < _list36.size; ++_i38) + for (int _i37 = 0; _i37 < _list36.size; ++_i37) { - _elem37 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumlist.add(_elem37); + MyEnum _elem38; // required + _elem38 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumlist.add(_elem38); } iprot.readListEnd(); } @@ -2369,11 +2386,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set39 = iprot.readSetBegin(); struct.my_stringset = new HashSet(2*_set39.size); - String _elem40; - for (int _i41 = 0; _i41 < _set39.size; ++_i41) + for (int _i40 = 0; _i40 < _set39.size; ++_i40) { - _elem40 = iprot.readString(); - struct.my_stringset.add(_elem40); + String _elem41; // required + _elem41 = iprot.readString(); + struct.my_stringset.add(_elem41); } iprot.readSetEnd(); } @@ -2387,11 +2404,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set42 = iprot.readSetBegin(); struct.my_enumset = new HashSet(2*_set42.size); - MyEnum _elem43; - for (int _i44 = 0; _i44 < _set42.size; ++_i44) + for (int _i43 = 0; _i43 < _set42.size; ++_i43) { - _elem43 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumset.add(_elem43); + MyEnum _elem44; // required + _elem44 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumset.add(_elem44); } iprot.readSetEnd(); } @@ -2405,12 +2422,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set45 = iprot.readSetBegin(); struct.my_structset = new HashSet(2*_set45.size); - MiniStruct _elem46; - for (int _i47 = 0; _i47 < _set45.size; ++_i47) + for (int _i46 = 0; _i46 < _set45.size; ++_i46) { - _elem46 = new MiniStruct(); - _elem46.read(iprot); - struct.my_structset.add(_elem46); + MiniStruct _elem47; // required + _elem47 = new MiniStruct(); + _elem47.read(iprot); + struct.my_structset.add(_elem47); } iprot.readSetEnd(); } @@ -2935,13 +2952,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map76 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_string_string_map = new HashMap(2*_map76.size); - String _key77; - String _val78; - for (int _i79 = 0; _i79 < _map76.size; ++_i79) + for (int _i77 = 0; _i77 < _map76.size; ++_i77) { - _key77 = iprot.readString(); - _val78 = iprot.readString(); - struct.my_string_string_map.put(_key77, _val78); + String _key78; // required + String _val79; // required + _key78 = iprot.readString(); + _val79 = iprot.readString(); + struct.my_string_string_map.put(_key78, _val79); } } struct.setMy_string_string_mapIsSet(true); @@ -2950,13 +2967,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map80 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_string_enum_map = new HashMap(2*_map80.size); - String _key81; - MyEnum _val82; - for (int _i83 = 0; _i83 < _map80.size; ++_i83) + for (int _i81 = 0; _i81 < _map80.size; ++_i81) { - _key81 = iprot.readString(); - _val82 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_string_enum_map.put(_key81, _val82); + String _key82; // required + MyEnum _val83; // required + _key82 = iprot.readString(); + _val83 = MyEnum.findByValue(iprot.readI32()); + struct.my_string_enum_map.put(_key82, _val83); } } struct.setMy_string_enum_mapIsSet(true); @@ -2965,13 +2982,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_enum_string_map = new HashMap(2*_map84.size); - MyEnum _key85; - String _val86; - for (int _i87 = 0; _i87 < _map84.size; ++_i87) + for (int _i85 = 0; _i85 < _map84.size; ++_i85) { - _key85 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val86 = iprot.readString(); - struct.my_enum_string_map.put(_key85, _val86); + MyEnum _key86; // required + String _val87; // required + _key86 = MyEnum.findByValue(iprot.readI32()); + _val87 = iprot.readString(); + struct.my_enum_string_map.put(_key86, _val87); } } struct.setMy_enum_string_mapIsSet(true); @@ -2980,14 +2997,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_enum_struct_map = new HashMap(2*_map88.size); - MyEnum _key89; - MiniStruct _val90; - for (int _i91 = 0; _i91 < _map88.size; ++_i91) + for (int _i89 = 0; _i89 < _map88.size; ++_i89) { - _key89 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val90 = new MiniStruct(); - _val90.read(iprot); - struct.my_enum_struct_map.put(_key89, _val90); + MyEnum _key90; // required + MiniStruct _val91; // required + _key90 = MyEnum.findByValue(iprot.readI32()); + _val91 = new MiniStruct(); + _val91.read(iprot); + struct.my_enum_struct_map.put(_key90, _val91); } } struct.setMy_enum_struct_mapIsSet(true); @@ -2996,22 +3013,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map92 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.my_enum_stringlist_map = new HashMap>(2*_map92.size); - MyEnum _key93; - List _val94; - for (int _i95 = 0; _i95 < _map92.size; ++_i95) + for (int _i93 = 0; _i93 < _map92.size; ++_i93) { - _key93 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key94; // required + List _val95; // required + _key94 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list96 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _val94 = new ArrayList(_list96.size); - String _elem97; - for (int _i98 = 0; _i98 < _list96.size; ++_i98) + _val95 = new ArrayList(_list96.size); + for (int _i97 = 0; _i97 < _list96.size; ++_i97) { - _elem97 = iprot.readString(); - _val94.add(_elem97); + String _elem98; // required + _elem98 = iprot.readString(); + _val95.add(_elem98); } } - struct.my_enum_stringlist_map.put(_key93, _val94); + struct.my_enum_stringlist_map.put(_key94, _val95); } } struct.setMy_enum_stringlist_mapIsSet(true); @@ -3020,23 +3037,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map99 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.my_enum_structlist_map = new HashMap>(2*_map99.size); - MyEnum _key100; - List _val101; - for (int _i102 = 0; _i102 < _map99.size; ++_i102) + for (int _i100 = 0; _i100 < _map99.size; ++_i100) { - _key100 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key101; // required + List _val102; // required + _key101 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val101 = new ArrayList(_list103.size); - MiniStruct _elem104; - for (int _i105 = 0; _i105 < _list103.size; ++_i105) + _val102 = new ArrayList(_list103.size); + for (int _i104 = 0; _i104 < _list103.size; ++_i104) { - _elem104 = new MiniStruct(); - _elem104.read(iprot); - _val101.add(_elem104); + MiniStruct _elem105; // required + _elem105 = new MiniStruct(); + _elem105.read(iprot); + _val102.add(_elem105); } } - struct.my_enum_structlist_map.put(_key100, _val101); + struct.my_enum_structlist_map.put(_key101, _val102); } } struct.setMy_enum_structlist_mapIsSet(true); @@ -3045,11 +3062,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list106 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_stringlist = new ArrayList(_list106.size); - String _elem107; - for (int _i108 = 0; _i108 < _list106.size; ++_i108) + for (int _i107 = 0; _i107 < _list106.size; ++_i107) { - _elem107 = iprot.readString(); - struct.my_stringlist.add(_elem107); + String _elem108; // required + _elem108 = iprot.readString(); + struct.my_stringlist.add(_elem108); } } struct.setMy_stringlistIsSet(true); @@ -3058,12 +3075,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_structlist = new ArrayList(_list109.size); - MiniStruct _elem110; - for (int _i111 = 0; _i111 < _list109.size; ++_i111) + for (int _i110 = 0; _i110 < _list109.size; ++_i110) { - _elem110 = new MiniStruct(); - _elem110.read(iprot); - struct.my_structlist.add(_elem110); + MiniStruct _elem111; // required + _elem111 = new MiniStruct(); + _elem111.read(iprot); + struct.my_structlist.add(_elem111); } } struct.setMy_structlistIsSet(true); @@ -3072,11 +3089,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list112 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_enumlist = new ArrayList(_list112.size); - MyEnum _elem113; - for (int _i114 = 0; _i114 < _list112.size; ++_i114) + for (int _i113 = 0; _i113 < _list112.size; ++_i113) { - _elem113 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumlist.add(_elem113); + MyEnum _elem114; // required + _elem114 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumlist.add(_elem114); } } struct.setMy_enumlistIsSet(true); @@ -3085,11 +3102,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set115 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_stringset = new HashSet(2*_set115.size); - String _elem116; - for (int _i117 = 0; _i117 < _set115.size; ++_i117) + for (int _i116 = 0; _i116 < _set115.size; ++_i116) { - _elem116 = iprot.readString(); - struct.my_stringset.add(_elem116); + String _elem117; // required + _elem117 = iprot.readString(); + struct.my_stringset.add(_elem117); } } struct.setMy_stringsetIsSet(true); @@ -3098,11 +3115,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set118 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_enumset = new HashSet(2*_set118.size); - MyEnum _elem119; - for (int _i120 = 0; _i120 < _set118.size; ++_i120) + for (int _i119 = 0; _i119 < _set118.size; ++_i119) { - _elem119 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumset.add(_elem119); + MyEnum _elem120; // required + _elem120 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumset.add(_elem120); } } struct.setMy_enumsetIsSet(true); @@ -3111,12 +3128,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set121 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_structset = new HashSet(2*_set121.size); - MiniStruct _elem122; - for (int _i123 = 0; _i123 < _set121.size; ++_i123) + for (int _i122 = 0; _i122 < _set121.size; ++_i122) { - _elem122 = new MiniStruct(); - _elem122.read(iprot); - struct.my_structset.add(_elem122); + MiniStruct _elem123; // required + _elem123 = new MiniStruct(); + _elem123.read(iprot); + struct.my_structset.add(_elem123); } } struct.setMy_structsetIsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java index 10f10d2..b1d3946 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class MiniStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MiniStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MiniStruct"); private static final org.apache.thrift.protocol.TField MY_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -116,7 +112,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM}; + private _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -291,45 +287,45 @@ public boolean equals(MiniStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_my_string = true && (isSetMy_string()); - list.add(present_my_string); + builder.append(present_my_string); if (present_my_string) - list.add(my_string); + builder.append(my_string); boolean present_my_enum = true && (isSetMy_enum()); - list.add(present_my_enum); + builder.append(present_my_enum); if (present_my_enum) - list.add(my_enum.getValue()); + builder.append(my_enum.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MiniStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MiniStruct typedOther = (MiniStruct)other; - lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(other.isSetMy_string()); + lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(typedOther.isSetMy_string()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, other.my_string); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, typedOther.my_string); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(other.isSetMy_enum()); + lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(typedOther.isSetMy_enum()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, other.my_enum); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, typedOther.my_enum); if (lastComparison != 0) { return lastComparison; } @@ -426,7 +422,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MiniStruct struct) break; case 2: // MY_ENUM if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + struct.my_enum = MyEnum.findByValue(iprot.readI32()); struct.setMy_enumIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -501,7 +497,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MiniStruct struct) t struct.setMy_stringIsSet(true); } if (incoming.get(1)) { - struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + struct.my_enum = MyEnum.findByValue(iprot.readI32()); struct.setMy_enumIsSet(true); } } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java index e5baf36..5bda9cc 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java index 92d5a0a..aa56dc9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class PropValueUnion extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropValueUnion"); private static final org.apache.thrift.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("intValue", org.apache.thrift.protocol.TType.I32, (short)1); @@ -301,11 +298,11 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); lString = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - lString.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + lString.add(_elem2); } iprot.readListEnd(); } @@ -320,13 +317,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TMap _map3 = iprot.readMapBegin(); unionMStringString = new HashMap(2*_map3.size); - String _key4; - String _val5; - for (int _i6 = 0; _i6 < _map3.size; ++_i6) + for (int _i4 = 0; _i4 < _map3.size; ++_i4) { - _key4 = iprot.readString(); - _val5 = iprot.readString(); - unionMStringString.put(_key4, _val5); + String _key5; // required + String _val6; // required + _key5 = iprot.readString(); + _val6 = iprot.readString(); + unionMStringString.put(_key5, _val6); } iprot.readMapEnd(); } @@ -339,7 +336,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -425,11 +421,11 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list9 = iprot.readListBegin(); lString = new ArrayList(_list9.size); - String _elem10; - for (int _i11 = 0; _i11 < _list9.size; ++_i11) + for (int _i10 = 0; _i10 < _list9.size; ++_i10) { - _elem10 = iprot.readString(); - lString.add(_elem10); + String _elem11; // required + _elem11 = iprot.readString(); + lString.add(_elem11); } iprot.readListEnd(); } @@ -439,13 +435,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin(); unionMStringString = new HashMap(2*_map12.size); - String _key13; - String _val14; - for (int _i15 = 0; _i15 < _map12.size; ++_i15) + for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - _key13 = iprot.readString(); - _val14 = iprot.readString(); - unionMStringString.put(_key13, _val14); + String _key14; // required + String _val15; // required + _key14 = iprot.readString(); + _val15 = iprot.readString(); + unionMStringString.put(_key14, _val15); } iprot.readMapEnd(); } @@ -699,19 +695,19 @@ public int compareTo(PropValueUnion other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java index a331638..676f2b2 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class SetIntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SetIntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetIntString"); private static final org.apache.thrift.protocol.TField S_INT_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("sIntString", org.apache.thrift.protocol.TType.SET, (short)1); @@ -141,7 +137,7 @@ public SetIntString( */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { - Set __this__sIntString = new HashSet(other.sIntString.size()); + Set __this__sIntString = new HashSet(); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(SetIntString that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sIntString = true && (isSetSIntString()); - list.add(present_sIntString); + builder.append(present_sIntString); if (present_sIntString) - list.add(sIntString); + builder.append(sIntString); boolean present_aString = true && (isSetAString()); - list.add(present_aString); + builder.append(present_aString); if (present_aString) - list.add(aString); + builder.append(aString); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SetIntString other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SetIntString typedOther = (SetIntString)other; - lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(other.isSetSIntString()); + lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(typedOther.isSetSIntString()); if (lastComparison != 0) { return lastComparison; } if (isSetSIntString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, other.sIntString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, typedOther.sIntString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString()); + lastComparison = Boolean.valueOf(isSetAString()).compareTo(typedOther.isSetAString()); if (lastComparison != 0) { return lastComparison; } if (isSetAString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString); if (lastComparison != 0) { return lastComparison; } @@ -433,12 +429,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetIntString struct { org.apache.thrift.protocol.TSet _set82 = iprot.readSetBegin(); struct.sIntString = new HashSet(2*_set82.size); - IntString _elem83; - for (int _i84 = 0; _i84 < _set82.size; ++_i84) + for (int _i83 = 0; _i83 < _set82.size; ++_i83) { - _elem83 = new IntString(); - _elem83.read(iprot); - struct.sIntString.add(_elem83); + IntString _elem84; // required + _elem84 = new IntString(); + _elem84.read(iprot); + struct.sIntString.add(_elem84); } iprot.readSetEnd(); } @@ -532,12 +528,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) { org.apache.thrift.protocol.TSet _set87 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sIntString = new HashSet(2*_set87.size); - IntString _elem88; - for (int _i89 = 0; _i89 < _set87.size; ++_i89) + for (int _i88 = 0; _i88 < _set87.size; ++_i88) { - _elem88 = new IntString(); - _elem88.read(iprot); - struct.sIntString.add(_elem88); + IntString _elem89; // required + _elem89 = new IntString(); + _elem89.read(iprot); + struct.sIntString.add(_elem89); } } struct.setSIntStringIsSet(true); diff --git a/serde/src/gen/thrift/gen-php/Types.php b/serde/src/gen/thrift/gen-php/Types.php index 27c5b25..8c2cea6 100644 --- a/serde/src/gen/thrift/gen-php/Types.php +++ b/serde/src/gen/thrift/gen-php/Types.php @@ -1,6 +1,8 @@ true, - "boolean" => true, - "tinyint" => true, - "smallint" => true, - "int" => true, - "bigint" => true, - "float" => true, - "double" => true, - "string" => true, - "varchar" => true, - "char" => true, - "date" => true, - "datetime" => true, - "timestamp" => true, - "interval_year_month" => true, - "interval_day_time" => true, - "decimal" => true, - "binary" => true, - ); - } - - static protected function init_CollectionTypes() { - return array( - "array" => true, - "map" => true, - ); - } - - static protected function init_IntegralTypes() { - return array( - "tinyint" => true, - "smallint" => true, - "int" => true, - "bigint" => true, - ); - } -} +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LIB'] = "serialization.lib"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_CLASS'] = "serialization.class"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_FORMAT'] = "serialization.format"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_DDL'] = "serialization.ddl"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_NULL_FORMAT'] = "serialization.null.format"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_ESCAPE_CRLF'] = "serialization.escape.crlf"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LAST_COLUMN_TAKES_REST'] = "serialization.last.column.takes.rest"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_SORT_ORDER'] = "serialization.sort.order"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_USE_JSON_OBJECTS'] = "serialization.use.json.object"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_ENCODING'] = "serialization.encoding"; + +$GLOBALS['serde_CONSTANTS']['FIELD_DELIM'] = "field.delim"; + +$GLOBALS['serde_CONSTANTS']['COLLECTION_DELIM'] = "colelction.delim"; + +$GLOBALS['serde_CONSTANTS']['LINE_DELIM'] = "line.delim"; + +$GLOBALS['serde_CONSTANTS']['MAPKEY_DELIM'] = "mapkey.delim"; + +$GLOBALS['serde_CONSTANTS']['QUOTE_CHAR'] = "quote.delim"; + +$GLOBALS['serde_CONSTANTS']['ESCAPE_CHAR'] = "escape.delim"; + +$GLOBALS['serde_CONSTANTS']['HEADER_COUNT'] = "skip.header.line.count"; + +$GLOBALS['serde_CONSTANTS']['FOOTER_COUNT'] = "skip.footer.line.count"; + +$GLOBALS['serde_CONSTANTS']['VOID_TYPE_NAME'] = "void"; + +$GLOBALS['serde_CONSTANTS']['BOOLEAN_TYPE_NAME'] = "boolean"; + +$GLOBALS['serde_CONSTANTS']['TINYINT_TYPE_NAME'] = "tinyint"; + +$GLOBALS['serde_CONSTANTS']['SMALLINT_TYPE_NAME'] = "smallint"; + +$GLOBALS['serde_CONSTANTS']['INT_TYPE_NAME'] = "int"; + +$GLOBALS['serde_CONSTANTS']['BIGINT_TYPE_NAME'] = "bigint"; + +$GLOBALS['serde_CONSTANTS']['FLOAT_TYPE_NAME'] = "float"; + +$GLOBALS['serde_CONSTANTS']['DOUBLE_TYPE_NAME'] = "double"; + +$GLOBALS['serde_CONSTANTS']['STRING_TYPE_NAME'] = "string"; + +$GLOBALS['serde_CONSTANTS']['CHAR_TYPE_NAME'] = "char"; + +$GLOBALS['serde_CONSTANTS']['VARCHAR_TYPE_NAME'] = "varchar"; + +$GLOBALS['serde_CONSTANTS']['DATE_TYPE_NAME'] = "date"; + +$GLOBALS['serde_CONSTANTS']['DATETIME_TYPE_NAME'] = "datetime"; + +$GLOBALS['serde_CONSTANTS']['TIMESTAMP_TYPE_NAME'] = "timestamp"; + +$GLOBALS['serde_CONSTANTS']['DECIMAL_TYPE_NAME'] = "decimal"; + +$GLOBALS['serde_CONSTANTS']['BINARY_TYPE_NAME'] = "binary"; + +$GLOBALS['serde_CONSTANTS']['INTERVAL_YEAR_MONTH_TYPE_NAME'] = "interval_year_month"; + +$GLOBALS['serde_CONSTANTS']['INTERVAL_DAY_TIME_TYPE_NAME'] = "interval_day_time"; + +$GLOBALS['serde_CONSTANTS']['LIST_TYPE_NAME'] = "array"; + +$GLOBALS['serde_CONSTANTS']['MAP_TYPE_NAME'] = "map"; + +$GLOBALS['serde_CONSTANTS']['STRUCT_TYPE_NAME'] = "struct"; + +$GLOBALS['serde_CONSTANTS']['UNION_TYPE_NAME'] = "uniontype"; + +$GLOBALS['serde_CONSTANTS']['LIST_COLUMNS'] = "columns"; + +$GLOBALS['serde_CONSTANTS']['LIST_COLUMN_TYPES'] = "columns.types"; + +$GLOBALS['serde_CONSTANTS']['TIMESTAMP_FORMATS'] = "timestamp.formats"; + +$GLOBALS['serde_CONSTANTS']['PrimitiveTypes'] = array( + "void" => true, + "boolean" => true, + "tinyint" => true, + "smallint" => true, + "int" => true, + "bigint" => true, + "float" => true, + "double" => true, + "string" => true, + "varchar" => true, + "char" => true, + "date" => true, + "datetime" => true, + "timestamp" => true, + "interval_year_month" => true, + "interval_day_time" => true, + "decimal" => true, + "binary" => true, +); + +$GLOBALS['serde_CONSTANTS']['CollectionTypes'] = array( + "array" => true, + "map" => true, +); + +$GLOBALS['serde_CONSTANTS']['IntegralTypes'] = array( + "tinyint" => true, + "smallint" => true, + "int" => true, + "bigint" => true, +); diff --git a/serde/src/gen/thrift/gen-py/complex/constants.py b/serde/src/gen/thrift/gen-py/complex/constants.py index 4a6492b..a236326 100644 --- a/serde/src/gen/thrift/gen-py/complex/constants.py +++ b/serde/src/gen/thrift/gen-py/complex/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/complex/ttypes.py b/serde/src/gen/thrift/gen-py/complex/ttypes.py index d39de75..c2748d0 100644 --- a/serde/src/gen/thrift/gen-py/complex/ttypes.py +++ b/serde/src/gen/thrift/gen-py/complex/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -60,27 +60,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.intValue = iprot.readI32() + self.intValue = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I64: - self.longValue = iprot.readI64() + self.longValue = iprot.readI64(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.stringValue = iprot.readString() + self.stringValue = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.DOUBLE: - self.doubleValue = iprot.readDouble() + self.doubleValue = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.BOOL: - self.flag = iprot.readBool() + self.flag = iprot.readBool(); else: iprot.skip(ftype) elif fid == 6: @@ -88,7 +88,7 @@ def read(self, iprot): self.lString = [] (_etype3, _size0) = iprot.readListBegin() for _i4 in xrange(_size0): - _elem5 = iprot.readString() + _elem5 = iprot.readString(); self.lString.append(_elem5) iprot.readListEnd() else: @@ -96,10 +96,10 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.unionMStringString = {} - (_ktype7, _vtype8, _size6 ) = iprot.readMapBegin() + (_ktype7, _vtype8, _size6 ) = iprot.readMapBegin() for _i10 in xrange(_size6): - _key11 = iprot.readString() - _val12 = iprot.readString() + _key11 = iprot.readString(); + _val12 = iprot.readString(); self.unionMStringString[_key11] = _val12 iprot.readMapEnd() else: @@ -156,17 +156,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.intValue) - value = (value * 31) ^ hash(self.longValue) - value = (value * 31) ^ hash(self.stringValue) - value = (value * 31) ^ hash(self.doubleValue) - value = (value * 31) ^ hash(self.flag) - value = (value * 31) ^ hash(self.lString) - value = (value * 31) ^ hash(self.unionMStringString) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -209,17 +198,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.myint = iprot.readI32() + self.myint = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.myString = iprot.readString() + self.myString = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.underscore_int = iprot.readI32() + self.underscore_int = iprot.readI32(); else: iprot.skip(ftype) else: @@ -251,13 +240,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.myint) - value = (value * 31) ^ hash(self.myString) - value = (value * 31) ^ hash(self.underscore_int) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -321,12 +303,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.aint = iprot.readI32() + self.aint = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.aString = iprot.readString() + self.aString = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -334,7 +316,7 @@ def read(self, iprot): self.lint = [] (_etype19, _size16) = iprot.readListBegin() for _i20 in xrange(_size16): - _elem21 = iprot.readI32() + _elem21 = iprot.readI32(); self.lint.append(_elem21) iprot.readListEnd() else: @@ -344,7 +326,7 @@ def read(self, iprot): self.lString = [] (_etype25, _size22) = iprot.readListBegin() for _i26 in xrange(_size22): - _elem27 = iprot.readString() + _elem27 = iprot.readString(); self.lString.append(_elem27) iprot.readListEnd() else: @@ -363,10 +345,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.mStringString = {} - (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() + (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() for _i38 in xrange(_size34): - _key39 = iprot.readString() - _val40 = iprot.readString() + _key39 = iprot.readString(); + _val40 = iprot.readString(); self.mStringString[_key39] = _val40 iprot.readMapEnd() else: @@ -374,17 +356,17 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.attributes = {} - (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() + (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() for _i45 in xrange(_size41): - _key46 = iprot.readString() + _key46 = iprot.readString(); _val47 = {} - (_ktype49, _vtype50, _size48 ) = iprot.readMapBegin() + (_ktype49, _vtype50, _size48 ) = iprot.readMapBegin() for _i52 in xrange(_size48): - _key53 = iprot.readString() + _key53 = iprot.readString(); _val54 = {} - (_ktype56, _vtype57, _size55 ) = iprot.readMapBegin() + (_ktype56, _vtype57, _size55 ) = iprot.readMapBegin() for _i59 in xrange(_size55): - _key60 = iprot.readString() + _key60 = iprot.readString(); _val61 = PropValueUnion() _val61.read(iprot) _val54[_key60] = _val61 @@ -495,20 +477,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.aint) - value = (value * 31) ^ hash(self.aString) - value = (value * 31) ^ hash(self.lint) - value = (value * 31) ^ hash(self.lString) - value = (value * 31) ^ hash(self.lintString) - value = (value * 31) ^ hash(self.mStringString) - value = (value * 31) ^ hash(self.attributes) - value = (value * 31) ^ hash(self.unionField1) - value = (value * 31) ^ hash(self.unionField2) - value = (value * 31) ^ hash(self.unionField3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -559,7 +527,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.aString = iprot.readString() + self.aString = iprot.readString(); else: iprot.skip(ftype) else: @@ -590,12 +558,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sIntString) - value = (value * 31) ^ hash(self.aString) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-py/megastruct/constants.py b/serde/src/gen/thrift/gen-py/megastruct/constants.py index 4a6492b..a236326 100644 --- a/serde/src/gen/thrift/gen-py/megastruct/constants.py +++ b/serde/src/gen/thrift/gen-py/megastruct/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/megastruct/ttypes.py b/serde/src/gen/thrift/gen-py/megastruct/ttypes.py index 93c9250..de516b2 100644 --- a/serde/src/gen/thrift/gen-py/megastruct/ttypes.py +++ b/serde/src/gen/thrift/gen-py/megastruct/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -59,12 +59,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.my_string = iprot.readString() + self.my_string = iprot.readString(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.my_enum = iprot.readI32() + self.my_enum = iprot.readI32(); else: iprot.skip(ftype) else: @@ -92,12 +92,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.my_string) - value = (value * 31) ^ hash(self.my_enum) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -191,51 +185,51 @@ def read(self, iprot): break if fid == 1: if ftype == TType.BOOL: - self.my_bool = iprot.readBool() + self.my_bool = iprot.readBool(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.BYTE: - self.my_byte = iprot.readByte() + self.my_byte = iprot.readByte(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I16: - self.my_16bit_int = iprot.readI16() + self.my_16bit_int = iprot.readI16(); else: iprot.skip(ftype) elif fid == 4: if ftype == TType.I32: - self.my_32bit_int = iprot.readI32() + self.my_32bit_int = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: if ftype == TType.I64: - self.my_64bit_int = iprot.readI64() + self.my_64bit_int = iprot.readI64(); else: iprot.skip(ftype) elif fid == 6: if ftype == TType.DOUBLE: - self.my_double = iprot.readDouble() + self.my_double = iprot.readDouble(); else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.my_string = iprot.readString() + self.my_string = iprot.readString(); else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.my_binary = iprot.readString() + self.my_binary = iprot.readString(); else: iprot.skip(ftype) elif fid == 9: if ftype == TType.MAP: self.my_string_string_map = {} - (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() + (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() for _i4 in xrange(_size0): - _key5 = iprot.readString() - _val6 = iprot.readString() + _key5 = iprot.readString(); + _val6 = iprot.readString(); self.my_string_string_map[_key5] = _val6 iprot.readMapEnd() else: @@ -243,10 +237,10 @@ def read(self, iprot): elif fid == 10: if ftype == TType.MAP: self.my_string_enum_map = {} - (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() + (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() for _i11 in xrange(_size7): - _key12 = iprot.readString() - _val13 = iprot.readI32() + _key12 = iprot.readString(); + _val13 = iprot.readI32(); self.my_string_enum_map[_key12] = _val13 iprot.readMapEnd() else: @@ -254,10 +248,10 @@ def read(self, iprot): elif fid == 11: if ftype == TType.MAP: self.my_enum_string_map = {} - (_ktype15, _vtype16, _size14 ) = iprot.readMapBegin() + (_ktype15, _vtype16, _size14 ) = iprot.readMapBegin() for _i18 in xrange(_size14): - _key19 = iprot.readI32() - _val20 = iprot.readString() + _key19 = iprot.readI32(); + _val20 = iprot.readString(); self.my_enum_string_map[_key19] = _val20 iprot.readMapEnd() else: @@ -265,9 +259,9 @@ def read(self, iprot): elif fid == 12: if ftype == TType.MAP: self.my_enum_struct_map = {} - (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() + (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() for _i25 in xrange(_size21): - _key26 = iprot.readI32() + _key26 = iprot.readI32(); _val27 = MiniStruct() _val27.read(iprot) self.my_enum_struct_map[_key26] = _val27 @@ -277,13 +271,13 @@ def read(self, iprot): elif fid == 13: if ftype == TType.MAP: self.my_enum_stringlist_map = {} - (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() + (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() for _i32 in xrange(_size28): - _key33 = iprot.readI32() + _key33 = iprot.readI32(); _val34 = [] (_etype38, _size35) = iprot.readListBegin() for _i39 in xrange(_size35): - _elem40 = iprot.readString() + _elem40 = iprot.readString(); _val34.append(_elem40) iprot.readListEnd() self.my_enum_stringlist_map[_key33] = _val34 @@ -293,9 +287,9 @@ def read(self, iprot): elif fid == 14: if ftype == TType.MAP: self.my_enum_structlist_map = {} - (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() + (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() for _i45 in xrange(_size41): - _key46 = iprot.readI32() + _key46 = iprot.readI32(); _val47 = [] (_etype51, _size48) = iprot.readListBegin() for _i52 in xrange(_size48): @@ -312,7 +306,7 @@ def read(self, iprot): self.my_stringlist = [] (_etype57, _size54) = iprot.readListBegin() for _i58 in xrange(_size54): - _elem59 = iprot.readString() + _elem59 = iprot.readString(); self.my_stringlist.append(_elem59) iprot.readListEnd() else: @@ -333,7 +327,7 @@ def read(self, iprot): self.my_enumlist = [] (_etype69, _size66) = iprot.readListBegin() for _i70 in xrange(_size66): - _elem71 = iprot.readI32() + _elem71 = iprot.readI32(); self.my_enumlist.append(_elem71) iprot.readListEnd() else: @@ -343,7 +337,7 @@ def read(self, iprot): self.my_stringset = set() (_etype75, _size72) = iprot.readSetBegin() for _i76 in xrange(_size72): - _elem77 = iprot.readString() + _elem77 = iprot.readString(); self.my_stringset.add(_elem77) iprot.readSetEnd() else: @@ -353,7 +347,7 @@ def read(self, iprot): self.my_enumset = set() (_etype81, _size78) = iprot.readSetBegin() for _i82 in xrange(_size78): - _elem83 = iprot.readI32() + _elem83 = iprot.readI32(); self.my_enumset.add(_elem83) iprot.readSetEnd() else: @@ -514,30 +508,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.my_bool) - value = (value * 31) ^ hash(self.my_byte) - value = (value * 31) ^ hash(self.my_16bit_int) - value = (value * 31) ^ hash(self.my_32bit_int) - value = (value * 31) ^ hash(self.my_64bit_int) - value = (value * 31) ^ hash(self.my_double) - value = (value * 31) ^ hash(self.my_string) - value = (value * 31) ^ hash(self.my_binary) - value = (value * 31) ^ hash(self.my_string_string_map) - value = (value * 31) ^ hash(self.my_string_enum_map) - value = (value * 31) ^ hash(self.my_enum_string_map) - value = (value * 31) ^ hash(self.my_enum_struct_map) - value = (value * 31) ^ hash(self.my_enum_stringlist_map) - value = (value * 31) ^ hash(self.my_enum_structlist_map) - value = (value * 31) ^ hash(self.my_stringlist) - value = (value * 31) ^ hash(self.my_structlist) - value = (value * 31) ^ hash(self.my_enumlist) - value = (value * 31) ^ hash(self.my_stringset) - value = (value * 31) ^ hash(self.my_enumset) - value = (value * 31) ^ hash(self.my_structset) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py index 6ef3bcf..2bedd33 100644 --- a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py +++ b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py index 8621257..ad3e280 100644 --- a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py +++ b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/testthrift/constants.py b/serde/src/gen/thrift/gen-py/testthrift/constants.py index 4a6492b..a236326 100644 --- a/serde/src/gen/thrift/gen-py/testthrift/constants.py +++ b/serde/src/gen/thrift/gen-py/testthrift/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/testthrift/ttypes.py b/serde/src/gen/thrift/gen-py/testthrift/ttypes.py index 133a602..a8b2224 100644 --- a/serde/src/gen/thrift/gen-py/testthrift/ttypes.py +++ b/serde/src/gen/thrift/gen-py/testthrift/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -42,7 +42,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.field0 = iprot.readI32() + self.field0 = iprot.readI32(); else: iprot.skip(ftype) else: @@ -66,11 +66,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.field0) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -113,12 +108,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.field1 = iprot.readI32() + self.field1 = iprot.readI32(); else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.field2 = iprot.readString() + self.field2 = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: @@ -164,13 +159,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.field1) - value = (value * 31) ^ hash(self.field2) - value = (value * 31) ^ hash(self.field3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-rb/complex_constants.rb b/serde/src/gen/thrift/gen-rb/complex_constants.rb index 8b75421..00ee2e8 100644 --- a/serde/src/gen/thrift/gen-rb/complex_constants.rb +++ b/serde/src/gen/thrift/gen-rb/complex_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/complex_types.rb b/serde/src/gen/thrift/gen-rb/complex_types.rb index 8a03efd..ffbd4d7 100644 --- a/serde/src/gen/thrift/gen-rb/complex_types.rb +++ b/serde/src/gen/thrift/gen-rb/complex_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/megastruct_constants.rb b/serde/src/gen/thrift/gen-rb/megastruct_constants.rb index ab01193..91193eb 100644 --- a/serde/src/gen/thrift/gen-rb/megastruct_constants.rb +++ b/serde/src/gen/thrift/gen-rb/megastruct_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/megastruct_types.rb b/serde/src/gen/thrift/gen-rb/megastruct_types.rb index fb8ccdf..c299cf3 100644 --- a/serde/src/gen/thrift/gen-rb/megastruct_types.rb +++ b/serde/src/gen/thrift/gen-rb/megastruct_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/serde_constants.rb b/serde/src/gen/thrift/gen-rb/serde_constants.rb index f98441b..47afe24 100644 --- a/serde/src/gen/thrift/gen-rb/serde_constants.rb +++ b/serde/src/gen/thrift/gen-rb/serde_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/serde_types.rb b/serde/src/gen/thrift/gen-rb/serde_types.rb index 3bf85ab..d426047 100644 --- a/serde/src/gen/thrift/gen-rb/serde_types.rb +++ b/serde/src/gen/thrift/gen-rb/serde_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/testthrift_constants.rb b/serde/src/gen/thrift/gen-rb/testthrift_constants.rb index a793bf2..13616ee 100644 --- a/serde/src/gen/thrift/gen-rb/testthrift_constants.rb +++ b/serde/src/gen/thrift/gen-rb/testthrift_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/testthrift_types.rb b/serde/src/gen/thrift/gen-rb/testthrift_types.rb index f265d42..3f76ae6 100644 --- a/serde/src/gen/thrift/gen-rb/testthrift_types.rb +++ b/serde/src/gen/thrift/gen-rb/testthrift_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.3) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-cpp/TCLIService.cpp b/service/src/gen/thrift/gen-cpp/TCLIService.cpp index 7e2c028..209ce63 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,14 +8,8 @@ namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { - -TCLIService_OpenSession_args::~TCLIService_OpenSession_args() throw() { -} - - uint32_t TCLIService_OpenSession_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; @@ -56,7 +50,6 @@ uint32_t TCLIService_OpenSession_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_OpenSession_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -68,14 +61,8 @@ uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_OpenSession_pargs::~TCLIService_OpenSession_pargs() throw() { -} - - uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_OpenSession_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -87,14 +74,8 @@ uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_OpenSession_result::~TCLIService_OpenSession_result() throw() { -} - - uint32_t TCLIService_OpenSession_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; @@ -149,14 +130,8 @@ uint32_t TCLIService_OpenSession_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_OpenSession_presult::~TCLIService_OpenSession_presult() throw() { -} - - uint32_t TCLIService_OpenSession_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; @@ -195,14 +170,8 @@ uint32_t TCLIService_OpenSession_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_CloseSession_args::~TCLIService_CloseSession_args() throw() { -} - - uint32_t TCLIService_CloseSession_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; @@ -243,7 +212,6 @@ uint32_t TCLIService_CloseSession_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CloseSession_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -255,14 +223,8 @@ uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_CloseSession_pargs::~TCLIService_CloseSession_pargs() throw() { -} - - uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CloseSession_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -274,14 +236,8 @@ uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_CloseSession_result::~TCLIService_CloseSession_result() throw() { -} - - uint32_t TCLIService_CloseSession_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; @@ -336,14 +292,8 @@ uint32_t TCLIService_CloseSession_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_CloseSession_presult::~TCLIService_CloseSession_presult() throw() { -} - - uint32_t TCLIService_CloseSession_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; @@ -382,14 +332,8 @@ uint32_t TCLIService_CloseSession_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetInfo_args::~TCLIService_GetInfo_args() throw() { -} - - uint32_t TCLIService_GetInfo_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; @@ -430,7 +374,6 @@ uint32_t TCLIService_GetInfo_args::read(::apache::thrift::protocol::TProtocol* i uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetInfo_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -442,14 +385,8 @@ uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* return xfer; } - -TCLIService_GetInfo_pargs::~TCLIService_GetInfo_pargs() throw() { -} - - uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetInfo_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -461,14 +398,8 @@ uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* return xfer; } - -TCLIService_GetInfo_result::~TCLIService_GetInfo_result() throw() { -} - - uint32_t TCLIService_GetInfo_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; @@ -523,14 +454,8 @@ uint32_t TCLIService_GetInfo_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -TCLIService_GetInfo_presult::~TCLIService_GetInfo_presult() throw() { -} - - uint32_t TCLIService_GetInfo_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; @@ -569,14 +494,8 @@ uint32_t TCLIService_GetInfo_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -TCLIService_ExecuteStatement_args::~TCLIService_ExecuteStatement_args() throw() { -} - - uint32_t TCLIService_ExecuteStatement_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; @@ -617,7 +536,6 @@ uint32_t TCLIService_ExecuteStatement_args::read(::apache::thrift::protocol::TPr uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -629,14 +547,8 @@ uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TP return xfer; } - -TCLIService_ExecuteStatement_pargs::~TCLIService_ExecuteStatement_pargs() throw() { -} - - uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -648,14 +560,8 @@ uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::T return xfer; } - -TCLIService_ExecuteStatement_result::~TCLIService_ExecuteStatement_result() throw() { -} - - uint32_t TCLIService_ExecuteStatement_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; @@ -710,14 +616,8 @@ uint32_t TCLIService_ExecuteStatement_result::write(::apache::thrift::protocol:: return xfer; } - -TCLIService_ExecuteStatement_presult::~TCLIService_ExecuteStatement_presult() throw() { -} - - uint32_t TCLIService_ExecuteStatement_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; @@ -756,14 +656,8 @@ uint32_t TCLIService_ExecuteStatement_presult::read(::apache::thrift::protocol:: return xfer; } - -TCLIService_GetTypeInfo_args::~TCLIService_GetTypeInfo_args() throw() { -} - - uint32_t TCLIService_GetTypeInfo_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; @@ -804,7 +698,6 @@ uint32_t TCLIService_GetTypeInfo_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -816,14 +709,8 @@ uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetTypeInfo_pargs::~TCLIService_GetTypeInfo_pargs() throw() { -} - - uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -835,14 +722,8 @@ uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetTypeInfo_result::~TCLIService_GetTypeInfo_result() throw() { -} - - uint32_t TCLIService_GetTypeInfo_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; @@ -897,14 +778,8 @@ uint32_t TCLIService_GetTypeInfo_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetTypeInfo_presult::~TCLIService_GetTypeInfo_presult() throw() { -} - - uint32_t TCLIService_GetTypeInfo_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; @@ -943,14 +818,8 @@ uint32_t TCLIService_GetTypeInfo_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetCatalogs_args::~TCLIService_GetCatalogs_args() throw() { -} - - uint32_t TCLIService_GetCatalogs_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; @@ -991,7 +860,6 @@ uint32_t TCLIService_GetCatalogs_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1003,14 +871,8 @@ uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetCatalogs_pargs::~TCLIService_GetCatalogs_pargs() throw() { -} - - uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1022,14 +884,8 @@ uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetCatalogs_result::~TCLIService_GetCatalogs_result() throw() { -} - - uint32_t TCLIService_GetCatalogs_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; @@ -1084,14 +940,8 @@ uint32_t TCLIService_GetCatalogs_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetCatalogs_presult::~TCLIService_GetCatalogs_presult() throw() { -} - - uint32_t TCLIService_GetCatalogs_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; @@ -1130,14 +980,8 @@ uint32_t TCLIService_GetCatalogs_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetSchemas_args::~TCLIService_GetSchemas_args() throw() { -} - - uint32_t TCLIService_GetSchemas_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; @@ -1178,7 +1022,6 @@ uint32_t TCLIService_GetSchemas_args::read(::apache::thrift::protocol::TProtocol uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetSchemas_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1190,14 +1033,8 @@ uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtoco return xfer; } - -TCLIService_GetSchemas_pargs::~TCLIService_GetSchemas_pargs() throw() { -} - - uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetSchemas_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1209,14 +1046,8 @@ uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetSchemas_result::~TCLIService_GetSchemas_result() throw() { -} - - uint32_t TCLIService_GetSchemas_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; @@ -1271,14 +1102,8 @@ uint32_t TCLIService_GetSchemas_result::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetSchemas_presult::~TCLIService_GetSchemas_presult() throw() { -} - - uint32_t TCLIService_GetSchemas_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; @@ -1317,14 +1142,8 @@ uint32_t TCLIService_GetSchemas_presult::read(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetTables_args::~TCLIService_GetTables_args() throw() { -} - - uint32_t TCLIService_GetTables_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; @@ -1365,7 +1184,6 @@ uint32_t TCLIService_GetTables_args::read(::apache::thrift::protocol::TProtocol* uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTables_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1377,14 +1195,8 @@ uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol return xfer; } - -TCLIService_GetTables_pargs::~TCLIService_GetTables_pargs() throw() { -} - - uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTables_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1396,14 +1208,8 @@ uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtoco return xfer; } - -TCLIService_GetTables_result::~TCLIService_GetTables_result() throw() { -} - - uint32_t TCLIService_GetTables_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; @@ -1458,14 +1264,8 @@ uint32_t TCLIService_GetTables_result::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetTables_presult::~TCLIService_GetTables_presult() throw() { -} - - uint32_t TCLIService_GetTables_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; @@ -1504,14 +1304,8 @@ uint32_t TCLIService_GetTables_presult::read(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetTableTypes_args::~TCLIService_GetTableTypes_args() throw() { -} - - uint32_t TCLIService_GetTableTypes_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; @@ -1552,7 +1346,6 @@ uint32_t TCLIService_GetTableTypes_args::read(::apache::thrift::protocol::TProto uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1564,14 +1357,8 @@ uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetTableTypes_pargs::~TCLIService_GetTableTypes_pargs() throw() { -} - - uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1583,14 +1370,8 @@ uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetTableTypes_result::~TCLIService_GetTableTypes_result() throw() { -} - - uint32_t TCLIService_GetTableTypes_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; @@ -1645,14 +1426,8 @@ uint32_t TCLIService_GetTableTypes_result::write(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_GetTableTypes_presult::~TCLIService_GetTableTypes_presult() throw() { -} - - uint32_t TCLIService_GetTableTypes_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; @@ -1691,14 +1466,8 @@ uint32_t TCLIService_GetTableTypes_presult::read(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_GetColumns_args::~TCLIService_GetColumns_args() throw() { -} - - uint32_t TCLIService_GetColumns_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; @@ -1739,7 +1508,6 @@ uint32_t TCLIService_GetColumns_args::read(::apache::thrift::protocol::TProtocol uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetColumns_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1751,14 +1519,8 @@ uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtoco return xfer; } - -TCLIService_GetColumns_pargs::~TCLIService_GetColumns_pargs() throw() { -} - - uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetColumns_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1770,14 +1532,8 @@ uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetColumns_result::~TCLIService_GetColumns_result() throw() { -} - - uint32_t TCLIService_GetColumns_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; @@ -1832,14 +1588,8 @@ uint32_t TCLIService_GetColumns_result::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetColumns_presult::~TCLIService_GetColumns_presult() throw() { -} - - uint32_t TCLIService_GetColumns_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; @@ -1878,14 +1628,8 @@ uint32_t TCLIService_GetColumns_presult::read(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetFunctions_args::~TCLIService_GetFunctions_args() throw() { -} - - uint32_t TCLIService_GetFunctions_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; @@ -1926,7 +1670,6 @@ uint32_t TCLIService_GetFunctions_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetFunctions_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1938,14 +1681,8 @@ uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetFunctions_pargs::~TCLIService_GetFunctions_pargs() throw() { -} - - uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetFunctions_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1957,14 +1694,8 @@ uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetFunctions_result::~TCLIService_GetFunctions_result() throw() { -} - - uint32_t TCLIService_GetFunctions_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; @@ -2019,14 +1750,8 @@ uint32_t TCLIService_GetFunctions_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetFunctions_presult::~TCLIService_GetFunctions_presult() throw() { -} - - uint32_t TCLIService_GetFunctions_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; @@ -2065,14 +1790,8 @@ uint32_t TCLIService_GetFunctions_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetOperationStatus_args::~TCLIService_GetOperationStatus_args() throw() { -} - - uint32_t TCLIService_GetOperationStatus_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; @@ -2113,7 +1832,6 @@ uint32_t TCLIService_GetOperationStatus_args::read(::apache::thrift::protocol::T uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2125,14 +1843,8 @@ uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol:: return xfer; } - -TCLIService_GetOperationStatus_pargs::~TCLIService_GetOperationStatus_pargs() throw() { -} - - uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2144,14 +1856,8 @@ uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol: return xfer; } - -TCLIService_GetOperationStatus_result::~TCLIService_GetOperationStatus_result() throw() { -} - - uint32_t TCLIService_GetOperationStatus_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; @@ -2206,14 +1912,8 @@ uint32_t TCLIService_GetOperationStatus_result::write(::apache::thrift::protocol return xfer; } - -TCLIService_GetOperationStatus_presult::~TCLIService_GetOperationStatus_presult() throw() { -} - - uint32_t TCLIService_GetOperationStatus_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; @@ -2252,14 +1952,8 @@ uint32_t TCLIService_GetOperationStatus_presult::read(::apache::thrift::protocol return xfer; } - -TCLIService_CancelOperation_args::~TCLIService_CancelOperation_args() throw() { -} - - uint32_t TCLIService_CancelOperation_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; @@ -2300,7 +1994,6 @@ uint32_t TCLIService_CancelOperation_args::read(::apache::thrift::protocol::TPro uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CancelOperation_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2312,14 +2005,8 @@ uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_CancelOperation_pargs::~TCLIService_CancelOperation_pargs() throw() { -} - - uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CancelOperation_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2331,14 +2018,8 @@ uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TP return xfer; } - -TCLIService_CancelOperation_result::~TCLIService_CancelOperation_result() throw() { -} - - uint32_t TCLIService_CancelOperation_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; @@ -2393,14 +2074,8 @@ uint32_t TCLIService_CancelOperation_result::write(::apache::thrift::protocol::T return xfer; } - -TCLIService_CancelOperation_presult::~TCLIService_CancelOperation_presult() throw() { -} - - uint32_t TCLIService_CancelOperation_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; @@ -2439,14 +2114,8 @@ uint32_t TCLIService_CancelOperation_presult::read(::apache::thrift::protocol::T return xfer; } - -TCLIService_CloseOperation_args::~TCLIService_CloseOperation_args() throw() { -} - - uint32_t TCLIService_CloseOperation_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; @@ -2487,7 +2156,6 @@ uint32_t TCLIService_CloseOperation_args::read(::apache::thrift::protocol::TProt uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CloseOperation_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2499,14 +2167,8 @@ uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_CloseOperation_pargs::~TCLIService_CloseOperation_pargs() throw() { -} - - uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CloseOperation_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2518,14 +2180,8 @@ uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_CloseOperation_result::~TCLIService_CloseOperation_result() throw() { -} - - uint32_t TCLIService_CloseOperation_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; @@ -2580,14 +2236,8 @@ uint32_t TCLIService_CloseOperation_result::write(::apache::thrift::protocol::TP return xfer; } - -TCLIService_CloseOperation_presult::~TCLIService_CloseOperation_presult() throw() { -} - - uint32_t TCLIService_CloseOperation_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; @@ -2626,14 +2276,8 @@ uint32_t TCLIService_CloseOperation_presult::read(::apache::thrift::protocol::TP return xfer; } - -TCLIService_GetResultSetMetadata_args::~TCLIService_GetResultSetMetadata_args() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_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; @@ -2674,7 +2318,6 @@ uint32_t TCLIService_GetResultSetMetadata_args::read(::apache::thrift::protocol: uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2686,14 +2329,8 @@ uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol return xfer; } - -TCLIService_GetResultSetMetadata_pargs::~TCLIService_GetResultSetMetadata_pargs() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2705,14 +2342,8 @@ uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protoco return xfer; } - -TCLIService_GetResultSetMetadata_result::~TCLIService_GetResultSetMetadata_result() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_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; @@ -2767,14 +2398,8 @@ uint32_t TCLIService_GetResultSetMetadata_result::write(::apache::thrift::protoc return xfer; } - -TCLIService_GetResultSetMetadata_presult::~TCLIService_GetResultSetMetadata_presult() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_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; @@ -2813,14 +2438,8 @@ uint32_t TCLIService_GetResultSetMetadata_presult::read(::apache::thrift::protoc return xfer; } - -TCLIService_FetchResults_args::~TCLIService_FetchResults_args() throw() { -} - - uint32_t TCLIService_FetchResults_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; @@ -2861,7 +2480,6 @@ uint32_t TCLIService_FetchResults_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_FetchResults_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2873,14 +2491,8 @@ uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_FetchResults_pargs::~TCLIService_FetchResults_pargs() throw() { -} - - uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_FetchResults_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2892,14 +2504,8 @@ uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_FetchResults_result::~TCLIService_FetchResults_result() throw() { -} - - uint32_t TCLIService_FetchResults_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; @@ -2954,14 +2560,8 @@ uint32_t TCLIService_FetchResults_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_FetchResults_presult::~TCLIService_FetchResults_presult() throw() { -} - - uint32_t TCLIService_FetchResults_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; @@ -3000,14 +2600,8 @@ uint32_t TCLIService_FetchResults_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetDelegationToken_args::~TCLIService_GetDelegationToken_args() throw() { -} - - uint32_t TCLIService_GetDelegationToken_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; @@ -3048,7 +2642,6 @@ uint32_t TCLIService_GetDelegationToken_args::read(::apache::thrift::protocol::T uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3060,14 +2653,8 @@ uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol:: return xfer; } - -TCLIService_GetDelegationToken_pargs::~TCLIService_GetDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3079,14 +2666,8 @@ uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol: return xfer; } - -TCLIService_GetDelegationToken_result::~TCLIService_GetDelegationToken_result() throw() { -} - - uint32_t TCLIService_GetDelegationToken_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; @@ -3141,14 +2722,8 @@ uint32_t TCLIService_GetDelegationToken_result::write(::apache::thrift::protocol return xfer; } - -TCLIService_GetDelegationToken_presult::~TCLIService_GetDelegationToken_presult() throw() { -} - - uint32_t TCLIService_GetDelegationToken_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; @@ -3187,14 +2762,8 @@ uint32_t TCLIService_GetDelegationToken_presult::read(::apache::thrift::protocol return xfer; } - -TCLIService_CancelDelegationToken_args::~TCLIService_CancelDelegationToken_args() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_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; @@ -3235,7 +2804,6 @@ uint32_t TCLIService_CancelDelegationToken_args::read(::apache::thrift::protocol uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3247,14 +2815,8 @@ uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protoco return xfer; } - -TCLIService_CancelDelegationToken_pargs::~TCLIService_CancelDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3266,14 +2828,8 @@ uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protoc return xfer; } - -TCLIService_CancelDelegationToken_result::~TCLIService_CancelDelegationToken_result() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_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; @@ -3328,14 +2884,8 @@ uint32_t TCLIService_CancelDelegationToken_result::write(::apache::thrift::proto return xfer; } - -TCLIService_CancelDelegationToken_presult::~TCLIService_CancelDelegationToken_presult() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_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; @@ -3374,14 +2924,8 @@ uint32_t TCLIService_CancelDelegationToken_presult::read(::apache::thrift::proto return xfer; } - -TCLIService_RenewDelegationToken_args::~TCLIService_RenewDelegationToken_args() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_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; @@ -3422,7 +2966,6 @@ uint32_t TCLIService_RenewDelegationToken_args::read(::apache::thrift::protocol: uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3434,14 +2977,8 @@ uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol return xfer; } - -TCLIService_RenewDelegationToken_pargs::~TCLIService_RenewDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3453,14 +2990,8 @@ uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protoco return xfer; } - -TCLIService_RenewDelegationToken_result::~TCLIService_RenewDelegationToken_result() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_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; @@ -3515,14 +3046,8 @@ uint32_t TCLIService_RenewDelegationToken_result::write(::apache::thrift::protoc return xfer; } - -TCLIService_RenewDelegationToken_presult::~TCLIService_RenewDelegationToken_presult() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_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; @@ -5714,1602 +5239,5 @@ void TCLIServiceProcessor::process_RenewDelegationToken(int32_t seqid, ::apache: ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new TCLIServiceProcessor(handler)); return processor; } - -void TCLIServiceConcurrentClient::OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req) -{ - int32_t seqid = send_OpenSession(req); - recv_OpenSession(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_OpenSession(const TOpenSessionReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("OpenSession", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_OpenSession_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_OpenSession(TOpenSessionResp& _return, 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_, 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("OpenSession") != 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); - } - TCLIService_OpenSession_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "OpenSession failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req) -{ - int32_t seqid = send_CloseSession(req); - recv_CloseSession(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_CloseSession(const TCloseSessionReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("CloseSession", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_CloseSession_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_CloseSession(TCloseSessionResp& _return, 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_, 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("CloseSession") != 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); - } - TCLIService_CloseSession_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseSession failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetInfo(TGetInfoResp& _return, const TGetInfoReq& req) -{ - int32_t seqid = send_GetInfo(req); - recv_GetInfo(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetInfo(const TGetInfoReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetInfo", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetInfo_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetInfo(TGetInfoResp& _return, 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_, 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("GetInfo") != 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); - } - TCLIService_GetInfo_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetInfo failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req) -{ - int32_t seqid = send_ExecuteStatement(req); - recv_ExecuteStatement(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_ExecuteStatement(const TExecuteStatementReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("ExecuteStatement", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_ExecuteStatement_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_ExecuteStatement(TExecuteStatementResp& _return, 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_, 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("ExecuteStatement") != 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); - } - TCLIService_ExecuteStatement_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "ExecuteStatement failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req) -{ - int32_t seqid = send_GetTypeInfo(req); - recv_GetTypeInfo(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetTypeInfo(const TGetTypeInfoReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetTypeInfo", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetTypeInfo_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetTypeInfo(TGetTypeInfoResp& _return, 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_, 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("GetTypeInfo") != 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); - } - TCLIService_GetTypeInfo_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTypeInfo failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req) -{ - int32_t seqid = send_GetCatalogs(req); - recv_GetCatalogs(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetCatalogs(const TGetCatalogsReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetCatalogs", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetCatalogs_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetCatalogs(TGetCatalogsResp& _return, 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_, 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("GetCatalogs") != 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); - } - TCLIService_GetCatalogs_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetCatalogs failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req) -{ - int32_t seqid = send_GetSchemas(req); - recv_GetSchemas(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetSchemas(const TGetSchemasReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetSchemas", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetSchemas_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetSchemas(TGetSchemasResp& _return, 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_, 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("GetSchemas") != 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); - } - TCLIService_GetSchemas_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetSchemas failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetTables(TGetTablesResp& _return, const TGetTablesReq& req) -{ - int32_t seqid = send_GetTables(req); - recv_GetTables(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetTables(const TGetTablesReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetTables", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetTables_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetTables(TGetTablesResp& _return, 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_, 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("GetTables") != 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); - } - TCLIService_GetTables_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTables failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req) -{ - int32_t seqid = send_GetTableTypes(req); - recv_GetTableTypes(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetTableTypes(const TGetTableTypesReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetTableTypes", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetTableTypes_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetTableTypes(TGetTableTypesResp& _return, 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_, 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("GetTableTypes") != 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); - } - TCLIService_GetTableTypes_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetTableTypes failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req) -{ - int32_t seqid = send_GetColumns(req); - recv_GetColumns(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetColumns(const TGetColumnsReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetColumns", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetColumns_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetColumns(TGetColumnsResp& _return, 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_, 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("GetColumns") != 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); - } - TCLIService_GetColumns_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetColumns failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req) -{ - int32_t seqid = send_GetFunctions(req); - recv_GetFunctions(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetFunctions(const TGetFunctionsReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetFunctions", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetFunctions_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetFunctions(TGetFunctionsResp& _return, 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_, 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("GetFunctions") != 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); - } - TCLIService_GetFunctions_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetFunctions failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req) -{ - int32_t seqid = send_GetOperationStatus(req); - recv_GetOperationStatus(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetOperationStatus(const TGetOperationStatusReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetOperationStatus", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetOperationStatus_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetOperationStatus(TGetOperationStatusResp& _return, 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_, 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("GetOperationStatus") != 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); - } - TCLIService_GetOperationStatus_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetOperationStatus failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req) -{ - int32_t seqid = send_CancelOperation(req); - recv_CancelOperation(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_CancelOperation(const TCancelOperationReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("CancelOperation", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_CancelOperation_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_CancelOperation(TCancelOperationResp& _return, 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_, 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("CancelOperation") != 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); - } - TCLIService_CancelOperation_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelOperation failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req) -{ - int32_t seqid = send_CloseOperation(req); - recv_CloseOperation(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_CloseOperation(const TCloseOperationReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("CloseOperation", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_CloseOperation_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_CloseOperation(TCloseOperationResp& _return, 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_, 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("CloseOperation") != 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); - } - TCLIService_CloseOperation_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CloseOperation failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req) -{ - int32_t seqid = send_GetResultSetMetadata(req); - recv_GetResultSetMetadata(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetResultSetMetadata(const TGetResultSetMetadataReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetResultSetMetadata", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetResultSetMetadata_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetResultSetMetadata(TGetResultSetMetadataResp& _return, 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_, 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("GetResultSetMetadata") != 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); - } - TCLIService_GetResultSetMetadata_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetResultSetMetadata failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req) -{ - int32_t seqid = send_FetchResults(req); - recv_FetchResults(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_FetchResults(const TFetchResultsReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("FetchResults", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_FetchResults_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_FetchResults(TFetchResultsResp& _return, 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_, 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("FetchResults") != 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); - } - TCLIService_FetchResults_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "FetchResults failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req) -{ - int32_t seqid = send_GetDelegationToken(req); - recv_GetDelegationToken(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_GetDelegationToken(const TGetDelegationTokenReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("GetDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_GetDelegationToken_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_GetDelegationToken(TGetDelegationTokenResp& _return, 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_, 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("GetDelegationToken") != 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); - } - TCLIService_GetDelegationToken_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "GetDelegationToken failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req) -{ - int32_t seqid = send_CancelDelegationToken(req); - recv_CancelDelegationToken(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_CancelDelegationToken(const TCancelDelegationTokenReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("CancelDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_CancelDelegationToken_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_CancelDelegationToken(TCancelDelegationTokenResp& _return, 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_, 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("CancelDelegationToken") != 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); - } - TCLIService_CancelDelegationToken_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "CancelDelegationToken failed: unknown result"); - } - // 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 TCLIServiceConcurrentClient::RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req) -{ - int32_t seqid = send_RenewDelegationToken(req); - recv_RenewDelegationToken(_return, seqid); -} - -int32_t TCLIServiceConcurrentClient::send_RenewDelegationToken(const TRenewDelegationTokenReq& req) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("RenewDelegationToken", ::apache::thrift::protocol::T_CALL, cseqid); - - TCLIService_RenewDelegationToken_pargs args; - args.req = &req; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void TCLIServiceConcurrentClient::recv_RenewDelegationToken(TRenewDelegationTokenResp& _return, 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_, 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("RenewDelegationToken") != 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); - } - TCLIService_RenewDelegationToken_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "RenewDelegationToken failed: unknown result"); - } - // 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) -} - }}}}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/TCLIService.h b/service/src/gen/thrift/gen-cpp/TCLIService.h index 2ea80c7..030475b 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,16 +8,10 @@ #define TCLIService_H #include -#include #include "TCLIService_types.h" namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { -#ifdef _WIN32 - #pragma warning( push ) - #pragma warning (disable : 4250 ) //inheriting methods via dominance -#endif - class TCLIServiceIf { public: virtual ~TCLIServiceIf() {} @@ -130,23 +124,24 @@ class TCLIServiceNull : virtual public TCLIServiceIf { typedef struct _TCLIService_OpenSession_args__isset { _TCLIService_OpenSession_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_OpenSession_args__isset; class TCLIService_OpenSession_args { public: - TCLIService_OpenSession_args(const TCLIService_OpenSession_args&); - TCLIService_OpenSession_args& operator=(const TCLIService_OpenSession_args&); TCLIService_OpenSession_args() { } - virtual ~TCLIService_OpenSession_args() throw(); + virtual ~TCLIService_OpenSession_args() throw() {} + TOpenSessionReq req; _TCLIService_OpenSession_args__isset __isset; - void __set_req(const TOpenSessionReq& val); + void __set_req(const TOpenSessionReq& val) { + req = val; + } bool operator == (const TCLIService_OpenSession_args & rhs) const { @@ -170,7 +165,8 @@ class TCLIService_OpenSession_pargs { public: - virtual ~TCLIService_OpenSession_pargs() throw(); + virtual ~TCLIService_OpenSession_pargs() throw() {} + const TOpenSessionReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -179,23 +175,24 @@ class TCLIService_OpenSession_pargs { typedef struct _TCLIService_OpenSession_result__isset { _TCLIService_OpenSession_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_OpenSession_result__isset; class TCLIService_OpenSession_result { public: - TCLIService_OpenSession_result(const TCLIService_OpenSession_result&); - TCLIService_OpenSession_result& operator=(const TCLIService_OpenSession_result&); TCLIService_OpenSession_result() { } - virtual ~TCLIService_OpenSession_result() throw(); + virtual ~TCLIService_OpenSession_result() throw() {} + TOpenSessionResp success; _TCLIService_OpenSession_result__isset __isset; - void __set_success(const TOpenSessionResp& val); + void __set_success(const TOpenSessionResp& val) { + success = val; + } bool operator == (const TCLIService_OpenSession_result & rhs) const { @@ -216,14 +213,15 @@ class TCLIService_OpenSession_result { typedef struct _TCLIService_OpenSession_presult__isset { _TCLIService_OpenSession_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_OpenSession_presult__isset; class TCLIService_OpenSession_presult { public: - virtual ~TCLIService_OpenSession_presult() throw(); + virtual ~TCLIService_OpenSession_presult() throw() {} + TOpenSessionResp* success; _TCLIService_OpenSession_presult__isset __isset; @@ -234,23 +232,24 @@ class TCLIService_OpenSession_presult { typedef struct _TCLIService_CloseSession_args__isset { _TCLIService_CloseSession_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CloseSession_args__isset; class TCLIService_CloseSession_args { public: - TCLIService_CloseSession_args(const TCLIService_CloseSession_args&); - TCLIService_CloseSession_args& operator=(const TCLIService_CloseSession_args&); TCLIService_CloseSession_args() { } - virtual ~TCLIService_CloseSession_args() throw(); + virtual ~TCLIService_CloseSession_args() throw() {} + TCloseSessionReq req; _TCLIService_CloseSession_args__isset __isset; - void __set_req(const TCloseSessionReq& val); + void __set_req(const TCloseSessionReq& val) { + req = val; + } bool operator == (const TCLIService_CloseSession_args & rhs) const { @@ -274,7 +273,8 @@ class TCLIService_CloseSession_pargs { public: - virtual ~TCLIService_CloseSession_pargs() throw(); + virtual ~TCLIService_CloseSession_pargs() throw() {} + const TCloseSessionReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -283,23 +283,24 @@ class TCLIService_CloseSession_pargs { typedef struct _TCLIService_CloseSession_result__isset { _TCLIService_CloseSession_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseSession_result__isset; class TCLIService_CloseSession_result { public: - TCLIService_CloseSession_result(const TCLIService_CloseSession_result&); - TCLIService_CloseSession_result& operator=(const TCLIService_CloseSession_result&); TCLIService_CloseSession_result() { } - virtual ~TCLIService_CloseSession_result() throw(); + virtual ~TCLIService_CloseSession_result() throw() {} + TCloseSessionResp success; _TCLIService_CloseSession_result__isset __isset; - void __set_success(const TCloseSessionResp& val); + void __set_success(const TCloseSessionResp& val) { + success = val; + } bool operator == (const TCLIService_CloseSession_result & rhs) const { @@ -320,14 +321,15 @@ class TCLIService_CloseSession_result { typedef struct _TCLIService_CloseSession_presult__isset { _TCLIService_CloseSession_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseSession_presult__isset; class TCLIService_CloseSession_presult { public: - virtual ~TCLIService_CloseSession_presult() throw(); + virtual ~TCLIService_CloseSession_presult() throw() {} + TCloseSessionResp* success; _TCLIService_CloseSession_presult__isset __isset; @@ -338,23 +340,24 @@ class TCLIService_CloseSession_presult { typedef struct _TCLIService_GetInfo_args__isset { _TCLIService_GetInfo_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetInfo_args__isset; class TCLIService_GetInfo_args { public: - TCLIService_GetInfo_args(const TCLIService_GetInfo_args&); - TCLIService_GetInfo_args& operator=(const TCLIService_GetInfo_args&); TCLIService_GetInfo_args() { } - virtual ~TCLIService_GetInfo_args() throw(); + virtual ~TCLIService_GetInfo_args() throw() {} + TGetInfoReq req; _TCLIService_GetInfo_args__isset __isset; - void __set_req(const TGetInfoReq& val); + void __set_req(const TGetInfoReq& val) { + req = val; + } bool operator == (const TCLIService_GetInfo_args & rhs) const { @@ -378,7 +381,8 @@ class TCLIService_GetInfo_pargs { public: - virtual ~TCLIService_GetInfo_pargs() throw(); + virtual ~TCLIService_GetInfo_pargs() throw() {} + const TGetInfoReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -387,23 +391,24 @@ class TCLIService_GetInfo_pargs { typedef struct _TCLIService_GetInfo_result__isset { _TCLIService_GetInfo_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetInfo_result__isset; class TCLIService_GetInfo_result { public: - TCLIService_GetInfo_result(const TCLIService_GetInfo_result&); - TCLIService_GetInfo_result& operator=(const TCLIService_GetInfo_result&); TCLIService_GetInfo_result() { } - virtual ~TCLIService_GetInfo_result() throw(); + virtual ~TCLIService_GetInfo_result() throw() {} + TGetInfoResp success; _TCLIService_GetInfo_result__isset __isset; - void __set_success(const TGetInfoResp& val); + void __set_success(const TGetInfoResp& val) { + success = val; + } bool operator == (const TCLIService_GetInfo_result & rhs) const { @@ -424,14 +429,15 @@ class TCLIService_GetInfo_result { typedef struct _TCLIService_GetInfo_presult__isset { _TCLIService_GetInfo_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetInfo_presult__isset; class TCLIService_GetInfo_presult { public: - virtual ~TCLIService_GetInfo_presult() throw(); + virtual ~TCLIService_GetInfo_presult() throw() {} + TGetInfoResp* success; _TCLIService_GetInfo_presult__isset __isset; @@ -442,23 +448,24 @@ class TCLIService_GetInfo_presult { typedef struct _TCLIService_ExecuteStatement_args__isset { _TCLIService_ExecuteStatement_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_ExecuteStatement_args__isset; class TCLIService_ExecuteStatement_args { public: - TCLIService_ExecuteStatement_args(const TCLIService_ExecuteStatement_args&); - TCLIService_ExecuteStatement_args& operator=(const TCLIService_ExecuteStatement_args&); TCLIService_ExecuteStatement_args() { } - virtual ~TCLIService_ExecuteStatement_args() throw(); + virtual ~TCLIService_ExecuteStatement_args() throw() {} + TExecuteStatementReq req; _TCLIService_ExecuteStatement_args__isset __isset; - void __set_req(const TExecuteStatementReq& val); + void __set_req(const TExecuteStatementReq& val) { + req = val; + } bool operator == (const TCLIService_ExecuteStatement_args & rhs) const { @@ -482,7 +489,8 @@ class TCLIService_ExecuteStatement_pargs { public: - virtual ~TCLIService_ExecuteStatement_pargs() throw(); + virtual ~TCLIService_ExecuteStatement_pargs() throw() {} + const TExecuteStatementReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -491,23 +499,24 @@ class TCLIService_ExecuteStatement_pargs { typedef struct _TCLIService_ExecuteStatement_result__isset { _TCLIService_ExecuteStatement_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_ExecuteStatement_result__isset; class TCLIService_ExecuteStatement_result { public: - TCLIService_ExecuteStatement_result(const TCLIService_ExecuteStatement_result&); - TCLIService_ExecuteStatement_result& operator=(const TCLIService_ExecuteStatement_result&); TCLIService_ExecuteStatement_result() { } - virtual ~TCLIService_ExecuteStatement_result() throw(); + virtual ~TCLIService_ExecuteStatement_result() throw() {} + TExecuteStatementResp success; _TCLIService_ExecuteStatement_result__isset __isset; - void __set_success(const TExecuteStatementResp& val); + void __set_success(const TExecuteStatementResp& val) { + success = val; + } bool operator == (const TCLIService_ExecuteStatement_result & rhs) const { @@ -528,14 +537,15 @@ class TCLIService_ExecuteStatement_result { typedef struct _TCLIService_ExecuteStatement_presult__isset { _TCLIService_ExecuteStatement_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_ExecuteStatement_presult__isset; class TCLIService_ExecuteStatement_presult { public: - virtual ~TCLIService_ExecuteStatement_presult() throw(); + virtual ~TCLIService_ExecuteStatement_presult() throw() {} + TExecuteStatementResp* success; _TCLIService_ExecuteStatement_presult__isset __isset; @@ -546,23 +556,24 @@ class TCLIService_ExecuteStatement_presult { typedef struct _TCLIService_GetTypeInfo_args__isset { _TCLIService_GetTypeInfo_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTypeInfo_args__isset; class TCLIService_GetTypeInfo_args { public: - TCLIService_GetTypeInfo_args(const TCLIService_GetTypeInfo_args&); - TCLIService_GetTypeInfo_args& operator=(const TCLIService_GetTypeInfo_args&); TCLIService_GetTypeInfo_args() { } - virtual ~TCLIService_GetTypeInfo_args() throw(); + virtual ~TCLIService_GetTypeInfo_args() throw() {} + TGetTypeInfoReq req; _TCLIService_GetTypeInfo_args__isset __isset; - void __set_req(const TGetTypeInfoReq& val); + void __set_req(const TGetTypeInfoReq& val) { + req = val; + } bool operator == (const TCLIService_GetTypeInfo_args & rhs) const { @@ -586,7 +597,8 @@ class TCLIService_GetTypeInfo_pargs { public: - virtual ~TCLIService_GetTypeInfo_pargs() throw(); + virtual ~TCLIService_GetTypeInfo_pargs() throw() {} + const TGetTypeInfoReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -595,23 +607,24 @@ class TCLIService_GetTypeInfo_pargs { typedef struct _TCLIService_GetTypeInfo_result__isset { _TCLIService_GetTypeInfo_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTypeInfo_result__isset; class TCLIService_GetTypeInfo_result { public: - TCLIService_GetTypeInfo_result(const TCLIService_GetTypeInfo_result&); - TCLIService_GetTypeInfo_result& operator=(const TCLIService_GetTypeInfo_result&); TCLIService_GetTypeInfo_result() { } - virtual ~TCLIService_GetTypeInfo_result() throw(); + virtual ~TCLIService_GetTypeInfo_result() throw() {} + TGetTypeInfoResp success; _TCLIService_GetTypeInfo_result__isset __isset; - void __set_success(const TGetTypeInfoResp& val); + void __set_success(const TGetTypeInfoResp& val) { + success = val; + } bool operator == (const TCLIService_GetTypeInfo_result & rhs) const { @@ -632,14 +645,15 @@ class TCLIService_GetTypeInfo_result { typedef struct _TCLIService_GetTypeInfo_presult__isset { _TCLIService_GetTypeInfo_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTypeInfo_presult__isset; class TCLIService_GetTypeInfo_presult { public: - virtual ~TCLIService_GetTypeInfo_presult() throw(); + virtual ~TCLIService_GetTypeInfo_presult() throw() {} + TGetTypeInfoResp* success; _TCLIService_GetTypeInfo_presult__isset __isset; @@ -650,23 +664,24 @@ class TCLIService_GetTypeInfo_presult { typedef struct _TCLIService_GetCatalogs_args__isset { _TCLIService_GetCatalogs_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetCatalogs_args__isset; class TCLIService_GetCatalogs_args { public: - TCLIService_GetCatalogs_args(const TCLIService_GetCatalogs_args&); - TCLIService_GetCatalogs_args& operator=(const TCLIService_GetCatalogs_args&); TCLIService_GetCatalogs_args() { } - virtual ~TCLIService_GetCatalogs_args() throw(); + virtual ~TCLIService_GetCatalogs_args() throw() {} + TGetCatalogsReq req; _TCLIService_GetCatalogs_args__isset __isset; - void __set_req(const TGetCatalogsReq& val); + void __set_req(const TGetCatalogsReq& val) { + req = val; + } bool operator == (const TCLIService_GetCatalogs_args & rhs) const { @@ -690,7 +705,8 @@ class TCLIService_GetCatalogs_pargs { public: - virtual ~TCLIService_GetCatalogs_pargs() throw(); + virtual ~TCLIService_GetCatalogs_pargs() throw() {} + const TGetCatalogsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -699,23 +715,24 @@ class TCLIService_GetCatalogs_pargs { typedef struct _TCLIService_GetCatalogs_result__isset { _TCLIService_GetCatalogs_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetCatalogs_result__isset; class TCLIService_GetCatalogs_result { public: - TCLIService_GetCatalogs_result(const TCLIService_GetCatalogs_result&); - TCLIService_GetCatalogs_result& operator=(const TCLIService_GetCatalogs_result&); TCLIService_GetCatalogs_result() { } - virtual ~TCLIService_GetCatalogs_result() throw(); + virtual ~TCLIService_GetCatalogs_result() throw() {} + TGetCatalogsResp success; _TCLIService_GetCatalogs_result__isset __isset; - void __set_success(const TGetCatalogsResp& val); + void __set_success(const TGetCatalogsResp& val) { + success = val; + } bool operator == (const TCLIService_GetCatalogs_result & rhs) const { @@ -736,14 +753,15 @@ class TCLIService_GetCatalogs_result { typedef struct _TCLIService_GetCatalogs_presult__isset { _TCLIService_GetCatalogs_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetCatalogs_presult__isset; class TCLIService_GetCatalogs_presult { public: - virtual ~TCLIService_GetCatalogs_presult() throw(); + virtual ~TCLIService_GetCatalogs_presult() throw() {} + TGetCatalogsResp* success; _TCLIService_GetCatalogs_presult__isset __isset; @@ -754,23 +772,24 @@ class TCLIService_GetCatalogs_presult { typedef struct _TCLIService_GetSchemas_args__isset { _TCLIService_GetSchemas_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetSchemas_args__isset; class TCLIService_GetSchemas_args { public: - TCLIService_GetSchemas_args(const TCLIService_GetSchemas_args&); - TCLIService_GetSchemas_args& operator=(const TCLIService_GetSchemas_args&); TCLIService_GetSchemas_args() { } - virtual ~TCLIService_GetSchemas_args() throw(); + virtual ~TCLIService_GetSchemas_args() throw() {} + TGetSchemasReq req; _TCLIService_GetSchemas_args__isset __isset; - void __set_req(const TGetSchemasReq& val); + void __set_req(const TGetSchemasReq& val) { + req = val; + } bool operator == (const TCLIService_GetSchemas_args & rhs) const { @@ -794,7 +813,8 @@ class TCLIService_GetSchemas_pargs { public: - virtual ~TCLIService_GetSchemas_pargs() throw(); + virtual ~TCLIService_GetSchemas_pargs() throw() {} + const TGetSchemasReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -803,23 +823,24 @@ class TCLIService_GetSchemas_pargs { typedef struct _TCLIService_GetSchemas_result__isset { _TCLIService_GetSchemas_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetSchemas_result__isset; class TCLIService_GetSchemas_result { public: - TCLIService_GetSchemas_result(const TCLIService_GetSchemas_result&); - TCLIService_GetSchemas_result& operator=(const TCLIService_GetSchemas_result&); TCLIService_GetSchemas_result() { } - virtual ~TCLIService_GetSchemas_result() throw(); + virtual ~TCLIService_GetSchemas_result() throw() {} + TGetSchemasResp success; _TCLIService_GetSchemas_result__isset __isset; - void __set_success(const TGetSchemasResp& val); + void __set_success(const TGetSchemasResp& val) { + success = val; + } bool operator == (const TCLIService_GetSchemas_result & rhs) const { @@ -840,14 +861,15 @@ class TCLIService_GetSchemas_result { typedef struct _TCLIService_GetSchemas_presult__isset { _TCLIService_GetSchemas_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetSchemas_presult__isset; class TCLIService_GetSchemas_presult { public: - virtual ~TCLIService_GetSchemas_presult() throw(); + virtual ~TCLIService_GetSchemas_presult() throw() {} + TGetSchemasResp* success; _TCLIService_GetSchemas_presult__isset __isset; @@ -858,23 +880,24 @@ class TCLIService_GetSchemas_presult { typedef struct _TCLIService_GetTables_args__isset { _TCLIService_GetTables_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTables_args__isset; class TCLIService_GetTables_args { public: - TCLIService_GetTables_args(const TCLIService_GetTables_args&); - TCLIService_GetTables_args& operator=(const TCLIService_GetTables_args&); TCLIService_GetTables_args() { } - virtual ~TCLIService_GetTables_args() throw(); + virtual ~TCLIService_GetTables_args() throw() {} + TGetTablesReq req; _TCLIService_GetTables_args__isset __isset; - void __set_req(const TGetTablesReq& val); + void __set_req(const TGetTablesReq& val) { + req = val; + } bool operator == (const TCLIService_GetTables_args & rhs) const { @@ -898,7 +921,8 @@ class TCLIService_GetTables_pargs { public: - virtual ~TCLIService_GetTables_pargs() throw(); + virtual ~TCLIService_GetTables_pargs() throw() {} + const TGetTablesReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -907,23 +931,24 @@ class TCLIService_GetTables_pargs { typedef struct _TCLIService_GetTables_result__isset { _TCLIService_GetTables_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTables_result__isset; class TCLIService_GetTables_result { public: - TCLIService_GetTables_result(const TCLIService_GetTables_result&); - TCLIService_GetTables_result& operator=(const TCLIService_GetTables_result&); TCLIService_GetTables_result() { } - virtual ~TCLIService_GetTables_result() throw(); + virtual ~TCLIService_GetTables_result() throw() {} + TGetTablesResp success; _TCLIService_GetTables_result__isset __isset; - void __set_success(const TGetTablesResp& val); + void __set_success(const TGetTablesResp& val) { + success = val; + } bool operator == (const TCLIService_GetTables_result & rhs) const { @@ -944,14 +969,15 @@ class TCLIService_GetTables_result { typedef struct _TCLIService_GetTables_presult__isset { _TCLIService_GetTables_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTables_presult__isset; class TCLIService_GetTables_presult { public: - virtual ~TCLIService_GetTables_presult() throw(); + virtual ~TCLIService_GetTables_presult() throw() {} + TGetTablesResp* success; _TCLIService_GetTables_presult__isset __isset; @@ -962,23 +988,24 @@ class TCLIService_GetTables_presult { typedef struct _TCLIService_GetTableTypes_args__isset { _TCLIService_GetTableTypes_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTableTypes_args__isset; class TCLIService_GetTableTypes_args { public: - TCLIService_GetTableTypes_args(const TCLIService_GetTableTypes_args&); - TCLIService_GetTableTypes_args& operator=(const TCLIService_GetTableTypes_args&); TCLIService_GetTableTypes_args() { } - virtual ~TCLIService_GetTableTypes_args() throw(); + virtual ~TCLIService_GetTableTypes_args() throw() {} + TGetTableTypesReq req; _TCLIService_GetTableTypes_args__isset __isset; - void __set_req(const TGetTableTypesReq& val); + void __set_req(const TGetTableTypesReq& val) { + req = val; + } bool operator == (const TCLIService_GetTableTypes_args & rhs) const { @@ -1002,7 +1029,8 @@ class TCLIService_GetTableTypes_pargs { public: - virtual ~TCLIService_GetTableTypes_pargs() throw(); + virtual ~TCLIService_GetTableTypes_pargs() throw() {} + const TGetTableTypesReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1011,23 +1039,24 @@ class TCLIService_GetTableTypes_pargs { typedef struct _TCLIService_GetTableTypes_result__isset { _TCLIService_GetTableTypes_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTableTypes_result__isset; class TCLIService_GetTableTypes_result { public: - TCLIService_GetTableTypes_result(const TCLIService_GetTableTypes_result&); - TCLIService_GetTableTypes_result& operator=(const TCLIService_GetTableTypes_result&); TCLIService_GetTableTypes_result() { } - virtual ~TCLIService_GetTableTypes_result() throw(); + virtual ~TCLIService_GetTableTypes_result() throw() {} + TGetTableTypesResp success; _TCLIService_GetTableTypes_result__isset __isset; - void __set_success(const TGetTableTypesResp& val); + void __set_success(const TGetTableTypesResp& val) { + success = val; + } bool operator == (const TCLIService_GetTableTypes_result & rhs) const { @@ -1048,14 +1077,15 @@ class TCLIService_GetTableTypes_result { typedef struct _TCLIService_GetTableTypes_presult__isset { _TCLIService_GetTableTypes_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTableTypes_presult__isset; class TCLIService_GetTableTypes_presult { public: - virtual ~TCLIService_GetTableTypes_presult() throw(); + virtual ~TCLIService_GetTableTypes_presult() throw() {} + TGetTableTypesResp* success; _TCLIService_GetTableTypes_presult__isset __isset; @@ -1066,23 +1096,24 @@ class TCLIService_GetTableTypes_presult { typedef struct _TCLIService_GetColumns_args__isset { _TCLIService_GetColumns_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetColumns_args__isset; class TCLIService_GetColumns_args { public: - TCLIService_GetColumns_args(const TCLIService_GetColumns_args&); - TCLIService_GetColumns_args& operator=(const TCLIService_GetColumns_args&); TCLIService_GetColumns_args() { } - virtual ~TCLIService_GetColumns_args() throw(); + virtual ~TCLIService_GetColumns_args() throw() {} + TGetColumnsReq req; _TCLIService_GetColumns_args__isset __isset; - void __set_req(const TGetColumnsReq& val); + void __set_req(const TGetColumnsReq& val) { + req = val; + } bool operator == (const TCLIService_GetColumns_args & rhs) const { @@ -1106,7 +1137,8 @@ class TCLIService_GetColumns_pargs { public: - virtual ~TCLIService_GetColumns_pargs() throw(); + virtual ~TCLIService_GetColumns_pargs() throw() {} + const TGetColumnsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1115,23 +1147,24 @@ class TCLIService_GetColumns_pargs { typedef struct _TCLIService_GetColumns_result__isset { _TCLIService_GetColumns_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetColumns_result__isset; class TCLIService_GetColumns_result { public: - TCLIService_GetColumns_result(const TCLIService_GetColumns_result&); - TCLIService_GetColumns_result& operator=(const TCLIService_GetColumns_result&); TCLIService_GetColumns_result() { } - virtual ~TCLIService_GetColumns_result() throw(); + virtual ~TCLIService_GetColumns_result() throw() {} + TGetColumnsResp success; _TCLIService_GetColumns_result__isset __isset; - void __set_success(const TGetColumnsResp& val); + void __set_success(const TGetColumnsResp& val) { + success = val; + } bool operator == (const TCLIService_GetColumns_result & rhs) const { @@ -1152,14 +1185,15 @@ class TCLIService_GetColumns_result { typedef struct _TCLIService_GetColumns_presult__isset { _TCLIService_GetColumns_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetColumns_presult__isset; class TCLIService_GetColumns_presult { public: - virtual ~TCLIService_GetColumns_presult() throw(); + virtual ~TCLIService_GetColumns_presult() throw() {} + TGetColumnsResp* success; _TCLIService_GetColumns_presult__isset __isset; @@ -1170,23 +1204,24 @@ class TCLIService_GetColumns_presult { typedef struct _TCLIService_GetFunctions_args__isset { _TCLIService_GetFunctions_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetFunctions_args__isset; class TCLIService_GetFunctions_args { public: - TCLIService_GetFunctions_args(const TCLIService_GetFunctions_args&); - TCLIService_GetFunctions_args& operator=(const TCLIService_GetFunctions_args&); TCLIService_GetFunctions_args() { } - virtual ~TCLIService_GetFunctions_args() throw(); + virtual ~TCLIService_GetFunctions_args() throw() {} + TGetFunctionsReq req; _TCLIService_GetFunctions_args__isset __isset; - void __set_req(const TGetFunctionsReq& val); + void __set_req(const TGetFunctionsReq& val) { + req = val; + } bool operator == (const TCLIService_GetFunctions_args & rhs) const { @@ -1210,7 +1245,8 @@ class TCLIService_GetFunctions_pargs { public: - virtual ~TCLIService_GetFunctions_pargs() throw(); + virtual ~TCLIService_GetFunctions_pargs() throw() {} + const TGetFunctionsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1219,23 +1255,24 @@ class TCLIService_GetFunctions_pargs { typedef struct _TCLIService_GetFunctions_result__isset { _TCLIService_GetFunctions_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetFunctions_result__isset; class TCLIService_GetFunctions_result { public: - TCLIService_GetFunctions_result(const TCLIService_GetFunctions_result&); - TCLIService_GetFunctions_result& operator=(const TCLIService_GetFunctions_result&); TCLIService_GetFunctions_result() { } - virtual ~TCLIService_GetFunctions_result() throw(); + virtual ~TCLIService_GetFunctions_result() throw() {} + TGetFunctionsResp success; _TCLIService_GetFunctions_result__isset __isset; - void __set_success(const TGetFunctionsResp& val); + void __set_success(const TGetFunctionsResp& val) { + success = val; + } bool operator == (const TCLIService_GetFunctions_result & rhs) const { @@ -1256,14 +1293,15 @@ class TCLIService_GetFunctions_result { typedef struct _TCLIService_GetFunctions_presult__isset { _TCLIService_GetFunctions_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetFunctions_presult__isset; class TCLIService_GetFunctions_presult { public: - virtual ~TCLIService_GetFunctions_presult() throw(); + virtual ~TCLIService_GetFunctions_presult() throw() {} + TGetFunctionsResp* success; _TCLIService_GetFunctions_presult__isset __isset; @@ -1274,23 +1312,24 @@ class TCLIService_GetFunctions_presult { typedef struct _TCLIService_GetOperationStatus_args__isset { _TCLIService_GetOperationStatus_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetOperationStatus_args__isset; class TCLIService_GetOperationStatus_args { public: - TCLIService_GetOperationStatus_args(const TCLIService_GetOperationStatus_args&); - TCLIService_GetOperationStatus_args& operator=(const TCLIService_GetOperationStatus_args&); TCLIService_GetOperationStatus_args() { } - virtual ~TCLIService_GetOperationStatus_args() throw(); + virtual ~TCLIService_GetOperationStatus_args() throw() {} + TGetOperationStatusReq req; _TCLIService_GetOperationStatus_args__isset __isset; - void __set_req(const TGetOperationStatusReq& val); + void __set_req(const TGetOperationStatusReq& val) { + req = val; + } bool operator == (const TCLIService_GetOperationStatus_args & rhs) const { @@ -1314,7 +1353,8 @@ class TCLIService_GetOperationStatus_pargs { public: - virtual ~TCLIService_GetOperationStatus_pargs() throw(); + virtual ~TCLIService_GetOperationStatus_pargs() throw() {} + const TGetOperationStatusReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1323,23 +1363,24 @@ class TCLIService_GetOperationStatus_pargs { typedef struct _TCLIService_GetOperationStatus_result__isset { _TCLIService_GetOperationStatus_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetOperationStatus_result__isset; class TCLIService_GetOperationStatus_result { public: - TCLIService_GetOperationStatus_result(const TCLIService_GetOperationStatus_result&); - TCLIService_GetOperationStatus_result& operator=(const TCLIService_GetOperationStatus_result&); TCLIService_GetOperationStatus_result() { } - virtual ~TCLIService_GetOperationStatus_result() throw(); + virtual ~TCLIService_GetOperationStatus_result() throw() {} + TGetOperationStatusResp success; _TCLIService_GetOperationStatus_result__isset __isset; - void __set_success(const TGetOperationStatusResp& val); + void __set_success(const TGetOperationStatusResp& val) { + success = val; + } bool operator == (const TCLIService_GetOperationStatus_result & rhs) const { @@ -1360,14 +1401,15 @@ class TCLIService_GetOperationStatus_result { typedef struct _TCLIService_GetOperationStatus_presult__isset { _TCLIService_GetOperationStatus_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetOperationStatus_presult__isset; class TCLIService_GetOperationStatus_presult { public: - virtual ~TCLIService_GetOperationStatus_presult() throw(); + virtual ~TCLIService_GetOperationStatus_presult() throw() {} + TGetOperationStatusResp* success; _TCLIService_GetOperationStatus_presult__isset __isset; @@ -1378,23 +1420,24 @@ class TCLIService_GetOperationStatus_presult { typedef struct _TCLIService_CancelOperation_args__isset { _TCLIService_CancelOperation_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CancelOperation_args__isset; class TCLIService_CancelOperation_args { public: - TCLIService_CancelOperation_args(const TCLIService_CancelOperation_args&); - TCLIService_CancelOperation_args& operator=(const TCLIService_CancelOperation_args&); TCLIService_CancelOperation_args() { } - virtual ~TCLIService_CancelOperation_args() throw(); + virtual ~TCLIService_CancelOperation_args() throw() {} + TCancelOperationReq req; _TCLIService_CancelOperation_args__isset __isset; - void __set_req(const TCancelOperationReq& val); + void __set_req(const TCancelOperationReq& val) { + req = val; + } bool operator == (const TCLIService_CancelOperation_args & rhs) const { @@ -1418,7 +1461,8 @@ class TCLIService_CancelOperation_pargs { public: - virtual ~TCLIService_CancelOperation_pargs() throw(); + virtual ~TCLIService_CancelOperation_pargs() throw() {} + const TCancelOperationReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1427,23 +1471,24 @@ class TCLIService_CancelOperation_pargs { typedef struct _TCLIService_CancelOperation_result__isset { _TCLIService_CancelOperation_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelOperation_result__isset; class TCLIService_CancelOperation_result { public: - TCLIService_CancelOperation_result(const TCLIService_CancelOperation_result&); - TCLIService_CancelOperation_result& operator=(const TCLIService_CancelOperation_result&); TCLIService_CancelOperation_result() { } - virtual ~TCLIService_CancelOperation_result() throw(); + virtual ~TCLIService_CancelOperation_result() throw() {} + TCancelOperationResp success; _TCLIService_CancelOperation_result__isset __isset; - void __set_success(const TCancelOperationResp& val); + void __set_success(const TCancelOperationResp& val) { + success = val; + } bool operator == (const TCLIService_CancelOperation_result & rhs) const { @@ -1464,14 +1509,15 @@ class TCLIService_CancelOperation_result { typedef struct _TCLIService_CancelOperation_presult__isset { _TCLIService_CancelOperation_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelOperation_presult__isset; class TCLIService_CancelOperation_presult { public: - virtual ~TCLIService_CancelOperation_presult() throw(); + virtual ~TCLIService_CancelOperation_presult() throw() {} + TCancelOperationResp* success; _TCLIService_CancelOperation_presult__isset __isset; @@ -1482,23 +1528,24 @@ class TCLIService_CancelOperation_presult { typedef struct _TCLIService_CloseOperation_args__isset { _TCLIService_CloseOperation_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CloseOperation_args__isset; class TCLIService_CloseOperation_args { public: - TCLIService_CloseOperation_args(const TCLIService_CloseOperation_args&); - TCLIService_CloseOperation_args& operator=(const TCLIService_CloseOperation_args&); TCLIService_CloseOperation_args() { } - virtual ~TCLIService_CloseOperation_args() throw(); + virtual ~TCLIService_CloseOperation_args() throw() {} + TCloseOperationReq req; _TCLIService_CloseOperation_args__isset __isset; - void __set_req(const TCloseOperationReq& val); + void __set_req(const TCloseOperationReq& val) { + req = val; + } bool operator == (const TCLIService_CloseOperation_args & rhs) const { @@ -1522,7 +1569,8 @@ class TCLIService_CloseOperation_pargs { public: - virtual ~TCLIService_CloseOperation_pargs() throw(); + virtual ~TCLIService_CloseOperation_pargs() throw() {} + const TCloseOperationReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1531,23 +1579,24 @@ class TCLIService_CloseOperation_pargs { typedef struct _TCLIService_CloseOperation_result__isset { _TCLIService_CloseOperation_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseOperation_result__isset; class TCLIService_CloseOperation_result { public: - TCLIService_CloseOperation_result(const TCLIService_CloseOperation_result&); - TCLIService_CloseOperation_result& operator=(const TCLIService_CloseOperation_result&); TCLIService_CloseOperation_result() { } - virtual ~TCLIService_CloseOperation_result() throw(); + virtual ~TCLIService_CloseOperation_result() throw() {} + TCloseOperationResp success; _TCLIService_CloseOperation_result__isset __isset; - void __set_success(const TCloseOperationResp& val); + void __set_success(const TCloseOperationResp& val) { + success = val; + } bool operator == (const TCLIService_CloseOperation_result & rhs) const { @@ -1568,14 +1617,15 @@ class TCLIService_CloseOperation_result { typedef struct _TCLIService_CloseOperation_presult__isset { _TCLIService_CloseOperation_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseOperation_presult__isset; class TCLIService_CloseOperation_presult { public: - virtual ~TCLIService_CloseOperation_presult() throw(); + virtual ~TCLIService_CloseOperation_presult() throw() {} + TCloseOperationResp* success; _TCLIService_CloseOperation_presult__isset __isset; @@ -1586,23 +1636,24 @@ class TCLIService_CloseOperation_presult { typedef struct _TCLIService_GetResultSetMetadata_args__isset { _TCLIService_GetResultSetMetadata_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetResultSetMetadata_args__isset; class TCLIService_GetResultSetMetadata_args { public: - TCLIService_GetResultSetMetadata_args(const TCLIService_GetResultSetMetadata_args&); - TCLIService_GetResultSetMetadata_args& operator=(const TCLIService_GetResultSetMetadata_args&); TCLIService_GetResultSetMetadata_args() { } - virtual ~TCLIService_GetResultSetMetadata_args() throw(); + virtual ~TCLIService_GetResultSetMetadata_args() throw() {} + TGetResultSetMetadataReq req; _TCLIService_GetResultSetMetadata_args__isset __isset; - void __set_req(const TGetResultSetMetadataReq& val); + void __set_req(const TGetResultSetMetadataReq& val) { + req = val; + } bool operator == (const TCLIService_GetResultSetMetadata_args & rhs) const { @@ -1626,7 +1677,8 @@ class TCLIService_GetResultSetMetadata_pargs { public: - virtual ~TCLIService_GetResultSetMetadata_pargs() throw(); + virtual ~TCLIService_GetResultSetMetadata_pargs() throw() {} + const TGetResultSetMetadataReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1635,23 +1687,24 @@ class TCLIService_GetResultSetMetadata_pargs { typedef struct _TCLIService_GetResultSetMetadata_result__isset { _TCLIService_GetResultSetMetadata_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetResultSetMetadata_result__isset; class TCLIService_GetResultSetMetadata_result { public: - TCLIService_GetResultSetMetadata_result(const TCLIService_GetResultSetMetadata_result&); - TCLIService_GetResultSetMetadata_result& operator=(const TCLIService_GetResultSetMetadata_result&); TCLIService_GetResultSetMetadata_result() { } - virtual ~TCLIService_GetResultSetMetadata_result() throw(); + virtual ~TCLIService_GetResultSetMetadata_result() throw() {} + TGetResultSetMetadataResp success; _TCLIService_GetResultSetMetadata_result__isset __isset; - void __set_success(const TGetResultSetMetadataResp& val); + void __set_success(const TGetResultSetMetadataResp& val) { + success = val; + } bool operator == (const TCLIService_GetResultSetMetadata_result & rhs) const { @@ -1672,14 +1725,15 @@ class TCLIService_GetResultSetMetadata_result { typedef struct _TCLIService_GetResultSetMetadata_presult__isset { _TCLIService_GetResultSetMetadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetResultSetMetadata_presult__isset; class TCLIService_GetResultSetMetadata_presult { public: - virtual ~TCLIService_GetResultSetMetadata_presult() throw(); + virtual ~TCLIService_GetResultSetMetadata_presult() throw() {} + TGetResultSetMetadataResp* success; _TCLIService_GetResultSetMetadata_presult__isset __isset; @@ -1690,23 +1744,24 @@ class TCLIService_GetResultSetMetadata_presult { typedef struct _TCLIService_FetchResults_args__isset { _TCLIService_FetchResults_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_FetchResults_args__isset; class TCLIService_FetchResults_args { public: - TCLIService_FetchResults_args(const TCLIService_FetchResults_args&); - TCLIService_FetchResults_args& operator=(const TCLIService_FetchResults_args&); TCLIService_FetchResults_args() { } - virtual ~TCLIService_FetchResults_args() throw(); + virtual ~TCLIService_FetchResults_args() throw() {} + TFetchResultsReq req; _TCLIService_FetchResults_args__isset __isset; - void __set_req(const TFetchResultsReq& val); + void __set_req(const TFetchResultsReq& val) { + req = val; + } bool operator == (const TCLIService_FetchResults_args & rhs) const { @@ -1730,7 +1785,8 @@ class TCLIService_FetchResults_pargs { public: - virtual ~TCLIService_FetchResults_pargs() throw(); + virtual ~TCLIService_FetchResults_pargs() throw() {} + const TFetchResultsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1739,23 +1795,24 @@ class TCLIService_FetchResults_pargs { typedef struct _TCLIService_FetchResults_result__isset { _TCLIService_FetchResults_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_FetchResults_result__isset; class TCLIService_FetchResults_result { public: - TCLIService_FetchResults_result(const TCLIService_FetchResults_result&); - TCLIService_FetchResults_result& operator=(const TCLIService_FetchResults_result&); TCLIService_FetchResults_result() { } - virtual ~TCLIService_FetchResults_result() throw(); + virtual ~TCLIService_FetchResults_result() throw() {} + TFetchResultsResp success; _TCLIService_FetchResults_result__isset __isset; - void __set_success(const TFetchResultsResp& val); + void __set_success(const TFetchResultsResp& val) { + success = val; + } bool operator == (const TCLIService_FetchResults_result & rhs) const { @@ -1776,14 +1833,15 @@ class TCLIService_FetchResults_result { typedef struct _TCLIService_FetchResults_presult__isset { _TCLIService_FetchResults_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_FetchResults_presult__isset; class TCLIService_FetchResults_presult { public: - virtual ~TCLIService_FetchResults_presult() throw(); + virtual ~TCLIService_FetchResults_presult() throw() {} + TFetchResultsResp* success; _TCLIService_FetchResults_presult__isset __isset; @@ -1794,23 +1852,24 @@ class TCLIService_FetchResults_presult { typedef struct _TCLIService_GetDelegationToken_args__isset { _TCLIService_GetDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetDelegationToken_args__isset; class TCLIService_GetDelegationToken_args { public: - TCLIService_GetDelegationToken_args(const TCLIService_GetDelegationToken_args&); - TCLIService_GetDelegationToken_args& operator=(const TCLIService_GetDelegationToken_args&); TCLIService_GetDelegationToken_args() { } - virtual ~TCLIService_GetDelegationToken_args() throw(); + virtual ~TCLIService_GetDelegationToken_args() throw() {} + TGetDelegationTokenReq req; _TCLIService_GetDelegationToken_args__isset __isset; - void __set_req(const TGetDelegationTokenReq& val); + void __set_req(const TGetDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_GetDelegationToken_args & rhs) const { @@ -1834,7 +1893,8 @@ class TCLIService_GetDelegationToken_pargs { public: - virtual ~TCLIService_GetDelegationToken_pargs() throw(); + virtual ~TCLIService_GetDelegationToken_pargs() throw() {} + const TGetDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1843,23 +1903,24 @@ class TCLIService_GetDelegationToken_pargs { typedef struct _TCLIService_GetDelegationToken_result__isset { _TCLIService_GetDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetDelegationToken_result__isset; class TCLIService_GetDelegationToken_result { public: - TCLIService_GetDelegationToken_result(const TCLIService_GetDelegationToken_result&); - TCLIService_GetDelegationToken_result& operator=(const TCLIService_GetDelegationToken_result&); TCLIService_GetDelegationToken_result() { } - virtual ~TCLIService_GetDelegationToken_result() throw(); + virtual ~TCLIService_GetDelegationToken_result() throw() {} + TGetDelegationTokenResp success; _TCLIService_GetDelegationToken_result__isset __isset; - void __set_success(const TGetDelegationTokenResp& val); + void __set_success(const TGetDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_GetDelegationToken_result & rhs) const { @@ -1880,14 +1941,15 @@ class TCLIService_GetDelegationToken_result { typedef struct _TCLIService_GetDelegationToken_presult__isset { _TCLIService_GetDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetDelegationToken_presult__isset; class TCLIService_GetDelegationToken_presult { public: - virtual ~TCLIService_GetDelegationToken_presult() throw(); + virtual ~TCLIService_GetDelegationToken_presult() throw() {} + TGetDelegationTokenResp* success; _TCLIService_GetDelegationToken_presult__isset __isset; @@ -1898,23 +1960,24 @@ class TCLIService_GetDelegationToken_presult { typedef struct _TCLIService_CancelDelegationToken_args__isset { _TCLIService_CancelDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CancelDelegationToken_args__isset; class TCLIService_CancelDelegationToken_args { public: - TCLIService_CancelDelegationToken_args(const TCLIService_CancelDelegationToken_args&); - TCLIService_CancelDelegationToken_args& operator=(const TCLIService_CancelDelegationToken_args&); TCLIService_CancelDelegationToken_args() { } - virtual ~TCLIService_CancelDelegationToken_args() throw(); + virtual ~TCLIService_CancelDelegationToken_args() throw() {} + TCancelDelegationTokenReq req; _TCLIService_CancelDelegationToken_args__isset __isset; - void __set_req(const TCancelDelegationTokenReq& val); + void __set_req(const TCancelDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_CancelDelegationToken_args & rhs) const { @@ -1938,7 +2001,8 @@ class TCLIService_CancelDelegationToken_pargs { public: - virtual ~TCLIService_CancelDelegationToken_pargs() throw(); + virtual ~TCLIService_CancelDelegationToken_pargs() throw() {} + const TCancelDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -1947,23 +2011,24 @@ class TCLIService_CancelDelegationToken_pargs { typedef struct _TCLIService_CancelDelegationToken_result__isset { _TCLIService_CancelDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelDelegationToken_result__isset; class TCLIService_CancelDelegationToken_result { public: - TCLIService_CancelDelegationToken_result(const TCLIService_CancelDelegationToken_result&); - TCLIService_CancelDelegationToken_result& operator=(const TCLIService_CancelDelegationToken_result&); TCLIService_CancelDelegationToken_result() { } - virtual ~TCLIService_CancelDelegationToken_result() throw(); + virtual ~TCLIService_CancelDelegationToken_result() throw() {} + TCancelDelegationTokenResp success; _TCLIService_CancelDelegationToken_result__isset __isset; - void __set_success(const TCancelDelegationTokenResp& val); + void __set_success(const TCancelDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_CancelDelegationToken_result & rhs) const { @@ -1984,14 +2049,15 @@ class TCLIService_CancelDelegationToken_result { typedef struct _TCLIService_CancelDelegationToken_presult__isset { _TCLIService_CancelDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelDelegationToken_presult__isset; class TCLIService_CancelDelegationToken_presult { public: - virtual ~TCLIService_CancelDelegationToken_presult() throw(); + virtual ~TCLIService_CancelDelegationToken_presult() throw() {} + TCancelDelegationTokenResp* success; _TCLIService_CancelDelegationToken_presult__isset __isset; @@ -2002,23 +2068,24 @@ class TCLIService_CancelDelegationToken_presult { typedef struct _TCLIService_RenewDelegationToken_args__isset { _TCLIService_RenewDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_RenewDelegationToken_args__isset; class TCLIService_RenewDelegationToken_args { public: - TCLIService_RenewDelegationToken_args(const TCLIService_RenewDelegationToken_args&); - TCLIService_RenewDelegationToken_args& operator=(const TCLIService_RenewDelegationToken_args&); TCLIService_RenewDelegationToken_args() { } - virtual ~TCLIService_RenewDelegationToken_args() throw(); + virtual ~TCLIService_RenewDelegationToken_args() throw() {} + TRenewDelegationTokenReq req; _TCLIService_RenewDelegationToken_args__isset __isset; - void __set_req(const TRenewDelegationTokenReq& val); + void __set_req(const TRenewDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_RenewDelegationToken_args & rhs) const { @@ -2042,7 +2109,8 @@ class TCLIService_RenewDelegationToken_pargs { public: - virtual ~TCLIService_RenewDelegationToken_pargs() throw(); + virtual ~TCLIService_RenewDelegationToken_pargs() throw() {} + const TRenewDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -2051,23 +2119,24 @@ class TCLIService_RenewDelegationToken_pargs { typedef struct _TCLIService_RenewDelegationToken_result__isset { _TCLIService_RenewDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_RenewDelegationToken_result__isset; class TCLIService_RenewDelegationToken_result { public: - TCLIService_RenewDelegationToken_result(const TCLIService_RenewDelegationToken_result&); - TCLIService_RenewDelegationToken_result& operator=(const TCLIService_RenewDelegationToken_result&); TCLIService_RenewDelegationToken_result() { } - virtual ~TCLIService_RenewDelegationToken_result() throw(); + virtual ~TCLIService_RenewDelegationToken_result() throw() {} + TRenewDelegationTokenResp success; _TCLIService_RenewDelegationToken_result__isset __isset; - void __set_success(const TRenewDelegationTokenResp& val); + void __set_success(const TRenewDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_RenewDelegationToken_result & rhs) const { @@ -2088,14 +2157,15 @@ class TCLIService_RenewDelegationToken_result { typedef struct _TCLIService_RenewDelegationToken_presult__isset { _TCLIService_RenewDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_RenewDelegationToken_presult__isset; class TCLIService_RenewDelegationToken_presult { public: - virtual ~TCLIService_RenewDelegationToken_presult() throw(); + virtual ~TCLIService_RenewDelegationToken_presult() throw() {} + TRenewDelegationTokenResp* success; _TCLIService_RenewDelegationToken_presult__isset __isset; @@ -2106,23 +2176,18 @@ class TCLIService_RenewDelegationToken_presult { class TCLIServiceClient : virtual public TCLIServiceIf { public: - TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot); - } - TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - setProtocol(iprot,oprot); - } - private: - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot,prot); + TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : + piprot_(prot), + poprot_(prot) { + iprot_ = prot.get(); + oprot_ = prot.get(); } - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - piprot_=iprot; - poprot_=oprot; + TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + piprot_(iprot), + poprot_(oprot) { iprot_ = iprot.get(); oprot_ = oprot.get(); } - public: boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } @@ -2462,103 +2527,6 @@ class TCLIServiceMultiface : virtual public TCLIServiceIf { }; -// The 'concurrent' client is a thread safe client that correctly handles -// out of order responses. It is slower than the regular client, so should -// only be used when you need to share a connection among multiple threads -class TCLIServiceConcurrentClient : virtual public TCLIServiceIf { - public: - TCLIServiceConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot); - } - TCLIServiceConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - setProtocol(iprot,oprot); - } - private: - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot,prot); - } - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - piprot_=iprot; - poprot_=oprot; - iprot_ = iprot.get(); - oprot_ = oprot.get(); - } - public: - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { - return piprot_; - } - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() { - return poprot_; - } - void OpenSession(TOpenSessionResp& _return, const TOpenSessionReq& req); - int32_t send_OpenSession(const TOpenSessionReq& req); - void recv_OpenSession(TOpenSessionResp& _return, const int32_t seqid); - void CloseSession(TCloseSessionResp& _return, const TCloseSessionReq& req); - int32_t send_CloseSession(const TCloseSessionReq& req); - void recv_CloseSession(TCloseSessionResp& _return, const int32_t seqid); - void GetInfo(TGetInfoResp& _return, const TGetInfoReq& req); - int32_t send_GetInfo(const TGetInfoReq& req); - void recv_GetInfo(TGetInfoResp& _return, const int32_t seqid); - void ExecuteStatement(TExecuteStatementResp& _return, const TExecuteStatementReq& req); - int32_t send_ExecuteStatement(const TExecuteStatementReq& req); - void recv_ExecuteStatement(TExecuteStatementResp& _return, const int32_t seqid); - void GetTypeInfo(TGetTypeInfoResp& _return, const TGetTypeInfoReq& req); - int32_t send_GetTypeInfo(const TGetTypeInfoReq& req); - void recv_GetTypeInfo(TGetTypeInfoResp& _return, const int32_t seqid); - void GetCatalogs(TGetCatalogsResp& _return, const TGetCatalogsReq& req); - int32_t send_GetCatalogs(const TGetCatalogsReq& req); - void recv_GetCatalogs(TGetCatalogsResp& _return, const int32_t seqid); - void GetSchemas(TGetSchemasResp& _return, const TGetSchemasReq& req); - int32_t send_GetSchemas(const TGetSchemasReq& req); - void recv_GetSchemas(TGetSchemasResp& _return, const int32_t seqid); - void GetTables(TGetTablesResp& _return, const TGetTablesReq& req); - int32_t send_GetTables(const TGetTablesReq& req); - void recv_GetTables(TGetTablesResp& _return, const int32_t seqid); - void GetTableTypes(TGetTableTypesResp& _return, const TGetTableTypesReq& req); - int32_t send_GetTableTypes(const TGetTableTypesReq& req); - void recv_GetTableTypes(TGetTableTypesResp& _return, const int32_t seqid); - void GetColumns(TGetColumnsResp& _return, const TGetColumnsReq& req); - int32_t send_GetColumns(const TGetColumnsReq& req); - void recv_GetColumns(TGetColumnsResp& _return, const int32_t seqid); - void GetFunctions(TGetFunctionsResp& _return, const TGetFunctionsReq& req); - int32_t send_GetFunctions(const TGetFunctionsReq& req); - void recv_GetFunctions(TGetFunctionsResp& _return, const int32_t seqid); - void GetOperationStatus(TGetOperationStatusResp& _return, const TGetOperationStatusReq& req); - int32_t send_GetOperationStatus(const TGetOperationStatusReq& req); - void recv_GetOperationStatus(TGetOperationStatusResp& _return, const int32_t seqid); - void CancelOperation(TCancelOperationResp& _return, const TCancelOperationReq& req); - int32_t send_CancelOperation(const TCancelOperationReq& req); - void recv_CancelOperation(TCancelOperationResp& _return, const int32_t seqid); - void CloseOperation(TCloseOperationResp& _return, const TCloseOperationReq& req); - int32_t send_CloseOperation(const TCloseOperationReq& req); - void recv_CloseOperation(TCloseOperationResp& _return, const int32_t seqid); - void GetResultSetMetadata(TGetResultSetMetadataResp& _return, const TGetResultSetMetadataReq& req); - int32_t send_GetResultSetMetadata(const TGetResultSetMetadataReq& req); - void recv_GetResultSetMetadata(TGetResultSetMetadataResp& _return, const int32_t seqid); - void FetchResults(TFetchResultsResp& _return, const TFetchResultsReq& req); - int32_t send_FetchResults(const TFetchResultsReq& req); - void recv_FetchResults(TFetchResultsResp& _return, const int32_t seqid); - void GetDelegationToken(TGetDelegationTokenResp& _return, const TGetDelegationTokenReq& req); - int32_t send_GetDelegationToken(const TGetDelegationTokenReq& req); - void recv_GetDelegationToken(TGetDelegationTokenResp& _return, const int32_t seqid); - void CancelDelegationToken(TCancelDelegationTokenResp& _return, const TCancelDelegationTokenReq& req); - int32_t send_CancelDelegationToken(const TCancelDelegationTokenReq& req); - void recv_CancelDelegationToken(TCancelDelegationTokenResp& _return, const int32_t seqid); - void RenewDelegationToken(TRenewDelegationTokenResp& _return, const TRenewDelegationTokenReq& req); - int32_t send_RenewDelegationToken(const TRenewDelegationTokenReq& req); - void recv_RenewDelegationToken(TRenewDelegationTokenResp& _return, const int32_t seqid); - protected: - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_; - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_; - ::apache::thrift::protocol::TProtocol* iprot_; - ::apache::thrift::protocol::TProtocol* oprot_; - ::apache::thrift::async::TConcurrentClientSyncInfo sync_; -}; - -#ifdef _WIN32 - #pragma warning( pop ) -#endif - }}}}} // namespace #endif diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp b/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp index 60eeff7..d1551b5 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_constants.h b/service/src/gen/thrift/gen-cpp/TCLIService_constants.h index 9310717..e5a7a1f 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_constants.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp b/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp index b852379..86eeea3 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "TCLIService_types.h" #include -#include - -#include namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { @@ -265,24 +262,11 @@ const char* _kTFetchOrientationNames[] = { }; const std::map _TFetchOrientation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kTFetchOrientationValues, _kTFetchOrientationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -TTypeQualifierValue::~TTypeQualifierValue() throw() { -} - - -void TTypeQualifierValue::__set_i32Value(const int32_t val) { - this->i32Value = val; -__isset.i32Value = true; -} - -void TTypeQualifierValue::__set_stringValue(const std::string& val) { - this->stringValue = val; -__isset.stringValue = true; -} +const char* TTypeQualifierValue::ascii_fingerprint = "A7801670116150C65ACA43E6F679BA79"; +const uint8_t TTypeQualifierValue::binary_fingerprint[16] = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79}; uint32_t TTypeQualifierValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -331,7 +315,6 @@ uint32_t TTypeQualifierValue::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TTypeQualifierValue"); if (this->__isset.i32Value) { @@ -356,37 +339,11 @@ void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) { swap(a.__isset, b.__isset); } -TTypeQualifierValue::TTypeQualifierValue(const TTypeQualifierValue& other0) { - i32Value = other0.i32Value; - stringValue = other0.stringValue; - __isset = other0.__isset; -} -TTypeQualifierValue& TTypeQualifierValue::operator=(const TTypeQualifierValue& other1) { - i32Value = other1.i32Value; - stringValue = other1.stringValue; - __isset = other1.__isset; - return *this; -} -void TTypeQualifierValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TTypeQualifierValue("; - out << "i32Value="; (__isset.i32Value ? (out << to_string(i32Value)) : (out << "")); - out << ", " << "stringValue="; (__isset.stringValue ? (out << to_string(stringValue)) : (out << "")); - out << ")"; -} - - -TTypeQualifiers::~TTypeQualifiers() throw() { -} - - -void TTypeQualifiers::__set_qualifiers(const std::map & val) { - this->qualifiers = val; -} +const char* TTypeQualifiers::ascii_fingerprint = "6C72981CFA989214285648FA8C196C47"; +const uint8_t TTypeQualifiers::binary_fingerprint[16] = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47}; uint32_t TTypeQualifiers::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -410,17 +367,17 @@ uint32_t TTypeQualifiers::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->qualifiers.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _ktype3; - ::apache::thrift::protocol::TType _vtype4; - xfer += iprot->readMapBegin(_ktype3, _vtype4, _size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) + uint32_t _size0; + ::apache::thrift::protocol::TType _ktype1; + ::apache::thrift::protocol::TType _vtype2; + xfer += iprot->readMapBegin(_ktype1, _vtype2, _size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - std::string _key7; - xfer += iprot->readString(_key7); - TTypeQualifierValue& _val8 = this->qualifiers[_key7]; - xfer += _val8.read(iprot); + std::string _key5; + xfer += iprot->readString(_key5); + TTypeQualifierValue& _val6 = this->qualifiers[_key5]; + xfer += _val6.read(iprot); } xfer += iprot->readMapEnd(); } @@ -445,17 +402,16 @@ uint32_t TTypeQualifiers::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TTypeQualifiers"); xfer += oprot->writeFieldBegin("qualifiers", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->qualifiers.size())); - std::map ::const_iterator _iter9; - for (_iter9 = this->qualifiers.begin(); _iter9 != this->qualifiers.end(); ++_iter9) + std::map ::const_iterator _iter7; + for (_iter7 = this->qualifiers.begin(); _iter7 != this->qualifiers.end(); ++_iter7) { - xfer += oprot->writeString(_iter9->first); - xfer += _iter9->second.write(oprot); + xfer += oprot->writeString(_iter7->first); + xfer += _iter7->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -471,37 +427,11 @@ void swap(TTypeQualifiers &a, TTypeQualifiers &b) { swap(a.qualifiers, b.qualifiers); } -TTypeQualifiers::TTypeQualifiers(const TTypeQualifiers& other10) { - qualifiers = other10.qualifiers; -} -TTypeQualifiers& TTypeQualifiers::operator=(const TTypeQualifiers& other11) { - qualifiers = other11.qualifiers; - return *this; -} -void TTypeQualifiers::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TTypeQualifiers("; - out << "qualifiers=" << to_string(qualifiers); - out << ")"; -} - - -TPrimitiveTypeEntry::~TPrimitiveTypeEntry() throw() { -} - - -void TPrimitiveTypeEntry::__set_type(const TTypeId::type val) { - this->type = val; -} - -void TPrimitiveTypeEntry::__set_typeQualifiers(const TTypeQualifiers& val) { - this->typeQualifiers = val; -__isset.typeQualifiers = true; -} +const char* TPrimitiveTypeEntry::ascii_fingerprint = "755674F6A5C8EB47868686AE386FBC1C"; +const uint8_t TPrimitiveTypeEntry::binary_fingerprint[16] = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C}; uint32_t TPrimitiveTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -523,9 +453,9 @@ uint32_t TPrimitiveTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast12; - xfer += iprot->readI32(ecast12); - this->type = (TTypeId::type)ecast12; + int32_t ecast8; + xfer += iprot->readI32(ecast8); + this->type = (TTypeId::type)ecast8; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -555,7 +485,6 @@ uint32_t TPrimitiveTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TPrimitiveTypeEntry"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); @@ -579,37 +508,11 @@ void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) { swap(a.__isset, b.__isset); } -TPrimitiveTypeEntry::TPrimitiveTypeEntry(const TPrimitiveTypeEntry& other13) { - type = other13.type; - typeQualifiers = other13.typeQualifiers; - __isset = other13.__isset; -} -TPrimitiveTypeEntry& TPrimitiveTypeEntry::operator=(const TPrimitiveTypeEntry& other14) { - type = other14.type; - typeQualifiers = other14.typeQualifiers; - __isset = other14.__isset; - return *this; -} -void TPrimitiveTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TPrimitiveTypeEntry("; - out << "type=" << to_string(type); - out << ", " << "typeQualifiers="; (__isset.typeQualifiers ? (out << to_string(typeQualifiers)) : (out << "")); - out << ")"; -} - - -TArrayTypeEntry::~TArrayTypeEntry() throw() { -} - - -void TArrayTypeEntry::__set_objectTypePtr(const TTypeEntryPtr val) { - this->objectTypePtr = val; -} +const char* TArrayTypeEntry::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4"; +const uint8_t TArrayTypeEntry::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; uint32_t TArrayTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -653,7 +556,6 @@ uint32_t TArrayTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TArrayTypeEntry"); xfer += oprot->writeFieldBegin("objectTypePtr", ::apache::thrift::protocol::T_I32, 1); @@ -670,36 +572,11 @@ void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) { swap(a.objectTypePtr, b.objectTypePtr); } -TArrayTypeEntry::TArrayTypeEntry(const TArrayTypeEntry& other15) { - objectTypePtr = other15.objectTypePtr; -} -TArrayTypeEntry& TArrayTypeEntry::operator=(const TArrayTypeEntry& other16) { - objectTypePtr = other16.objectTypePtr; - return *this; -} -void TArrayTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TArrayTypeEntry("; - out << "objectTypePtr=" << to_string(objectTypePtr); - out << ")"; -} - - -TMapTypeEntry::~TMapTypeEntry() throw() { -} - - -void TMapTypeEntry::__set_keyTypePtr(const TTypeEntryPtr val) { - this->keyTypePtr = val; -} - -void TMapTypeEntry::__set_valueTypePtr(const TTypeEntryPtr val) { - this->valueTypePtr = val; -} +const char* TMapTypeEntry::ascii_fingerprint = "989D1F1AE8D148D5E2119FFEC4BBBEE3"; +const uint8_t TMapTypeEntry::binary_fingerprint[16] = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3}; uint32_t TMapTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -754,7 +631,6 @@ uint32_t TMapTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TMapTypeEntry"); xfer += oprot->writeFieldBegin("keyTypePtr", ::apache::thrift::protocol::T_I32, 1); @@ -776,35 +652,11 @@ void swap(TMapTypeEntry &a, TMapTypeEntry &b) { swap(a.valueTypePtr, b.valueTypePtr); } -TMapTypeEntry::TMapTypeEntry(const TMapTypeEntry& other17) { - keyTypePtr = other17.keyTypePtr; - valueTypePtr = other17.valueTypePtr; -} -TMapTypeEntry& TMapTypeEntry::operator=(const TMapTypeEntry& other18) { - keyTypePtr = other18.keyTypePtr; - valueTypePtr = other18.valueTypePtr; - return *this; -} -void TMapTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TMapTypeEntry("; - out << "keyTypePtr=" << to_string(keyTypePtr); - out << ", " << "valueTypePtr=" << to_string(valueTypePtr); - out << ")"; -} - - -TStructTypeEntry::~TStructTypeEntry() throw() { -} - - -void TStructTypeEntry::__set_nameToTypePtr(const std::map & val) { - this->nameToTypePtr = val; -} +const char* TStructTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; +const uint8_t TStructTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; uint32_t TStructTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -828,17 +680,17 @@ uint32_t TStructTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->nameToTypePtr.clear(); - uint32_t _size19; - ::apache::thrift::protocol::TType _ktype20; - ::apache::thrift::protocol::TType _vtype21; - xfer += iprot->readMapBegin(_ktype20, _vtype21, _size19); - uint32_t _i23; - for (_i23 = 0; _i23 < _size19; ++_i23) + uint32_t _size9; + ::apache::thrift::protocol::TType _ktype10; + ::apache::thrift::protocol::TType _vtype11; + xfer += iprot->readMapBegin(_ktype10, _vtype11, _size9); + uint32_t _i13; + for (_i13 = 0; _i13 < _size9; ++_i13) { - std::string _key24; - xfer += iprot->readString(_key24); - TTypeEntryPtr& _val25 = this->nameToTypePtr[_key24]; - xfer += iprot->readI32(_val25); + std::string _key14; + xfer += iprot->readString(_key14); + TTypeEntryPtr& _val15 = this->nameToTypePtr[_key14]; + xfer += iprot->readI32(_val15); } xfer += iprot->readMapEnd(); } @@ -863,17 +715,16 @@ uint32_t TStructTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TStructTypeEntry"); xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size())); - std::map ::const_iterator _iter26; - for (_iter26 = this->nameToTypePtr.begin(); _iter26 != this->nameToTypePtr.end(); ++_iter26) + std::map ::const_iterator _iter16; + for (_iter16 = this->nameToTypePtr.begin(); _iter16 != this->nameToTypePtr.end(); ++_iter16) { - xfer += oprot->writeString(_iter26->first); - xfer += oprot->writeI32(_iter26->second); + xfer += oprot->writeString(_iter16->first); + xfer += oprot->writeI32(_iter16->second); } xfer += oprot->writeMapEnd(); } @@ -889,32 +740,11 @@ void swap(TStructTypeEntry &a, TStructTypeEntry &b) { swap(a.nameToTypePtr, b.nameToTypePtr); } -TStructTypeEntry::TStructTypeEntry(const TStructTypeEntry& other27) { - nameToTypePtr = other27.nameToTypePtr; -} -TStructTypeEntry& TStructTypeEntry::operator=(const TStructTypeEntry& other28) { - nameToTypePtr = other28.nameToTypePtr; - return *this; -} -void TStructTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TStructTypeEntry("; - out << "nameToTypePtr=" << to_string(nameToTypePtr); - out << ")"; -} - - -TUnionTypeEntry::~TUnionTypeEntry() throw() { -} - - -void TUnionTypeEntry::__set_nameToTypePtr(const std::map & val) { - this->nameToTypePtr = val; -} +const char* TUnionTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; +const uint8_t TUnionTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; uint32_t TUnionTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -938,17 +768,17 @@ uint32_t TUnionTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->nameToTypePtr.clear(); - uint32_t _size29; - ::apache::thrift::protocol::TType _ktype30; - ::apache::thrift::protocol::TType _vtype31; - xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29); - uint32_t _i33; - for (_i33 = 0; _i33 < _size29; ++_i33) + uint32_t _size17; + ::apache::thrift::protocol::TType _ktype18; + ::apache::thrift::protocol::TType _vtype19; + xfer += iprot->readMapBegin(_ktype18, _vtype19, _size17); + uint32_t _i21; + for (_i21 = 0; _i21 < _size17; ++_i21) { - std::string _key34; - xfer += iprot->readString(_key34); - TTypeEntryPtr& _val35 = this->nameToTypePtr[_key34]; - xfer += iprot->readI32(_val35); + std::string _key22; + xfer += iprot->readString(_key22); + TTypeEntryPtr& _val23 = this->nameToTypePtr[_key22]; + xfer += iprot->readI32(_val23); } xfer += iprot->readMapEnd(); } @@ -973,17 +803,16 @@ uint32_t TUnionTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TUnionTypeEntry"); xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size())); - std::map ::const_iterator _iter36; - for (_iter36 = this->nameToTypePtr.begin(); _iter36 != this->nameToTypePtr.end(); ++_iter36) + std::map ::const_iterator _iter24; + for (_iter24 = this->nameToTypePtr.begin(); _iter24 != this->nameToTypePtr.end(); ++_iter24) { - xfer += oprot->writeString(_iter36->first); - xfer += oprot->writeI32(_iter36->second); + xfer += oprot->writeString(_iter24->first); + xfer += oprot->writeI32(_iter24->second); } xfer += oprot->writeMapEnd(); } @@ -999,32 +828,11 @@ void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) { swap(a.nameToTypePtr, b.nameToTypePtr); } -TUnionTypeEntry::TUnionTypeEntry(const TUnionTypeEntry& other37) { - nameToTypePtr = other37.nameToTypePtr; -} -TUnionTypeEntry& TUnionTypeEntry::operator=(const TUnionTypeEntry& other38) { - nameToTypePtr = other38.nameToTypePtr; - return *this; -} -void TUnionTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TUnionTypeEntry("; - out << "nameToTypePtr=" << to_string(nameToTypePtr); - out << ")"; -} - - -TUserDefinedTypeEntry::~TUserDefinedTypeEntry() throw() { -} - - -void TUserDefinedTypeEntry::__set_typeClassName(const std::string& val) { - this->typeClassName = val; -} +const char* TUserDefinedTypeEntry::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; +const uint8_t TUserDefinedTypeEntry::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; uint32_t TUserDefinedTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1068,7 +876,6 @@ uint32_t TUserDefinedTypeEntry::read(::apache::thrift::protocol::TProtocol* ipro uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TUserDefinedTypeEntry"); xfer += oprot->writeFieldBegin("typeClassName", ::apache::thrift::protocol::T_STRING, 1); @@ -1085,52 +892,11 @@ void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) { swap(a.typeClassName, b.typeClassName); } -TUserDefinedTypeEntry::TUserDefinedTypeEntry(const TUserDefinedTypeEntry& other39) { - typeClassName = other39.typeClassName; -} -TUserDefinedTypeEntry& TUserDefinedTypeEntry::operator=(const TUserDefinedTypeEntry& other40) { - typeClassName = other40.typeClassName; - return *this; -} -void TUserDefinedTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TUserDefinedTypeEntry("; - out << "typeClassName=" << to_string(typeClassName); - out << ")"; -} - - -TTypeEntry::~TTypeEntry() throw() { -} - - -void TTypeEntry::__set_primitiveEntry(const TPrimitiveTypeEntry& val) { - this->primitiveEntry = val; -} - -void TTypeEntry::__set_arrayEntry(const TArrayTypeEntry& val) { - this->arrayEntry = val; -} - -void TTypeEntry::__set_mapEntry(const TMapTypeEntry& val) { - this->mapEntry = val; -} - -void TTypeEntry::__set_structEntry(const TStructTypeEntry& val) { - this->structEntry = val; -} - -void TTypeEntry::__set_unionEntry(const TUnionTypeEntry& val) { - this->unionEntry = val; -} - -void TTypeEntry::__set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) { - this->userDefinedTypeEntry = val; -} +const char* TTypeEntry::ascii_fingerprint = "2FE56D9097E325DAA7E933738C6D325F"; +const uint8_t TTypeEntry::binary_fingerprint[16] = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F}; uint32_t TTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1211,7 +977,6 @@ uint32_t TTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TTypeEntry"); xfer += oprot->writeFieldBegin("primitiveEntry", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1254,49 +1019,11 @@ void swap(TTypeEntry &a, TTypeEntry &b) { swap(a.__isset, b.__isset); } -TTypeEntry::TTypeEntry(const TTypeEntry& other41) { - primitiveEntry = other41.primitiveEntry; - arrayEntry = other41.arrayEntry; - mapEntry = other41.mapEntry; - structEntry = other41.structEntry; - unionEntry = other41.unionEntry; - userDefinedTypeEntry = other41.userDefinedTypeEntry; - __isset = other41.__isset; -} -TTypeEntry& TTypeEntry::operator=(const TTypeEntry& other42) { - primitiveEntry = other42.primitiveEntry; - arrayEntry = other42.arrayEntry; - mapEntry = other42.mapEntry; - structEntry = other42.structEntry; - unionEntry = other42.unionEntry; - userDefinedTypeEntry = other42.userDefinedTypeEntry; - __isset = other42.__isset; - return *this; -} -void TTypeEntry::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TTypeEntry("; - out << "primitiveEntry=" << to_string(primitiveEntry); - out << ", " << "arrayEntry=" << to_string(arrayEntry); - out << ", " << "mapEntry=" << to_string(mapEntry); - out << ", " << "structEntry=" << to_string(structEntry); - out << ", " << "unionEntry=" << to_string(unionEntry); - out << ", " << "userDefinedTypeEntry=" << to_string(userDefinedTypeEntry); - out << ")"; -} - - -TTypeDesc::~TTypeDesc() throw() { -} - - -void TTypeDesc::__set_types(const std::vector & val) { - this->types = val; -} +const char* TTypeDesc::ascii_fingerprint = "90B3C5A0B73419A84E85E0E48C452AA5"; +const uint8_t TTypeDesc::binary_fingerprint[16] = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5}; uint32_t TTypeDesc::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1320,14 +1047,14 @@ uint32_t TTypeDesc::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->types.clear(); - uint32_t _size43; - ::apache::thrift::protocol::TType _etype46; - xfer += iprot->readListBegin(_etype46, _size43); - this->types.resize(_size43); - uint32_t _i47; - for (_i47 = 0; _i47 < _size43; ++_i47) + uint32_t _size25; + ::apache::thrift::protocol::TType _etype28; + xfer += iprot->readListBegin(_etype28, _size25); + this->types.resize(_size25); + uint32_t _i29; + for (_i29 = 0; _i29 < _size25; ++_i29) { - xfer += this->types[_i47].read(iprot); + xfer += this->types[_i29].read(iprot); } xfer += iprot->readListEnd(); } @@ -1352,16 +1079,15 @@ uint32_t TTypeDesc::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TTypeDesc"); xfer += oprot->writeFieldBegin("types", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->types.size())); - std::vector ::const_iterator _iter48; - for (_iter48 = this->types.begin(); _iter48 != this->types.end(); ++_iter48) + std::vector ::const_iterator _iter30; + for (_iter30 = this->types.begin(); _iter30 != this->types.end(); ++_iter30) { - xfer += (*_iter48).write(oprot); + xfer += (*_iter30).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1377,45 +1103,11 @@ void swap(TTypeDesc &a, TTypeDesc &b) { swap(a.types, b.types); } -TTypeDesc::TTypeDesc(const TTypeDesc& other49) { - types = other49.types; -} -TTypeDesc& TTypeDesc::operator=(const TTypeDesc& other50) { - types = other50.types; - return *this; -} -void TTypeDesc::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TTypeDesc("; - out << "types=" << to_string(types); - out << ")"; -} - - -TColumnDesc::~TColumnDesc() throw() { -} - - -void TColumnDesc::__set_columnName(const std::string& val) { - this->columnName = val; -} - -void TColumnDesc::__set_typeDesc(const TTypeDesc& val) { - this->typeDesc = val; -} - -void TColumnDesc::__set_position(const int32_t val) { - this->position = val; -} - -void TColumnDesc::__set_comment(const std::string& val) { - this->comment = val; -__isset.comment = true; -} +const char* TColumnDesc::ascii_fingerprint = "EABED9009D5FCABFCA65612069F2A849"; +const uint8_t TColumnDesc::binary_fingerprint[16] = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49}; uint32_t TColumnDesc::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1489,7 +1181,6 @@ uint32_t TColumnDesc::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TColumnDesc"); xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 1); @@ -1523,43 +1214,11 @@ void swap(TColumnDesc &a, TColumnDesc &b) { swap(a.__isset, b.__isset); } -TColumnDesc::TColumnDesc(const TColumnDesc& other51) { - columnName = other51.columnName; - typeDesc = other51.typeDesc; - position = other51.position; - comment = other51.comment; - __isset = other51.__isset; -} -TColumnDesc& TColumnDesc::operator=(const TColumnDesc& other52) { - columnName = other52.columnName; - typeDesc = other52.typeDesc; - position = other52.position; - comment = other52.comment; - __isset = other52.__isset; - return *this; -} -void TColumnDesc::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TColumnDesc("; - out << "columnName=" << to_string(columnName); - out << ", " << "typeDesc=" << to_string(typeDesc); - out << ", " << "position=" << to_string(position); - out << ", " << "comment="; (__isset.comment ? (out << to_string(comment)) : (out << "")); - out << ")"; -} - - -TTableSchema::~TTableSchema() throw() { -} - - -void TTableSchema::__set_columns(const std::vector & val) { - this->columns = val; -} +const char* TTableSchema::ascii_fingerprint = "7A1811E49313E5977107FC667B20E39D"; +const uint8_t TTableSchema::binary_fingerprint[16] = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D}; uint32_t TTableSchema::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1583,14 +1242,14 @@ uint32_t TTableSchema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->columns.clear(); - uint32_t _size53; - ::apache::thrift::protocol::TType _etype56; - xfer += iprot->readListBegin(_etype56, _size53); - this->columns.resize(_size53); - uint32_t _i57; - for (_i57 = 0; _i57 < _size53; ++_i57) + uint32_t _size31; + ::apache::thrift::protocol::TType _etype34; + xfer += iprot->readListBegin(_etype34, _size31); + this->columns.resize(_size31); + uint32_t _i35; + for (_i35 = 0; _i35 < _size31; ++_i35) { - xfer += this->columns[_i57].read(iprot); + xfer += this->columns[_i35].read(iprot); } xfer += iprot->readListEnd(); } @@ -1615,16 +1274,15 @@ uint32_t TTableSchema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TTableSchema"); xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size())); - std::vector ::const_iterator _iter58; - for (_iter58 = this->columns.begin(); _iter58 != this->columns.end(); ++_iter58) + std::vector ::const_iterator _iter36; + for (_iter36 = this->columns.begin(); _iter36 != this->columns.end(); ++_iter36) { - xfer += (*_iter58).write(oprot); + xfer += (*_iter36).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1640,33 +1298,11 @@ void swap(TTableSchema &a, TTableSchema &b) { swap(a.columns, b.columns); } -TTableSchema::TTableSchema(const TTableSchema& other59) { - columns = other59.columns; -} -TTableSchema& TTableSchema::operator=(const TTableSchema& other60) { - columns = other60.columns; - return *this; -} -void TTableSchema::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TTableSchema("; - out << "columns=" << to_string(columns); - out << ")"; -} - - -TBoolValue::~TBoolValue() throw() { -} - - -void TBoolValue::__set_value(const bool val) { - this->value = val; -__isset.value = true; -} +const char* TBoolValue::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; +const uint8_t TBoolValue::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; uint32_t TBoolValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1707,7 +1343,6 @@ uint32_t TBoolValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TBoolValue"); if (this->__isset.value) { @@ -1726,35 +1361,11 @@ void swap(TBoolValue &a, TBoolValue &b) { swap(a.__isset, b.__isset); } -TBoolValue::TBoolValue(const TBoolValue& other61) { - value = other61.value; - __isset = other61.__isset; -} -TBoolValue& TBoolValue::operator=(const TBoolValue& other62) { - value = other62.value; - __isset = other62.__isset; - return *this; -} -void TBoolValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TBoolValue("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TByteValue::~TByteValue() throw() { -} - - -void TByteValue::__set_value(const int8_t val) { - this->value = val; -__isset.value = true; -} +const char* TByteValue::ascii_fingerprint = "9C15298ACB5D04AEA9B52D5DDE6F9208"; +const uint8_t TByteValue::binary_fingerprint[16] = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08}; uint32_t TByteValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1795,7 +1406,6 @@ uint32_t TByteValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TByteValue"); if (this->__isset.value) { @@ -1814,35 +1424,11 @@ void swap(TByteValue &a, TByteValue &b) { swap(a.__isset, b.__isset); } -TByteValue::TByteValue(const TByteValue& other63) { - value = other63.value; - __isset = other63.__isset; -} -TByteValue& TByteValue::operator=(const TByteValue& other64) { - value = other64.value; - __isset = other64.__isset; - return *this; -} -void TByteValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TByteValue("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TI16Value::~TI16Value() throw() { -} - - -void TI16Value::__set_value(const int16_t val) { - this->value = val; -__isset.value = true; -} +const char* TI16Value::ascii_fingerprint = "5DAC9C51C7E1106BF936FC71860BE9D5"; +const uint8_t TI16Value::binary_fingerprint[16] = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5}; uint32_t TI16Value::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1883,7 +1469,6 @@ uint32_t TI16Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI16Value"); if (this->__isset.value) { @@ -1902,35 +1487,11 @@ void swap(TI16Value &a, TI16Value &b) { swap(a.__isset, b.__isset); } -TI16Value::TI16Value(const TI16Value& other65) { - value = other65.value; - __isset = other65.__isset; -} -TI16Value& TI16Value::operator=(const TI16Value& other66) { - value = other66.value; - __isset = other66.__isset; - return *this; -} -void TI16Value::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI16Value("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TI32Value::~TI32Value() throw() { -} - - -void TI32Value::__set_value(const int32_t val) { - this->value = val; -__isset.value = true; -} +const char* TI32Value::ascii_fingerprint = "E7A96B151330359E84C0A3AC91BCBACD"; +const uint8_t TI32Value::binary_fingerprint[16] = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD}; uint32_t TI32Value::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -1971,7 +1532,6 @@ uint32_t TI32Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI32Value"); if (this->__isset.value) { @@ -1990,35 +1550,11 @@ void swap(TI32Value &a, TI32Value &b) { swap(a.__isset, b.__isset); } -TI32Value::TI32Value(const TI32Value& other67) { - value = other67.value; - __isset = other67.__isset; -} -TI32Value& TI32Value::operator=(const TI32Value& other68) { - value = other68.value; - __isset = other68.__isset; - return *this; -} -void TI32Value::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI32Value("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TI64Value::~TI64Value() throw() { -} - - -void TI64Value::__set_value(const int64_t val) { - this->value = val; -__isset.value = true; -} +const char* TI64Value::ascii_fingerprint = "148F3AAAC1D9859963D5E800D187BF26"; +const uint8_t TI64Value::binary_fingerprint[16] = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26}; uint32_t TI64Value::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2059,7 +1595,6 @@ uint32_t TI64Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI64Value"); if (this->__isset.value) { @@ -2078,35 +1613,11 @@ void swap(TI64Value &a, TI64Value &b) { swap(a.__isset, b.__isset); } -TI64Value::TI64Value(const TI64Value& other69) { - value = other69.value; - __isset = other69.__isset; -} -TI64Value& TI64Value::operator=(const TI64Value& other70) { - value = other70.value; - __isset = other70.__isset; - return *this; -} -void TI64Value::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI64Value("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TDoubleValue::~TDoubleValue() throw() { -} - - -void TDoubleValue::__set_value(const double val) { - this->value = val; -__isset.value = true; -} +const char* TDoubleValue::ascii_fingerprint = "3586E570A474C4A8603B4FF74903B3A6"; +const uint8_t TDoubleValue::binary_fingerprint[16] = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6}; uint32_t TDoubleValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2147,7 +1658,6 @@ uint32_t TDoubleValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TDoubleValue"); if (this->__isset.value) { @@ -2166,35 +1676,11 @@ void swap(TDoubleValue &a, TDoubleValue &b) { swap(a.__isset, b.__isset); } -TDoubleValue::TDoubleValue(const TDoubleValue& other71) { - value = other71.value; - __isset = other71.__isset; -} -TDoubleValue& TDoubleValue::operator=(const TDoubleValue& other72) { - value = other72.value; - __isset = other72.__isset; - return *this; -} -void TDoubleValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TDoubleValue("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TStringValue::~TStringValue() throw() { -} - - -void TStringValue::__set_value(const std::string& val) { - this->value = val; -__isset.value = true; -} +const char* TStringValue::ascii_fingerprint = "66E694018C17E5B65A59AE8F55CCA3CD"; +const uint8_t TStringValue::binary_fingerprint[16] = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD}; uint32_t TStringValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2235,7 +1721,6 @@ uint32_t TStringValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TStringValue"); if (this->__isset.value) { @@ -2254,58 +1739,11 @@ void swap(TStringValue &a, TStringValue &b) { swap(a.__isset, b.__isset); } -TStringValue::TStringValue(const TStringValue& other73) { - value = other73.value; - __isset = other73.__isset; -} -TStringValue& TStringValue::operator=(const TStringValue& other74) { - value = other74.value; - __isset = other74.__isset; - return *this; -} -void TStringValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TStringValue("; - out << "value="; (__isset.value ? (out << to_string(value)) : (out << "")); - out << ")"; -} - - -TColumnValue::~TColumnValue() throw() { -} - - -void TColumnValue::__set_boolVal(const TBoolValue& val) { - this->boolVal = val; -} - -void TColumnValue::__set_byteVal(const TByteValue& val) { - this->byteVal = val; -} - -void TColumnValue::__set_i16Val(const TI16Value& val) { - this->i16Val = val; -} - -void TColumnValue::__set_i32Val(const TI32Value& val) { - this->i32Val = val; -} - -void TColumnValue::__set_i64Val(const TI64Value& val) { - this->i64Val = val; -} - -void TColumnValue::__set_doubleVal(const TDoubleValue& val) { - this->doubleVal = val; -} - -void TColumnValue::__set_stringVal(const TStringValue& val) { - this->stringVal = val; -} +const char* TColumnValue::ascii_fingerprint = "C2DDD988447EA7999A8285AA38AAE9AD"; +const uint8_t TColumnValue::binary_fingerprint[16] = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD}; uint32_t TColumnValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2394,7 +1832,6 @@ uint32_t TColumnValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TColumnValue"); xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2442,52 +1879,11 @@ void swap(TColumnValue &a, TColumnValue &b) { swap(a.__isset, b.__isset); } -TColumnValue::TColumnValue(const TColumnValue& other75) { - boolVal = other75.boolVal; - byteVal = other75.byteVal; - i16Val = other75.i16Val; - i32Val = other75.i32Val; - i64Val = other75.i64Val; - doubleVal = other75.doubleVal; - stringVal = other75.stringVal; - __isset = other75.__isset; -} -TColumnValue& TColumnValue::operator=(const TColumnValue& other76) { - boolVal = other76.boolVal; - byteVal = other76.byteVal; - i16Val = other76.i16Val; - i32Val = other76.i32Val; - i64Val = other76.i64Val; - doubleVal = other76.doubleVal; - stringVal = other76.stringVal; - __isset = other76.__isset; - return *this; -} -void TColumnValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TColumnValue("; - out << "boolVal=" << to_string(boolVal); - out << ", " << "byteVal=" << to_string(byteVal); - out << ", " << "i16Val=" << to_string(i16Val); - out << ", " << "i32Val=" << to_string(i32Val); - out << ", " << "i64Val=" << to_string(i64Val); - out << ", " << "doubleVal=" << to_string(doubleVal); - out << ", " << "stringVal=" << to_string(stringVal); - out << ")"; -} - - -TRow::~TRow() throw() { -} - - -void TRow::__set_colVals(const std::vector & val) { - this->colVals = val; -} +const char* TRow::ascii_fingerprint = "E73FD1FCA0CA58A669FC3E02FB68D534"; +const uint8_t TRow::binary_fingerprint[16] = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34}; uint32_t TRow::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2511,14 +1907,14 @@ uint32_t TRow::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colVals.clear(); - uint32_t _size77; - ::apache::thrift::protocol::TType _etype80; - xfer += iprot->readListBegin(_etype80, _size77); - this->colVals.resize(_size77); - uint32_t _i81; - for (_i81 = 0; _i81 < _size77; ++_i81) + uint32_t _size37; + ::apache::thrift::protocol::TType _etype40; + xfer += iprot->readListBegin(_etype40, _size37); + this->colVals.resize(_size37); + uint32_t _i41; + for (_i41 = 0; _i41 < _size37; ++_i41) { - xfer += this->colVals[_i81].read(iprot); + xfer += this->colVals[_i41].read(iprot); } xfer += iprot->readListEnd(); } @@ -2543,16 +1939,15 @@ uint32_t TRow::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TRow"); xfer += oprot->writeFieldBegin("colVals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colVals.size())); - std::vector ::const_iterator _iter82; - for (_iter82 = this->colVals.begin(); _iter82 != this->colVals.end(); ++_iter82) + std::vector ::const_iterator _iter42; + for (_iter42 = this->colVals.begin(); _iter42 != this->colVals.end(); ++_iter42) { - xfer += (*_iter82).write(oprot); + xfer += (*_iter42).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2568,36 +1963,11 @@ void swap(TRow &a, TRow &b) { swap(a.colVals, b.colVals); } -TRow::TRow(const TRow& other83) { - colVals = other83.colVals; -} -TRow& TRow::operator=(const TRow& other84) { - colVals = other84.colVals; - return *this; -} -void TRow::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TRow("; - out << "colVals=" << to_string(colVals); - out << ")"; -} - - -TBoolColumn::~TBoolColumn() throw() { -} - - -void TBoolColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TBoolColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TBoolColumn::ascii_fingerprint = "F9058324D96DB7F974D8ACDC01C54219"; +const uint8_t TBoolColumn::binary_fingerprint[16] = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2622,14 +1992,14 @@ uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size85; - ::apache::thrift::protocol::TType _etype88; - xfer += iprot->readListBegin(_etype88, _size85); - this->values.resize(_size85); - uint32_t _i89; - for (_i89 = 0; _i89 < _size85; ++_i89) + uint32_t _size43; + ::apache::thrift::protocol::TType _etype46; + xfer += iprot->readListBegin(_etype46, _size43); + this->values.resize(_size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) { - xfer += iprot->readBool(this->values[_i89]); + xfer += iprot->readBool(this->values[_i47]); } xfer += iprot->readListEnd(); } @@ -2664,16 +2034,15 @@ uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TBoolColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BOOL, static_cast(this->values.size())); - std::vector ::const_iterator _iter90; - for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90) + std::vector ::const_iterator _iter48; + for (_iter48 = this->values.begin(); _iter48 != this->values.end(); ++_iter48) { - xfer += oprot->writeBool((*_iter90)); + xfer += oprot->writeBool((*_iter48)); } xfer += oprot->writeListEnd(); } @@ -2694,39 +2063,11 @@ void swap(TBoolColumn &a, TBoolColumn &b) { swap(a.nulls, b.nulls); } -TBoolColumn::TBoolColumn(const TBoolColumn& other91) { - values = other91.values; - nulls = other91.nulls; -} -TBoolColumn& TBoolColumn::operator=(const TBoolColumn& other92) { - values = other92.values; - nulls = other92.nulls; - return *this; -} -void TBoolColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TBoolColumn("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TByteColumn::~TByteColumn() throw() { -} +const char* TByteColumn::ascii_fingerprint = "1CB300106BAA463A70BB2A2395900F48"; +const uint8_t TByteColumn::binary_fingerprint[16] = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48}; +uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { -void TByteColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TByteColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - -uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2751,14 +2092,14 @@ uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->values.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size49; + ::apache::thrift::protocol::TType _etype52; + xfer += iprot->readListBegin(_etype52, _size49); + this->values.resize(_size49); + uint32_t _i53; + for (_i53 = 0; _i53 < _size49; ++_i53) { - xfer += iprot->readByte(this->values[_i97]); + xfer += iprot->readByte(this->values[_i53]); } xfer += iprot->readListEnd(); } @@ -2793,16 +2134,15 @@ uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TByteColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BYTE, static_cast(this->values.size())); - std::vector ::const_iterator _iter98; - for (_iter98 = this->values.begin(); _iter98 != this->values.end(); ++_iter98) + std::vector ::const_iterator _iter54; + for (_iter54 = this->values.begin(); _iter54 != this->values.end(); ++_iter54) { - xfer += oprot->writeByte((*_iter98)); + xfer += oprot->writeByte((*_iter54)); } xfer += oprot->writeListEnd(); } @@ -2823,39 +2163,11 @@ void swap(TByteColumn &a, TByteColumn &b) { swap(a.nulls, b.nulls); } -TByteColumn::TByteColumn(const TByteColumn& other99) { - values = other99.values; - nulls = other99.nulls; -} -TByteColumn& TByteColumn::operator=(const TByteColumn& other100) { - values = other100.values; - nulls = other100.nulls; - return *this; -} -void TByteColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TByteColumn("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TI16Column::~TI16Column() throw() { -} - - -void TI16Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI16Column::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TI16Column::ascii_fingerprint = "6574CDB1F121C8DB47FB257A3F104BDB"; +const uint8_t TI16Column::binary_fingerprint[16] = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB}; uint32_t TI16Column::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -2880,14 +2192,14 @@ uint32_t TI16Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size101; - ::apache::thrift::protocol::TType _etype104; - xfer += iprot->readListBegin(_etype104, _size101); - this->values.resize(_size101); - uint32_t _i105; - for (_i105 = 0; _i105 < _size101; ++_i105) + uint32_t _size55; + ::apache::thrift::protocol::TType _etype58; + xfer += iprot->readListBegin(_etype58, _size55); + this->values.resize(_size55); + uint32_t _i59; + for (_i59 = 0; _i59 < _size55; ++_i59) { - xfer += iprot->readI16(this->values[_i105]); + xfer += iprot->readI16(this->values[_i59]); } xfer += iprot->readListEnd(); } @@ -2922,16 +2234,15 @@ uint32_t TI16Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI16Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I16, static_cast(this->values.size())); - std::vector ::const_iterator _iter106; - for (_iter106 = this->values.begin(); _iter106 != this->values.end(); ++_iter106) + std::vector ::const_iterator _iter60; + for (_iter60 = this->values.begin(); _iter60 != this->values.end(); ++_iter60) { - xfer += oprot->writeI16((*_iter106)); + xfer += oprot->writeI16((*_iter60)); } xfer += oprot->writeListEnd(); } @@ -2952,39 +2263,11 @@ void swap(TI16Column &a, TI16Column &b) { swap(a.nulls, b.nulls); } -TI16Column::TI16Column(const TI16Column& other107) { - values = other107.values; - nulls = other107.nulls; -} -TI16Column& TI16Column::operator=(const TI16Column& other108) { - values = other108.values; - nulls = other108.nulls; - return *this; -} -void TI16Column::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI16Column("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TI32Column::~TI32Column() throw() { -} - - -void TI32Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI32Column::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TI32Column::ascii_fingerprint = "CCCCE89C7E9DA10280F5663700677313"; +const uint8_t TI32Column::binary_fingerprint[16] = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13}; uint32_t TI32Column::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3009,14 +2292,14 @@ uint32_t TI32Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size109; - ::apache::thrift::protocol::TType _etype112; - xfer += iprot->readListBegin(_etype112, _size109); - this->values.resize(_size109); - uint32_t _i113; - for (_i113 = 0; _i113 < _size109; ++_i113) + uint32_t _size61; + ::apache::thrift::protocol::TType _etype64; + xfer += iprot->readListBegin(_etype64, _size61); + this->values.resize(_size61); + uint32_t _i65; + for (_i65 = 0; _i65 < _size61; ++_i65) { - xfer += iprot->readI32(this->values[_i113]); + xfer += iprot->readI32(this->values[_i65]); } xfer += iprot->readListEnd(); } @@ -3051,16 +2334,15 @@ uint32_t TI32Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI32Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI32Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter114; - for (_iter114 = this->values.begin(); _iter114 != this->values.end(); ++_iter114) + std::vector ::const_iterator _iter66; + for (_iter66 = this->values.begin(); _iter66 != this->values.end(); ++_iter66) { - xfer += oprot->writeI32((*_iter114)); + xfer += oprot->writeI32((*_iter66)); } xfer += oprot->writeListEnd(); } @@ -3081,39 +2363,11 @@ void swap(TI32Column &a, TI32Column &b) { swap(a.nulls, b.nulls); } -TI32Column::TI32Column(const TI32Column& other115) { - values = other115.values; - nulls = other115.nulls; -} -TI32Column& TI32Column::operator=(const TI32Column& other116) { - values = other116.values; - nulls = other116.nulls; - return *this; -} -void TI32Column::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI32Column("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TI64Column::~TI64Column() throw() { -} - - -void TI64Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI64Column::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TI64Column::ascii_fingerprint = "925353917FC0AF87976A2338011F5A31"; +const uint8_t TI64Column::binary_fingerprint[16] = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31}; uint32_t TI64Column::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3138,14 +2392,14 @@ uint32_t TI64Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size117; - ::apache::thrift::protocol::TType _etype120; - xfer += iprot->readListBegin(_etype120, _size117); - this->values.resize(_size117); - uint32_t _i121; - for (_i121 = 0; _i121 < _size117; ++_i121) + uint32_t _size67; + ::apache::thrift::protocol::TType _etype70; + xfer += iprot->readListBegin(_etype70, _size67); + this->values.resize(_size67); + uint32_t _i71; + for (_i71 = 0; _i71 < _size67; ++_i71) { - xfer += iprot->readI64(this->values[_i121]); + xfer += iprot->readI64(this->values[_i71]); } xfer += iprot->readListEnd(); } @@ -3180,16 +2434,15 @@ uint32_t TI64Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI64Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TI64Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->values.size())); - std::vector ::const_iterator _iter122; - for (_iter122 = this->values.begin(); _iter122 != this->values.end(); ++_iter122) + std::vector ::const_iterator _iter72; + for (_iter72 = this->values.begin(); _iter72 != this->values.end(); ++_iter72) { - xfer += oprot->writeI64((*_iter122)); + xfer += oprot->writeI64((*_iter72)); } xfer += oprot->writeListEnd(); } @@ -3210,39 +2463,11 @@ void swap(TI64Column &a, TI64Column &b) { swap(a.nulls, b.nulls); } -TI64Column::TI64Column(const TI64Column& other123) { - values = other123.values; - nulls = other123.nulls; -} -TI64Column& TI64Column::operator=(const TI64Column& other124) { - values = other124.values; - nulls = other124.nulls; - return *this; -} -void TI64Column::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TI64Column("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TDoubleColumn::~TDoubleColumn() throw() { -} - - -void TDoubleColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TDoubleColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TDoubleColumn::ascii_fingerprint = "8FF1C050A8D7FD247AEB23CD71539C09"; +const uint8_t TDoubleColumn::binary_fingerprint[16] = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09}; uint32_t TDoubleColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3267,14 +2492,14 @@ uint32_t TDoubleColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size125; - ::apache::thrift::protocol::TType _etype128; - xfer += iprot->readListBegin(_etype128, _size125); - this->values.resize(_size125); - uint32_t _i129; - for (_i129 = 0; _i129 < _size125; ++_i129) + uint32_t _size73; + ::apache::thrift::protocol::TType _etype76; + xfer += iprot->readListBegin(_etype76, _size73); + this->values.resize(_size73); + uint32_t _i77; + for (_i77 = 0; _i77 < _size73; ++_i77) { - xfer += iprot->readDouble(this->values[_i129]); + xfer += iprot->readDouble(this->values[_i77]); } xfer += iprot->readListEnd(); } @@ -3309,16 +2534,15 @@ uint32_t TDoubleColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TDoubleColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TDoubleColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_DOUBLE, static_cast(this->values.size())); - std::vector ::const_iterator _iter130; - for (_iter130 = this->values.begin(); _iter130 != this->values.end(); ++_iter130) + std::vector ::const_iterator _iter78; + for (_iter78 = this->values.begin(); _iter78 != this->values.end(); ++_iter78) { - xfer += oprot->writeDouble((*_iter130)); + xfer += oprot->writeDouble((*_iter78)); } xfer += oprot->writeListEnd(); } @@ -3339,39 +2563,11 @@ void swap(TDoubleColumn &a, TDoubleColumn &b) { swap(a.nulls, b.nulls); } -TDoubleColumn::TDoubleColumn(const TDoubleColumn& other131) { - values = other131.values; - nulls = other131.nulls; -} -TDoubleColumn& TDoubleColumn::operator=(const TDoubleColumn& other132) { - values = other132.values; - nulls = other132.nulls; - return *this; -} -void TDoubleColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TDoubleColumn("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TStringColumn::~TStringColumn() throw() { -} - - -void TStringColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TStringColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TStringColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F"; +const uint8_t TStringColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; uint32_t TStringColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3396,14 +2592,14 @@ uint32_t TStringColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size133; - ::apache::thrift::protocol::TType _etype136; - xfer += iprot->readListBegin(_etype136, _size133); - this->values.resize(_size133); - uint32_t _i137; - for (_i137 = 0; _i137 < _size133; ++_i137) + uint32_t _size79; + ::apache::thrift::protocol::TType _etype82; + xfer += iprot->readListBegin(_etype82, _size79); + this->values.resize(_size79); + uint32_t _i83; + for (_i83 = 0; _i83 < _size79; ++_i83) { - xfer += iprot->readString(this->values[_i137]); + xfer += iprot->readString(this->values[_i83]); } xfer += iprot->readListEnd(); } @@ -3438,16 +2634,15 @@ uint32_t TStringColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStringColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TStringColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter138; - for (_iter138 = this->values.begin(); _iter138 != this->values.end(); ++_iter138) + std::vector ::const_iterator _iter84; + for (_iter84 = this->values.begin(); _iter84 != this->values.end(); ++_iter84) { - xfer += oprot->writeString((*_iter138)); + xfer += oprot->writeString((*_iter84)); } xfer += oprot->writeListEnd(); } @@ -3468,39 +2663,11 @@ void swap(TStringColumn &a, TStringColumn &b) { swap(a.nulls, b.nulls); } -TStringColumn::TStringColumn(const TStringColumn& other139) { - values = other139.values; - nulls = other139.nulls; -} -TStringColumn& TStringColumn::operator=(const TStringColumn& other140) { - values = other140.values; - nulls = other140.nulls; - return *this; -} -void TStringColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TStringColumn("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TBinaryColumn::~TBinaryColumn() throw() { -} - - -void TBinaryColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TBinaryColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} +const char* TBinaryColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F"; +const uint8_t TBinaryColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; uint32_t TBinaryColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3525,14 +2692,14 @@ uint32_t TBinaryColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size141; - ::apache::thrift::protocol::TType _etype144; - xfer += iprot->readListBegin(_etype144, _size141); - this->values.resize(_size141); - uint32_t _i145; - for (_i145 = 0; _i145 < _size141; ++_i145) + uint32_t _size85; + ::apache::thrift::protocol::TType _etype88; + xfer += iprot->readListBegin(_etype88, _size85); + this->values.resize(_size85); + uint32_t _i89; + for (_i89 = 0; _i89 < _size85; ++_i89) { - xfer += iprot->readBinary(this->values[_i145]); + xfer += iprot->readBinary(this->values[_i89]); } xfer += iprot->readListEnd(); } @@ -3567,16 +2734,15 @@ uint32_t TBinaryColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBinaryColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TBinaryColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter146; - for (_iter146 = this->values.begin(); _iter146 != this->values.end(); ++_iter146) + std::vector ::const_iterator _iter90; + for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90) { - xfer += oprot->writeBinary((*_iter146)); + xfer += oprot->writeBinary((*_iter90)); } xfer += oprot->writeListEnd(); } @@ -3597,63 +2763,11 @@ void swap(TBinaryColumn &a, TBinaryColumn &b) { swap(a.nulls, b.nulls); } -TBinaryColumn::TBinaryColumn(const TBinaryColumn& other147) { - values = other147.values; - nulls = other147.nulls; -} -TBinaryColumn& TBinaryColumn::operator=(const TBinaryColumn& other148) { - values = other148.values; - nulls = other148.nulls; - return *this; -} -void TBinaryColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TBinaryColumn("; - out << "values=" << to_string(values); - out << ", " << "nulls=" << to_string(nulls); - out << ")"; -} - - -TColumn::~TColumn() throw() { -} - - -void TColumn::__set_boolVal(const TBoolColumn& val) { - this->boolVal = val; -} - -void TColumn::__set_byteVal(const TByteColumn& val) { - this->byteVal = val; -} - -void TColumn::__set_i16Val(const TI16Column& val) { - this->i16Val = val; -} - -void TColumn::__set_i32Val(const TI32Column& val) { - this->i32Val = val; -} - -void TColumn::__set_i64Val(const TI64Column& val) { - this->i64Val = val; -} - -void TColumn::__set_doubleVal(const TDoubleColumn& val) { - this->doubleVal = val; -} - -void TColumn::__set_stringVal(const TStringColumn& val) { - this->stringVal = val; -} - -void TColumn::__set_binaryVal(const TBinaryColumn& val) { - this->binaryVal = val; -} +const char* TColumn::ascii_fingerprint = "E6ADD10B4CDDE61A19E8878CC7039A17"; +const uint8_t TColumn::binary_fingerprint[16] = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17}; uint32_t TColumn::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3750,7 +2864,6 @@ uint32_t TColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TColumn"); xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3803,64 +2916,11 @@ void swap(TColumn &a, TColumn &b) { swap(a.__isset, b.__isset); } -TColumn::TColumn(const TColumn& other149) { - boolVal = other149.boolVal; - byteVal = other149.byteVal; - i16Val = other149.i16Val; - i32Val = other149.i32Val; - i64Val = other149.i64Val; - doubleVal = other149.doubleVal; - stringVal = other149.stringVal; - binaryVal = other149.binaryVal; - __isset = other149.__isset; -} -TColumn& TColumn::operator=(const TColumn& other150) { - boolVal = other150.boolVal; - byteVal = other150.byteVal; - i16Val = other150.i16Val; - i32Val = other150.i32Val; - i64Val = other150.i64Val; - doubleVal = other150.doubleVal; - stringVal = other150.stringVal; - binaryVal = other150.binaryVal; - __isset = other150.__isset; - return *this; -} -void TColumn::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TColumn("; - out << "boolVal=" << to_string(boolVal); - out << ", " << "byteVal=" << to_string(byteVal); - out << ", " << "i16Val=" << to_string(i16Val); - out << ", " << "i32Val=" << to_string(i32Val); - out << ", " << "i64Val=" << to_string(i64Val); - out << ", " << "doubleVal=" << to_string(doubleVal); - out << ", " << "stringVal=" << to_string(stringVal); - out << ", " << "binaryVal=" << to_string(binaryVal); - out << ")"; -} - - -TRowSet::~TRowSet() throw() { -} - - -void TRowSet::__set_startRowOffset(const int64_t val) { - this->startRowOffset = val; -} - -void TRowSet::__set_rows(const std::vector & val) { - this->rows = val; -} - -void TRowSet::__set_columns(const std::vector & val) { - this->columns = val; -__isset.columns = true; -} +const char* TRowSet::ascii_fingerprint = "46DA30A870489C7A58105AE0080DAEBF"; +const uint8_t TRowSet::binary_fingerprint[16] = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF}; uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -3893,14 +2953,14 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->rows.clear(); - uint32_t _size151; - ::apache::thrift::protocol::TType _etype154; - xfer += iprot->readListBegin(_etype154, _size151); - this->rows.resize(_size151); - uint32_t _i155; - for (_i155 = 0; _i155 < _size151; ++_i155) + uint32_t _size91; + ::apache::thrift::protocol::TType _etype94; + xfer += iprot->readListBegin(_etype94, _size91); + this->rows.resize(_size91); + uint32_t _i95; + for (_i95 = 0; _i95 < _size91; ++_i95) { - xfer += this->rows[_i155].read(iprot); + xfer += this->rows[_i95].read(iprot); } xfer += iprot->readListEnd(); } @@ -3913,14 +2973,14 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->columns.clear(); - uint32_t _size156; - ::apache::thrift::protocol::TType _etype159; - xfer += iprot->readListBegin(_etype159, _size156); - this->columns.resize(_size156); - uint32_t _i160; - for (_i160 = 0; _i160 < _size156; ++_i160) + uint32_t _size96; + ::apache::thrift::protocol::TType _etype99; + xfer += iprot->readListBegin(_etype99, _size96); + this->columns.resize(_size96); + uint32_t _i100; + for (_i100 = 0; _i100 < _size96; ++_i100) { - xfer += this->columns[_i160].read(iprot); + xfer += this->columns[_i100].read(iprot); } xfer += iprot->readListEnd(); } @@ -3947,7 +3007,6 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TRowSet"); xfer += oprot->writeFieldBegin("startRowOffset", ::apache::thrift::protocol::T_I64, 1); @@ -3957,10 +3016,10 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("rows", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->rows.size())); - std::vector ::const_iterator _iter161; - for (_iter161 = this->rows.begin(); _iter161 != this->rows.end(); ++_iter161) + std::vector ::const_iterator _iter101; + for (_iter101 = this->rows.begin(); _iter101 != this->rows.end(); ++_iter101) { - xfer += (*_iter161).write(oprot); + xfer += (*_iter101).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3970,10 +3029,10 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size())); - std::vector ::const_iterator _iter162; - for (_iter162 = this->columns.begin(); _iter162 != this->columns.end(); ++_iter162) + std::vector ::const_iterator _iter102; + for (_iter102 = this->columns.begin(); _iter102 != this->columns.end(); ++_iter102) { - xfer += (*_iter162).write(oprot); + xfer += (*_iter102).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3992,60 +3051,11 @@ void swap(TRowSet &a, TRowSet &b) { swap(a.__isset, b.__isset); } -TRowSet::TRowSet(const TRowSet& other163) { - startRowOffset = other163.startRowOffset; - rows = other163.rows; - columns = other163.columns; - __isset = other163.__isset; -} -TRowSet& TRowSet::operator=(const TRowSet& other164) { - startRowOffset = other164.startRowOffset; - rows = other164.rows; - columns = other164.columns; - __isset = other164.__isset; - return *this; -} -void TRowSet::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TRowSet("; - out << "startRowOffset=" << to_string(startRowOffset); - out << ", " << "rows=" << to_string(rows); - out << ", " << "columns="; (__isset.columns ? (out << to_string(columns)) : (out << "")); - out << ")"; -} - - -TStatus::~TStatus() throw() { -} - - -void TStatus::__set_statusCode(const TStatusCode::type val) { - this->statusCode = val; -} - -void TStatus::__set_infoMessages(const std::vector & val) { - this->infoMessages = val; -__isset.infoMessages = true; -} - -void TStatus::__set_sqlState(const std::string& val) { - this->sqlState = val; -__isset.sqlState = true; -} - -void TStatus::__set_errorCode(const int32_t val) { - this->errorCode = val; -__isset.errorCode = true; -} - -void TStatus::__set_errorMessage(const std::string& val) { - this->errorMessage = val; -__isset.errorMessage = true; -} +const char* TStatus::ascii_fingerprint = "D5DEF49634A59C615C1B3A6F7D0DADB5"; +const uint8_t TStatus::binary_fingerprint[16] = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5}; uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4067,9 +3077,9 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast165; - xfer += iprot->readI32(ecast165); - this->statusCode = (TStatusCode::type)ecast165; + int32_t ecast103; + xfer += iprot->readI32(ecast103); + this->statusCode = (TStatusCode::type)ecast103; isset_statusCode = true; } else { xfer += iprot->skip(ftype); @@ -4079,14 +3089,14 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->infoMessages.clear(); - uint32_t _size166; - ::apache::thrift::protocol::TType _etype169; - xfer += iprot->readListBegin(_etype169, _size166); - this->infoMessages.resize(_size166); - uint32_t _i170; - for (_i170 = 0; _i170 < _size166; ++_i170) + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->infoMessages.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { - xfer += iprot->readString(this->infoMessages[_i170]); + xfer += iprot->readString(this->infoMessages[_i108]); } xfer += iprot->readListEnd(); } @@ -4135,7 +3145,6 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TStatus"); xfer += oprot->writeFieldBegin("statusCode", ::apache::thrift::protocol::T_I32, 1); @@ -4146,10 +3155,10 @@ uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("infoMessages", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->infoMessages.size())); - std::vector ::const_iterator _iter171; - for (_iter171 = this->infoMessages.begin(); _iter171 != this->infoMessages.end(); ++_iter171) + std::vector ::const_iterator _iter109; + for (_iter109 = this->infoMessages.begin(); _iter109 != this->infoMessages.end(); ++_iter109) { - xfer += oprot->writeString((*_iter171)); + xfer += oprot->writeString((*_iter109)); } xfer += oprot->writeListEnd(); } @@ -4185,50 +3194,11 @@ void swap(TStatus &a, TStatus &b) { swap(a.__isset, b.__isset); } -TStatus::TStatus(const TStatus& other172) { - statusCode = other172.statusCode; - infoMessages = other172.infoMessages; - sqlState = other172.sqlState; - errorCode = other172.errorCode; - errorMessage = other172.errorMessage; - __isset = other172.__isset; -} -TStatus& TStatus::operator=(const TStatus& other173) { - statusCode = other173.statusCode; - infoMessages = other173.infoMessages; - sqlState = other173.sqlState; - errorCode = other173.errorCode; - errorMessage = other173.errorMessage; - __isset = other173.__isset; - return *this; -} -void TStatus::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TStatus("; - out << "statusCode=" << to_string(statusCode); - out << ", " << "infoMessages="; (__isset.infoMessages ? (out << to_string(infoMessages)) : (out << "")); - out << ", " << "sqlState="; (__isset.sqlState ? (out << to_string(sqlState)) : (out << "")); - out << ", " << "errorCode="; (__isset.errorCode ? (out << to_string(errorCode)) : (out << "")); - out << ", " << "errorMessage="; (__isset.errorMessage ? (out << to_string(errorMessage)) : (out << "")); - out << ")"; -} - - -THandleIdentifier::~THandleIdentifier() throw() { -} - - -void THandleIdentifier::__set_guid(const std::string& val) { - this->guid = val; -} - -void THandleIdentifier::__set_secret(const std::string& val) { - this->secret = val; -} +const char* THandleIdentifier::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; +const uint8_t THandleIdentifier::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; uint32_t THandleIdentifier::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4283,7 +3253,6 @@ uint32_t THandleIdentifier::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t THandleIdentifier::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("THandleIdentifier"); xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 1); @@ -4305,35 +3274,11 @@ void swap(THandleIdentifier &a, THandleIdentifier &b) { swap(a.secret, b.secret); } -THandleIdentifier::THandleIdentifier(const THandleIdentifier& other174) { - guid = other174.guid; - secret = other174.secret; -} -THandleIdentifier& THandleIdentifier::operator=(const THandleIdentifier& other175) { - guid = other175.guid; - secret = other175.secret; - return *this; -} -void THandleIdentifier::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "THandleIdentifier("; - out << "guid=" << to_string(guid); - out << ", " << "secret=" << to_string(secret); - out << ")"; -} - - -TSessionHandle::~TSessionHandle() throw() { -} - - -void TSessionHandle::__set_sessionId(const THandleIdentifier& val) { - this->sessionId = val; -} +const char* TSessionHandle::ascii_fingerprint = "A756D3DBE614FB13F70BF7F7B6EB3D73"; +const uint8_t TSessionHandle::binary_fingerprint[16] = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73}; uint32_t TSessionHandle::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4377,7 +3322,6 @@ uint32_t TSessionHandle::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TSessionHandle::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TSessionHandle"); xfer += oprot->writeFieldBegin("sessionId", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4394,45 +3338,11 @@ void swap(TSessionHandle &a, TSessionHandle &b) { swap(a.sessionId, b.sessionId); } -TSessionHandle::TSessionHandle(const TSessionHandle& other176) { - sessionId = other176.sessionId; -} -TSessionHandle& TSessionHandle::operator=(const TSessionHandle& other177) { - sessionId = other177.sessionId; - return *this; -} -void TSessionHandle::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TSessionHandle("; - out << "sessionId=" << to_string(sessionId); - out << ")"; -} - - -TOperationHandle::~TOperationHandle() throw() { -} - - -void TOperationHandle::__set_operationId(const THandleIdentifier& val) { - this->operationId = val; -} - -void TOperationHandle::__set_operationType(const TOperationType::type val) { - this->operationType = val; -} - -void TOperationHandle::__set_hasResultSet(const bool val) { - this->hasResultSet = val; -} - -void TOperationHandle::__set_modifiedRowCount(const double val) { - this->modifiedRowCount = val; -__isset.modifiedRowCount = true; -} +const char* TOperationHandle::ascii_fingerprint = "29FD80F4F96804A30FCC59C23D2E5349"; +const uint8_t TOperationHandle::binary_fingerprint[16] = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49}; uint32_t TOperationHandle::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4464,9 +3374,9 @@ uint32_t TOperationHandle::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast178; - xfer += iprot->readI32(ecast178); - this->operationType = (TOperationType::type)ecast178; + int32_t ecast110; + xfer += iprot->readI32(ecast110); + this->operationType = (TOperationType::type)ecast110; isset_operationType = true; } else { xfer += iprot->skip(ftype); @@ -4508,7 +3418,6 @@ uint32_t TOperationHandle::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOperationHandle::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TOperationHandle"); xfer += oprot->writeFieldBegin("operationId", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4542,58 +3451,11 @@ void swap(TOperationHandle &a, TOperationHandle &b) { swap(a.__isset, b.__isset); } -TOperationHandle::TOperationHandle(const TOperationHandle& other179) { - operationId = other179.operationId; - operationType = other179.operationType; - hasResultSet = other179.hasResultSet; - modifiedRowCount = other179.modifiedRowCount; - __isset = other179.__isset; -} -TOperationHandle& TOperationHandle::operator=(const TOperationHandle& other180) { - operationId = other180.operationId; - operationType = other180.operationType; - hasResultSet = other180.hasResultSet; - modifiedRowCount = other180.modifiedRowCount; - __isset = other180.__isset; - return *this; -} -void TOperationHandle::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TOperationHandle("; - out << "operationId=" << to_string(operationId); - out << ", " << "operationType=" << to_string(operationType); - out << ", " << "hasResultSet=" << to_string(hasResultSet); - out << ", " << "modifiedRowCount="; (__isset.modifiedRowCount ? (out << to_string(modifiedRowCount)) : (out << "")); - out << ")"; -} - - -TOpenSessionReq::~TOpenSessionReq() throw() { -} - - -void TOpenSessionReq::__set_client_protocol(const TProtocolVersion::type val) { - this->client_protocol = val; -} - -void TOpenSessionReq::__set_username(const std::string& val) { - this->username = val; -__isset.username = true; -} - -void TOpenSessionReq::__set_password(const std::string& val) { - this->password = val; -__isset.password = true; -} - -void TOpenSessionReq::__set_configuration(const std::map & val) { - this->configuration = val; -__isset.configuration = true; -} +const char* TOpenSessionReq::ascii_fingerprint = "C8FD0F306A16C16BDA7B57F58BFAE5B2"; +const uint8_t TOpenSessionReq::binary_fingerprint[16] = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2}; uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4615,9 +3477,9 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast181; - xfer += iprot->readI32(ecast181); - this->client_protocol = (TProtocolVersion::type)ecast181; + int32_t ecast111; + xfer += iprot->readI32(ecast111); + this->client_protocol = (TProtocolVersion::type)ecast111; isset_client_protocol = true; } else { xfer += iprot->skip(ftype); @@ -4643,17 +3505,17 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->configuration.clear(); - uint32_t _size182; - ::apache::thrift::protocol::TType _ktype183; - ::apache::thrift::protocol::TType _vtype184; - xfer += iprot->readMapBegin(_ktype183, _vtype184, _size182); - uint32_t _i186; - for (_i186 = 0; _i186 < _size182; ++_i186) + uint32_t _size112; + ::apache::thrift::protocol::TType _ktype113; + ::apache::thrift::protocol::TType _vtype114; + xfer += iprot->readMapBegin(_ktype113, _vtype114, _size112); + uint32_t _i116; + for (_i116 = 0; _i116 < _size112; ++_i116) { - std::string _key187; - xfer += iprot->readString(_key187); - std::string& _val188 = this->configuration[_key187]; - xfer += iprot->readString(_val188); + std::string _key117; + xfer += iprot->readString(_key117); + std::string& _val118 = this->configuration[_key117]; + xfer += iprot->readString(_val118); } xfer += iprot->readMapEnd(); } @@ -4678,7 +3540,6 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TOpenSessionReq"); xfer += oprot->writeFieldBegin("client_protocol", ::apache::thrift::protocol::T_I32, 1); @@ -4699,11 +3560,11 @@ uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size())); - std::map ::const_iterator _iter189; - for (_iter189 = this->configuration.begin(); _iter189 != this->configuration.end(); ++_iter189) + std::map ::const_iterator _iter119; + for (_iter119 = this->configuration.begin(); _iter119 != this->configuration.end(); ++_iter119) { - xfer += oprot->writeString(_iter189->first); - xfer += oprot->writeString(_iter189->second); + xfer += oprot->writeString(_iter119->first); + xfer += oprot->writeString(_iter119->second); } xfer += oprot->writeMapEnd(); } @@ -4723,57 +3584,11 @@ void swap(TOpenSessionReq &a, TOpenSessionReq &b) { swap(a.__isset, b.__isset); } -TOpenSessionReq::TOpenSessionReq(const TOpenSessionReq& other190) { - client_protocol = other190.client_protocol; - username = other190.username; - password = other190.password; - configuration = other190.configuration; - __isset = other190.__isset; -} -TOpenSessionReq& TOpenSessionReq::operator=(const TOpenSessionReq& other191) { - client_protocol = other191.client_protocol; - username = other191.username; - password = other191.password; - configuration = other191.configuration; - __isset = other191.__isset; - return *this; -} -void TOpenSessionReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TOpenSessionReq("; - out << "client_protocol=" << to_string(client_protocol); - out << ", " << "username="; (__isset.username ? (out << to_string(username)) : (out << "")); - out << ", " << "password="; (__isset.password ? (out << to_string(password)) : (out << "")); - out << ", " << "configuration="; (__isset.configuration ? (out << to_string(configuration)) : (out << "")); - out << ")"; -} - - -TOpenSessionResp::~TOpenSessionResp() throw() { -} - - -void TOpenSessionResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TOpenSessionResp::__set_serverProtocolVersion(const TProtocolVersion::type val) { - this->serverProtocolVersion = val; -} - -void TOpenSessionResp::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -__isset.sessionHandle = true; -} - -void TOpenSessionResp::__set_configuration(const std::map & val) { - this->configuration = val; -__isset.configuration = true; -} +const char* TOpenSessionResp::ascii_fingerprint = "CFE7D7F4E9EC671F2518ED74FEE9F163"; +const uint8_t TOpenSessionResp::binary_fingerprint[16] = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63}; uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4804,9 +3619,9 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast192; - xfer += iprot->readI32(ecast192); - this->serverProtocolVersion = (TProtocolVersion::type)ecast192; + int32_t ecast120; + xfer += iprot->readI32(ecast120); + this->serverProtocolVersion = (TProtocolVersion::type)ecast120; isset_serverProtocolVersion = true; } else { xfer += iprot->skip(ftype); @@ -4824,17 +3639,17 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->configuration.clear(); - uint32_t _size193; - ::apache::thrift::protocol::TType _ktype194; - ::apache::thrift::protocol::TType _vtype195; - xfer += iprot->readMapBegin(_ktype194, _vtype195, _size193); - uint32_t _i197; - for (_i197 = 0; _i197 < _size193; ++_i197) + uint32_t _size121; + ::apache::thrift::protocol::TType _ktype122; + ::apache::thrift::protocol::TType _vtype123; + xfer += iprot->readMapBegin(_ktype122, _vtype123, _size121); + uint32_t _i125; + for (_i125 = 0; _i125 < _size121; ++_i125) { - std::string _key198; - xfer += iprot->readString(_key198); - std::string& _val199 = this->configuration[_key198]; - xfer += iprot->readString(_val199); + std::string _key126; + xfer += iprot->readString(_key126); + std::string& _val127 = this->configuration[_key126]; + xfer += iprot->readString(_val127); } xfer += iprot->readMapEnd(); } @@ -4861,7 +3676,6 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TOpenSessionResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4881,11 +3695,11 @@ uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size())); - std::map ::const_iterator _iter200; - for (_iter200 = this->configuration.begin(); _iter200 != this->configuration.end(); ++_iter200) + std::map ::const_iterator _iter128; + for (_iter128 = this->configuration.begin(); _iter128 != this->configuration.end(); ++_iter128) { - xfer += oprot->writeString(_iter200->first); - xfer += oprot->writeString(_iter200->second); + xfer += oprot->writeString(_iter128->first); + xfer += oprot->writeString(_iter128->second); } xfer += oprot->writeMapEnd(); } @@ -4905,43 +3719,11 @@ void swap(TOpenSessionResp &a, TOpenSessionResp &b) { swap(a.__isset, b.__isset); } -TOpenSessionResp::TOpenSessionResp(const TOpenSessionResp& other201) { - status = other201.status; - serverProtocolVersion = other201.serverProtocolVersion; - sessionHandle = other201.sessionHandle; - configuration = other201.configuration; - __isset = other201.__isset; -} -TOpenSessionResp& TOpenSessionResp::operator=(const TOpenSessionResp& other202) { - status = other202.status; - serverProtocolVersion = other202.serverProtocolVersion; - sessionHandle = other202.sessionHandle; - configuration = other202.configuration; - __isset = other202.__isset; - return *this; -} -void TOpenSessionResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TOpenSessionResp("; - out << "status=" << to_string(status); - out << ", " << "serverProtocolVersion=" << to_string(serverProtocolVersion); - out << ", " << "sessionHandle="; (__isset.sessionHandle ? (out << to_string(sessionHandle)) : (out << "")); - out << ", " << "configuration="; (__isset.configuration ? (out << to_string(configuration)) : (out << "")); - out << ")"; -} - - -TCloseSessionReq::~TCloseSessionReq() throw() { -} - - -void TCloseSessionReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} +const char* TCloseSessionReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; +const uint8_t TCloseSessionReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; uint32_t TCloseSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -4985,7 +3767,6 @@ uint32_t TCloseSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TCloseSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCloseSessionReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5002,32 +3783,11 @@ void swap(TCloseSessionReq &a, TCloseSessionReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TCloseSessionReq::TCloseSessionReq(const TCloseSessionReq& other203) { - sessionHandle = other203.sessionHandle; -} -TCloseSessionReq& TCloseSessionReq::operator=(const TCloseSessionReq& other204) { - sessionHandle = other204.sessionHandle; - return *this; -} -void TCloseSessionReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCloseSessionReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ")"; -} - - -TCloseSessionResp::~TCloseSessionResp() throw() { -} - - -void TCloseSessionResp::__set_status(const TStatus& val) { - this->status = val; -} +const char* TCloseSessionResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; +const uint8_t TCloseSessionResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; uint32_t TCloseSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5071,7 +3831,6 @@ uint32_t TCloseSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TCloseSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCloseSessionResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5088,52 +3847,11 @@ void swap(TCloseSessionResp &a, TCloseSessionResp &b) { swap(a.status, b.status); } -TCloseSessionResp::TCloseSessionResp(const TCloseSessionResp& other205) { - status = other205.status; -} -TCloseSessionResp& TCloseSessionResp::operator=(const TCloseSessionResp& other206) { - status = other206.status; - return *this; -} -void TCloseSessionResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCloseSessionResp("; - out << "status=" << to_string(status); - out << ")"; -} - - -TGetInfoValue::~TGetInfoValue() throw() { -} - - -void TGetInfoValue::__set_stringValue(const std::string& val) { - this->stringValue = val; -} - -void TGetInfoValue::__set_smallIntValue(const int16_t val) { - this->smallIntValue = val; -} - -void TGetInfoValue::__set_integerBitmask(const int32_t val) { - this->integerBitmask = val; -} - -void TGetInfoValue::__set_integerFlag(const int32_t val) { - this->integerFlag = val; -} - -void TGetInfoValue::__set_binaryValue(const int32_t val) { - this->binaryValue = val; -} - -void TGetInfoValue::__set_lenValue(const int64_t val) { - this->lenValue = val; -} +const char* TGetInfoValue::ascii_fingerprint = "057FED11279FD7248CFE73EE82ED579E"; +const uint8_t TGetInfoValue::binary_fingerprint[16] = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E}; uint32_t TGetInfoValue::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5214,7 +3932,6 @@ uint32_t TGetInfoValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetInfoValue"); xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 1); @@ -5257,53 +3974,11 @@ void swap(TGetInfoValue &a, TGetInfoValue &b) { swap(a.__isset, b.__isset); } -TGetInfoValue::TGetInfoValue(const TGetInfoValue& other207) { - stringValue = other207.stringValue; - smallIntValue = other207.smallIntValue; - integerBitmask = other207.integerBitmask; - integerFlag = other207.integerFlag; - binaryValue = other207.binaryValue; - lenValue = other207.lenValue; - __isset = other207.__isset; -} -TGetInfoValue& TGetInfoValue::operator=(const TGetInfoValue& other208) { - stringValue = other208.stringValue; - smallIntValue = other208.smallIntValue; - integerBitmask = other208.integerBitmask; - integerFlag = other208.integerFlag; - binaryValue = other208.binaryValue; - lenValue = other208.lenValue; - __isset = other208.__isset; - return *this; -} -void TGetInfoValue::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetInfoValue("; - out << "stringValue=" << to_string(stringValue); - out << ", " << "smallIntValue=" << to_string(smallIntValue); - out << ", " << "integerBitmask=" << to_string(integerBitmask); - out << ", " << "integerFlag=" << to_string(integerFlag); - out << ", " << "binaryValue=" << to_string(binaryValue); - out << ", " << "lenValue=" << to_string(lenValue); - out << ")"; -} - - -TGetInfoReq::~TGetInfoReq() throw() { -} - - -void TGetInfoReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetInfoReq::__set_infoType(const TGetInfoType::type val) { - this->infoType = val; -} +const char* TGetInfoReq::ascii_fingerprint = "95675B1A0BADE5F7EDE323809DB679B2"; +const uint8_t TGetInfoReq::binary_fingerprint[16] = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2}; uint32_t TGetInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5334,9 +4009,9 @@ uint32_t TGetInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast209; - xfer += iprot->readI32(ecast209); - this->infoType = (TGetInfoType::type)ecast209; + int32_t ecast129; + xfer += iprot->readI32(ecast129); + this->infoType = (TGetInfoType::type)ecast129; isset_infoType = true; } else { xfer += iprot->skip(ftype); @@ -5360,7 +4035,6 @@ uint32_t TGetInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetInfoReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5382,39 +4056,11 @@ void swap(TGetInfoReq &a, TGetInfoReq &b) { swap(a.infoType, b.infoType); } -TGetInfoReq::TGetInfoReq(const TGetInfoReq& other210) { - sessionHandle = other210.sessionHandle; - infoType = other210.infoType; -} -TGetInfoReq& TGetInfoReq::operator=(const TGetInfoReq& other211) { - sessionHandle = other211.sessionHandle; - infoType = other211.infoType; - return *this; -} -void TGetInfoReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetInfoReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "infoType=" << to_string(infoType); - out << ")"; -} - - -TGetInfoResp::~TGetInfoResp() throw() { -} - - -void TGetInfoResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetInfoResp::__set_infoValue(const TGetInfoValue& val) { - this->infoValue = val; -} +const char* TGetInfoResp::ascii_fingerprint = "72AFA10A82728B51FDE91092012868DE"; +const uint8_t TGetInfoResp::binary_fingerprint[16] = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE}; uint32_t TGetInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5469,7 +4115,6 @@ uint32_t TGetInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetInfoResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5491,49 +4136,11 @@ void swap(TGetInfoResp &a, TGetInfoResp &b) { swap(a.infoValue, b.infoValue); } -TGetInfoResp::TGetInfoResp(const TGetInfoResp& other212) { - status = other212.status; - infoValue = other212.infoValue; -} -TGetInfoResp& TGetInfoResp::operator=(const TGetInfoResp& other213) { - status = other213.status; - infoValue = other213.infoValue; - return *this; -} -void TGetInfoResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetInfoResp("; - out << "status=" << to_string(status); - out << ", " << "infoValue=" << to_string(infoValue); - out << ")"; -} - - -TExecuteStatementReq::~TExecuteStatementReq() throw() { -} - - -void TExecuteStatementReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TExecuteStatementReq::__set_statement(const std::string& val) { - this->statement = val; -} - -void TExecuteStatementReq::__set_confOverlay(const std::map & val) { - this->confOverlay = val; -__isset.confOverlay = true; -} - -void TExecuteStatementReq::__set_runAsync(const bool val) { - this->runAsync = val; -__isset.runAsync = true; -} +const char* TExecuteStatementReq::ascii_fingerprint = "FED75DB77E66D76EC1939A51FB0D96FA"; +const uint8_t TExecuteStatementReq::binary_fingerprint[16] = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA}; uint32_t TExecuteStatementReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5574,17 +4181,17 @@ uint32_t TExecuteStatementReq::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_MAP) { { this->confOverlay.clear(); - uint32_t _size214; - ::apache::thrift::protocol::TType _ktype215; - ::apache::thrift::protocol::TType _vtype216; - xfer += iprot->readMapBegin(_ktype215, _vtype216, _size214); - uint32_t _i218; - for (_i218 = 0; _i218 < _size214; ++_i218) + uint32_t _size130; + ::apache::thrift::protocol::TType _ktype131; + ::apache::thrift::protocol::TType _vtype132; + xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); + uint32_t _i134; + for (_i134 = 0; _i134 < _size130; ++_i134) { - std::string _key219; - xfer += iprot->readString(_key219); - std::string& _val220 = this->confOverlay[_key219]; - xfer += iprot->readString(_val220); + std::string _key135; + xfer += iprot->readString(_key135); + std::string& _val136 = this->confOverlay[_key135]; + xfer += iprot->readString(_val136); } xfer += iprot->readMapEnd(); } @@ -5619,7 +4226,6 @@ uint32_t TExecuteStatementReq::read(::apache::thrift::protocol::TProtocol* iprot uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TExecuteStatementReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5634,11 +4240,11 @@ uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("confOverlay", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->confOverlay.size())); - std::map ::const_iterator _iter221; - for (_iter221 = this->confOverlay.begin(); _iter221 != this->confOverlay.end(); ++_iter221) + std::map ::const_iterator _iter137; + for (_iter137 = this->confOverlay.begin(); _iter137 != this->confOverlay.end(); ++_iter137) { - xfer += oprot->writeString(_iter221->first); - xfer += oprot->writeString(_iter221->second); + xfer += oprot->writeString(_iter137->first); + xfer += oprot->writeString(_iter137->second); } xfer += oprot->writeMapEnd(); } @@ -5663,48 +4269,11 @@ void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) { swap(a.__isset, b.__isset); } -TExecuteStatementReq::TExecuteStatementReq(const TExecuteStatementReq& other222) { - sessionHandle = other222.sessionHandle; - statement = other222.statement; - confOverlay = other222.confOverlay; - runAsync = other222.runAsync; - __isset = other222.__isset; -} -TExecuteStatementReq& TExecuteStatementReq::operator=(const TExecuteStatementReq& other223) { - sessionHandle = other223.sessionHandle; - statement = other223.statement; - confOverlay = other223.confOverlay; - runAsync = other223.runAsync; - __isset = other223.__isset; - return *this; -} -void TExecuteStatementReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TExecuteStatementReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "statement=" << to_string(statement); - out << ", " << "confOverlay="; (__isset.confOverlay ? (out << to_string(confOverlay)) : (out << "")); - out << ", " << "runAsync="; (__isset.runAsync ? (out << to_string(runAsync)) : (out << "")); - out << ")"; -} - - -TExecuteStatementResp::~TExecuteStatementResp() throw() { -} - - -void TExecuteStatementResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TExecuteStatementResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TExecuteStatementResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TExecuteStatementResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TExecuteStatementResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5756,7 +4325,6 @@ uint32_t TExecuteStatementResp::read(::apache::thrift::protocol::TProtocol* ipro uint32_t TExecuteStatementResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TExecuteStatementResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5780,37 +4348,11 @@ void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) { swap(a.__isset, b.__isset); } -TExecuteStatementResp::TExecuteStatementResp(const TExecuteStatementResp& other224) { - status = other224.status; - operationHandle = other224.operationHandle; - __isset = other224.__isset; -} -TExecuteStatementResp& TExecuteStatementResp::operator=(const TExecuteStatementResp& other225) { - status = other225.status; - operationHandle = other225.operationHandle; - __isset = other225.__isset; - return *this; -} -void TExecuteStatementResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TExecuteStatementResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetTypeInfoReq::~TGetTypeInfoReq() throw() { -} - - -void TGetTypeInfoReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} +const char* TGetTypeInfoReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; +const uint8_t TGetTypeInfoReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; uint32_t TGetTypeInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5854,7 +4396,6 @@ uint32_t TGetTypeInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTypeInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTypeInfoReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5871,37 +4412,11 @@ void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TGetTypeInfoReq::TGetTypeInfoReq(const TGetTypeInfoReq& other226) { - sessionHandle = other226.sessionHandle; -} -TGetTypeInfoReq& TGetTypeInfoReq::operator=(const TGetTypeInfoReq& other227) { - sessionHandle = other227.sessionHandle; - return *this; -} -void TGetTypeInfoReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTypeInfoReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ")"; -} - - -TGetTypeInfoResp::~TGetTypeInfoResp() throw() { -} - - -void TGetTypeInfoResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetTypeInfoResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetTypeInfoResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetTypeInfoResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetTypeInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -5953,7 +4468,6 @@ uint32_t TGetTypeInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTypeInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTypeInfoResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5977,37 +4491,11 @@ void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) { swap(a.__isset, b.__isset); } -TGetTypeInfoResp::TGetTypeInfoResp(const TGetTypeInfoResp& other228) { - status = other228.status; - operationHandle = other228.operationHandle; - __isset = other228.__isset; -} -TGetTypeInfoResp& TGetTypeInfoResp::operator=(const TGetTypeInfoResp& other229) { - status = other229.status; - operationHandle = other229.operationHandle; - __isset = other229.__isset; - return *this; -} -void TGetTypeInfoResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTypeInfoResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetCatalogsReq::~TGetCatalogsReq() throw() { -} - - -void TGetCatalogsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} +const char* TGetCatalogsReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; +const uint8_t TGetCatalogsReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; uint32_t TGetCatalogsReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6051,7 +4539,6 @@ uint32_t TGetCatalogsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetCatalogsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetCatalogsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6068,37 +4555,11 @@ void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TGetCatalogsReq::TGetCatalogsReq(const TGetCatalogsReq& other230) { - sessionHandle = other230.sessionHandle; -} -TGetCatalogsReq& TGetCatalogsReq::operator=(const TGetCatalogsReq& other231) { - sessionHandle = other231.sessionHandle; - return *this; -} -void TGetCatalogsReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetCatalogsReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ")"; -} - - -TGetCatalogsResp::~TGetCatalogsResp() throw() { -} - - -void TGetCatalogsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetCatalogsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetCatalogsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetCatalogsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetCatalogsResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6150,7 +4611,6 @@ uint32_t TGetCatalogsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetCatalogsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetCatalogsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6174,47 +4634,11 @@ void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) { swap(a.__isset, b.__isset); } -TGetCatalogsResp::TGetCatalogsResp(const TGetCatalogsResp& other232) { - status = other232.status; - operationHandle = other232.operationHandle; - __isset = other232.__isset; -} -TGetCatalogsResp& TGetCatalogsResp::operator=(const TGetCatalogsResp& other233) { - status = other233.status; - operationHandle = other233.operationHandle; - __isset = other233.__isset; - return *this; -} -void TGetCatalogsResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetCatalogsResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetSchemasReq::~TGetSchemasReq() throw() { -} - - -void TGetSchemasReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetSchemasReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetSchemasReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} +const char* TGetSchemasReq::ascii_fingerprint = "28A9D12DE8393DD3E73FC1E5AE6E113B"; +const uint8_t TGetSchemasReq::binary_fingerprint[16] = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B}; uint32_t TGetSchemasReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6274,7 +4698,6 @@ uint32_t TGetSchemasReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetSchemasReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetSchemasReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6304,45 +4727,11 @@ void swap(TGetSchemasReq &a, TGetSchemasReq &b) { swap(a.__isset, b.__isset); } -TGetSchemasReq::TGetSchemasReq(const TGetSchemasReq& other234) { - sessionHandle = other234.sessionHandle; - catalogName = other234.catalogName; - schemaName = other234.schemaName; - __isset = other234.__isset; -} -TGetSchemasReq& TGetSchemasReq::operator=(const TGetSchemasReq& other235) { - sessionHandle = other235.sessionHandle; - catalogName = other235.catalogName; - schemaName = other235.schemaName; - __isset = other235.__isset; - return *this; -} -void TGetSchemasReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetSchemasReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "catalogName="; (__isset.catalogName ? (out << to_string(catalogName)) : (out << "")); - out << ", " << "schemaName="; (__isset.schemaName ? (out << to_string(schemaName)) : (out << "")); - out << ")"; -} - - -TGetSchemasResp::~TGetSchemasResp() throw() { -} - - -void TGetSchemasResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetSchemasResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetSchemasResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetSchemasResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetSchemasResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6394,7 +4783,6 @@ uint32_t TGetSchemasResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetSchemasResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetSchemasResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6418,57 +4806,11 @@ void swap(TGetSchemasResp &a, TGetSchemasResp &b) { swap(a.__isset, b.__isset); } -TGetSchemasResp::TGetSchemasResp(const TGetSchemasResp& other236) { - status = other236.status; - operationHandle = other236.operationHandle; - __isset = other236.__isset; -} -TGetSchemasResp& TGetSchemasResp::operator=(const TGetSchemasResp& other237) { - status = other237.status; - operationHandle = other237.operationHandle; - __isset = other237.__isset; - return *this; -} -void TGetSchemasResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetSchemasResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetTablesReq::~TGetTablesReq() throw() { -} - - -void TGetTablesReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetTablesReq::__set_catalogName(const TPatternOrIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetTablesReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetTablesReq::__set_tableName(const TPatternOrIdentifier& val) { - this->tableName = val; -__isset.tableName = true; -} - -void TGetTablesReq::__set_tableTypes(const std::vector & val) { - this->tableTypes = val; -__isset.tableTypes = true; -} +const char* TGetTablesReq::ascii_fingerprint = "C80DFEE06850052F5A445BE81ED763DB"; +const uint8_t TGetTablesReq::binary_fingerprint[16] = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB}; uint32_t TGetTablesReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6524,14 +4866,14 @@ uint32_t TGetTablesReq::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableTypes.clear(); - uint32_t _size238; - ::apache::thrift::protocol::TType _etype241; - xfer += iprot->readListBegin(_etype241, _size238); - this->tableTypes.resize(_size238); - uint32_t _i242; - for (_i242 = 0; _i242 < _size238; ++_i242) + uint32_t _size138; + ::apache::thrift::protocol::TType _etype141; + xfer += iprot->readListBegin(_etype141, _size138); + this->tableTypes.resize(_size138); + uint32_t _i142; + for (_i142 = 0; _i142 < _size138; ++_i142) { - xfer += iprot->readString(this->tableTypes[_i242]); + xfer += iprot->readString(this->tableTypes[_i142]); } xfer += iprot->readListEnd(); } @@ -6556,7 +4898,6 @@ uint32_t TGetTablesReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTablesReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6582,10 +4923,10 @@ uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("tableTypes", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tableTypes.size())); - std::vector ::const_iterator _iter243; - for (_iter243 = this->tableTypes.begin(); _iter243 != this->tableTypes.end(); ++_iter243) + std::vector ::const_iterator _iter143; + for (_iter143 = this->tableTypes.begin(); _iter143 != this->tableTypes.end(); ++_iter143) { - xfer += oprot->writeString((*_iter243)); + xfer += oprot->writeString((*_iter143)); } xfer += oprot->writeListEnd(); } @@ -6606,51 +4947,11 @@ void swap(TGetTablesReq &a, TGetTablesReq &b) { swap(a.__isset, b.__isset); } -TGetTablesReq::TGetTablesReq(const TGetTablesReq& other244) { - sessionHandle = other244.sessionHandle; - catalogName = other244.catalogName; - schemaName = other244.schemaName; - tableName = other244.tableName; - tableTypes = other244.tableTypes; - __isset = other244.__isset; -} -TGetTablesReq& TGetTablesReq::operator=(const TGetTablesReq& other245) { - sessionHandle = other245.sessionHandle; - catalogName = other245.catalogName; - schemaName = other245.schemaName; - tableName = other245.tableName; - tableTypes = other245.tableTypes; - __isset = other245.__isset; - return *this; -} -void TGetTablesReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTablesReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "catalogName="; (__isset.catalogName ? (out << to_string(catalogName)) : (out << "")); - out << ", " << "schemaName="; (__isset.schemaName ? (out << to_string(schemaName)) : (out << "")); - out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); - out << ", " << "tableTypes="; (__isset.tableTypes ? (out << to_string(tableTypes)) : (out << "")); - out << ")"; -} - - -TGetTablesResp::~TGetTablesResp() throw() { -} - - -void TGetTablesResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetTablesResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetTablesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetTablesResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetTablesResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6702,7 +5003,6 @@ uint32_t TGetTablesResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTablesResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTablesResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6726,37 +5026,11 @@ void swap(TGetTablesResp &a, TGetTablesResp &b) { swap(a.__isset, b.__isset); } -TGetTablesResp::TGetTablesResp(const TGetTablesResp& other246) { - status = other246.status; - operationHandle = other246.operationHandle; - __isset = other246.__isset; -} -TGetTablesResp& TGetTablesResp::operator=(const TGetTablesResp& other247) { - status = other247.status; - operationHandle = other247.operationHandle; - __isset = other247.__isset; - return *this; -} -void TGetTablesResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTablesResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetTableTypesReq::~TGetTableTypesReq() throw() { -} - - -void TGetTableTypesReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} +const char* TGetTableTypesReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; +const uint8_t TGetTableTypesReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; uint32_t TGetTableTypesReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6800,7 +5074,6 @@ uint32_t TGetTableTypesReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTableTypesReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTableTypesReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6817,37 +5090,11 @@ void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TGetTableTypesReq::TGetTableTypesReq(const TGetTableTypesReq& other248) { - sessionHandle = other248.sessionHandle; -} -TGetTableTypesReq& TGetTableTypesReq::operator=(const TGetTableTypesReq& other249) { - sessionHandle = other249.sessionHandle; - return *this; -} -void TGetTableTypesReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTableTypesReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ")"; -} - - -TGetTableTypesResp::~TGetTableTypesResp() throw() { -} - - -void TGetTableTypesResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetTableTypesResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetTableTypesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetTableTypesResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetTableTypesResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -6899,7 +5146,6 @@ uint32_t TGetTableTypesResp::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TGetTableTypesResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetTableTypesResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6923,57 +5169,11 @@ void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) { swap(a.__isset, b.__isset); } -TGetTableTypesResp::TGetTableTypesResp(const TGetTableTypesResp& other250) { - status = other250.status; - operationHandle = other250.operationHandle; - __isset = other250.__isset; -} -TGetTableTypesResp& TGetTableTypesResp::operator=(const TGetTableTypesResp& other251) { - status = other251.status; - operationHandle = other251.operationHandle; - __isset = other251.__isset; - return *this; -} -void TGetTableTypesResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetTableTypesResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetColumnsReq::~TGetColumnsReq() throw() { -} - - -void TGetColumnsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetColumnsReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetColumnsReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetColumnsReq::__set_tableName(const TPatternOrIdentifier& val) { - this->tableName = val; -__isset.tableName = true; -} - -void TGetColumnsReq::__set_columnName(const TPatternOrIdentifier& val) { - this->columnName = val; -__isset.columnName = true; -} +const char* TGetColumnsReq::ascii_fingerprint = "72D0F28ED33A49B7306DF63EEE956C28"; +const uint8_t TGetColumnsReq::binary_fingerprint[16] = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28}; uint32_t TGetColumnsReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7049,7 +5249,6 @@ uint32_t TGetColumnsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetColumnsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetColumnsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7091,51 +5290,11 @@ void swap(TGetColumnsReq &a, TGetColumnsReq &b) { swap(a.__isset, b.__isset); } -TGetColumnsReq::TGetColumnsReq(const TGetColumnsReq& other252) { - sessionHandle = other252.sessionHandle; - catalogName = other252.catalogName; - schemaName = other252.schemaName; - tableName = other252.tableName; - columnName = other252.columnName; - __isset = other252.__isset; -} -TGetColumnsReq& TGetColumnsReq::operator=(const TGetColumnsReq& other253) { - sessionHandle = other253.sessionHandle; - catalogName = other253.catalogName; - schemaName = other253.schemaName; - tableName = other253.tableName; - columnName = other253.columnName; - __isset = other253.__isset; - return *this; -} -void TGetColumnsReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetColumnsReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "catalogName="; (__isset.catalogName ? (out << to_string(catalogName)) : (out << "")); - out << ", " << "schemaName="; (__isset.schemaName ? (out << to_string(schemaName)) : (out << "")); - out << ", " << "tableName="; (__isset.tableName ? (out << to_string(tableName)) : (out << "")); - out << ", " << "columnName="; (__isset.columnName ? (out << to_string(columnName)) : (out << "")); - out << ")"; -} - - -TGetColumnsResp::~TGetColumnsResp() throw() { -} - - -void TGetColumnsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetColumnsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetColumnsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetColumnsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetColumnsResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7187,7 +5346,6 @@ uint32_t TGetColumnsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetColumnsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetColumnsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7211,51 +5369,11 @@ void swap(TGetColumnsResp &a, TGetColumnsResp &b) { swap(a.__isset, b.__isset); } -TGetColumnsResp::TGetColumnsResp(const TGetColumnsResp& other254) { - status = other254.status; - operationHandle = other254.operationHandle; - __isset = other254.__isset; -} -TGetColumnsResp& TGetColumnsResp::operator=(const TGetColumnsResp& other255) { - status = other255.status; - operationHandle = other255.operationHandle; - __isset = other255.__isset; - return *this; -} -void TGetColumnsResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetColumnsResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetFunctionsReq::~TGetFunctionsReq() throw() { -} - - -void TGetFunctionsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetFunctionsReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetFunctionsReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetFunctionsReq::__set_functionName(const TPatternOrIdentifier& val) { - this->functionName = val; -} +const char* TGetFunctionsReq::ascii_fingerprint = "0887E0916ADE4521BF6017B534493138"; +const uint8_t TGetFunctionsReq::binary_fingerprint[16] = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38}; uint32_t TGetFunctionsReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7326,7 +5444,6 @@ uint32_t TGetFunctionsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetFunctionsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetFunctionsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7361,48 +5478,11 @@ void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) { swap(a.__isset, b.__isset); } -TGetFunctionsReq::TGetFunctionsReq(const TGetFunctionsReq& other256) { - sessionHandle = other256.sessionHandle; - catalogName = other256.catalogName; - schemaName = other256.schemaName; - functionName = other256.functionName; - __isset = other256.__isset; -} -TGetFunctionsReq& TGetFunctionsReq::operator=(const TGetFunctionsReq& other257) { - sessionHandle = other257.sessionHandle; - catalogName = other257.catalogName; - schemaName = other257.schemaName; - functionName = other257.functionName; - __isset = other257.__isset; - return *this; -} -void TGetFunctionsReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetFunctionsReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "catalogName="; (__isset.catalogName ? (out << to_string(catalogName)) : (out << "")); - out << ", " << "schemaName="; (__isset.schemaName ? (out << to_string(schemaName)) : (out << "")); - out << ", " << "functionName=" << to_string(functionName); - out << ")"; -} - - -TGetFunctionsResp::~TGetFunctionsResp() throw() { -} - - -void TGetFunctionsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetFunctionsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} +const char* TGetFunctionsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; +const uint8_t TGetFunctionsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; uint32_t TGetFunctionsResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7454,7 +5534,6 @@ uint32_t TGetFunctionsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetFunctionsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetFunctionsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7478,37 +5557,11 @@ void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) { swap(a.__isset, b.__isset); } -TGetFunctionsResp::TGetFunctionsResp(const TGetFunctionsResp& other258) { - status = other258.status; - operationHandle = other258.operationHandle; - __isset = other258.__isset; -} -TGetFunctionsResp& TGetFunctionsResp::operator=(const TGetFunctionsResp& other259) { - status = other259.status; - operationHandle = other259.operationHandle; - __isset = other259.__isset; - return *this; -} -void TGetFunctionsResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetFunctionsResp("; - out << "status=" << to_string(status); - out << ", " << "operationHandle="; (__isset.operationHandle ? (out << to_string(operationHandle)) : (out << "")); - out << ")"; -} - - -TGetOperationStatusReq::~TGetOperationStatusReq() throw() { -} - - -void TGetOperationStatusReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} +const char* TGetOperationStatusReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; +const uint8_t TGetOperationStatusReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; uint32_t TGetOperationStatusReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7552,7 +5605,6 @@ uint32_t TGetOperationStatusReq::read(::apache::thrift::protocol::TProtocol* ipr uint32_t TGetOperationStatusReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetOperationStatusReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7569,52 +5621,11 @@ void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) { swap(a.operationHandle, b.operationHandle); } -TGetOperationStatusReq::TGetOperationStatusReq(const TGetOperationStatusReq& other260) { - operationHandle = other260.operationHandle; -} -TGetOperationStatusReq& TGetOperationStatusReq::operator=(const TGetOperationStatusReq& other261) { - operationHandle = other261.operationHandle; - return *this; -} -void TGetOperationStatusReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetOperationStatusReq("; - out << "operationHandle=" << to_string(operationHandle); - out << ")"; -} - - -TGetOperationStatusResp::~TGetOperationStatusResp() throw() { -} - - -void TGetOperationStatusResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetOperationStatusResp::__set_operationState(const TOperationState::type val) { - this->operationState = val; -__isset.operationState = true; -} - -void TGetOperationStatusResp::__set_sqlState(const std::string& val) { - this->sqlState = val; -__isset.sqlState = true; -} - -void TGetOperationStatusResp::__set_errorCode(const int32_t val) { - this->errorCode = val; -__isset.errorCode = true; -} - -void TGetOperationStatusResp::__set_errorMessage(const std::string& val) { - this->errorMessage = val; -__isset.errorMessage = true; -} +const char* TGetOperationStatusResp::ascii_fingerprint = "BD124DB87A5A2E7D11945BD1B17F013D"; +const uint8_t TGetOperationStatusResp::binary_fingerprint[16] = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D}; uint32_t TGetOperationStatusResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7644,9 +5655,9 @@ uint32_t TGetOperationStatusResp::read(::apache::thrift::protocol::TProtocol* ip break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast262; - xfer += iprot->readI32(ecast262); - this->operationState = (TOperationState::type)ecast262; + int32_t ecast144; + xfer += iprot->readI32(ecast144); + this->operationState = (TOperationState::type)ecast144; this->__isset.operationState = true; } else { xfer += iprot->skip(ftype); @@ -7692,7 +5703,6 @@ uint32_t TGetOperationStatusResp::read(::apache::thrift::protocol::TProtocol* ip uint32_t TGetOperationStatusResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetOperationStatusResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7734,46 +5744,11 @@ void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) { swap(a.__isset, b.__isset); } -TGetOperationStatusResp::TGetOperationStatusResp(const TGetOperationStatusResp& other263) { - status = other263.status; - operationState = other263.operationState; - sqlState = other263.sqlState; - errorCode = other263.errorCode; - errorMessage = other263.errorMessage; - __isset = other263.__isset; -} -TGetOperationStatusResp& TGetOperationStatusResp::operator=(const TGetOperationStatusResp& other264) { - status = other264.status; - operationState = other264.operationState; - sqlState = other264.sqlState; - errorCode = other264.errorCode; - errorMessage = other264.errorMessage; - __isset = other264.__isset; - return *this; -} -void TGetOperationStatusResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetOperationStatusResp("; - out << "status=" << to_string(status); - out << ", " << "operationState="; (__isset.operationState ? (out << to_string(operationState)) : (out << "")); - out << ", " << "sqlState="; (__isset.sqlState ? (out << to_string(sqlState)) : (out << "")); - out << ", " << "errorCode="; (__isset.errorCode ? (out << to_string(errorCode)) : (out << "")); - out << ", " << "errorMessage="; (__isset.errorMessage ? (out << to_string(errorMessage)) : (out << "")); - out << ")"; -} - - -TCancelOperationReq::~TCancelOperationReq() throw() { -} - - -void TCancelOperationReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} +const char* TCancelOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; +const uint8_t TCancelOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; uint32_t TCancelOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7817,7 +5792,6 @@ uint32_t TCancelOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCancelOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCancelOperationReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7834,32 +5808,11 @@ void swap(TCancelOperationReq &a, TCancelOperationReq &b) { swap(a.operationHandle, b.operationHandle); } -TCancelOperationReq::TCancelOperationReq(const TCancelOperationReq& other265) { - operationHandle = other265.operationHandle; -} -TCancelOperationReq& TCancelOperationReq::operator=(const TCancelOperationReq& other266) { - operationHandle = other266.operationHandle; - return *this; -} -void TCancelOperationReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCancelOperationReq("; - out << "operationHandle=" << to_string(operationHandle); - out << ")"; -} - - -TCancelOperationResp::~TCancelOperationResp() throw() { -} - - -void TCancelOperationResp::__set_status(const TStatus& val) { - this->status = val; -} +const char* TCancelOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; +const uint8_t TCancelOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; uint32_t TCancelOperationResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7903,7 +5856,6 @@ uint32_t TCancelOperationResp::read(::apache::thrift::protocol::TProtocol* iprot uint32_t TCancelOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCancelOperationResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7920,32 +5872,11 @@ void swap(TCancelOperationResp &a, TCancelOperationResp &b) { swap(a.status, b.status); } -TCancelOperationResp::TCancelOperationResp(const TCancelOperationResp& other267) { - status = other267.status; -} -TCancelOperationResp& TCancelOperationResp::operator=(const TCancelOperationResp& other268) { - status = other268.status; - return *this; -} -void TCancelOperationResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCancelOperationResp("; - out << "status=" << to_string(status); - out << ")"; -} - - -TCloseOperationReq::~TCloseOperationReq() throw() { -} - - -void TCloseOperationReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} +const char* TCloseOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; +const uint8_t TCloseOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; uint32_t TCloseOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -7989,7 +5920,6 @@ uint32_t TCloseOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCloseOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCloseOperationReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8006,32 +5936,11 @@ void swap(TCloseOperationReq &a, TCloseOperationReq &b) { swap(a.operationHandle, b.operationHandle); } -TCloseOperationReq::TCloseOperationReq(const TCloseOperationReq& other269) { - operationHandle = other269.operationHandle; -} -TCloseOperationReq& TCloseOperationReq::operator=(const TCloseOperationReq& other270) { - operationHandle = other270.operationHandle; - return *this; -} -void TCloseOperationReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCloseOperationReq("; - out << "operationHandle=" << to_string(operationHandle); - out << ")"; -} - - -TCloseOperationResp::~TCloseOperationResp() throw() { -} - - -void TCloseOperationResp::__set_status(const TStatus& val) { - this->status = val; -} +const char* TCloseOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; +const uint8_t TCloseOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; uint32_t TCloseOperationResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8075,7 +5984,6 @@ uint32_t TCloseOperationResp::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCloseOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCloseOperationResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8092,32 +6000,11 @@ void swap(TCloseOperationResp &a, TCloseOperationResp &b) { swap(a.status, b.status); } -TCloseOperationResp::TCloseOperationResp(const TCloseOperationResp& other271) { - status = other271.status; -} -TCloseOperationResp& TCloseOperationResp::operator=(const TCloseOperationResp& other272) { - status = other272.status; - return *this; -} -void TCloseOperationResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCloseOperationResp("; - out << "status=" << to_string(status); - out << ")"; -} - - -TGetResultSetMetadataReq::~TGetResultSetMetadataReq() throw() { -} - - -void TGetResultSetMetadataReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} +const char* TGetResultSetMetadataReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; +const uint8_t TGetResultSetMetadataReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; uint32_t TGetResultSetMetadataReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8161,7 +6048,6 @@ uint32_t TGetResultSetMetadataReq::read(::apache::thrift::protocol::TProtocol* i uint32_t TGetResultSetMetadataReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetResultSetMetadataReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8178,37 +6064,11 @@ void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) { swap(a.operationHandle, b.operationHandle); } -TGetResultSetMetadataReq::TGetResultSetMetadataReq(const TGetResultSetMetadataReq& other273) { - operationHandle = other273.operationHandle; -} -TGetResultSetMetadataReq& TGetResultSetMetadataReq::operator=(const TGetResultSetMetadataReq& other274) { - operationHandle = other274.operationHandle; - return *this; -} -void TGetResultSetMetadataReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetResultSetMetadataReq("; - out << "operationHandle=" << to_string(operationHandle); - out << ")"; -} - - -TGetResultSetMetadataResp::~TGetResultSetMetadataResp() throw() { -} - - -void TGetResultSetMetadataResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetResultSetMetadataResp::__set_schema(const TTableSchema& val) { - this->schema = val; -__isset.schema = true; -} +const char* TGetResultSetMetadataResp::ascii_fingerprint = "42CD49B7F49CC1B6D4E6F5FA2D7BE812"; +const uint8_t TGetResultSetMetadataResp::binary_fingerprint[16] = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12}; uint32_t TGetResultSetMetadataResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8260,7 +6120,6 @@ uint32_t TGetResultSetMetadataResp::read(::apache::thrift::protocol::TProtocol* uint32_t TGetResultSetMetadataResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetResultSetMetadataResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8284,50 +6143,11 @@ void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) { swap(a.__isset, b.__isset); } -TGetResultSetMetadataResp::TGetResultSetMetadataResp(const TGetResultSetMetadataResp& other275) { - status = other275.status; - schema = other275.schema; - __isset = other275.__isset; -} -TGetResultSetMetadataResp& TGetResultSetMetadataResp::operator=(const TGetResultSetMetadataResp& other276) { - status = other276.status; - schema = other276.schema; - __isset = other276.__isset; - return *this; -} -void TGetResultSetMetadataResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetResultSetMetadataResp("; - out << "status=" << to_string(status); - out << ", " << "schema="; (__isset.schema ? (out << to_string(schema)) : (out << "")); - out << ")"; -} - - -TFetchResultsReq::~TFetchResultsReq() throw() { -} - - -void TFetchResultsReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - -void TFetchResultsReq::__set_orientation(const TFetchOrientation::type val) { - this->orientation = val; -} - -void TFetchResultsReq::__set_maxRows(const int64_t val) { - this->maxRows = val; -} - -void TFetchResultsReq::__set_fetchType(const int16_t val) { - this->fetchType = val; -__isset.fetchType = true; -} +const char* TFetchResultsReq::ascii_fingerprint = "B4CB1E4F8F8F4D50183DD372AD11753A"; +const uint8_t TFetchResultsReq::binary_fingerprint[16] = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A}; uint32_t TFetchResultsReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8359,9 +6179,9 @@ uint32_t TFetchResultsReq::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast277; - xfer += iprot->readI32(ecast277); - this->orientation = (TFetchOrientation::type)ecast277; + int32_t ecast145; + xfer += iprot->readI32(ecast145); + this->orientation = (TFetchOrientation::type)ecast145; isset_orientation = true; } else { xfer += iprot->skip(ftype); @@ -8403,7 +6223,6 @@ uint32_t TFetchResultsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TFetchResultsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TFetchResultsReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8437,53 +6256,11 @@ void swap(TFetchResultsReq &a, TFetchResultsReq &b) { swap(a.__isset, b.__isset); } -TFetchResultsReq::TFetchResultsReq(const TFetchResultsReq& other278) { - operationHandle = other278.operationHandle; - orientation = other278.orientation; - maxRows = other278.maxRows; - fetchType = other278.fetchType; - __isset = other278.__isset; -} -TFetchResultsReq& TFetchResultsReq::operator=(const TFetchResultsReq& other279) { - operationHandle = other279.operationHandle; - orientation = other279.orientation; - maxRows = other279.maxRows; - fetchType = other279.fetchType; - __isset = other279.__isset; - return *this; -} -void TFetchResultsReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TFetchResultsReq("; - out << "operationHandle=" << to_string(operationHandle); - out << ", " << "orientation=" << to_string(orientation); - out << ", " << "maxRows=" << to_string(maxRows); - out << ", " << "fetchType="; (__isset.fetchType ? (out << to_string(fetchType)) : (out << "")); - out << ")"; -} - - -TFetchResultsResp::~TFetchResultsResp() throw() { -} - - -void TFetchResultsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TFetchResultsResp::__set_hasMoreRows(const bool val) { - this->hasMoreRows = val; -__isset.hasMoreRows = true; -} - -void TFetchResultsResp::__set_results(const TRowSet& val) { - this->results = val; -__isset.results = true; -} +const char* TFetchResultsResp::ascii_fingerprint = "FC43BC2D6F3B76D4DB0F34226A745C8E"; +const uint8_t TFetchResultsResp::binary_fingerprint[16] = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E}; uint32_t TFetchResultsResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8543,7 +6320,6 @@ uint32_t TFetchResultsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TFetchResultsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TFetchResultsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8573,48 +6349,11 @@ void swap(TFetchResultsResp &a, TFetchResultsResp &b) { swap(a.__isset, b.__isset); } -TFetchResultsResp::TFetchResultsResp(const TFetchResultsResp& other280) { - status = other280.status; - hasMoreRows = other280.hasMoreRows; - results = other280.results; - __isset = other280.__isset; -} -TFetchResultsResp& TFetchResultsResp::operator=(const TFetchResultsResp& other281) { - status = other281.status; - hasMoreRows = other281.hasMoreRows; - results = other281.results; - __isset = other281.__isset; - return *this; -} -void TFetchResultsResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TFetchResultsResp("; - out << "status=" << to_string(status); - out << ", " << "hasMoreRows="; (__isset.hasMoreRows ? (out << to_string(hasMoreRows)) : (out << "")); - out << ", " << "results="; (__isset.results ? (out << to_string(results)) : (out << "")); - out << ")"; -} - - -TGetDelegationTokenReq::~TGetDelegationTokenReq() throw() { -} - - -void TGetDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetDelegationTokenReq::__set_owner(const std::string& val) { - this->owner = val; -} - -void TGetDelegationTokenReq::__set_renewer(const std::string& val) { - this->renewer = val; -} +const char* TGetDelegationTokenReq::ascii_fingerprint = "07EA0311716A27924914E4354ED22D6C"; +const uint8_t TGetDelegationTokenReq::binary_fingerprint[16] = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C}; uint32_t TGetDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8680,7 +6419,6 @@ uint32_t TGetDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* ipr uint32_t TGetDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8707,43 +6445,11 @@ void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) { swap(a.renewer, b.renewer); } -TGetDelegationTokenReq::TGetDelegationTokenReq(const TGetDelegationTokenReq& other282) { - sessionHandle = other282.sessionHandle; - owner = other282.owner; - renewer = other282.renewer; -} -TGetDelegationTokenReq& TGetDelegationTokenReq::operator=(const TGetDelegationTokenReq& other283) { - sessionHandle = other283.sessionHandle; - owner = other283.owner; - renewer = other283.renewer; - return *this; -} -void TGetDelegationTokenReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetDelegationTokenReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "owner=" << to_string(owner); - out << ", " << "renewer=" << to_string(renewer); - out << ")"; -} - - -TGetDelegationTokenResp::~TGetDelegationTokenResp() throw() { -} - - -void TGetDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetDelegationTokenResp::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -__isset.delegationToken = true; -} +const char* TGetDelegationTokenResp::ascii_fingerprint = "C0E132DC412CEA08D771EAC38CEA1DA6"; +const uint8_t TGetDelegationTokenResp::binary_fingerprint[16] = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6}; uint32_t TGetDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8795,7 +6501,6 @@ uint32_t TGetDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* ip uint32_t TGetDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TGetDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8819,41 +6524,11 @@ void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) { swap(a.__isset, b.__isset); } -TGetDelegationTokenResp::TGetDelegationTokenResp(const TGetDelegationTokenResp& other284) { - status = other284.status; - delegationToken = other284.delegationToken; - __isset = other284.__isset; -} -TGetDelegationTokenResp& TGetDelegationTokenResp::operator=(const TGetDelegationTokenResp& other285) { - status = other285.status; - delegationToken = other285.delegationToken; - __isset = other285.__isset; - return *this; -} -void TGetDelegationTokenResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TGetDelegationTokenResp("; - out << "status=" << to_string(status); - out << ", " << "delegationToken="; (__isset.delegationToken ? (out << to_string(delegationToken)) : (out << "")); - out << ")"; -} - - -TCancelDelegationTokenReq::~TCancelDelegationTokenReq() throw() { -} - - -void TCancelDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TCancelDelegationTokenReq::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -} +const char* TCancelDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75"; +const uint8_t TCancelDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; uint32_t TCancelDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -8908,7 +6583,6 @@ uint32_t TCancelDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* uint32_t TCancelDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCancelDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8930,35 +6604,11 @@ void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) { swap(a.delegationToken, b.delegationToken); } -TCancelDelegationTokenReq::TCancelDelegationTokenReq(const TCancelDelegationTokenReq& other286) { - sessionHandle = other286.sessionHandle; - delegationToken = other286.delegationToken; -} -TCancelDelegationTokenReq& TCancelDelegationTokenReq::operator=(const TCancelDelegationTokenReq& other287) { - sessionHandle = other287.sessionHandle; - delegationToken = other287.delegationToken; - return *this; -} -void TCancelDelegationTokenReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCancelDelegationTokenReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "delegationToken=" << to_string(delegationToken); - out << ")"; -} - - -TCancelDelegationTokenResp::~TCancelDelegationTokenResp() throw() { -} - - -void TCancelDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} +const char* TCancelDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; +const uint8_t TCancelDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; uint32_t TCancelDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9002,7 +6652,6 @@ uint32_t TCancelDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* uint32_t TCancelDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TCancelDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9019,36 +6668,11 @@ void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) { swap(a.status, b.status); } -TCancelDelegationTokenResp::TCancelDelegationTokenResp(const TCancelDelegationTokenResp& other288) { - status = other288.status; -} -TCancelDelegationTokenResp& TCancelDelegationTokenResp::operator=(const TCancelDelegationTokenResp& other289) { - status = other289.status; - return *this; -} -void TCancelDelegationTokenResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TCancelDelegationTokenResp("; - out << "status=" << to_string(status); - out << ")"; -} - - -TRenewDelegationTokenReq::~TRenewDelegationTokenReq() throw() { -} - - -void TRenewDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TRenewDelegationTokenReq::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -} +const char* TRenewDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75"; +const uint8_t TRenewDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; uint32_t TRenewDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9103,7 +6727,6 @@ uint32_t TRenewDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* i uint32_t TRenewDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TRenewDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9125,35 +6748,11 @@ void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) { swap(a.delegationToken, b.delegationToken); } -TRenewDelegationTokenReq::TRenewDelegationTokenReq(const TRenewDelegationTokenReq& other290) { - sessionHandle = other290.sessionHandle; - delegationToken = other290.delegationToken; -} -TRenewDelegationTokenReq& TRenewDelegationTokenReq::operator=(const TRenewDelegationTokenReq& other291) { - sessionHandle = other291.sessionHandle; - delegationToken = other291.delegationToken; - return *this; -} -void TRenewDelegationTokenReq::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TRenewDelegationTokenReq("; - out << "sessionHandle=" << to_string(sessionHandle); - out << ", " << "delegationToken=" << to_string(delegationToken); - out << ")"; -} - - -TRenewDelegationTokenResp::~TRenewDelegationTokenResp() throw() { -} - - -void TRenewDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} +const char* TRenewDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; +const uint8_t TRenewDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; uint32_t TRenewDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -9197,7 +6796,6 @@ uint32_t TRenewDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* uint32_t TRenewDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("TRenewDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9214,18 +6812,4 @@ void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) { swap(a.status, b.status); } -TRenewDelegationTokenResp::TRenewDelegationTokenResp(const TRenewDelegationTokenResp& other292) { - status = other292.status; -} -TRenewDelegationTokenResp& TRenewDelegationTokenResp::operator=(const TRenewDelegationTokenResp& other293) { - status = other293.status; - return *this; -} -void TRenewDelegationTokenResp::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "TRenewDelegationTokenResp("; - out << "status=" << to_string(status); - out << ")"; -} - }}}}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_types.h b/service/src/gen/thrift/gen-cpp/TCLIService_types.h index b078c99..7bceabd 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_types.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef TCLIService_TYPES_H #define TCLIService_TYPES_H -#include - #include #include #include #include -#include namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { @@ -181,177 +178,37 @@ typedef std::string TPattern; typedef std::string TPatternOrIdentifier; -class TTypeQualifierValue; - -class TTypeQualifiers; - -class TPrimitiveTypeEntry; - -class TArrayTypeEntry; - -class TMapTypeEntry; - -class TStructTypeEntry; - -class TUnionTypeEntry; - -class TUserDefinedTypeEntry; - -class TTypeEntry; - -class TTypeDesc; - -class TColumnDesc; - -class TTableSchema; - -class TBoolValue; - -class TByteValue; - -class TI16Value; - -class TI32Value; - -class TI64Value; - -class TDoubleValue; - -class TStringValue; - -class TColumnValue; - -class TRow; - -class TBoolColumn; - -class TByteColumn; - -class TI16Column; - -class TI32Column; - -class TI64Column; - -class TDoubleColumn; - -class TStringColumn; - -class TBinaryColumn; - -class TColumn; - -class TRowSet; - -class TStatus; - -class THandleIdentifier; - -class TSessionHandle; - -class TOperationHandle; - -class TOpenSessionReq; - -class TOpenSessionResp; - -class TCloseSessionReq; - -class TCloseSessionResp; - -class TGetInfoValue; - -class TGetInfoReq; - -class TGetInfoResp; - -class TExecuteStatementReq; - -class TExecuteStatementResp; - -class TGetTypeInfoReq; - -class TGetTypeInfoResp; - -class TGetCatalogsReq; - -class TGetCatalogsResp; - -class TGetSchemasReq; - -class TGetSchemasResp; - -class TGetTablesReq; - -class TGetTablesResp; - -class TGetTableTypesReq; - -class TGetTableTypesResp; - -class TGetColumnsReq; - -class TGetColumnsResp; - -class TGetFunctionsReq; - -class TGetFunctionsResp; - -class TGetOperationStatusReq; - -class TGetOperationStatusResp; - -class TCancelOperationReq; - -class TCancelOperationResp; - -class TCloseOperationReq; - -class TCloseOperationResp; - -class TGetResultSetMetadataReq; - -class TGetResultSetMetadataResp; - -class TFetchResultsReq; - -class TFetchResultsResp; - -class TGetDelegationTokenReq; - -class TGetDelegationTokenResp; - -class TCancelDelegationTokenReq; - -class TCancelDelegationTokenResp; - -class TRenewDelegationTokenReq; - -class TRenewDelegationTokenResp; - typedef struct _TTypeQualifierValue__isset { _TTypeQualifierValue__isset() : i32Value(false), stringValue(false) {} - bool i32Value :1; - bool stringValue :1; + bool i32Value; + bool stringValue; } _TTypeQualifierValue__isset; class TTypeQualifierValue { public: - TTypeQualifierValue(const TTypeQualifierValue&); - TTypeQualifierValue& operator=(const TTypeQualifierValue&); + static const char* ascii_fingerprint; // = "A7801670116150C65ACA43E6F679BA79"; + static const uint8_t binary_fingerprint[16]; // = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79}; + TTypeQualifierValue() : i32Value(0), stringValue() { } - virtual ~TTypeQualifierValue() throw(); + virtual ~TTypeQualifierValue() throw() {} + int32_t i32Value; std::string stringValue; _TTypeQualifierValue__isset __isset; - void __set_i32Value(const int32_t val); + void __set_i32Value(const int32_t val) { + i32Value = val; + __isset.i32Value = true; + } - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + __isset.stringValue = true; + } bool operator == (const TTypeQualifierValue & rhs) const { @@ -374,30 +231,27 @@ class TTypeQualifierValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TTypeQualifierValue &a, TTypeQualifierValue &b); -inline std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj) -{ - obj.printTo(out); - return out; -} - class TTypeQualifiers { public: - TTypeQualifiers(const TTypeQualifiers&); - TTypeQualifiers& operator=(const TTypeQualifiers&); + static const char* ascii_fingerprint; // = "6C72981CFA989214285648FA8C196C47"; + static const uint8_t binary_fingerprint[16]; // = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47}; + TTypeQualifiers() { } - virtual ~TTypeQualifiers() throw(); + virtual ~TTypeQualifiers() throw() {} + std::map qualifiers; - void __set_qualifiers(const std::map & val); + void __set_qualifiers(const std::map & val) { + qualifiers = val; + } bool operator == (const TTypeQualifiers & rhs) const { @@ -414,39 +268,39 @@ class TTypeQualifiers { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TTypeQualifiers &a, TTypeQualifiers &b); -inline std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TPrimitiveTypeEntry__isset { _TPrimitiveTypeEntry__isset() : typeQualifiers(false) {} - bool typeQualifiers :1; + bool typeQualifiers; } _TPrimitiveTypeEntry__isset; class TPrimitiveTypeEntry { public: - TPrimitiveTypeEntry(const TPrimitiveTypeEntry&); - TPrimitiveTypeEntry& operator=(const TPrimitiveTypeEntry&); + static const char* ascii_fingerprint; // = "755674F6A5C8EB47868686AE386FBC1C"; + static const uint8_t binary_fingerprint[16]; // = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C}; + TPrimitiveTypeEntry() : type((TTypeId::type)0) { } - virtual ~TPrimitiveTypeEntry() throw(); + virtual ~TPrimitiveTypeEntry() throw() {} + TTypeId::type type; TTypeQualifiers typeQualifiers; _TPrimitiveTypeEntry__isset __isset; - void __set_type(const TTypeId::type val); + void __set_type(const TTypeId::type val) { + type = val; + } - void __set_typeQualifiers(const TTypeQualifiers& val); + void __set_typeQualifiers(const TTypeQualifiers& val) { + typeQualifiers = val; + __isset.typeQualifiers = true; + } bool operator == (const TPrimitiveTypeEntry & rhs) const { @@ -467,30 +321,27 @@ class TPrimitiveTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TArrayTypeEntry { public: - TArrayTypeEntry(const TArrayTypeEntry&); - TArrayTypeEntry& operator=(const TArrayTypeEntry&); + static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; + static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; + TArrayTypeEntry() : objectTypePtr(0) { } - virtual ~TArrayTypeEntry() throw(); + virtual ~TArrayTypeEntry() throw() {} + TTypeEntryPtr objectTypePtr; - void __set_objectTypePtr(const TTypeEntryPtr val); + void __set_objectTypePtr(const TTypeEntryPtr val) { + objectTypePtr = val; + } bool operator == (const TArrayTypeEntry & rhs) const { @@ -507,33 +358,32 @@ class TArrayTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TArrayTypeEntry &a, TArrayTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TMapTypeEntry { public: - TMapTypeEntry(const TMapTypeEntry&); - TMapTypeEntry& operator=(const TMapTypeEntry&); + static const char* ascii_fingerprint; // = "989D1F1AE8D148D5E2119FFEC4BBBEE3"; + static const uint8_t binary_fingerprint[16]; // = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3}; + TMapTypeEntry() : keyTypePtr(0), valueTypePtr(0) { } - virtual ~TMapTypeEntry() throw(); + virtual ~TMapTypeEntry() throw() {} + TTypeEntryPtr keyTypePtr; TTypeEntryPtr valueTypePtr; - void __set_keyTypePtr(const TTypeEntryPtr val); + void __set_keyTypePtr(const TTypeEntryPtr val) { + keyTypePtr = val; + } - void __set_valueTypePtr(const TTypeEntryPtr val); + void __set_valueTypePtr(const TTypeEntryPtr val) { + valueTypePtr = val; + } bool operator == (const TMapTypeEntry & rhs) const { @@ -552,30 +402,27 @@ class TMapTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TMapTypeEntry &a, TMapTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TStructTypeEntry { public: - TStructTypeEntry(const TStructTypeEntry&); - TStructTypeEntry& operator=(const TStructTypeEntry&); + static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402"; + static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; + TStructTypeEntry() { } - virtual ~TStructTypeEntry() throw(); + virtual ~TStructTypeEntry() throw() {} + std::map nameToTypePtr; - void __set_nameToTypePtr(const std::map & val); + void __set_nameToTypePtr(const std::map & val) { + nameToTypePtr = val; + } bool operator == (const TStructTypeEntry & rhs) const { @@ -592,30 +439,27 @@ class TStructTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TStructTypeEntry &a, TStructTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TUnionTypeEntry { public: - TUnionTypeEntry(const TUnionTypeEntry&); - TUnionTypeEntry& operator=(const TUnionTypeEntry&); + static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402"; + static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; + TUnionTypeEntry() { } - virtual ~TUnionTypeEntry() throw(); + virtual ~TUnionTypeEntry() throw() {} + std::map nameToTypePtr; - void __set_nameToTypePtr(const std::map & val); + void __set_nameToTypePtr(const std::map & val) { + nameToTypePtr = val; + } bool operator == (const TUnionTypeEntry & rhs) const { @@ -632,30 +476,27 @@ class TUnionTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TUnionTypeEntry &a, TUnionTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TUserDefinedTypeEntry { public: - TUserDefinedTypeEntry(const TUserDefinedTypeEntry&); - TUserDefinedTypeEntry& operator=(const TUserDefinedTypeEntry&); + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + TUserDefinedTypeEntry() : typeClassName() { } - virtual ~TUserDefinedTypeEntry() throw(); + virtual ~TUserDefinedTypeEntry() throw() {} + std::string typeClassName; - void __set_typeClassName(const std::string& val); + void __set_typeClassName(const std::string& val) { + typeClassName = val; + } bool operator == (const TUserDefinedTypeEntry & rhs) const { @@ -672,36 +513,31 @@ class TUserDefinedTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TTypeEntry__isset { _TTypeEntry__isset() : primitiveEntry(false), arrayEntry(false), mapEntry(false), structEntry(false), unionEntry(false), userDefinedTypeEntry(false) {} - bool primitiveEntry :1; - bool arrayEntry :1; - bool mapEntry :1; - bool structEntry :1; - bool unionEntry :1; - bool userDefinedTypeEntry :1; + bool primitiveEntry; + bool arrayEntry; + bool mapEntry; + bool structEntry; + bool unionEntry; + bool userDefinedTypeEntry; } _TTypeEntry__isset; class TTypeEntry { public: - TTypeEntry(const TTypeEntry&); - TTypeEntry& operator=(const TTypeEntry&); + static const char* ascii_fingerprint; // = "2FE56D9097E325DAA7E933738C6D325F"; + static const uint8_t binary_fingerprint[16]; // = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F}; + TTypeEntry() { } - virtual ~TTypeEntry() throw(); + virtual ~TTypeEntry() throw() {} + TPrimitiveTypeEntry primitiveEntry; TArrayTypeEntry arrayEntry; TMapTypeEntry mapEntry; @@ -711,17 +547,29 @@ class TTypeEntry { _TTypeEntry__isset __isset; - void __set_primitiveEntry(const TPrimitiveTypeEntry& val); + void __set_primitiveEntry(const TPrimitiveTypeEntry& val) { + primitiveEntry = val; + } - void __set_arrayEntry(const TArrayTypeEntry& val); + void __set_arrayEntry(const TArrayTypeEntry& val) { + arrayEntry = val; + } - void __set_mapEntry(const TMapTypeEntry& val); + void __set_mapEntry(const TMapTypeEntry& val) { + mapEntry = val; + } - void __set_structEntry(const TStructTypeEntry& val); + void __set_structEntry(const TStructTypeEntry& val) { + structEntry = val; + } - void __set_unionEntry(const TUnionTypeEntry& val); + void __set_unionEntry(const TUnionTypeEntry& val) { + unionEntry = val; + } - void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val); + void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) { + userDefinedTypeEntry = val; + } bool operator == (const TTypeEntry & rhs) const { @@ -748,30 +596,27 @@ class TTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TTypeEntry &a, TTypeEntry &b); -inline std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj) -{ - obj.printTo(out); - return out; -} - class TTypeDesc { public: - TTypeDesc(const TTypeDesc&); - TTypeDesc& operator=(const TTypeDesc&); + static const char* ascii_fingerprint; // = "90B3C5A0B73419A84E85E0E48C452AA5"; + static const uint8_t binary_fingerprint[16]; // = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5}; + TTypeDesc() { } - virtual ~TTypeDesc() throw(); + virtual ~TTypeDesc() throw() {} + std::vector types; - void __set_types(const std::vector & val); + void __set_types(const std::vector & val) { + types = val; + } bool operator == (const TTypeDesc & rhs) const { @@ -788,31 +633,26 @@ class TTypeDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TTypeDesc &a, TTypeDesc &b); -inline std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TColumnDesc__isset { _TColumnDesc__isset() : comment(false) {} - bool comment :1; + bool comment; } _TColumnDesc__isset; class TColumnDesc { public: - TColumnDesc(const TColumnDesc&); - TColumnDesc& operator=(const TColumnDesc&); + static const char* ascii_fingerprint; // = "EABED9009D5FCABFCA65612069F2A849"; + static const uint8_t binary_fingerprint[16]; // = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49}; + TColumnDesc() : columnName(), position(0), comment() { } - virtual ~TColumnDesc() throw(); + virtual ~TColumnDesc() throw() {} + std::string columnName; TTypeDesc typeDesc; int32_t position; @@ -820,13 +660,22 @@ class TColumnDesc { _TColumnDesc__isset __isset; - void __set_columnName(const std::string& val); + void __set_columnName(const std::string& val) { + columnName = val; + } - void __set_typeDesc(const TTypeDesc& val); + void __set_typeDesc(const TTypeDesc& val) { + typeDesc = val; + } - void __set_position(const int32_t val); + void __set_position(const int32_t val) { + position = val; + } - void __set_comment(const std::string& val); + void __set_comment(const std::string& val) { + comment = val; + __isset.comment = true; + } bool operator == (const TColumnDesc & rhs) const { @@ -851,30 +700,27 @@ class TColumnDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TColumnDesc &a, TColumnDesc &b); -inline std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj) -{ - obj.printTo(out); - return out; -} - class TTableSchema { public: - TTableSchema(const TTableSchema&); - TTableSchema& operator=(const TTableSchema&); + static const char* ascii_fingerprint; // = "7A1811E49313E5977107FC667B20E39D"; + static const uint8_t binary_fingerprint[16]; // = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D}; + TTableSchema() { } - virtual ~TTableSchema() throw(); + virtual ~TTableSchema() throw() {} + std::vector columns; - void __set_columns(const std::vector & val); + void __set_columns(const std::vector & val) { + columns = val; + } bool operator == (const TTableSchema & rhs) const { @@ -891,36 +737,34 @@ class TTableSchema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TTableSchema &a, TTableSchema &b); -inline std::ostream& operator<<(std::ostream& out, const TTableSchema& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TBoolValue__isset { _TBoolValue__isset() : value(false) {} - bool value :1; + bool value; } _TBoolValue__isset; class TBoolValue { public: - TBoolValue(const TBoolValue&); - TBoolValue& operator=(const TBoolValue&); + static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; + static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; + TBoolValue() : value(0) { } - virtual ~TBoolValue() throw(); + virtual ~TBoolValue() throw() {} + bool value; _TBoolValue__isset __isset; - void __set_value(const bool val); + void __set_value(const bool val) { + value = val; + __isset.value = true; + } bool operator == (const TBoolValue & rhs) const { @@ -939,36 +783,34 @@ class TBoolValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TBoolValue &a, TBoolValue &b); -inline std::ostream& operator<<(std::ostream& out, const TBoolValue& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TByteValue__isset { _TByteValue__isset() : value(false) {} - bool value :1; + bool value; } _TByteValue__isset; class TByteValue { public: - TByteValue(const TByteValue&); - TByteValue& operator=(const TByteValue&); + static const char* ascii_fingerprint; // = "9C15298ACB5D04AEA9B52D5DDE6F9208"; + static const uint8_t binary_fingerprint[16]; // = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08}; + TByteValue() : value(0) { } - virtual ~TByteValue() throw(); + virtual ~TByteValue() throw() {} + int8_t value; _TByteValue__isset __isset; - void __set_value(const int8_t val); + void __set_value(const int8_t val) { + value = val; + __isset.value = true; + } bool operator == (const TByteValue & rhs) const { @@ -987,36 +829,34 @@ class TByteValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TByteValue &a, TByteValue &b); -inline std::ostream& operator<<(std::ostream& out, const TByteValue& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TI16Value__isset { _TI16Value__isset() : value(false) {} - bool value :1; + bool value; } _TI16Value__isset; class TI16Value { public: - TI16Value(const TI16Value&); - TI16Value& operator=(const TI16Value&); + static const char* ascii_fingerprint; // = "5DAC9C51C7E1106BF936FC71860BE9D5"; + static const uint8_t binary_fingerprint[16]; // = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5}; + TI16Value() : value(0) { } - virtual ~TI16Value() throw(); + virtual ~TI16Value() throw() {} + int16_t value; _TI16Value__isset __isset; - void __set_value(const int16_t val); + void __set_value(const int16_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI16Value & rhs) const { @@ -1035,36 +875,34 @@ class TI16Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI16Value &a, TI16Value &b); -inline std::ostream& operator<<(std::ostream& out, const TI16Value& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TI32Value__isset { _TI32Value__isset() : value(false) {} - bool value :1; + bool value; } _TI32Value__isset; class TI32Value { public: - TI32Value(const TI32Value&); - TI32Value& operator=(const TI32Value&); + static const char* ascii_fingerprint; // = "E7A96B151330359E84C0A3AC91BCBACD"; + static const uint8_t binary_fingerprint[16]; // = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD}; + TI32Value() : value(0) { } - virtual ~TI32Value() throw(); + virtual ~TI32Value() throw() {} + int32_t value; _TI32Value__isset __isset; - void __set_value(const int32_t val); + void __set_value(const int32_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI32Value & rhs) const { @@ -1083,36 +921,34 @@ class TI32Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI32Value &a, TI32Value &b); -inline std::ostream& operator<<(std::ostream& out, const TI32Value& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TI64Value__isset { _TI64Value__isset() : value(false) {} - bool value :1; + bool value; } _TI64Value__isset; class TI64Value { public: - TI64Value(const TI64Value&); - TI64Value& operator=(const TI64Value&); + static const char* ascii_fingerprint; // = "148F3AAAC1D9859963D5E800D187BF26"; + static const uint8_t binary_fingerprint[16]; // = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26}; + TI64Value() : value(0) { } - virtual ~TI64Value() throw(); + virtual ~TI64Value() throw() {} + int64_t value; _TI64Value__isset __isset; - void __set_value(const int64_t val); + void __set_value(const int64_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI64Value & rhs) const { @@ -1131,36 +967,34 @@ class TI64Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI64Value &a, TI64Value &b); -inline std::ostream& operator<<(std::ostream& out, const TI64Value& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TDoubleValue__isset { _TDoubleValue__isset() : value(false) {} - bool value :1; + bool value; } _TDoubleValue__isset; class TDoubleValue { public: - TDoubleValue(const TDoubleValue&); - TDoubleValue& operator=(const TDoubleValue&); + static const char* ascii_fingerprint; // = "3586E570A474C4A8603B4FF74903B3A6"; + static const uint8_t binary_fingerprint[16]; // = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6}; + TDoubleValue() : value(0) { } - virtual ~TDoubleValue() throw(); + virtual ~TDoubleValue() throw() {} + double value; _TDoubleValue__isset __isset; - void __set_value(const double val); + void __set_value(const double val) { + value = val; + __isset.value = true; + } bool operator == (const TDoubleValue & rhs) const { @@ -1179,36 +1013,34 @@ class TDoubleValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TDoubleValue &a, TDoubleValue &b); -inline std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TStringValue__isset { _TStringValue__isset() : value(false) {} - bool value :1; + bool value; } _TStringValue__isset; class TStringValue { public: - TStringValue(const TStringValue&); - TStringValue& operator=(const TStringValue&); + static const char* ascii_fingerprint; // = "66E694018C17E5B65A59AE8F55CCA3CD"; + static const uint8_t binary_fingerprint[16]; // = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD}; + TStringValue() : value() { } - virtual ~TStringValue() throw(); + virtual ~TStringValue() throw() {} + std::string value; _TStringValue__isset __isset; - void __set_value(const std::string& val); + void __set_value(const std::string& val) { + value = val; + __isset.value = true; + } bool operator == (const TStringValue & rhs) const { @@ -1227,37 +1059,32 @@ class TStringValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TStringValue &a, TStringValue &b); -inline std::ostream& operator<<(std::ostream& out, const TStringValue& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TColumnValue__isset { _TColumnValue__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false) {} - bool boolVal :1; - bool byteVal :1; - bool i16Val :1; - bool i32Val :1; - bool i64Val :1; - bool doubleVal :1; - bool stringVal :1; + bool boolVal; + bool byteVal; + bool i16Val; + bool i32Val; + bool i64Val; + bool doubleVal; + bool stringVal; } _TColumnValue__isset; class TColumnValue { public: - TColumnValue(const TColumnValue&); - TColumnValue& operator=(const TColumnValue&); + static const char* ascii_fingerprint; // = "C2DDD988447EA7999A8285AA38AAE9AD"; + static const uint8_t binary_fingerprint[16]; // = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD}; + TColumnValue() { } - virtual ~TColumnValue() throw(); + virtual ~TColumnValue() throw() {} + TBoolValue boolVal; TByteValue byteVal; TI16Value i16Val; @@ -1268,19 +1095,33 @@ class TColumnValue { _TColumnValue__isset __isset; - void __set_boolVal(const TBoolValue& val); + void __set_boolVal(const TBoolValue& val) { + boolVal = val; + } - void __set_byteVal(const TByteValue& val); + void __set_byteVal(const TByteValue& val) { + byteVal = val; + } - void __set_i16Val(const TI16Value& val); + void __set_i16Val(const TI16Value& val) { + i16Val = val; + } - void __set_i32Val(const TI32Value& val); + void __set_i32Val(const TI32Value& val) { + i32Val = val; + } - void __set_i64Val(const TI64Value& val); + void __set_i64Val(const TI64Value& val) { + i64Val = val; + } - void __set_doubleVal(const TDoubleValue& val); + void __set_doubleVal(const TDoubleValue& val) { + doubleVal = val; + } - void __set_stringVal(const TStringValue& val); + void __set_stringVal(const TStringValue& val) { + stringVal = val; + } bool operator == (const TColumnValue & rhs) const { @@ -1309,30 +1150,27 @@ class TColumnValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TColumnValue &a, TColumnValue &b); -inline std::ostream& operator<<(std::ostream& out, const TColumnValue& obj) -{ - obj.printTo(out); - return out; -} - class TRow { public: - TRow(const TRow&); - TRow& operator=(const TRow&); + static const char* ascii_fingerprint; // = "E73FD1FCA0CA58A669FC3E02FB68D534"; + static const uint8_t binary_fingerprint[16]; // = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34}; + TRow() { } - virtual ~TRow() throw(); + virtual ~TRow() throw() {} + std::vector colVals; - void __set_colVals(const std::vector & val); + void __set_colVals(const std::vector & val) { + colVals = val; + } bool operator == (const TRow & rhs) const { @@ -1349,33 +1187,32 @@ class TRow { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TRow &a, TRow &b); -inline std::ostream& operator<<(std::ostream& out, const TRow& obj) -{ - obj.printTo(out); - return out; -} - class TBoolColumn { public: - TBoolColumn(const TBoolColumn&); - TBoolColumn& operator=(const TBoolColumn&); + static const char* ascii_fingerprint; // = "F9058324D96DB7F974D8ACDC01C54219"; + static const uint8_t binary_fingerprint[16]; // = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; + TBoolColumn() : nulls() { } - virtual ~TBoolColumn() throw(); + virtual ~TBoolColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TBoolColumn & rhs) const { @@ -1394,33 +1231,32 @@ class TBoolColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TBoolColumn &a, TBoolColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj) -{ - obj.printTo(out); - return out; -} - class TByteColumn { public: - TByteColumn(const TByteColumn&); - TByteColumn& operator=(const TByteColumn&); + static const char* ascii_fingerprint; // = "1CB300106BAA463A70BB2A2395900F48"; + static const uint8_t binary_fingerprint[16]; // = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48}; + TByteColumn() : nulls() { } - virtual ~TByteColumn() throw(); + virtual ~TByteColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TByteColumn & rhs) const { @@ -1439,33 +1275,32 @@ class TByteColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TByteColumn &a, TByteColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TByteColumn& obj) -{ - obj.printTo(out); - return out; -} - class TI16Column { public: - TI16Column(const TI16Column&); - TI16Column& operator=(const TI16Column&); + static const char* ascii_fingerprint; // = "6574CDB1F121C8DB47FB257A3F104BDB"; + static const uint8_t binary_fingerprint[16]; // = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB}; + TI16Column() : nulls() { } - virtual ~TI16Column() throw(); + virtual ~TI16Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI16Column & rhs) const { @@ -1484,33 +1319,32 @@ class TI16Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI16Column &a, TI16Column &b); -inline std::ostream& operator<<(std::ostream& out, const TI16Column& obj) -{ - obj.printTo(out); - return out; -} - class TI32Column { public: - TI32Column(const TI32Column&); - TI32Column& operator=(const TI32Column&); + static const char* ascii_fingerprint; // = "CCCCE89C7E9DA10280F5663700677313"; + static const uint8_t binary_fingerprint[16]; // = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13}; + TI32Column() : nulls() { } - virtual ~TI32Column() throw(); + virtual ~TI32Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI32Column & rhs) const { @@ -1529,33 +1363,32 @@ class TI32Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI32Column &a, TI32Column &b); -inline std::ostream& operator<<(std::ostream& out, const TI32Column& obj) -{ - obj.printTo(out); - return out; -} - class TI64Column { public: - TI64Column(const TI64Column&); - TI64Column& operator=(const TI64Column&); + static const char* ascii_fingerprint; // = "925353917FC0AF87976A2338011F5A31"; + static const uint8_t binary_fingerprint[16]; // = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31}; + TI64Column() : nulls() { } - virtual ~TI64Column() throw(); + virtual ~TI64Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI64Column & rhs) const { @@ -1574,33 +1407,32 @@ class TI64Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TI64Column &a, TI64Column &b); -inline std::ostream& operator<<(std::ostream& out, const TI64Column& obj) -{ - obj.printTo(out); - return out; -} - class TDoubleColumn { public: - TDoubleColumn(const TDoubleColumn&); - TDoubleColumn& operator=(const TDoubleColumn&); + static const char* ascii_fingerprint; // = "8FF1C050A8D7FD247AEB23CD71539C09"; + static const uint8_t binary_fingerprint[16]; // = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09}; + TDoubleColumn() : nulls() { } - virtual ~TDoubleColumn() throw(); + virtual ~TDoubleColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TDoubleColumn & rhs) const { @@ -1619,33 +1451,32 @@ class TDoubleColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TDoubleColumn &a, TDoubleColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj) -{ - obj.printTo(out); - return out; -} - class TStringColumn { public: - TStringColumn(const TStringColumn&); - TStringColumn& operator=(const TStringColumn&); + static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F"; + static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; + TStringColumn() : nulls() { } - virtual ~TStringColumn() throw(); + virtual ~TStringColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TStringColumn & rhs) const { @@ -1664,33 +1495,32 @@ class TStringColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TStringColumn &a, TStringColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TStringColumn& obj) -{ - obj.printTo(out); - return out; -} - class TBinaryColumn { public: - TBinaryColumn(const TBinaryColumn&); - TBinaryColumn& operator=(const TBinaryColumn&); + static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F"; + static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; + TBinaryColumn() : nulls() { } - virtual ~TBinaryColumn() throw(); + virtual ~TBinaryColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TBinaryColumn & rhs) const { @@ -1709,38 +1539,33 @@ class TBinaryColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TBinaryColumn &a, TBinaryColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TColumn__isset { _TColumn__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false), binaryVal(false) {} - bool boolVal :1; - bool byteVal :1; - bool i16Val :1; - bool i32Val :1; - bool i64Val :1; - bool doubleVal :1; - bool stringVal :1; - bool binaryVal :1; + bool boolVal; + bool byteVal; + bool i16Val; + bool i32Val; + bool i64Val; + bool doubleVal; + bool stringVal; + bool binaryVal; } _TColumn__isset; class TColumn { public: - TColumn(const TColumn&); - TColumn& operator=(const TColumn&); + static const char* ascii_fingerprint; // = "E6ADD10B4CDDE61A19E8878CC7039A17"; + static const uint8_t binary_fingerprint[16]; // = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17}; + TColumn() { } - virtual ~TColumn() throw(); + virtual ~TColumn() throw() {} + TBoolColumn boolVal; TByteColumn byteVal; TI16Column i16Val; @@ -1752,21 +1577,37 @@ class TColumn { _TColumn__isset __isset; - void __set_boolVal(const TBoolColumn& val); + void __set_boolVal(const TBoolColumn& val) { + boolVal = val; + } - void __set_byteVal(const TByteColumn& val); + void __set_byteVal(const TByteColumn& val) { + byteVal = val; + } - void __set_i16Val(const TI16Column& val); + void __set_i16Val(const TI16Column& val) { + i16Val = val; + } - void __set_i32Val(const TI32Column& val); + void __set_i32Val(const TI32Column& val) { + i32Val = val; + } - void __set_i64Val(const TI64Column& val); + void __set_i64Val(const TI64Column& val) { + i64Val = val; + } - void __set_doubleVal(const TDoubleColumn& val); + void __set_doubleVal(const TDoubleColumn& val) { + doubleVal = val; + } - void __set_stringVal(const TStringColumn& val); + void __set_stringVal(const TStringColumn& val) { + stringVal = val; + } - void __set_binaryVal(const TBinaryColumn& val); + void __set_binaryVal(const TBinaryColumn& val) { + binaryVal = val; + } bool operator == (const TColumn & rhs) const { @@ -1797,42 +1638,44 @@ class TColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TColumn &a, TColumn &b); -inline std::ostream& operator<<(std::ostream& out, const TColumn& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TRowSet__isset { _TRowSet__isset() : columns(false) {} - bool columns :1; + bool columns; } _TRowSet__isset; class TRowSet { public: - TRowSet(const TRowSet&); - TRowSet& operator=(const TRowSet&); + static const char* ascii_fingerprint; // = "46DA30A870489C7A58105AE0080DAEBF"; + static const uint8_t binary_fingerprint[16]; // = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF}; + TRowSet() : startRowOffset(0) { } - virtual ~TRowSet() throw(); + virtual ~TRowSet() throw() {} + int64_t startRowOffset; std::vector rows; std::vector columns; _TRowSet__isset __isset; - void __set_startRowOffset(const int64_t val); + void __set_startRowOffset(const int64_t val) { + startRowOffset = val; + } - void __set_rows(const std::vector & val); + void __set_rows(const std::vector & val) { + rows = val; + } - void __set_columns(const std::vector & val); + void __set_columns(const std::vector & val) { + columns = val; + __isset.columns = true; + } bool operator == (const TRowSet & rhs) const { @@ -1855,34 +1698,29 @@ class TRowSet { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TRowSet &a, TRowSet &b); -inline std::ostream& operator<<(std::ostream& out, const TRowSet& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TStatus__isset { _TStatus__isset() : infoMessages(false), sqlState(false), errorCode(false), errorMessage(false) {} - bool infoMessages :1; - bool sqlState :1; - bool errorCode :1; - bool errorMessage :1; + bool infoMessages; + bool sqlState; + bool errorCode; + bool errorMessage; } _TStatus__isset; class TStatus { public: - TStatus(const TStatus&); - TStatus& operator=(const TStatus&); + static const char* ascii_fingerprint; // = "D5DEF49634A59C615C1B3A6F7D0DADB5"; + static const uint8_t binary_fingerprint[16]; // = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5}; + TStatus() : statusCode((TStatusCode::type)0), sqlState(), errorCode(0), errorMessage() { } - virtual ~TStatus() throw(); + virtual ~TStatus() throw() {} + TStatusCode::type statusCode; std::vector infoMessages; std::string sqlState; @@ -1891,15 +1729,29 @@ class TStatus { _TStatus__isset __isset; - void __set_statusCode(const TStatusCode::type val); + void __set_statusCode(const TStatusCode::type val) { + statusCode = val; + } - void __set_infoMessages(const std::vector & val); + void __set_infoMessages(const std::vector & val) { + infoMessages = val; + __isset.infoMessages = true; + } - void __set_sqlState(const std::string& val); + void __set_sqlState(const std::string& val) { + sqlState = val; + __isset.sqlState = true; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + __isset.errorCode = true; + } - void __set_errorMessage(const std::string& val); + void __set_errorMessage(const std::string& val) { + errorMessage = val; + __isset.errorMessage = true; + } bool operator == (const TStatus & rhs) const { @@ -1932,33 +1784,32 @@ class TStatus { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TStatus &a, TStatus &b); -inline std::ostream& operator<<(std::ostream& out, const TStatus& obj) -{ - obj.printTo(out); - return out; -} - class THandleIdentifier { public: - THandleIdentifier(const THandleIdentifier&); - THandleIdentifier& operator=(const THandleIdentifier&); + static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; + static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + THandleIdentifier() : guid(), secret() { } - virtual ~THandleIdentifier() throw(); + virtual ~THandleIdentifier() throw() {} + std::string guid; std::string secret; - void __set_guid(const std::string& val); + void __set_guid(const std::string& val) { + guid = val; + } - void __set_secret(const std::string& val); + void __set_secret(const std::string& val) { + secret = val; + } bool operator == (const THandleIdentifier & rhs) const { @@ -1977,30 +1828,27 @@ class THandleIdentifier { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(THandleIdentifier &a, THandleIdentifier &b); -inline std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj) -{ - obj.printTo(out); - return out; -} - class TSessionHandle { public: - TSessionHandle(const TSessionHandle&); - TSessionHandle& operator=(const TSessionHandle&); + static const char* ascii_fingerprint; // = "A756D3DBE614FB13F70BF7F7B6EB3D73"; + static const uint8_t binary_fingerprint[16]; // = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73}; + TSessionHandle() { } - virtual ~TSessionHandle() throw(); + virtual ~TSessionHandle() throw() {} + THandleIdentifier sessionId; - void __set_sessionId(const THandleIdentifier& val); + void __set_sessionId(const THandleIdentifier& val) { + sessionId = val; + } bool operator == (const TSessionHandle & rhs) const { @@ -2017,31 +1865,26 @@ class TSessionHandle { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TSessionHandle &a, TSessionHandle &b); -inline std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TOperationHandle__isset { _TOperationHandle__isset() : modifiedRowCount(false) {} - bool modifiedRowCount :1; + bool modifiedRowCount; } _TOperationHandle__isset; class TOperationHandle { public: - TOperationHandle(const TOperationHandle&); - TOperationHandle& operator=(const TOperationHandle&); + static const char* ascii_fingerprint; // = "29FD80F4F96804A30FCC59C23D2E5349"; + static const uint8_t binary_fingerprint[16]; // = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49}; + TOperationHandle() : operationType((TOperationType::type)0), hasResultSet(0), modifiedRowCount(0) { } - virtual ~TOperationHandle() throw(); + virtual ~TOperationHandle() throw() {} + THandleIdentifier operationId; TOperationType::type operationType; bool hasResultSet; @@ -2049,13 +1892,22 @@ class TOperationHandle { _TOperationHandle__isset __isset; - void __set_operationId(const THandleIdentifier& val); + void __set_operationId(const THandleIdentifier& val) { + operationId = val; + } - void __set_operationType(const TOperationType::type val); + void __set_operationType(const TOperationType::type val) { + operationType = val; + } - void __set_hasResultSet(const bool val); + void __set_hasResultSet(const bool val) { + hasResultSet = val; + } - void __set_modifiedRowCount(const double val); + void __set_modifiedRowCount(const double val) { + modifiedRowCount = val; + __isset.modifiedRowCount = true; + } bool operator == (const TOperationHandle & rhs) const { @@ -2080,35 +1932,30 @@ class TOperationHandle { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TOperationHandle &a, TOperationHandle &b); -inline std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TOpenSessionReq__isset { _TOpenSessionReq__isset() : username(false), password(false), configuration(false) {} - bool username :1; - bool password :1; - bool configuration :1; + bool username; + bool password; + bool configuration; } _TOpenSessionReq__isset; class TOpenSessionReq { public: - TOpenSessionReq(const TOpenSessionReq&); - TOpenSessionReq& operator=(const TOpenSessionReq&); + static const char* ascii_fingerprint; // = "C8FD0F306A16C16BDA7B57F58BFAE5B2"; + static const uint8_t binary_fingerprint[16]; // = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2}; + TOpenSessionReq() : client_protocol((TProtocolVersion::type)7), username(), password() { client_protocol = (TProtocolVersion::type)7; } - virtual ~TOpenSessionReq() throw(); + virtual ~TOpenSessionReq() throw() {} + TProtocolVersion::type client_protocol; std::string username; std::string password; @@ -2116,13 +1963,24 @@ class TOpenSessionReq { _TOpenSessionReq__isset __isset; - void __set_client_protocol(const TProtocolVersion::type val); + void __set_client_protocol(const TProtocolVersion::type val) { + client_protocol = val; + } - void __set_username(const std::string& val); + void __set_username(const std::string& val) { + username = val; + __isset.username = true; + } - void __set_password(const std::string& val); + void __set_password(const std::string& val) { + password = val; + __isset.password = true; + } - void __set_configuration(const std::map & val); + void __set_configuration(const std::map & val) { + configuration = val; + __isset.configuration = true; + } bool operator == (const TOpenSessionReq & rhs) const { @@ -2151,34 +2009,29 @@ class TOpenSessionReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TOpenSessionReq &a, TOpenSessionReq &b); -inline std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TOpenSessionResp__isset { _TOpenSessionResp__isset() : sessionHandle(false), configuration(false) {} - bool sessionHandle :1; - bool configuration :1; + bool sessionHandle; + bool configuration; } _TOpenSessionResp__isset; class TOpenSessionResp { public: - TOpenSessionResp(const TOpenSessionResp&); - TOpenSessionResp& operator=(const TOpenSessionResp&); + static const char* ascii_fingerprint; // = "CFE7D7F4E9EC671F2518ED74FEE9F163"; + static const uint8_t binary_fingerprint[16]; // = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63}; + TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)7) { serverProtocolVersion = (TProtocolVersion::type)7; } - virtual ~TOpenSessionResp() throw(); + virtual ~TOpenSessionResp() throw() {} + TStatus status; TProtocolVersion::type serverProtocolVersion; TSessionHandle sessionHandle; @@ -2186,13 +2039,23 @@ class TOpenSessionResp { _TOpenSessionResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_serverProtocolVersion(const TProtocolVersion::type val); + void __set_serverProtocolVersion(const TProtocolVersion::type val) { + serverProtocolVersion = val; + } - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + __isset.sessionHandle = true; + } - void __set_configuration(const std::map & val); + void __set_configuration(const std::map & val) { + configuration = val; + __isset.configuration = true; + } bool operator == (const TOpenSessionResp & rhs) const { @@ -2219,30 +2082,27 @@ class TOpenSessionResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TOpenSessionResp &a, TOpenSessionResp &b); -inline std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj) -{ - obj.printTo(out); - return out; -} - class TCloseSessionReq { public: - TCloseSessionReq(const TCloseSessionReq&); - TCloseSessionReq& operator=(const TCloseSessionReq&); + static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; + static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; + TCloseSessionReq() { } - virtual ~TCloseSessionReq() throw(); + virtual ~TCloseSessionReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TCloseSessionReq & rhs) const { @@ -2259,30 +2119,27 @@ class TCloseSessionReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCloseSessionReq &a, TCloseSessionReq &b); -inline std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj) -{ - obj.printTo(out); - return out; -} - class TCloseSessionResp { public: - TCloseSessionResp(const TCloseSessionResp&); - TCloseSessionResp& operator=(const TCloseSessionResp&); + static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; + TCloseSessionResp() { } - virtual ~TCloseSessionResp() throw(); + virtual ~TCloseSessionResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCloseSessionResp & rhs) const { @@ -2299,36 +2156,31 @@ class TCloseSessionResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCloseSessionResp &a, TCloseSessionResp &b); -inline std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetInfoValue__isset { _TGetInfoValue__isset() : stringValue(false), smallIntValue(false), integerBitmask(false), integerFlag(false), binaryValue(false), lenValue(false) {} - bool stringValue :1; - bool smallIntValue :1; - bool integerBitmask :1; - bool integerFlag :1; - bool binaryValue :1; - bool lenValue :1; + bool stringValue; + bool smallIntValue; + bool integerBitmask; + bool integerFlag; + bool binaryValue; + bool lenValue; } _TGetInfoValue__isset; class TGetInfoValue { public: - TGetInfoValue(const TGetInfoValue&); - TGetInfoValue& operator=(const TGetInfoValue&); + static const char* ascii_fingerprint; // = "057FED11279FD7248CFE73EE82ED579E"; + static const uint8_t binary_fingerprint[16]; // = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E}; + TGetInfoValue() : stringValue(), smallIntValue(0), integerBitmask(0), integerFlag(0), binaryValue(0), lenValue(0) { } - virtual ~TGetInfoValue() throw(); + virtual ~TGetInfoValue() throw() {} + std::string stringValue; int16_t smallIntValue; int32_t integerBitmask; @@ -2338,17 +2190,29 @@ class TGetInfoValue { _TGetInfoValue__isset __isset; - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + } - void __set_smallIntValue(const int16_t val); + void __set_smallIntValue(const int16_t val) { + smallIntValue = val; + } - void __set_integerBitmask(const int32_t val); + void __set_integerBitmask(const int32_t val) { + integerBitmask = val; + } - void __set_integerFlag(const int32_t val); + void __set_integerFlag(const int32_t val) { + integerFlag = val; + } - void __set_binaryValue(const int32_t val); + void __set_binaryValue(const int32_t val) { + binaryValue = val; + } - void __set_lenValue(const int64_t val); + void __set_lenValue(const int64_t val) { + lenValue = val; + } bool operator == (const TGetInfoValue & rhs) const { @@ -2375,33 +2239,32 @@ class TGetInfoValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetInfoValue &a, TGetInfoValue &b); -inline std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj) -{ - obj.printTo(out); - return out; -} - class TGetInfoReq { public: - TGetInfoReq(const TGetInfoReq&); - TGetInfoReq& operator=(const TGetInfoReq&); + static const char* ascii_fingerprint; // = "95675B1A0BADE5F7EDE323809DB679B2"; + static const uint8_t binary_fingerprint[16]; // = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2}; + TGetInfoReq() : infoType((TGetInfoType::type)0) { } - virtual ~TGetInfoReq() throw(); + virtual ~TGetInfoReq() throw() {} + TSessionHandle sessionHandle; TGetInfoType::type infoType; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_infoType(const TGetInfoType::type val); + void __set_infoType(const TGetInfoType::type val) { + infoType = val; + } bool operator == (const TGetInfoReq & rhs) const { @@ -2420,33 +2283,32 @@ class TGetInfoReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetInfoReq &a, TGetInfoReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj) -{ - obj.printTo(out); - return out; -} - class TGetInfoResp { public: - TGetInfoResp(const TGetInfoResp&); - TGetInfoResp& operator=(const TGetInfoResp&); + static const char* ascii_fingerprint; // = "72AFA10A82728B51FDE91092012868DE"; + static const uint8_t binary_fingerprint[16]; // = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE}; + TGetInfoResp() { } - virtual ~TGetInfoResp() throw(); + virtual ~TGetInfoResp() throw() {} + TStatus status; TGetInfoValue infoValue; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_infoValue(const TGetInfoValue& val); + void __set_infoValue(const TGetInfoValue& val) { + infoValue = val; + } bool operator == (const TGetInfoResp & rhs) const { @@ -2465,32 +2327,27 @@ class TGetInfoResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetInfoResp &a, TGetInfoResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TExecuteStatementReq__isset { _TExecuteStatementReq__isset() : confOverlay(false), runAsync(true) {} - bool confOverlay :1; - bool runAsync :1; + bool confOverlay; + bool runAsync; } _TExecuteStatementReq__isset; class TExecuteStatementReq { public: - TExecuteStatementReq(const TExecuteStatementReq&); - TExecuteStatementReq& operator=(const TExecuteStatementReq&); + static const char* ascii_fingerprint; // = "FED75DB77E66D76EC1939A51FB0D96FA"; + static const uint8_t binary_fingerprint[16]; // = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA}; + TExecuteStatementReq() : statement(), runAsync(false) { } - virtual ~TExecuteStatementReq() throw(); + virtual ~TExecuteStatementReq() throw() {} + TSessionHandle sessionHandle; std::string statement; std::map confOverlay; @@ -2498,13 +2355,23 @@ class TExecuteStatementReq { _TExecuteStatementReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_statement(const std::string& val); + void __set_statement(const std::string& val) { + statement = val; + } - void __set_confOverlay(const std::map & val); + void __set_confOverlay(const std::map & val) { + confOverlay = val; + __isset.confOverlay = true; + } - void __set_runAsync(const bool val); + void __set_runAsync(const bool val) { + runAsync = val; + __isset.runAsync = true; + } bool operator == (const TExecuteStatementReq & rhs) const { @@ -2531,39 +2398,39 @@ class TExecuteStatementReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TExecuteStatementReq &a, TExecuteStatementReq &b); -inline std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TExecuteStatementResp__isset { _TExecuteStatementResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TExecuteStatementResp__isset; class TExecuteStatementResp { public: - TExecuteStatementResp(const TExecuteStatementResp&); - TExecuteStatementResp& operator=(const TExecuteStatementResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TExecuteStatementResp() { } - virtual ~TExecuteStatementResp() throw(); + virtual ~TExecuteStatementResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TExecuteStatementResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TExecuteStatementResp & rhs) const { @@ -2584,30 +2451,27 @@ class TExecuteStatementResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TExecuteStatementResp &a, TExecuteStatementResp &b); -inline std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetTypeInfoReq { public: - TGetTypeInfoReq(const TGetTypeInfoReq&); - TGetTypeInfoReq& operator=(const TGetTypeInfoReq&); + static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; + static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; + TGetTypeInfoReq() { } - virtual ~TGetTypeInfoReq() throw(); + virtual ~TGetTypeInfoReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetTypeInfoReq & rhs) const { @@ -2624,39 +2488,39 @@ class TGetTypeInfoReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetTypeInfoResp__isset { _TGetTypeInfoResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTypeInfoResp__isset; class TGetTypeInfoResp { public: - TGetTypeInfoResp(const TGetTypeInfoResp&); - TGetTypeInfoResp& operator=(const TGetTypeInfoResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetTypeInfoResp() { } - virtual ~TGetTypeInfoResp() throw(); + virtual ~TGetTypeInfoResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTypeInfoResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTypeInfoResp & rhs) const { @@ -2677,30 +2541,27 @@ class TGetTypeInfoResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetCatalogsReq { public: - TGetCatalogsReq(const TGetCatalogsReq&); - TGetCatalogsReq& operator=(const TGetCatalogsReq&); + static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; + static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; + TGetCatalogsReq() { } - virtual ~TGetCatalogsReq() throw(); + virtual ~TGetCatalogsReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetCatalogsReq & rhs) const { @@ -2717,39 +2578,39 @@ class TGetCatalogsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetCatalogsReq &a, TGetCatalogsReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetCatalogsResp__isset { _TGetCatalogsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetCatalogsResp__isset; class TGetCatalogsResp { public: - TGetCatalogsResp(const TGetCatalogsResp&); - TGetCatalogsResp& operator=(const TGetCatalogsResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetCatalogsResp() { } - virtual ~TGetCatalogsResp() throw(); + virtual ~TGetCatalogsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetCatalogsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetCatalogsResp & rhs) const { @@ -2770,43 +2631,46 @@ class TGetCatalogsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetCatalogsResp &a, TGetCatalogsResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetSchemasReq__isset { _TGetSchemasReq__isset() : catalogName(false), schemaName(false) {} - bool catalogName :1; - bool schemaName :1; + bool catalogName; + bool schemaName; } _TGetSchemasReq__isset; class TGetSchemasReq { public: - TGetSchemasReq(const TGetSchemasReq&); - TGetSchemasReq& operator=(const TGetSchemasReq&); + static const char* ascii_fingerprint; // = "28A9D12DE8393DD3E73FC1E5AE6E113B"; + static const uint8_t binary_fingerprint[16]; // = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B}; + TGetSchemasReq() : catalogName(), schemaName() { } - virtual ~TGetSchemasReq() throw(); + virtual ~TGetSchemasReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; _TGetSchemasReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } bool operator == (const TGetSchemasReq & rhs) const { @@ -2831,39 +2695,39 @@ class TGetSchemasReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetSchemasReq &a, TGetSchemasReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetSchemasResp__isset { _TGetSchemasResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetSchemasResp__isset; class TGetSchemasResp { public: - TGetSchemasResp(const TGetSchemasResp&); - TGetSchemasResp& operator=(const TGetSchemasResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetSchemasResp() { } - virtual ~TGetSchemasResp() throw(); + virtual ~TGetSchemasResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetSchemasResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetSchemasResp & rhs) const { @@ -2884,34 +2748,29 @@ class TGetSchemasResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetSchemasResp &a, TGetSchemasResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetTablesReq__isset { _TGetTablesReq__isset() : catalogName(false), schemaName(false), tableName(false), tableTypes(false) {} - bool catalogName :1; - bool schemaName :1; - bool tableName :1; - bool tableTypes :1; + bool catalogName; + bool schemaName; + bool tableName; + bool tableTypes; } _TGetTablesReq__isset; class TGetTablesReq { public: - TGetTablesReq(const TGetTablesReq&); - TGetTablesReq& operator=(const TGetTablesReq&); + static const char* ascii_fingerprint; // = "C80DFEE06850052F5A445BE81ED763DB"; + static const uint8_t binary_fingerprint[16]; // = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB}; + TGetTablesReq() : catalogName(), schemaName(), tableName() { } - virtual ~TGetTablesReq() throw(); + virtual ~TGetTablesReq() throw() {} + TSessionHandle sessionHandle; TPatternOrIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -2920,15 +2779,29 @@ class TGetTablesReq { _TGetTablesReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TPatternOrIdentifier& val); + void __set_catalogName(const TPatternOrIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_tableName(const TPatternOrIdentifier& val); + void __set_tableName(const TPatternOrIdentifier& val) { + tableName = val; + __isset.tableName = true; + } - void __set_tableTypes(const std::vector & val); + void __set_tableTypes(const std::vector & val) { + tableTypes = val; + __isset.tableTypes = true; + } bool operator == (const TGetTablesReq & rhs) const { @@ -2961,39 +2834,39 @@ class TGetTablesReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTablesReq &a, TGetTablesReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetTablesResp__isset { _TGetTablesResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTablesResp__isset; class TGetTablesResp { public: - TGetTablesResp(const TGetTablesResp&); - TGetTablesResp& operator=(const TGetTablesResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetTablesResp() { } - virtual ~TGetTablesResp() throw(); + virtual ~TGetTablesResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTablesResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTablesResp & rhs) const { @@ -3014,30 +2887,27 @@ class TGetTablesResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTablesResp &a, TGetTablesResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetTableTypesReq { public: - TGetTableTypesReq(const TGetTableTypesReq&); - TGetTableTypesReq& operator=(const TGetTableTypesReq&); + static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; + static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; + TGetTableTypesReq() { } - virtual ~TGetTableTypesReq() throw(); + virtual ~TGetTableTypesReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetTableTypesReq & rhs) const { @@ -3054,39 +2924,39 @@ class TGetTableTypesReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTableTypesReq &a, TGetTableTypesReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetTableTypesResp__isset { _TGetTableTypesResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTableTypesResp__isset; class TGetTableTypesResp { public: - TGetTableTypesResp(const TGetTableTypesResp&); - TGetTableTypesResp& operator=(const TGetTableTypesResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetTableTypesResp() { } - virtual ~TGetTableTypesResp() throw(); + virtual ~TGetTableTypesResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTableTypesResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTableTypesResp & rhs) const { @@ -3107,34 +2977,29 @@ class TGetTableTypesResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetTableTypesResp &a, TGetTableTypesResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetColumnsReq__isset { _TGetColumnsReq__isset() : catalogName(false), schemaName(false), tableName(false), columnName(false) {} - bool catalogName :1; - bool schemaName :1; - bool tableName :1; - bool columnName :1; + bool catalogName; + bool schemaName; + bool tableName; + bool columnName; } _TGetColumnsReq__isset; class TGetColumnsReq { public: - TGetColumnsReq(const TGetColumnsReq&); - TGetColumnsReq& operator=(const TGetColumnsReq&); + static const char* ascii_fingerprint; // = "72D0F28ED33A49B7306DF63EEE956C28"; + static const uint8_t binary_fingerprint[16]; // = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28}; + TGetColumnsReq() : catalogName(), schemaName(), tableName(), columnName() { } - virtual ~TGetColumnsReq() throw(); + virtual ~TGetColumnsReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -3143,15 +3008,29 @@ class TGetColumnsReq { _TGetColumnsReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_tableName(const TPatternOrIdentifier& val); + void __set_tableName(const TPatternOrIdentifier& val) { + tableName = val; + __isset.tableName = true; + } - void __set_columnName(const TPatternOrIdentifier& val); + void __set_columnName(const TPatternOrIdentifier& val) { + columnName = val; + __isset.columnName = true; + } bool operator == (const TGetColumnsReq & rhs) const { @@ -3184,39 +3063,39 @@ class TGetColumnsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetColumnsReq &a, TGetColumnsReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetColumnsResp__isset { _TGetColumnsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetColumnsResp__isset; class TGetColumnsResp { public: - TGetColumnsResp(const TGetColumnsResp&); - TGetColumnsResp& operator=(const TGetColumnsResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetColumnsResp() { } - virtual ~TGetColumnsResp() throw(); + virtual ~TGetColumnsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetColumnsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetColumnsResp & rhs) const { @@ -3237,32 +3116,27 @@ class TGetColumnsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetColumnsResp &a, TGetColumnsResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetFunctionsReq__isset { _TGetFunctionsReq__isset() : catalogName(false), schemaName(false) {} - bool catalogName :1; - bool schemaName :1; + bool catalogName; + bool schemaName; } _TGetFunctionsReq__isset; class TGetFunctionsReq { public: - TGetFunctionsReq(const TGetFunctionsReq&); - TGetFunctionsReq& operator=(const TGetFunctionsReq&); + static const char* ascii_fingerprint; // = "0887E0916ADE4521BF6017B534493138"; + static const uint8_t binary_fingerprint[16]; // = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38}; + TGetFunctionsReq() : catalogName(), schemaName(), functionName() { } - virtual ~TGetFunctionsReq() throw(); + virtual ~TGetFunctionsReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -3270,13 +3144,23 @@ class TGetFunctionsReq { _TGetFunctionsReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_functionName(const TPatternOrIdentifier& val); + void __set_functionName(const TPatternOrIdentifier& val) { + functionName = val; + } bool operator == (const TGetFunctionsReq & rhs) const { @@ -3303,39 +3187,39 @@ class TGetFunctionsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetFunctionsReq &a, TGetFunctionsReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetFunctionsResp__isset { _TGetFunctionsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetFunctionsResp__isset; class TGetFunctionsResp { public: - TGetFunctionsResp(const TGetFunctionsResp&); - TGetFunctionsResp& operator=(const TGetFunctionsResp&); + static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; + static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; + TGetFunctionsResp() { } - virtual ~TGetFunctionsResp() throw(); + virtual ~TGetFunctionsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetFunctionsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetFunctionsResp & rhs) const { @@ -3356,30 +3240,27 @@ class TGetFunctionsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetFunctionsResp &a, TGetFunctionsResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetOperationStatusReq { public: - TGetOperationStatusReq(const TGetOperationStatusReq&); - TGetOperationStatusReq& operator=(const TGetOperationStatusReq&); + static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; + static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; + TGetOperationStatusReq() { } - virtual ~TGetOperationStatusReq() throw(); + virtual ~TGetOperationStatusReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TGetOperationStatusReq & rhs) const { @@ -3396,34 +3277,29 @@ class TGetOperationStatusReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetOperationStatusResp__isset { _TGetOperationStatusResp__isset() : operationState(false), sqlState(false), errorCode(false), errorMessage(false) {} - bool operationState :1; - bool sqlState :1; - bool errorCode :1; - bool errorMessage :1; + bool operationState; + bool sqlState; + bool errorCode; + bool errorMessage; } _TGetOperationStatusResp__isset; class TGetOperationStatusResp { public: - TGetOperationStatusResp(const TGetOperationStatusResp&); - TGetOperationStatusResp& operator=(const TGetOperationStatusResp&); + static const char* ascii_fingerprint; // = "BD124DB87A5A2E7D11945BD1B17F013D"; + static const uint8_t binary_fingerprint[16]; // = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D}; + TGetOperationStatusResp() : operationState((TOperationState::type)0), sqlState(), errorCode(0), errorMessage() { } - virtual ~TGetOperationStatusResp() throw(); + virtual ~TGetOperationStatusResp() throw() {} + TStatus status; TOperationState::type operationState; std::string sqlState; @@ -3432,15 +3308,29 @@ class TGetOperationStatusResp { _TGetOperationStatusResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationState(const TOperationState::type val); + void __set_operationState(const TOperationState::type val) { + operationState = val; + __isset.operationState = true; + } - void __set_sqlState(const std::string& val); + void __set_sqlState(const std::string& val) { + sqlState = val; + __isset.sqlState = true; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + __isset.errorCode = true; + } - void __set_errorMessage(const std::string& val); + void __set_errorMessage(const std::string& val) { + errorMessage = val; + __isset.errorMessage = true; + } bool operator == (const TGetOperationStatusResp & rhs) const { @@ -3473,30 +3363,27 @@ class TGetOperationStatusResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj) -{ - obj.printTo(out); - return out; -} - class TCancelOperationReq { public: - TCancelOperationReq(const TCancelOperationReq&); - TCancelOperationReq& operator=(const TCancelOperationReq&); + static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; + static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; + TCancelOperationReq() { } - virtual ~TCancelOperationReq() throw(); + virtual ~TCancelOperationReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TCancelOperationReq & rhs) const { @@ -3513,30 +3400,27 @@ class TCancelOperationReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCancelOperationReq &a, TCancelOperationReq &b); -inline std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj) -{ - obj.printTo(out); - return out; -} - class TCancelOperationResp { public: - TCancelOperationResp(const TCancelOperationResp&); - TCancelOperationResp& operator=(const TCancelOperationResp&); + static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; + TCancelOperationResp() { } - virtual ~TCancelOperationResp() throw(); + virtual ~TCancelOperationResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCancelOperationResp & rhs) const { @@ -3553,30 +3437,27 @@ class TCancelOperationResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCancelOperationResp &a, TCancelOperationResp &b); -inline std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj) -{ - obj.printTo(out); - return out; -} - class TCloseOperationReq { public: - TCloseOperationReq(const TCloseOperationReq&); - TCloseOperationReq& operator=(const TCloseOperationReq&); + static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; + static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; + TCloseOperationReq() { } - virtual ~TCloseOperationReq() throw(); + virtual ~TCloseOperationReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TCloseOperationReq & rhs) const { @@ -3593,30 +3474,27 @@ class TCloseOperationReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCloseOperationReq &a, TCloseOperationReq &b); -inline std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj) -{ - obj.printTo(out); - return out; -} - class TCloseOperationResp { public: - TCloseOperationResp(const TCloseOperationResp&); - TCloseOperationResp& operator=(const TCloseOperationResp&); + static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; + TCloseOperationResp() { } - virtual ~TCloseOperationResp() throw(); + virtual ~TCloseOperationResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCloseOperationResp & rhs) const { @@ -3633,30 +3511,27 @@ class TCloseOperationResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCloseOperationResp &a, TCloseOperationResp &b); -inline std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetResultSetMetadataReq { public: - TGetResultSetMetadataReq(const TGetResultSetMetadataReq&); - TGetResultSetMetadataReq& operator=(const TGetResultSetMetadataReq&); + static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; + static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; + TGetResultSetMetadataReq() { } - virtual ~TGetResultSetMetadataReq() throw(); + virtual ~TGetResultSetMetadataReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TGetResultSetMetadataReq & rhs) const { @@ -3673,39 +3548,39 @@ class TGetResultSetMetadataReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetResultSetMetadataResp__isset { _TGetResultSetMetadataResp__isset() : schema(false) {} - bool schema :1; + bool schema; } _TGetResultSetMetadataResp__isset; class TGetResultSetMetadataResp { public: - TGetResultSetMetadataResp(const TGetResultSetMetadataResp&); - TGetResultSetMetadataResp& operator=(const TGetResultSetMetadataResp&); + static const char* ascii_fingerprint; // = "42CD49B7F49CC1B6D4E6F5FA2D7BE812"; + static const uint8_t binary_fingerprint[16]; // = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12}; + TGetResultSetMetadataResp() { } - virtual ~TGetResultSetMetadataResp() throw(); + virtual ~TGetResultSetMetadataResp() throw() {} + TStatus status; TTableSchema schema; _TGetResultSetMetadataResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_schema(const TTableSchema& val); + void __set_schema(const TTableSchema& val) { + schema = val; + __isset.schema = true; + } bool operator == (const TGetResultSetMetadataResp & rhs) const { @@ -3726,33 +3601,28 @@ class TGetResultSetMetadataResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TFetchResultsReq__isset { _TFetchResultsReq__isset() : fetchType(true) {} - bool fetchType :1; + bool fetchType; } _TFetchResultsReq__isset; class TFetchResultsReq { public: - TFetchResultsReq(const TFetchResultsReq&); - TFetchResultsReq& operator=(const TFetchResultsReq&); + static const char* ascii_fingerprint; // = "B4CB1E4F8F8F4D50183DD372AD11753A"; + static const uint8_t binary_fingerprint[16]; // = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A}; + TFetchResultsReq() : orientation((TFetchOrientation::type)0), maxRows(0), fetchType(0) { orientation = (TFetchOrientation::type)0; } - virtual ~TFetchResultsReq() throw(); + virtual ~TFetchResultsReq() throw() {} + TOperationHandle operationHandle; TFetchOrientation::type orientation; int64_t maxRows; @@ -3760,13 +3630,22 @@ class TFetchResultsReq { _TFetchResultsReq__isset __isset; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } - void __set_orientation(const TFetchOrientation::type val); + void __set_orientation(const TFetchOrientation::type val) { + orientation = val; + } - void __set_maxRows(const int64_t val); + void __set_maxRows(const int64_t val) { + maxRows = val; + } - void __set_fetchType(const int16_t val); + void __set_fetchType(const int16_t val) { + fetchType = val; + __isset.fetchType = true; + } bool operator == (const TFetchResultsReq & rhs) const { @@ -3791,43 +3670,46 @@ class TFetchResultsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TFetchResultsReq &a, TFetchResultsReq &b); -inline std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TFetchResultsResp__isset { _TFetchResultsResp__isset() : hasMoreRows(false), results(false) {} - bool hasMoreRows :1; - bool results :1; + bool hasMoreRows; + bool results; } _TFetchResultsResp__isset; class TFetchResultsResp { public: - TFetchResultsResp(const TFetchResultsResp&); - TFetchResultsResp& operator=(const TFetchResultsResp&); + static const char* ascii_fingerprint; // = "FC43BC2D6F3B76D4DB0F34226A745C8E"; + static const uint8_t binary_fingerprint[16]; // = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E}; + TFetchResultsResp() : hasMoreRows(0) { } - virtual ~TFetchResultsResp() throw(); + virtual ~TFetchResultsResp() throw() {} + TStatus status; bool hasMoreRows; TRowSet results; _TFetchResultsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_hasMoreRows(const bool val); + void __set_hasMoreRows(const bool val) { + hasMoreRows = val; + __isset.hasMoreRows = true; + } - void __set_results(const TRowSet& val); + void __set_results(const TRowSet& val) { + results = val; + __isset.results = true; + } bool operator == (const TFetchResultsResp & rhs) const { @@ -3852,36 +3734,37 @@ class TFetchResultsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TFetchResultsResp &a, TFetchResultsResp &b); -inline std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj) -{ - obj.printTo(out); - return out; -} - class TGetDelegationTokenReq { public: - TGetDelegationTokenReq(const TGetDelegationTokenReq&); - TGetDelegationTokenReq& operator=(const TGetDelegationTokenReq&); + static const char* ascii_fingerprint; // = "07EA0311716A27924914E4354ED22D6C"; + static const uint8_t binary_fingerprint[16]; // = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C}; + TGetDelegationTokenReq() : owner(), renewer() { } - virtual ~TGetDelegationTokenReq() throw(); + virtual ~TGetDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string owner; std::string renewer; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_owner(const std::string& val); + void __set_owner(const std::string& val) { + owner = val; + } - void __set_renewer(const std::string& val); + void __set_renewer(const std::string& val) { + renewer = val; + } bool operator == (const TGetDelegationTokenReq & rhs) const { @@ -3902,39 +3785,39 @@ class TGetDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b); -inline std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _TGetDelegationTokenResp__isset { _TGetDelegationTokenResp__isset() : delegationToken(false) {} - bool delegationToken :1; + bool delegationToken; } _TGetDelegationTokenResp__isset; class TGetDelegationTokenResp { public: - TGetDelegationTokenResp(const TGetDelegationTokenResp&); - TGetDelegationTokenResp& operator=(const TGetDelegationTokenResp&); + static const char* ascii_fingerprint; // = "C0E132DC412CEA08D771EAC38CEA1DA6"; + static const uint8_t binary_fingerprint[16]; // = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6}; + TGetDelegationTokenResp() : delegationToken() { } - virtual ~TGetDelegationTokenResp() throw(); + virtual ~TGetDelegationTokenResp() throw() {} + TStatus status; std::string delegationToken; _TGetDelegationTokenResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + __isset.delegationToken = true; + } bool operator == (const TGetDelegationTokenResp & rhs) const { @@ -3955,33 +3838,32 @@ class TGetDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b); -inline std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj) -{ - obj.printTo(out); - return out; -} - class TCancelDelegationTokenReq { public: - TCancelDelegationTokenReq(const TCancelDelegationTokenReq&); - TCancelDelegationTokenReq& operator=(const TCancelDelegationTokenReq&); + static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75"; + static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; + TCancelDelegationTokenReq() : delegationToken() { } - virtual ~TCancelDelegationTokenReq() throw(); + virtual ~TCancelDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string delegationToken; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + } bool operator == (const TCancelDelegationTokenReq & rhs) const { @@ -4000,30 +3882,27 @@ class TCancelDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b); -inline std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj) -{ - obj.printTo(out); - return out; -} - class TCancelDelegationTokenResp { public: - TCancelDelegationTokenResp(const TCancelDelegationTokenResp&); - TCancelDelegationTokenResp& operator=(const TCancelDelegationTokenResp&); + static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; + TCancelDelegationTokenResp() { } - virtual ~TCancelDelegationTokenResp() throw(); + virtual ~TCancelDelegationTokenResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCancelDelegationTokenResp & rhs) const { @@ -4040,33 +3919,32 @@ class TCancelDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b); -inline std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj) -{ - obj.printTo(out); - return out; -} - class TRenewDelegationTokenReq { public: - TRenewDelegationTokenReq(const TRenewDelegationTokenReq&); - TRenewDelegationTokenReq& operator=(const TRenewDelegationTokenReq&); + static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75"; + static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; + TRenewDelegationTokenReq() : delegationToken() { } - virtual ~TRenewDelegationTokenReq() throw(); + virtual ~TRenewDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string delegationToken; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + } bool operator == (const TRenewDelegationTokenReq & rhs) const { @@ -4085,30 +3963,27 @@ class TRenewDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b); -inline std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj) -{ - obj.printTo(out); - return out; -} - class TRenewDelegationTokenResp { public: - TRenewDelegationTokenResp(const TRenewDelegationTokenResp&); - TRenewDelegationTokenResp& operator=(const TRenewDelegationTokenResp&); + static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; + TRenewDelegationTokenResp() { } - virtual ~TRenewDelegationTokenResp() throw(); + virtual ~TRenewDelegationTokenResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TRenewDelegationTokenResp & rhs) const { @@ -4125,17 +4000,10 @@ class TRenewDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b); -inline std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj) -{ - obj.printTo(out); - return out; -} - }}}}} // namespace #endif diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp index a5448f0..865db69 100644 --- a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,14 +8,8 @@ namespace Apache { namespace Hadoop { namespace Hive { - -ThriftHive_execute_args::~ThriftHive_execute_args() throw() { -} - - uint32_t ThriftHive_execute_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; @@ -56,7 +50,6 @@ uint32_t ThriftHive_execute_args::read(::apache::thrift::protocol::TProtocol* ip uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_execute_args"); xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1); @@ -68,14 +61,8 @@ uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* o return xfer; } - -ThriftHive_execute_pargs::~ThriftHive_execute_pargs() throw() { -} - - uint32_t ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_execute_pargs"); xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1); @@ -87,14 +74,8 @@ uint32_t ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_execute_result::~ThriftHive_execute_result() throw() { -} - - uint32_t ThriftHive_execute_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; @@ -149,14 +130,8 @@ uint32_t ThriftHive_execute_result::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_execute_presult::~ThriftHive_execute_presult() throw() { -} - - uint32_t ThriftHive_execute_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; @@ -195,14 +170,8 @@ uint32_t ThriftHive_execute_presult::read(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchOne_args::~ThriftHive_fetchOne_args() throw() { -} - - uint32_t ThriftHive_fetchOne_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; @@ -230,7 +199,6 @@ uint32_t ThriftHive_fetchOne_args::read(::apache::thrift::protocol::TProtocol* i uint32_t ThriftHive_fetchOne_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchOne_args"); xfer += oprot->writeFieldStop(); @@ -238,14 +206,8 @@ uint32_t ThriftHive_fetchOne_args::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchOne_pargs::~ThriftHive_fetchOne_pargs() throw() { -} - - uint32_t ThriftHive_fetchOne_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchOne_pargs"); xfer += oprot->writeFieldStop(); @@ -253,14 +215,8 @@ uint32_t ThriftHive_fetchOne_pargs::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchOne_result::~ThriftHive_fetchOne_result() throw() { -} - - uint32_t ThriftHive_fetchOne_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; @@ -327,14 +283,8 @@ uint32_t ThriftHive_fetchOne_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchOne_presult::~ThriftHive_fetchOne_presult() throw() { -} - - uint32_t ThriftHive_fetchOne_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; @@ -381,14 +331,8 @@ uint32_t ThriftHive_fetchOne_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchN_args::~ThriftHive_fetchN_args() throw() { -} - - uint32_t ThriftHive_fetchN_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; @@ -429,7 +373,6 @@ uint32_t ThriftHive_fetchN_args::read(::apache::thrift::protocol::TProtocol* ipr uint32_t ThriftHive_fetchN_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchN_args"); xfer += oprot->writeFieldBegin("numRows", ::apache::thrift::protocol::T_I32, 1); @@ -441,14 +384,8 @@ uint32_t ThriftHive_fetchN_args::write(::apache::thrift::protocol::TProtocol* op return xfer; } - -ThriftHive_fetchN_pargs::~ThriftHive_fetchN_pargs() throw() { -} - - uint32_t ThriftHive_fetchN_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchN_pargs"); xfer += oprot->writeFieldBegin("numRows", ::apache::thrift::protocol::T_I32, 1); @@ -460,14 +397,8 @@ uint32_t ThriftHive_fetchN_pargs::write(::apache::thrift::protocol::TProtocol* o return xfer; } - -ThriftHive_fetchN_result::~ThriftHive_fetchN_result() throw() { -} - - uint32_t ThriftHive_fetchN_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; @@ -490,14 +421,14 @@ uint32_t ThriftHive_fetchN_result::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->success.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) + uint32_t _size1; + ::apache::thrift::protocol::TType _etype4; + xfer += iprot->readListBegin(_etype4, _size1); + this->success.resize(_size1); + uint32_t _i5; + for (_i5 = 0; _i5 < _size1; ++_i5) { - xfer += iprot->readString(this->success[_i9]); + xfer += iprot->readString(this->success[_i5]); } xfer += iprot->readListEnd(); } @@ -536,10 +467,10 @@ uint32_t ThriftHive_fetchN_result::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter10; - for (_iter10 = this->success.begin(); _iter10 != this->success.end(); ++_iter10) + std::vector ::const_iterator _iter6; + for (_iter6 = this->success.begin(); _iter6 != this->success.end(); ++_iter6) { - xfer += oprot->writeString((*_iter10)); + xfer += oprot->writeString((*_iter6)); } xfer += oprot->writeListEnd(); } @@ -554,14 +485,8 @@ uint32_t ThriftHive_fetchN_result::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchN_presult::~ThriftHive_fetchN_presult() throw() { -} - - uint32_t ThriftHive_fetchN_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; @@ -584,14 +509,14 @@ uint32_t ThriftHive_fetchN_presult::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size11; - ::apache::thrift::protocol::TType _etype14; - xfer += iprot->readListBegin(_etype14, _size11); - (*(this->success)).resize(_size11); - uint32_t _i15; - for (_i15 = 0; _i15 < _size11; ++_i15) + uint32_t _size7; + ::apache::thrift::protocol::TType _etype10; + xfer += iprot->readListBegin(_etype10, _size7); + (*(this->success)).resize(_size7); + uint32_t _i11; + for (_i11 = 0; _i11 < _size7; ++_i11) { - xfer += iprot->readString((*(this->success))[_i15]); + xfer += iprot->readString((*(this->success))[_i11]); } xfer += iprot->readListEnd(); } @@ -620,14 +545,8 @@ uint32_t ThriftHive_fetchN_presult::read(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchAll_args::~ThriftHive_fetchAll_args() throw() { -} - - uint32_t ThriftHive_fetchAll_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; @@ -655,7 +574,6 @@ uint32_t ThriftHive_fetchAll_args::read(::apache::thrift::protocol::TProtocol* i uint32_t ThriftHive_fetchAll_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchAll_args"); xfer += oprot->writeFieldStop(); @@ -663,14 +581,8 @@ uint32_t ThriftHive_fetchAll_args::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchAll_pargs::~ThriftHive_fetchAll_pargs() throw() { -} - - uint32_t ThriftHive_fetchAll_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_fetchAll_pargs"); xfer += oprot->writeFieldStop(); @@ -678,14 +590,8 @@ uint32_t ThriftHive_fetchAll_pargs::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchAll_result::~ThriftHive_fetchAll_result() throw() { -} - - uint32_t ThriftHive_fetchAll_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; @@ -708,14 +614,14 @@ uint32_t ThriftHive_fetchAll_result::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size16; - ::apache::thrift::protocol::TType _etype19; - xfer += iprot->readListBegin(_etype19, _size16); - this->success.resize(_size16); - uint32_t _i20; - for (_i20 = 0; _i20 < _size16; ++_i20) + uint32_t _size12; + ::apache::thrift::protocol::TType _etype15; + xfer += iprot->readListBegin(_etype15, _size12); + this->success.resize(_size12); + uint32_t _i16; + for (_i16 = 0; _i16 < _size12; ++_i16) { - xfer += iprot->readString(this->success[_i20]); + xfer += iprot->readString(this->success[_i16]); } xfer += iprot->readListEnd(); } @@ -754,10 +660,10 @@ uint32_t ThriftHive_fetchAll_result::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter21; - for (_iter21 = this->success.begin(); _iter21 != this->success.end(); ++_iter21) + std::vector ::const_iterator _iter17; + for (_iter17 = this->success.begin(); _iter17 != this->success.end(); ++_iter17) { - xfer += oprot->writeString((*_iter21)); + xfer += oprot->writeString((*_iter17)); } xfer += oprot->writeListEnd(); } @@ -772,14 +678,8 @@ uint32_t ThriftHive_fetchAll_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchAll_presult::~ThriftHive_fetchAll_presult() throw() { -} - - uint32_t ThriftHive_fetchAll_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; @@ -802,14 +702,14 @@ uint32_t ThriftHive_fetchAll_presult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size22; - ::apache::thrift::protocol::TType _etype25; - xfer += iprot->readListBegin(_etype25, _size22); - (*(this->success)).resize(_size22); - uint32_t _i26; - for (_i26 = 0; _i26 < _size22; ++_i26) + uint32_t _size18; + ::apache::thrift::protocol::TType _etype21; + xfer += iprot->readListBegin(_etype21, _size18); + (*(this->success)).resize(_size18); + uint32_t _i22; + for (_i22 = 0; _i22 < _size18; ++_i22) { - xfer += iprot->readString((*(this->success))[_i26]); + xfer += iprot->readString((*(this->success))[_i22]); } xfer += iprot->readListEnd(); } @@ -838,14 +738,8 @@ uint32_t ThriftHive_fetchAll_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_getSchema_args::~ThriftHive_getSchema_args() throw() { -} - - uint32_t ThriftHive_getSchema_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; @@ -873,7 +767,6 @@ uint32_t ThriftHive_getSchema_args::read(::apache::thrift::protocol::TProtocol* uint32_t ThriftHive_getSchema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getSchema_args"); xfer += oprot->writeFieldStop(); @@ -881,14 +774,8 @@ uint32_t ThriftHive_getSchema_args::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_getSchema_pargs::~ThriftHive_getSchema_pargs() throw() { -} - - uint32_t ThriftHive_getSchema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getSchema_pargs"); xfer += oprot->writeFieldStop(); @@ -896,14 +783,8 @@ uint32_t ThriftHive_getSchema_pargs::write(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_getSchema_result::~ThriftHive_getSchema_result() throw() { -} - - uint32_t ThriftHive_getSchema_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; @@ -970,14 +851,8 @@ uint32_t ThriftHive_getSchema_result::write(::apache::thrift::protocol::TProtoco return xfer; } - -ThriftHive_getSchema_presult::~ThriftHive_getSchema_presult() throw() { -} - - uint32_t ThriftHive_getSchema_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; @@ -1024,14 +899,8 @@ uint32_t ThriftHive_getSchema_presult::read(::apache::thrift::protocol::TProtoco return xfer; } - -ThriftHive_getThriftSchema_args::~ThriftHive_getThriftSchema_args() throw() { -} - - uint32_t ThriftHive_getThriftSchema_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; @@ -1059,7 +928,6 @@ uint32_t ThriftHive_getThriftSchema_args::read(::apache::thrift::protocol::TProt uint32_t ThriftHive_getThriftSchema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getThriftSchema_args"); xfer += oprot->writeFieldStop(); @@ -1067,14 +935,8 @@ uint32_t ThriftHive_getThriftSchema_args::write(::apache::thrift::protocol::TPro return xfer; } - -ThriftHive_getThriftSchema_pargs::~ThriftHive_getThriftSchema_pargs() throw() { -} - - uint32_t ThriftHive_getThriftSchema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getThriftSchema_pargs"); xfer += oprot->writeFieldStop(); @@ -1082,14 +944,8 @@ uint32_t ThriftHive_getThriftSchema_pargs::write(::apache::thrift::protocol::TPr return xfer; } - -ThriftHive_getThriftSchema_result::~ThriftHive_getThriftSchema_result() throw() { -} - - uint32_t ThriftHive_getThriftSchema_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; @@ -1156,14 +1012,8 @@ uint32_t ThriftHive_getThriftSchema_result::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHive_getThriftSchema_presult::~ThriftHive_getThriftSchema_presult() throw() { -} - - uint32_t ThriftHive_getThriftSchema_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; @@ -1210,14 +1060,8 @@ uint32_t ThriftHive_getThriftSchema_presult::read(::apache::thrift::protocol::TP return xfer; } - -ThriftHive_getClusterStatus_args::~ThriftHive_getClusterStatus_args() throw() { -} - - uint32_t ThriftHive_getClusterStatus_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; @@ -1245,7 +1089,6 @@ uint32_t ThriftHive_getClusterStatus_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHive_getClusterStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getClusterStatus_args"); xfer += oprot->writeFieldStop(); @@ -1253,14 +1096,8 @@ uint32_t ThriftHive_getClusterStatus_args::write(::apache::thrift::protocol::TPr return xfer; } - -ThriftHive_getClusterStatus_pargs::~ThriftHive_getClusterStatus_pargs() throw() { -} - - uint32_t ThriftHive_getClusterStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getClusterStatus_pargs"); xfer += oprot->writeFieldStop(); @@ -1268,14 +1105,8 @@ uint32_t ThriftHive_getClusterStatus_pargs::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHive_getClusterStatus_result::~ThriftHive_getClusterStatus_result() throw() { -} - - uint32_t ThriftHive_getClusterStatus_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; @@ -1342,14 +1173,8 @@ uint32_t ThriftHive_getClusterStatus_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHive_getClusterStatus_presult::~ThriftHive_getClusterStatus_presult() throw() { -} - - uint32_t ThriftHive_getClusterStatus_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; @@ -1396,14 +1221,8 @@ uint32_t ThriftHive_getClusterStatus_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHive_getQueryPlan_args::~ThriftHive_getQueryPlan_args() throw() { -} - - uint32_t ThriftHive_getQueryPlan_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; @@ -1431,7 +1250,6 @@ uint32_t ThriftHive_getQueryPlan_args::read(::apache::thrift::protocol::TProtoco uint32_t ThriftHive_getQueryPlan_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getQueryPlan_args"); xfer += oprot->writeFieldStop(); @@ -1439,14 +1257,8 @@ uint32_t ThriftHive_getQueryPlan_args::write(::apache::thrift::protocol::TProtoc return xfer; } - -ThriftHive_getQueryPlan_pargs::~ThriftHive_getQueryPlan_pargs() throw() { -} - - uint32_t ThriftHive_getQueryPlan_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_getQueryPlan_pargs"); xfer += oprot->writeFieldStop(); @@ -1454,14 +1266,8 @@ uint32_t ThriftHive_getQueryPlan_pargs::write(::apache::thrift::protocol::TProto return xfer; } - -ThriftHive_getQueryPlan_result::~ThriftHive_getQueryPlan_result() throw() { -} - - uint32_t ThriftHive_getQueryPlan_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; @@ -1528,14 +1334,8 @@ uint32_t ThriftHive_getQueryPlan_result::write(::apache::thrift::protocol::TProt return xfer; } - -ThriftHive_getQueryPlan_presult::~ThriftHive_getQueryPlan_presult() throw() { -} - - uint32_t ThriftHive_getQueryPlan_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; @@ -1582,14 +1382,8 @@ uint32_t ThriftHive_getQueryPlan_presult::read(::apache::thrift::protocol::TProt return xfer; } - -ThriftHive_clean_args::~ThriftHive_clean_args() throw() { -} - - uint32_t ThriftHive_clean_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; @@ -1617,7 +1411,6 @@ uint32_t ThriftHive_clean_args::read(::apache::thrift::protocol::TProtocol* ipro uint32_t ThriftHive_clean_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_clean_args"); xfer += oprot->writeFieldStop(); @@ -1625,14 +1418,8 @@ uint32_t ThriftHive_clean_args::write(::apache::thrift::protocol::TProtocol* opr return xfer; } - -ThriftHive_clean_pargs::~ThriftHive_clean_pargs() throw() { -} - - uint32_t ThriftHive_clean_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("ThriftHive_clean_pargs"); xfer += oprot->writeFieldStop(); @@ -1640,14 +1427,8 @@ uint32_t ThriftHive_clean_pargs::write(::apache::thrift::protocol::TProtocol* op return xfer; } - -ThriftHive_clean_result::~ThriftHive_clean_result() throw() { -} - - uint32_t ThriftHive_clean_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; @@ -1684,14 +1465,8 @@ uint32_t ThriftHive_clean_result::write(::apache::thrift::protocol::TProtocol* o return xfer; } - -ThriftHive_clean_presult::~ThriftHive_clean_presult() throw() { -} - - uint32_t ThriftHive_clean_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; @@ -2770,775 +2545,5 @@ void ThriftHiveProcessor::process_clean(int32_t seqid, ::apache::thrift::protoco ::boost::shared_ptr< ::apache::thrift::TProcessor > processor(new ThriftHiveProcessor(handler)); return processor; } - -void ThriftHiveConcurrentClient::execute(const std::string& query) -{ - int32_t seqid = send_execute(query); - recv_execute(seqid); -} - -int32_t ThriftHiveConcurrentClient::send_execute(const std::string& query) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("execute", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_execute_pargs args; - args.query = &query; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_execute(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_, 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("execute") != 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); - } - ThriftHive_execute_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - 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 ThriftHiveConcurrentClient::fetchOne(std::string& _return) -{ - int32_t seqid = send_fetchOne(); - recv_fetchOne(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_fetchOne() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("fetchOne", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_fetchOne_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_fetchOne(std::string& _return, 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_, 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("fetchOne") != 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); - } - ThriftHive_fetchOne_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fetchOne failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::fetchN(std::vector & _return, const int32_t numRows) -{ - int32_t seqid = send_fetchN(numRows); - recv_fetchN(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_fetchN(const int32_t numRows) -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("fetchN", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_fetchN_pargs args; - args.numRows = &numRows; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_fetchN(std::vector & _return, 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_, 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("fetchN") != 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); - } - ThriftHive_fetchN_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fetchN failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::fetchAll(std::vector & _return) -{ - int32_t seqid = send_fetchAll(); - recv_fetchAll(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_fetchAll() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("fetchAll", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_fetchAll_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_fetchAll(std::vector & _return, 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_, 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("fetchAll") != 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); - } - ThriftHive_fetchAll_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "fetchAll failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::getSchema( ::Apache::Hadoop::Hive::Schema& _return) -{ - int32_t seqid = send_getSchema(); - recv_getSchema(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_getSchema() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("getSchema", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_getSchema_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_getSchema( ::Apache::Hadoop::Hive::Schema& _return, 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_, 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("getSchema") != 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); - } - ThriftHive_getSchema_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSchema failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return) -{ - int32_t seqid = send_getThriftSchema(); - recv_getThriftSchema(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_getThriftSchema() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("getThriftSchema", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_getThriftSchema_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return, 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_, 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("getThriftSchema") != 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); - } - ThriftHive_getThriftSchema_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getThriftSchema failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::getClusterStatus(HiveClusterStatus& _return) -{ - int32_t seqid = send_getClusterStatus(); - recv_getClusterStatus(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_getClusterStatus() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("getClusterStatus", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_getClusterStatus_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_getClusterStatus(HiveClusterStatus& _return, 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_, 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("getClusterStatus") != 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); - } - ThriftHive_getClusterStatus_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getClusterStatus failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return) -{ - int32_t seqid = send_getQueryPlan(); - recv_getQueryPlan(_return, seqid); -} - -int32_t ThriftHiveConcurrentClient::send_getQueryPlan() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("getQueryPlan", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_getQueryPlan_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return, 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_, 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("getQueryPlan") != 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); - } - ThriftHive_getQueryPlan_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } - if (result.__isset.ex) { - sentry.commit(); - throw result.ex; - } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getQueryPlan failed: unknown result"); - } - // 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 ThriftHiveConcurrentClient::clean() -{ - int32_t seqid = send_clean(); - recv_clean(seqid); -} - -int32_t ThriftHiveConcurrentClient::send_clean() -{ - int32_t cseqid = this->sync_.generateSeqId(); - ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("clean", ::apache::thrift::protocol::T_CALL, cseqid); - - ThriftHive_clean_pargs args; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); - - sentry.commit(); - return cseqid; -} - -void ThriftHiveConcurrentClient::recv_clean(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_, 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("clean") != 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); - } - ThriftHive_clean_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - 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) -} - }}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.h b/service/src/gen/thrift/gen-cpp/ThriftHive.h index 902bd4b..b84362b 100644 --- a/service/src/gen/thrift/gen-cpp/ThriftHive.h +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,17 +8,11 @@ #define ThriftHive_H #include -#include #include "hive_service_types.h" #include "ThriftHiveMetastore.h" namespace Apache { namespace Hadoop { namespace Hive { -#ifdef _WIN32 - #pragma warning( push ) - #pragma warning (disable : 4250 ) //inheriting methods via dominance -#endif - class ThriftHiveIf : virtual public ::Apache::Hadoop::Hive::ThriftHiveMetastoreIf { public: virtual ~ThriftHiveIf() {} @@ -91,23 +85,24 @@ class ThriftHiveNull : virtual public ThriftHiveIf , virtual public ::Apache::H typedef struct _ThriftHive_execute_args__isset { _ThriftHive_execute_args__isset() : query(false) {} - bool query :1; + bool query; } _ThriftHive_execute_args__isset; class ThriftHive_execute_args { public: - ThriftHive_execute_args(const ThriftHive_execute_args&); - ThriftHive_execute_args& operator=(const ThriftHive_execute_args&); ThriftHive_execute_args() : query() { } - virtual ~ThriftHive_execute_args() throw(); + virtual ~ThriftHive_execute_args() throw() {} + std::string query; _ThriftHive_execute_args__isset __isset; - void __set_query(const std::string& val); + void __set_query(const std::string& val) { + query = val; + } bool operator == (const ThriftHive_execute_args & rhs) const { @@ -131,7 +126,8 @@ class ThriftHive_execute_pargs { public: - virtual ~ThriftHive_execute_pargs() throw(); + virtual ~ThriftHive_execute_pargs() throw() {} + const std::string* query; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -140,23 +136,24 @@ class ThriftHive_execute_pargs { typedef struct _ThriftHive_execute_result__isset { _ThriftHive_execute_result__isset() : ex(false) {} - bool ex :1; + bool ex; } _ThriftHive_execute_result__isset; class ThriftHive_execute_result { public: - ThriftHive_execute_result(const ThriftHive_execute_result&); - ThriftHive_execute_result& operator=(const ThriftHive_execute_result&); ThriftHive_execute_result() { } - virtual ~ThriftHive_execute_result() throw(); + virtual ~ThriftHive_execute_result() throw() {} + HiveServerException ex; _ThriftHive_execute_result__isset __isset; - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_execute_result & rhs) const { @@ -177,14 +174,15 @@ class ThriftHive_execute_result { typedef struct _ThriftHive_execute_presult__isset { _ThriftHive_execute_presult__isset() : ex(false) {} - bool ex :1; + bool ex; } _ThriftHive_execute_presult__isset; class ThriftHive_execute_presult { public: - virtual ~ThriftHive_execute_presult() throw(); + virtual ~ThriftHive_execute_presult() throw() {} + HiveServerException ex; _ThriftHive_execute_presult__isset __isset; @@ -197,12 +195,11 @@ class ThriftHive_execute_presult { class ThriftHive_fetchOne_args { public: - ThriftHive_fetchOne_args(const ThriftHive_fetchOne_args&); - ThriftHive_fetchOne_args& operator=(const ThriftHive_fetchOne_args&); ThriftHive_fetchOne_args() { } - virtual ~ThriftHive_fetchOne_args() throw(); + virtual ~ThriftHive_fetchOne_args() throw() {} + bool operator == (const ThriftHive_fetchOne_args & /* rhs */) const { @@ -224,7 +221,8 @@ class ThriftHive_fetchOne_pargs { public: - virtual ~ThriftHive_fetchOne_pargs() throw(); + virtual ~ThriftHive_fetchOne_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -232,27 +230,30 @@ class ThriftHive_fetchOne_pargs { typedef struct _ThriftHive_fetchOne_result__isset { _ThriftHive_fetchOne_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchOne_result__isset; class ThriftHive_fetchOne_result { public: - ThriftHive_fetchOne_result(const ThriftHive_fetchOne_result&); - ThriftHive_fetchOne_result& operator=(const ThriftHive_fetchOne_result&); ThriftHive_fetchOne_result() : success() { } - virtual ~ThriftHive_fetchOne_result() throw(); + virtual ~ThriftHive_fetchOne_result() throw() {} + std::string success; HiveServerException ex; _ThriftHive_fetchOne_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchOne_result & rhs) const { @@ -275,15 +276,16 @@ class ThriftHive_fetchOne_result { typedef struct _ThriftHive_fetchOne_presult__isset { _ThriftHive_fetchOne_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchOne_presult__isset; class ThriftHive_fetchOne_presult { public: - virtual ~ThriftHive_fetchOne_presult() throw(); + virtual ~ThriftHive_fetchOne_presult() throw() {} + std::string* success; HiveServerException ex; @@ -295,23 +297,24 @@ class ThriftHive_fetchOne_presult { typedef struct _ThriftHive_fetchN_args__isset { _ThriftHive_fetchN_args__isset() : numRows(false) {} - bool numRows :1; + bool numRows; } _ThriftHive_fetchN_args__isset; class ThriftHive_fetchN_args { public: - ThriftHive_fetchN_args(const ThriftHive_fetchN_args&); - ThriftHive_fetchN_args& operator=(const ThriftHive_fetchN_args&); ThriftHive_fetchN_args() : numRows(0) { } - virtual ~ThriftHive_fetchN_args() throw(); + virtual ~ThriftHive_fetchN_args() throw() {} + int32_t numRows; _ThriftHive_fetchN_args__isset __isset; - void __set_numRows(const int32_t val); + void __set_numRows(const int32_t val) { + numRows = val; + } bool operator == (const ThriftHive_fetchN_args & rhs) const { @@ -335,7 +338,8 @@ class ThriftHive_fetchN_pargs { public: - virtual ~ThriftHive_fetchN_pargs() throw(); + virtual ~ThriftHive_fetchN_pargs() throw() {} + const int32_t* numRows; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -344,27 +348,30 @@ class ThriftHive_fetchN_pargs { typedef struct _ThriftHive_fetchN_result__isset { _ThriftHive_fetchN_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchN_result__isset; class ThriftHive_fetchN_result { public: - ThriftHive_fetchN_result(const ThriftHive_fetchN_result&); - ThriftHive_fetchN_result& operator=(const ThriftHive_fetchN_result&); ThriftHive_fetchN_result() { } - virtual ~ThriftHive_fetchN_result() throw(); + virtual ~ThriftHive_fetchN_result() throw() {} + std::vector success; HiveServerException ex; _ThriftHive_fetchN_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchN_result & rhs) const { @@ -387,15 +394,16 @@ class ThriftHive_fetchN_result { typedef struct _ThriftHive_fetchN_presult__isset { _ThriftHive_fetchN_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchN_presult__isset; class ThriftHive_fetchN_presult { public: - virtual ~ThriftHive_fetchN_presult() throw(); + virtual ~ThriftHive_fetchN_presult() throw() {} + std::vector * success; HiveServerException ex; @@ -409,12 +417,11 @@ class ThriftHive_fetchN_presult { class ThriftHive_fetchAll_args { public: - ThriftHive_fetchAll_args(const ThriftHive_fetchAll_args&); - ThriftHive_fetchAll_args& operator=(const ThriftHive_fetchAll_args&); ThriftHive_fetchAll_args() { } - virtual ~ThriftHive_fetchAll_args() throw(); + virtual ~ThriftHive_fetchAll_args() throw() {} + bool operator == (const ThriftHive_fetchAll_args & /* rhs */) const { @@ -436,7 +443,8 @@ class ThriftHive_fetchAll_pargs { public: - virtual ~ThriftHive_fetchAll_pargs() throw(); + virtual ~ThriftHive_fetchAll_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -444,27 +452,30 @@ class ThriftHive_fetchAll_pargs { typedef struct _ThriftHive_fetchAll_result__isset { _ThriftHive_fetchAll_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchAll_result__isset; class ThriftHive_fetchAll_result { public: - ThriftHive_fetchAll_result(const ThriftHive_fetchAll_result&); - ThriftHive_fetchAll_result& operator=(const ThriftHive_fetchAll_result&); ThriftHive_fetchAll_result() { } - virtual ~ThriftHive_fetchAll_result() throw(); + virtual ~ThriftHive_fetchAll_result() throw() {} + std::vector success; HiveServerException ex; _ThriftHive_fetchAll_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchAll_result & rhs) const { @@ -487,15 +498,16 @@ class ThriftHive_fetchAll_result { typedef struct _ThriftHive_fetchAll_presult__isset { _ThriftHive_fetchAll_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchAll_presult__isset; class ThriftHive_fetchAll_presult { public: - virtual ~ThriftHive_fetchAll_presult() throw(); + virtual ~ThriftHive_fetchAll_presult() throw() {} + std::vector * success; HiveServerException ex; @@ -509,12 +521,11 @@ class ThriftHive_fetchAll_presult { class ThriftHive_getSchema_args { public: - ThriftHive_getSchema_args(const ThriftHive_getSchema_args&); - ThriftHive_getSchema_args& operator=(const ThriftHive_getSchema_args&); ThriftHive_getSchema_args() { } - virtual ~ThriftHive_getSchema_args() throw(); + virtual ~ThriftHive_getSchema_args() throw() {} + bool operator == (const ThriftHive_getSchema_args & /* rhs */) const { @@ -536,7 +547,8 @@ class ThriftHive_getSchema_pargs { public: - virtual ~ThriftHive_getSchema_pargs() throw(); + virtual ~ThriftHive_getSchema_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -544,27 +556,30 @@ class ThriftHive_getSchema_pargs { typedef struct _ThriftHive_getSchema_result__isset { _ThriftHive_getSchema_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getSchema_result__isset; class ThriftHive_getSchema_result { public: - ThriftHive_getSchema_result(const ThriftHive_getSchema_result&); - ThriftHive_getSchema_result& operator=(const ThriftHive_getSchema_result&); ThriftHive_getSchema_result() { } - virtual ~ThriftHive_getSchema_result() throw(); + virtual ~ThriftHive_getSchema_result() throw() {} + ::Apache::Hadoop::Hive::Schema success; HiveServerException ex; _ThriftHive_getSchema_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::Schema& val); + void __set_success(const ::Apache::Hadoop::Hive::Schema& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getSchema_result & rhs) const { @@ -587,15 +602,16 @@ class ThriftHive_getSchema_result { typedef struct _ThriftHive_getSchema_presult__isset { _ThriftHive_getSchema_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getSchema_presult__isset; class ThriftHive_getSchema_presult { public: - virtual ~ThriftHive_getSchema_presult() throw(); + virtual ~ThriftHive_getSchema_presult() throw() {} + ::Apache::Hadoop::Hive::Schema* success; HiveServerException ex; @@ -609,12 +625,11 @@ class ThriftHive_getSchema_presult { class ThriftHive_getThriftSchema_args { public: - ThriftHive_getThriftSchema_args(const ThriftHive_getThriftSchema_args&); - ThriftHive_getThriftSchema_args& operator=(const ThriftHive_getThriftSchema_args&); ThriftHive_getThriftSchema_args() { } - virtual ~ThriftHive_getThriftSchema_args() throw(); + virtual ~ThriftHive_getThriftSchema_args() throw() {} + bool operator == (const ThriftHive_getThriftSchema_args & /* rhs */) const { @@ -636,7 +651,8 @@ class ThriftHive_getThriftSchema_pargs { public: - virtual ~ThriftHive_getThriftSchema_pargs() throw(); + virtual ~ThriftHive_getThriftSchema_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -644,27 +660,30 @@ class ThriftHive_getThriftSchema_pargs { typedef struct _ThriftHive_getThriftSchema_result__isset { _ThriftHive_getThriftSchema_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getThriftSchema_result__isset; class ThriftHive_getThriftSchema_result { public: - ThriftHive_getThriftSchema_result(const ThriftHive_getThriftSchema_result&); - ThriftHive_getThriftSchema_result& operator=(const ThriftHive_getThriftSchema_result&); ThriftHive_getThriftSchema_result() { } - virtual ~ThriftHive_getThriftSchema_result() throw(); + virtual ~ThriftHive_getThriftSchema_result() throw() {} + ::Apache::Hadoop::Hive::Schema success; HiveServerException ex; _ThriftHive_getThriftSchema_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::Schema& val); + void __set_success(const ::Apache::Hadoop::Hive::Schema& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getThriftSchema_result & rhs) const { @@ -687,15 +706,16 @@ class ThriftHive_getThriftSchema_result { typedef struct _ThriftHive_getThriftSchema_presult__isset { _ThriftHive_getThriftSchema_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getThriftSchema_presult__isset; class ThriftHive_getThriftSchema_presult { public: - virtual ~ThriftHive_getThriftSchema_presult() throw(); + virtual ~ThriftHive_getThriftSchema_presult() throw() {} + ::Apache::Hadoop::Hive::Schema* success; HiveServerException ex; @@ -709,12 +729,11 @@ class ThriftHive_getThriftSchema_presult { class ThriftHive_getClusterStatus_args { public: - ThriftHive_getClusterStatus_args(const ThriftHive_getClusterStatus_args&); - ThriftHive_getClusterStatus_args& operator=(const ThriftHive_getClusterStatus_args&); ThriftHive_getClusterStatus_args() { } - virtual ~ThriftHive_getClusterStatus_args() throw(); + virtual ~ThriftHive_getClusterStatus_args() throw() {} + bool operator == (const ThriftHive_getClusterStatus_args & /* rhs */) const { @@ -736,7 +755,8 @@ class ThriftHive_getClusterStatus_pargs { public: - virtual ~ThriftHive_getClusterStatus_pargs() throw(); + virtual ~ThriftHive_getClusterStatus_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -744,27 +764,30 @@ class ThriftHive_getClusterStatus_pargs { typedef struct _ThriftHive_getClusterStatus_result__isset { _ThriftHive_getClusterStatus_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getClusterStatus_result__isset; class ThriftHive_getClusterStatus_result { public: - ThriftHive_getClusterStatus_result(const ThriftHive_getClusterStatus_result&); - ThriftHive_getClusterStatus_result& operator=(const ThriftHive_getClusterStatus_result&); ThriftHive_getClusterStatus_result() { } - virtual ~ThriftHive_getClusterStatus_result() throw(); + virtual ~ThriftHive_getClusterStatus_result() throw() {} + HiveClusterStatus success; HiveServerException ex; _ThriftHive_getClusterStatus_result__isset __isset; - void __set_success(const HiveClusterStatus& val); + void __set_success(const HiveClusterStatus& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getClusterStatus_result & rhs) const { @@ -787,15 +810,16 @@ class ThriftHive_getClusterStatus_result { typedef struct _ThriftHive_getClusterStatus_presult__isset { _ThriftHive_getClusterStatus_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getClusterStatus_presult__isset; class ThriftHive_getClusterStatus_presult { public: - virtual ~ThriftHive_getClusterStatus_presult() throw(); + virtual ~ThriftHive_getClusterStatus_presult() throw() {} + HiveClusterStatus* success; HiveServerException ex; @@ -809,12 +833,11 @@ class ThriftHive_getClusterStatus_presult { class ThriftHive_getQueryPlan_args { public: - ThriftHive_getQueryPlan_args(const ThriftHive_getQueryPlan_args&); - ThriftHive_getQueryPlan_args& operator=(const ThriftHive_getQueryPlan_args&); ThriftHive_getQueryPlan_args() { } - virtual ~ThriftHive_getQueryPlan_args() throw(); + virtual ~ThriftHive_getQueryPlan_args() throw() {} + bool operator == (const ThriftHive_getQueryPlan_args & /* rhs */) const { @@ -836,7 +859,8 @@ class ThriftHive_getQueryPlan_pargs { public: - virtual ~ThriftHive_getQueryPlan_pargs() throw(); + virtual ~ThriftHive_getQueryPlan_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -844,27 +868,30 @@ class ThriftHive_getQueryPlan_pargs { typedef struct _ThriftHive_getQueryPlan_result__isset { _ThriftHive_getQueryPlan_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getQueryPlan_result__isset; class ThriftHive_getQueryPlan_result { public: - ThriftHive_getQueryPlan_result(const ThriftHive_getQueryPlan_result&); - ThriftHive_getQueryPlan_result& operator=(const ThriftHive_getQueryPlan_result&); ThriftHive_getQueryPlan_result() { } - virtual ~ThriftHive_getQueryPlan_result() throw(); + virtual ~ThriftHive_getQueryPlan_result() throw() {} + ::Apache::Hadoop::Hive::QueryPlan success; HiveServerException ex; _ThriftHive_getQueryPlan_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::QueryPlan& val); + void __set_success(const ::Apache::Hadoop::Hive::QueryPlan& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getQueryPlan_result & rhs) const { @@ -887,15 +914,16 @@ class ThriftHive_getQueryPlan_result { typedef struct _ThriftHive_getQueryPlan_presult__isset { _ThriftHive_getQueryPlan_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getQueryPlan_presult__isset; class ThriftHive_getQueryPlan_presult { public: - virtual ~ThriftHive_getQueryPlan_presult() throw(); + virtual ~ThriftHive_getQueryPlan_presult() throw() {} + ::Apache::Hadoop::Hive::QueryPlan* success; HiveServerException ex; @@ -909,12 +937,11 @@ class ThriftHive_getQueryPlan_presult { class ThriftHive_clean_args { public: - ThriftHive_clean_args(const ThriftHive_clean_args&); - ThriftHive_clean_args& operator=(const ThriftHive_clean_args&); ThriftHive_clean_args() { } - virtual ~ThriftHive_clean_args() throw(); + virtual ~ThriftHive_clean_args() throw() {} + bool operator == (const ThriftHive_clean_args & /* rhs */) const { @@ -936,7 +963,8 @@ class ThriftHive_clean_pargs { public: - virtual ~ThriftHive_clean_pargs() throw(); + virtual ~ThriftHive_clean_pargs() throw() {} + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -946,12 +974,11 @@ class ThriftHive_clean_pargs { class ThriftHive_clean_result { public: - ThriftHive_clean_result(const ThriftHive_clean_result&); - ThriftHive_clean_result& operator=(const ThriftHive_clean_result&); ThriftHive_clean_result() { } - virtual ~ThriftHive_clean_result() throw(); + virtual ~ThriftHive_clean_result() throw() {} + bool operator == (const ThriftHive_clean_result & /* rhs */) const { @@ -973,7 +1000,8 @@ class ThriftHive_clean_presult { public: - virtual ~ThriftHive_clean_presult() throw(); + virtual ~ThriftHive_clean_presult() throw() {} + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -983,7 +1011,8 @@ class ThriftHiveClient : virtual public ThriftHiveIf, public ::Apache::Hadoop:: public: ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(prot, prot) {} - ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(iprot, oprot) {} + ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(iprot, oprot) {} boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } @@ -1172,53 +1201,6 @@ class ThriftHiveMultiface : virtual public ThriftHiveIf, public ::Apache::Hadoo }; -// The 'concurrent' client is a thread safe client that correctly handles -// out of order responses. It is slower than the regular client, so should -// only be used when you need to share a connection among multiple threads -class ThriftHiveConcurrentClient : virtual public ThriftHiveIf, public ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient { - public: - ThriftHiveConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : - ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient(prot, prot) {} - ThriftHiveConcurrentClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreConcurrentClient(iprot, oprot) {} - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { - return piprot_; - } - boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() { - return poprot_; - } - void execute(const std::string& query); - int32_t send_execute(const std::string& query); - void recv_execute(const int32_t seqid); - void fetchOne(std::string& _return); - int32_t send_fetchOne(); - void recv_fetchOne(std::string& _return, const int32_t seqid); - void fetchN(std::vector & _return, const int32_t numRows); - int32_t send_fetchN(const int32_t numRows); - void recv_fetchN(std::vector & _return, const int32_t seqid); - void fetchAll(std::vector & _return); - int32_t send_fetchAll(); - void recv_fetchAll(std::vector & _return, const int32_t seqid); - void getSchema( ::Apache::Hadoop::Hive::Schema& _return); - int32_t send_getSchema(); - void recv_getSchema( ::Apache::Hadoop::Hive::Schema& _return, const int32_t seqid); - void getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return); - int32_t send_getThriftSchema(); - void recv_getThriftSchema( ::Apache::Hadoop::Hive::Schema& _return, const int32_t seqid); - void getClusterStatus(HiveClusterStatus& _return); - int32_t send_getClusterStatus(); - void recv_getClusterStatus(HiveClusterStatus& _return, const int32_t seqid); - void getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return); - int32_t send_getQueryPlan(); - void recv_getQueryPlan( ::Apache::Hadoop::Hive::QueryPlan& _return, const int32_t seqid); - void clean(); - int32_t send_clean(); - void recv_clean(const int32_t seqid); -}; - -#ifdef _WIN32 - #pragma warning( pop ) -#endif - }}} // namespace #endif diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp index e2bbe71..3555b03 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.h b/service/src/gen/thrift/gen-cpp/hive_service_constants.h index e0887f4..e27273c 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.h +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp index 9ddf7c1..255fb00 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "hive_service_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -23,38 +20,11 @@ const char* _kJobTrackerStateNames[] = { }; const std::map _JobTrackerState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kJobTrackerStateValues, _kJobTrackerStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -HiveClusterStatus::~HiveClusterStatus() throw() { -} - - -void HiveClusterStatus::__set_taskTrackers(const int32_t val) { - this->taskTrackers = val; -} - -void HiveClusterStatus::__set_mapTasks(const int32_t val) { - this->mapTasks = val; -} - -void HiveClusterStatus::__set_reduceTasks(const int32_t val) { - this->reduceTasks = val; -} - -void HiveClusterStatus::__set_maxMapTasks(const int32_t val) { - this->maxMapTasks = val; -} - -void HiveClusterStatus::__set_maxReduceTasks(const int32_t val) { - this->maxReduceTasks = val; -} - -void HiveClusterStatus::__set_state(const JobTrackerState::type val) { - this->state = val; -} +const char* HiveClusterStatus::ascii_fingerprint = "D514EDCFFC86F64A2E924DCD16D4FAD8"; +const uint8_t HiveClusterStatus::binary_fingerprint[16] = {0xD5,0x14,0xED,0xCF,0xFC,0x86,0xF6,0x4A,0x2E,0x92,0x4D,0xCD,0x16,0xD4,0xFA,0xD8}; uint32_t HiveClusterStatus::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -137,7 +107,6 @@ uint32_t HiveClusterStatus::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HiveClusterStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HiveClusterStatus"); xfer += oprot->writeFieldBegin("taskTrackers", ::apache::thrift::protocol::T_I32, 1); @@ -180,57 +149,11 @@ void swap(HiveClusterStatus &a, HiveClusterStatus &b) { swap(a.__isset, b.__isset); } -HiveClusterStatus::HiveClusterStatus(const HiveClusterStatus& other1) { - taskTrackers = other1.taskTrackers; - mapTasks = other1.mapTasks; - reduceTasks = other1.reduceTasks; - maxMapTasks = other1.maxMapTasks; - maxReduceTasks = other1.maxReduceTasks; - state = other1.state; - __isset = other1.__isset; -} -HiveClusterStatus& HiveClusterStatus::operator=(const HiveClusterStatus& other2) { - taskTrackers = other2.taskTrackers; - mapTasks = other2.mapTasks; - reduceTasks = other2.reduceTasks; - maxMapTasks = other2.maxMapTasks; - maxReduceTasks = other2.maxReduceTasks; - state = other2.state; - __isset = other2.__isset; - return *this; -} -void HiveClusterStatus::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HiveClusterStatus("; - out << "taskTrackers=" << to_string(taskTrackers); - out << ", " << "mapTasks=" << to_string(mapTasks); - out << ", " << "reduceTasks=" << to_string(reduceTasks); - out << ", " << "maxMapTasks=" << to_string(maxMapTasks); - out << ", " << "maxReduceTasks=" << to_string(maxReduceTasks); - out << ", " << "state=" << to_string(state); - out << ")"; -} - - -HiveServerException::~HiveServerException() throw() { -} - - -void HiveServerException::__set_message(const std::string& val) { - this->message = val; -} - -void HiveServerException::__set_errorCode(const int32_t val) { - this->errorCode = val; -} - -void HiveServerException::__set_SQLState(const std::string& val) { - this->SQLState = val; -} +const char* HiveServerException::ascii_fingerprint = "70563A0628F75DF9555F4D24690B1E26"; +const uint8_t HiveServerException::binary_fingerprint[16] = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; uint32_t HiveServerException::read(::apache::thrift::protocol::TProtocol* iprot) { - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; std::string fname; ::apache::thrift::protocol::TType ftype; @@ -287,7 +210,6 @@ uint32_t HiveServerException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t HiveServerException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); xfer += oprot->writeStructBegin("HiveServerException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -315,37 +237,4 @@ void swap(HiveServerException &a, HiveServerException &b) { swap(a.__isset, b.__isset); } -HiveServerException::HiveServerException(const HiveServerException& other3) : TException() { - message = other3.message; - errorCode = other3.errorCode; - SQLState = other3.SQLState; - __isset = other3.__isset; -} -HiveServerException& HiveServerException::operator=(const HiveServerException& other4) { - message = other4.message; - errorCode = other4.errorCode; - SQLState = other4.SQLState; - __isset = other4.__isset; - return *this; -} -void HiveServerException::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "HiveServerException("; - out << "message=" << to_string(message); - out << ", " << "errorCode=" << to_string(errorCode); - out << ", " << "SQLState=" << to_string(SQLState); - out << ")"; -} - -const char* HiveServerException::what() const throw() { - try { - std::stringstream ss; - ss << "TException - service has thrown: " << *this; - this->thriftTExceptionMessageHolder_ = ss.str(); - return this->thriftTExceptionMessageHolder_.c_str(); - } catch (const std::exception&) { - return "TException - service has thrown: HiveServerException"; - } -} - }}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.h b/service/src/gen/thrift/gen-cpp/hive_service_types.h index 266f8ea..bc0e652 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_types.h +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef hive_service_TYPES_H #define hive_service_TYPES_H -#include - #include #include #include #include -#include #include "fb303_types.h" #include "hive_metastore_types.h" #include "queryplan_types.h" @@ -31,29 +28,27 @@ struct JobTrackerState { extern const std::map _JobTrackerState_VALUES_TO_NAMES; -class HiveClusterStatus; - -class HiveServerException; - typedef struct _HiveClusterStatus__isset { _HiveClusterStatus__isset() : taskTrackers(false), mapTasks(false), reduceTasks(false), maxMapTasks(false), maxReduceTasks(false), state(false) {} - bool taskTrackers :1; - bool mapTasks :1; - bool reduceTasks :1; - bool maxMapTasks :1; - bool maxReduceTasks :1; - bool state :1; + bool taskTrackers; + bool mapTasks; + bool reduceTasks; + bool maxMapTasks; + bool maxReduceTasks; + bool state; } _HiveClusterStatus__isset; class HiveClusterStatus { public: - HiveClusterStatus(const HiveClusterStatus&); - HiveClusterStatus& operator=(const HiveClusterStatus&); + static const char* ascii_fingerprint; // = "D514EDCFFC86F64A2E924DCD16D4FAD8"; + static const uint8_t binary_fingerprint[16]; // = {0xD5,0x14,0xED,0xCF,0xFC,0x86,0xF6,0x4A,0x2E,0x92,0x4D,0xCD,0x16,0xD4,0xFA,0xD8}; + HiveClusterStatus() : taskTrackers(0), mapTasks(0), reduceTasks(0), maxMapTasks(0), maxReduceTasks(0), state((JobTrackerState::type)0) { } - virtual ~HiveClusterStatus() throw(); + virtual ~HiveClusterStatus() throw() {} + int32_t taskTrackers; int32_t mapTasks; int32_t reduceTasks; @@ -63,17 +58,29 @@ class HiveClusterStatus { _HiveClusterStatus__isset __isset; - void __set_taskTrackers(const int32_t val); + void __set_taskTrackers(const int32_t val) { + taskTrackers = val; + } - void __set_mapTasks(const int32_t val); + void __set_mapTasks(const int32_t val) { + mapTasks = val; + } - void __set_reduceTasks(const int32_t val); + void __set_reduceTasks(const int32_t val) { + reduceTasks = val; + } - void __set_maxMapTasks(const int32_t val); + void __set_maxMapTasks(const int32_t val) { + maxMapTasks = val; + } - void __set_maxReduceTasks(const int32_t val); + void __set_maxReduceTasks(const int32_t val) { + maxReduceTasks = val; + } - void __set_state(const JobTrackerState::type val); + void __set_state(const JobTrackerState::type val) { + state = val; + } bool operator == (const HiveClusterStatus & rhs) const { @@ -100,44 +107,45 @@ class HiveClusterStatus { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; }; void swap(HiveClusterStatus &a, HiveClusterStatus &b); -inline std::ostream& operator<<(std::ostream& out, const HiveClusterStatus& obj) -{ - obj.printTo(out); - return out; -} - typedef struct _HiveServerException__isset { _HiveServerException__isset() : message(false), errorCode(false), SQLState(false) {} - bool message :1; - bool errorCode :1; - bool SQLState :1; + bool message; + bool errorCode; + bool SQLState; } _HiveServerException__isset; class HiveServerException : public ::apache::thrift::TException { public: - HiveServerException(const HiveServerException&); - HiveServerException& operator=(const HiveServerException&); + static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26"; + static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; + HiveServerException() : message(), errorCode(0), SQLState() { } - virtual ~HiveServerException() throw(); + virtual ~HiveServerException() throw() {} + std::string message; int32_t errorCode; std::string SQLState; _HiveServerException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + } - void __set_SQLState(const std::string& val); + void __set_SQLState(const std::string& val) { + SQLState = val; + } bool operator == (const HiveServerException & rhs) const { @@ -158,19 +166,10 @@ class HiveServerException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - virtual void printTo(std::ostream& out) const; - mutable std::string thriftTExceptionMessageHolder_; - const char* what() const throw(); }; void swap(HiveServerException &a, HiveServerException &b); -inline std::ostream& operator<<(std::ostream& out, const HiveServerException& obj) -{ - obj.printTo(out); - return out; -} - }}} // namespace #endif diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java index ad89867..11566e5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HiveClusterStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveClusterStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveClusterStatus"); private static final org.apache.thrift.protocol.TField TASK_TRACKERS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskTrackers", org.apache.thrift.protocol.TType.I32, (short)1); @@ -417,19 +413,19 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case TASK_TRACKERS: - return getTaskTrackers(); + return Integer.valueOf(getTaskTrackers()); case MAP_TASKS: - return getMapTasks(); + return Integer.valueOf(getMapTasks()); case REDUCE_TASKS: - return getReduceTasks(); + return Integer.valueOf(getReduceTasks()); case MAX_MAP_TASKS: - return getMaxMapTasks(); + return Integer.valueOf(getMaxMapTasks()); case MAX_REDUCE_TASKS: - return getMaxReduceTasks(); + return Integer.valueOf(getMaxReduceTasks()); case STATE: return getState(); @@ -533,105 +529,105 @@ public boolean equals(HiveClusterStatus that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_taskTrackers = true; - list.add(present_taskTrackers); + builder.append(present_taskTrackers); if (present_taskTrackers) - list.add(taskTrackers); + builder.append(taskTrackers); boolean present_mapTasks = true; - list.add(present_mapTasks); + builder.append(present_mapTasks); if (present_mapTasks) - list.add(mapTasks); + builder.append(mapTasks); boolean present_reduceTasks = true; - list.add(present_reduceTasks); + builder.append(present_reduceTasks); if (present_reduceTasks) - list.add(reduceTasks); + builder.append(reduceTasks); boolean present_maxMapTasks = true; - list.add(present_maxMapTasks); + builder.append(present_maxMapTasks); if (present_maxMapTasks) - list.add(maxMapTasks); + builder.append(maxMapTasks); boolean present_maxReduceTasks = true; - list.add(present_maxReduceTasks); + builder.append(present_maxReduceTasks); if (present_maxReduceTasks) - list.add(maxReduceTasks); + builder.append(maxReduceTasks); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveClusterStatus other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveClusterStatus typedOther = (HiveClusterStatus)other; - lastComparison = Boolean.valueOf(isSetTaskTrackers()).compareTo(other.isSetTaskTrackers()); + lastComparison = Boolean.valueOf(isSetTaskTrackers()).compareTo(typedOther.isSetTaskTrackers()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskTrackers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTrackers, other.taskTrackers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTrackers, typedOther.taskTrackers); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMapTasks()).compareTo(other.isSetMapTasks()); + lastComparison = Boolean.valueOf(isSetMapTasks()).compareTo(typedOther.isSetMapTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMapTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapTasks, other.mapTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapTasks, typedOther.mapTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReduceTasks()).compareTo(other.isSetReduceTasks()); + lastComparison = Boolean.valueOf(isSetReduceTasks()).compareTo(typedOther.isSetReduceTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetReduceTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceTasks, other.reduceTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceTasks, typedOther.reduceTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxMapTasks()).compareTo(other.isSetMaxMapTasks()); + lastComparison = Boolean.valueOf(isSetMaxMapTasks()).compareTo(typedOther.isSetMaxMapTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxMapTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxMapTasks, other.maxMapTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxMapTasks, typedOther.maxMapTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxReduceTasks()).compareTo(other.isSetMaxReduceTasks()); + lastComparison = Boolean.valueOf(isSetMaxReduceTasks()).compareTo(typedOther.isSetMaxReduceTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxReduceTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxReduceTasks, other.maxReduceTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxReduceTasks, typedOther.maxReduceTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } @@ -770,7 +766,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveClusterStatus s break; case 6: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.service.JobTrackerState.findByValue(iprot.readI32()); + struct.state = JobTrackerState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -891,7 +887,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveClusterStatus st struct.setMaxReduceTasksIsSet(true); } if (incoming.get(5)) { - struct.state = org.apache.hadoop.hive.service.JobTrackerState.findByValue(iprot.readI32()); + struct.state = JobTrackerState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java index 97b1219..353dc8a 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class HiveServerException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveServerException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveServerException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -276,7 +272,7 @@ public Object getFieldValue(_Fields field) { return getMessage(); case ERROR_CODE: - return getErrorCode(); + return Integer.valueOf(getErrorCode()); case SQLSTATE: return getSQLState(); @@ -347,60 +343,60 @@ public boolean equals(HiveServerException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); boolean present_errorCode = true; - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_SQLState = true && (isSetSQLState()); - list.add(present_SQLState); + builder.append(present_SQLState); if (present_SQLState) - list.add(SQLState); + builder.append(SQLState); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveServerException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveServerException typedOther = (HiveServerException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSQLState()).compareTo(other.isSetSQLState()); + lastComparison = Boolean.valueOf(isSetSQLState()).compareTo(typedOther.isSetSQLState()); if (lastComparison != 0) { return lastComparison; } if (isSetSQLState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SQLState, other.SQLState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SQLState, typedOther.SQLState); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java index 46c71ee..5de66c5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java index 934a8a5..745e6cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,12 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") public class ThriftHive { public interface Iface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface { @@ -61,23 +57,23 @@ public interface AsyncIface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore .AsyncIface { - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -337,7 +333,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_call method_call = new execute_call(query, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -346,7 +342,7 @@ public void execute(String query, org.apache.thrift.async.AsyncMethodCallback re public static class execute_call extends org.apache.thrift.async.TAsyncMethodCall { private String query; - public execute_call(String query, 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 { + public execute_call(String query, 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.query = query; } @@ -369,7 +365,7 @@ public void getResult() throws HiveServerException, org.apache.thrift.TException } } - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchOne_call method_call = new fetchOne_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -377,7 +373,7 @@ public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class fetchOne_call extends org.apache.thrift.async.TAsyncMethodCall { - public fetchOne_call(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 { + public fetchOne_call(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); } @@ -398,7 +394,7 @@ public String getResult() throws HiveServerException, org.apache.thrift.TExcepti } } - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -407,7 +403,7 @@ public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resu public static class fetchN_call extends org.apache.thrift.async.TAsyncMethodCall { private int numRows; - public fetchN_call(int numRows, 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 { + public fetchN_call(int numRows, 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.numRows = numRows; } @@ -430,7 +426,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchAll_call method_call = new fetchAll_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -438,7 +434,7 @@ public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class fetchAll_call extends org.apache.thrift.async.TAsyncMethodCall { - public fetchAll_call(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 { + public fetchAll_call(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); } @@ -459,7 +455,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getSchema_call method_call = new getSchema_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -467,7 +463,7 @@ public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall { - public getSchema_call(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 { + public getSchema_call(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); } @@ -488,7 +484,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -496,7 +492,7 @@ public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHa } public static class getThriftSchema_call extends org.apache.thrift.async.TAsyncMethodCall { - public getThriftSchema_call(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 { + public getThriftSchema_call(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); } @@ -517,7 +513,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -525,7 +521,7 @@ public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultH } public static class getClusterStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - public getClusterStatus_call(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 { + public getClusterStatus_call(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); } @@ -546,7 +542,7 @@ public HiveClusterStatus getResult() throws HiveServerException, org.apache.thri } } - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -554,7 +550,7 @@ public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandl } public static class getQueryPlan_call extends org.apache.thrift.async.TAsyncMethodCall { - public getQueryPlan_call(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 { + public getQueryPlan_call(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); } @@ -575,7 +571,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clean_call method_call = new clean_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -583,7 +579,7 @@ public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) thr } public static class clean_call extends org.apache.thrift.async.TAsyncMethodCall { - public clean_call(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 { + public clean_call(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); } @@ -843,537 +839,7 @@ public clean_result getResult(I iface, clean_args args) throws org.apache.thrift } - public static class AsyncProcessor extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("execute", new execute()); - processMap.put("fetchOne", new fetchOne()); - processMap.put("fetchN", new fetchN()); - processMap.put("fetchAll", new fetchAll()); - processMap.put("getSchema", new getSchema()); - processMap.put("getThriftSchema", new getThriftSchema()); - processMap.put("getClusterStatus", new getClusterStatus()); - processMap.put("getQueryPlan", new getQueryPlan()); - processMap.put("clean", new clean()); - return processMap; - } - - public static class execute extends org.apache.thrift.AsyncProcessFunction { - public execute() { - super("execute"); - } - - public execute_args getEmptyArgsInstance() { - return new execute_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - execute_result result = new execute_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - execute_result result = new execute_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, execute_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.execute(args.query,resultHandler); - } - } - - public static class fetchOne extends org.apache.thrift.AsyncProcessFunction { - public fetchOne() { - super("fetchOne"); - } - - public fetchOne_args getEmptyArgsInstance() { - return new fetchOne_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - fetchOne_result result = new fetchOne_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - fetchOne_result result = new fetchOne_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, fetchOne_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.fetchOne(resultHandler); - } - } - - public static class fetchN extends org.apache.thrift.AsyncProcessFunction> { - public fetchN() { - super("fetchN"); - } - - public fetchN_args getEmptyArgsInstance() { - return new fetchN_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - fetchN_result result = new fetchN_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - fetchN_result result = new fetchN_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, fetchN_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.fetchN(args.numRows,resultHandler); - } - } - - public static class fetchAll extends org.apache.thrift.AsyncProcessFunction> { - public fetchAll() { - super("fetchAll"); - } - - public fetchAll_args getEmptyArgsInstance() { - return new fetchAll_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - fetchAll_result result = new fetchAll_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - fetchAll_result result = new fetchAll_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, fetchAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.fetchAll(resultHandler); - } - } - - public static class getSchema extends org.apache.thrift.AsyncProcessFunction { - public getSchema() { - super("getSchema"); - } - - public getSchema_args getEmptyArgsInstance() { - return new getSchema_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) { - getSchema_result result = new getSchema_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getSchema_result result = new getSchema_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSchema(resultHandler); - } - } - - public static class getThriftSchema extends org.apache.thrift.AsyncProcessFunction { - public getThriftSchema() { - super("getThriftSchema"); - } - - public getThriftSchema_args getEmptyArgsInstance() { - return new getThriftSchema_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) { - getThriftSchema_result result = new getThriftSchema_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getThriftSchema_result result = new getThriftSchema_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getThriftSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getThriftSchema(resultHandler); - } - } - - public static class getClusterStatus extends org.apache.thrift.AsyncProcessFunction { - public getClusterStatus() { - super("getClusterStatus"); - } - - public getClusterStatus_args getEmptyArgsInstance() { - return new getClusterStatus_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(HiveClusterStatus o) { - getClusterStatus_result result = new getClusterStatus_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getClusterStatus_result result = new getClusterStatus_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getClusterStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getClusterStatus(resultHandler); - } - } - - public static class getQueryPlan extends org.apache.thrift.AsyncProcessFunction { - public getQueryPlan() { - super("getQueryPlan"); - } - - public getQueryPlan_args getEmptyArgsInstance() { - return new getQueryPlan_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.ql.plan.api.QueryPlan o) { - getQueryPlan_result result = new getQueryPlan_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getQueryPlan_result result = new getQueryPlan_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getQueryPlan_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getQueryPlan(resultHandler); - } - } - - public static class clean extends org.apache.thrift.AsyncProcessFunction { - public clean() { - super("clean"); - } - - public clean_args getEmptyArgsInstance() { - return new clean_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - clean_result result = new clean_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - clean_result result = new clean_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, clean_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.clean(resultHandler); - } - } - - } - - public static class execute_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class execute_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -1567,30 +1033,30 @@ public boolean equals(execute_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_query = true && (isSetQuery()); - list.add(present_query); + builder.append(present_query); if (present_query) - list.add(query); + builder.append(query); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + execute_args typedOther = (execute_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); if (lastComparison != 0) { return lastComparison; } @@ -1731,7 +1197,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, execute_args struct) } - public static class execute_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class execute_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -1925,30 +1391,30 @@ public boolean equals(execute_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(execute_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + execute_result typedOther = (execute_result)other; - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2091,7 +1557,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, execute_result struc } - public static class fetchOne_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchOne_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_args"); @@ -2221,18 +1687,18 @@ public boolean equals(fetchOne_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchOne_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchOne_args typedOther = (fetchOne_args)other; return 0; } @@ -2337,7 +1803,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchOne_args struct } - public static class fetchOne_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchOne_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -2589,45 +2055,45 @@ public boolean equals(fetchOne_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchOne_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchOne_result typedOther = (fetchOne_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2801,7 +2267,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchOne_result stru } - public static class fetchN_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchN_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_args"); private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)1); @@ -2951,7 +2417,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case NUM_ROWS: - return getNumRows(); + return Integer.valueOf(getNumRows()); } throw new IllegalStateException(); @@ -2997,30 +2463,30 @@ public boolean equals(fetchN_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_numRows = true; - list.add(present_numRows); + builder.append(present_numRows); if (present_numRows) - list.add(numRows); + builder.append(numRows); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchN_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchN_args typedOther = (fetchN_args)other; - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(typedOther.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } if (isSetNumRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows); if (lastComparison != 0) { return lastComparison; } @@ -3157,7 +2623,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_args struct) } - public static class fetchN_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchN_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_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); @@ -3263,7 +2729,10 @@ public fetchN_result( */ public fetchN_result(fetchN_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetEx()) { @@ -3426,45 +2895,45 @@ public boolean equals(fetchN_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchN_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchN_result typedOther = (fetchN_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -3552,11 +3021,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fetchN_result struc { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.success = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - struct.success.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + struct.success.add(_elem2); } iprot.readListEnd(); } @@ -3651,11 +3120,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_result struct { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list5.size); - String _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = iprot.readString(); - struct.success.add(_elem6); + String _elem7; // required + _elem7 = iprot.readString(); + struct.success.add(_elem7); } } struct.setSuccessIsSet(true); @@ -3670,7 +3139,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_result struct } - public static class fetchAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_args"); @@ -3800,18 +3269,18 @@ public boolean equals(fetchAll_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchAll_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchAll_args typedOther = (fetchAll_args)other; return 0; } @@ -3916,7 +3385,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_args struct } - public static class fetchAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_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); @@ -4022,7 +3491,10 @@ public fetchAll_result( */ public fetchAll_result(fetchAll_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetEx()) { @@ -4185,45 +3657,45 @@ public boolean equals(fetchAll_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchAll_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchAll_result typedOther = (fetchAll_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -4311,11 +3783,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fetchAll_result str { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.success = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.success.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.success.add(_elem10); } iprot.readListEnd(); } @@ -4410,11 +3882,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_result stru { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list13.size); - String _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - _elem14 = iprot.readString(); - struct.success.add(_elem14); + String _elem15; // required + _elem15 = iprot.readString(); + struct.success.add(_elem15); } } struct.setSuccessIsSet(true); @@ -4429,7 +3901,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_result stru } - public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args"); @@ -4559,18 +4031,18 @@ public boolean equals(getSchema_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getSchema_args typedOther = (getSchema_args)other; return 0; } @@ -4675,7 +4147,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_args struc } - public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -4927,45 +4399,45 @@ public boolean equals(getSchema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getSchema_result typedOther = (getSchema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5144,7 +4616,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_result str } - public static class getThriftSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getThriftSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_args"); @@ -5274,18 +4746,18 @@ public boolean equals(getThriftSchema_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getThriftSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getThriftSchema_args typedOther = (getThriftSchema_args)other; return 0; } @@ -5390,7 +4862,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getThriftSchema_args } - public static class getThriftSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getThriftSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -5642,45 +5114,45 @@ public boolean equals(getThriftSchema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getThriftSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getThriftSchema_result typedOther = (getThriftSchema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5859,7 +5331,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getThriftSchema_resu } - public static class getClusterStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getClusterStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_args"); @@ -5989,18 +5461,18 @@ public boolean equals(getClusterStatus_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getClusterStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getClusterStatus_args typedOther = (getClusterStatus_args)other; return 0; } @@ -6105,7 +5577,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getClusterStatus_arg } - public static class getClusterStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getClusterStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -6357,45 +5829,45 @@ public boolean equals(getClusterStatus_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getClusterStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getClusterStatus_result typedOther = (getClusterStatus_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -6574,7 +6046,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getClusterStatus_res } - public static class getQueryPlan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getQueryPlan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_args"); @@ -6704,18 +6176,18 @@ public boolean equals(getQueryPlan_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getQueryPlan_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getQueryPlan_args typedOther = (getQueryPlan_args)other; return 0; } @@ -6820,7 +6292,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_args st } - public static class getQueryPlan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getQueryPlan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -7072,45 +6544,45 @@ public boolean equals(getQueryPlan_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getQueryPlan_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getQueryPlan_result typedOther = (getQueryPlan_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -7289,7 +6761,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_result } - public static class clean_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clean_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_args"); @@ -7419,18 +6891,18 @@ public boolean equals(clean_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clean_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clean_args typedOther = (clean_args)other; return 0; } @@ -7535,7 +7007,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, clean_args struct) t } - public static class clean_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clean_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_result"); @@ -7665,18 +7137,18 @@ public boolean equals(clean_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clean_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clean_result typedOther = (clean_result)other; return 0; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java index 0fb33c7..6323d34 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TArrayTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TArrayTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TArrayTypeEntry"); private static final org.apache.thrift.protocol.TField OBJECT_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("objectTypePtr", org.apache.thrift.protocol.TType.I32, (short)1); @@ -185,7 +181,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case OBJECT_TYPE_PTR: - return getObjectTypePtr(); + return Integer.valueOf(getObjectTypePtr()); } throw new IllegalStateException(); @@ -231,30 +227,30 @@ public boolean equals(TArrayTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_objectTypePtr = true; - list.add(present_objectTypePtr); + builder.append(present_objectTypePtr); if (present_objectTypePtr) - list.add(objectTypePtr); + builder.append(objectTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TArrayTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TArrayTypeEntry typedOther = (TArrayTypeEntry)other; - lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(other.isSetObjectTypePtr()); + lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(typedOther.isSetObjectTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, other.objectTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, typedOther.objectTypePtr); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java index 788bc89..1ac28a2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TBinaryColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBinaryColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBinaryColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TBinaryColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,17 @@ public TBinaryColumn( */ public TBinaryColumn(TBinaryColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (ByteBuffer other_element : other.values) { + ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); +; + __this__values.add(temp_binary_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +205,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +315,45 @@ public boolean equals(TBinaryColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBinaryColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBinaryColumn typedOther = (TBinaryColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -380,7 +382,7 @@ public String toString() { if (this.values == null) { sb.append("null"); } else { - org.apache.thrift.TBaseHelper.toString(this.values, sb); + sb.append(this.values); } first = false; if (!first) sb.append(", "); @@ -447,11 +449,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TBinaryColumn struc { org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); struct.values = new ArrayList(_list110.size); - ByteBuffer _elem111; - for (int _i112 = 0; _i112 < _list110.size; ++_i112) + for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - _elem111 = iprot.readBinary(); - struct.values.add(_elem111); + ByteBuffer _elem112; // required + _elem112 = iprot.readBinary(); + struct.values.add(_elem112); } iprot.readListEnd(); } @@ -531,11 +533,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struct { org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list115.size); - ByteBuffer _elem116; - for (int _i117 = 0; _i117 < _list115.size; ++_i117) + for (int _i116 = 0; _i116 < _list115.size; ++_i116) { - _elem116 = iprot.readBinary(); - struct.values.add(_elem116); + ByteBuffer _elem117; // required + _elem117 = iprot.readBinary(); + struct.values.add(_elem117); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java index c0c5cbe..b2bda35 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TBoolColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBoolColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TBoolColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TBoolColumn( */ public TBoolColumn(TBoolColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Boolean other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TBoolColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBoolColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBoolColumn typedOther = (TBoolColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolColumn struct) { org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); struct.values = new ArrayList(_list54.size); - boolean _elem55; - for (int _i56 = 0; _i56 < _list54.size; ++_i56) + for (int _i55 = 0; _i55 < _list54.size; ++_i55) { - _elem55 = iprot.readBool(); - struct.values.add(_elem55); + boolean _elem56; // required + _elem56 = iprot.readBool(); + struct.values.add(_elem56); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct) { org.apache.thrift.protocol.TList _list59 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.values = new ArrayList(_list59.size); - boolean _elem60; - for (int _i61 = 0; _i61 < _list59.size; ++_i61) + for (int _i60 = 0; _i60 < _list59.size; ++_i60) { - _elem60 = iprot.readBool(); - struct.values.add(_elem60); + boolean _elem61; // required + _elem61 = iprot.readBool(); + struct.values.add(_elem61); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java index 3670a1e..c7495ee 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TBoolValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBoolValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return isValue(); + return Boolean.valueOf(isValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TBoolValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBoolValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBoolValue typedOther = (TBoolValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java index 85c881e..defdec0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TByteColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TByteColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TByteColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TByteColumn( */ public TByteColumn(TByteColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Byte other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TByteColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TByteColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TByteColumn typedOther = (TByteColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TByteColumn struct) { org.apache.thrift.protocol.TList _list62 = iprot.readListBegin(); struct.values = new ArrayList(_list62.size); - byte _elem63; - for (int _i64 = 0; _i64 < _list62.size; ++_i64) + for (int _i63 = 0; _i63 < _list62.size; ++_i63) { - _elem63 = iprot.readByte(); - struct.values.add(_elem63); + byte _elem64; // required + _elem64 = iprot.readByte(); + struct.values.add(_elem64); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct) { org.apache.thrift.protocol.TList _list67 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BYTE, iprot.readI32()); struct.values = new ArrayList(_list67.size); - byte _elem68; - for (int _i69 = 0; _i69 < _list67.size; ++_i69) + for (int _i68 = 0; _i68 < _list67.size; ++_i68) { - _elem68 = iprot.readByte(); - struct.values.add(_elem68); + byte _elem69; // required + _elem69 = iprot.readByte(); + struct.values.add(_elem69); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java index 82209f1..23d9693 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TByteValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TByteValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BYTE, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return getValue(); + return Byte.valueOf(getValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TByteValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TByteValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TByteValue typedOther = (TByteValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java index ded848f..54851b8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,12 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") public class TCLIService { public interface Iface { @@ -81,43 +77,43 @@ public interface AsyncIface { - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -596,7 +592,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -605,7 +601,7 @@ public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethod public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall { private TOpenSessionReq req; - public OpenSession_call(TOpenSessionReq req, 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 { + public OpenSession_call(TOpenSessionReq req, 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.req = req; } @@ -628,7 +624,7 @@ public TOpenSessionResp getResult() throws org.apache.thrift.TException { } } - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -637,7 +633,7 @@ public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMeth public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall { private TCloseSessionReq req; - public CloseSession_call(TCloseSessionReq req, 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 { + public CloseSession_call(TCloseSessionReq req, 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.req = req; } @@ -660,7 +656,7 @@ public TCloseSessionResp getResult() throws org.apache.thrift.TException { } } - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -669,7 +665,7 @@ public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetInfoReq req; - public GetInfo_call(TGetInfoReq req, 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 { + public GetInfo_call(TGetInfoReq req, 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.req = req; } @@ -692,7 +688,7 @@ public TGetInfoResp getResult() throws org.apache.thrift.TException { } } - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -701,7 +697,7 @@ public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.A public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall { private TExecuteStatementReq req; - public ExecuteStatement_call(TExecuteStatementReq req, 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 { + public ExecuteStatement_call(TExecuteStatementReq req, 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.req = req; } @@ -724,7 +720,7 @@ public TExecuteStatementResp getResult() throws org.apache.thrift.TException { } } - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -733,7 +729,7 @@ public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethod public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTypeInfoReq req; - public GetTypeInfo_call(TGetTypeInfoReq req, 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 { + public GetTypeInfo_call(TGetTypeInfoReq req, 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.req = req; } @@ -756,7 +752,7 @@ public TGetTypeInfoResp getResult() throws org.apache.thrift.TException { } } - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -765,7 +761,7 @@ public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethod public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetCatalogsReq req; - public GetCatalogs_call(TGetCatalogsReq req, 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 { + public GetCatalogs_call(TGetCatalogsReq req, 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.req = req; } @@ -788,7 +784,7 @@ public TGetCatalogsResp getResult() throws org.apache.thrift.TException { } } - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -797,7 +793,7 @@ public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCa public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetSchemasReq req; - public GetSchemas_call(TGetSchemasReq req, 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 { + public GetSchemas_call(TGetSchemasReq req, 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.req = req; } @@ -820,7 +816,7 @@ public TGetSchemasResp getResult() throws org.apache.thrift.TException { } } - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -829,7 +825,7 @@ public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCall public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTablesReq req; - public GetTables_call(TGetTablesReq req, 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 { + public GetTables_call(TGetTablesReq req, 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.req = req; } @@ -852,7 +848,7 @@ public TGetTablesResp getResult() throws org.apache.thrift.TException { } } - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -861,7 +857,7 @@ public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMe public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTableTypesReq req; - public GetTableTypes_call(TGetTableTypesReq req, 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 { + public GetTableTypes_call(TGetTableTypesReq req, 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.req = req; } @@ -884,7 +880,7 @@ public TGetTableTypesResp getResult() throws org.apache.thrift.TException { } } - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -893,7 +889,7 @@ public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCa public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetColumnsReq req; - public GetColumns_call(TGetColumnsReq req, 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 { + public GetColumns_call(TGetColumnsReq req, 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.req = req; } @@ -916,7 +912,7 @@ public TGetColumnsResp getResult() throws org.apache.thrift.TException { } } - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -925,7 +921,7 @@ public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMeth public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetFunctionsReq req; - public GetFunctions_call(TGetFunctionsReq req, 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 { + public GetFunctions_call(TGetFunctionsReq req, 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.req = req; } @@ -948,7 +944,7 @@ public TGetFunctionsResp getResult() throws org.apache.thrift.TException { } } - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -957,7 +953,7 @@ public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.asy public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetOperationStatusReq req; - public GetOperationStatus_call(TGetOperationStatusReq req, 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 { + public GetOperationStatus_call(TGetOperationStatusReq req, 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.req = req; } @@ -980,7 +976,7 @@ public TGetOperationStatusResp getResult() throws org.apache.thrift.TException { } } - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -989,7 +985,7 @@ public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.Asy public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall { private TCancelOperationReq req; - public CancelOperation_call(TCancelOperationReq req, 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 { + public CancelOperation_call(TCancelOperationReq req, 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.req = req; } @@ -1012,7 +1008,7 @@ public TCancelOperationResp getResult() throws org.apache.thrift.TException { } } - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1021,7 +1017,7 @@ public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.Async public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall { private TCloseOperationReq req; - public CloseOperation_call(TCloseOperationReq req, 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 { + public CloseOperation_call(TCloseOperationReq req, 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.req = req; } @@ -1044,7 +1040,7 @@ public TCloseOperationResp getResult() throws org.apache.thrift.TException { } } - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1053,7 +1049,7 @@ public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetResultSetMetadataReq req; - public GetResultSetMetadata_call(TGetResultSetMetadataReq req, 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 { + public GetResultSetMetadata_call(TGetResultSetMetadataReq req, 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.req = req; } @@ -1076,7 +1072,7 @@ public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException } } - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1085,7 +1081,7 @@ public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMeth public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall { private TFetchResultsReq req; - public FetchResults_call(TFetchResultsReq req, 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 { + public FetchResults_call(TFetchResultsReq req, 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.req = req; } @@ -1108,7 +1104,7 @@ public TFetchResultsResp getResult() throws org.apache.thrift.TException { } } - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1117,7 +1113,7 @@ public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.asy public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetDelegationTokenReq req; - public GetDelegationToken_call(TGetDelegationTokenReq req, 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 { + public GetDelegationToken_call(TGetDelegationTokenReq req, 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.req = req; } @@ -1140,7 +1136,7 @@ public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException { } } - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1149,7 +1145,7 @@ public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thri public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TCancelDelegationTokenReq req; - public CancelDelegationToken_call(TCancelDelegationTokenReq req, 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 { + public CancelDelegationToken_call(TCancelDelegationTokenReq req, 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.req = req; } @@ -1172,7 +1168,7 @@ public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TExceptio } } - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1181,7 +1177,7 @@ public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TRenewDelegationTokenReq req; - public RenewDelegationToken_call(TRenewDelegationTokenReq req, 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 { + public RenewDelegationToken_call(TRenewDelegationTokenReq req, 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.req = req; } @@ -1621,1011 +1617,7 @@ public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args } - public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("OpenSession", new OpenSession()); - processMap.put("CloseSession", new CloseSession()); - processMap.put("GetInfo", new GetInfo()); - processMap.put("ExecuteStatement", new ExecuteStatement()); - processMap.put("GetTypeInfo", new GetTypeInfo()); - processMap.put("GetCatalogs", new GetCatalogs()); - processMap.put("GetSchemas", new GetSchemas()); - processMap.put("GetTables", new GetTables()); - processMap.put("GetTableTypes", new GetTableTypes()); - processMap.put("GetColumns", new GetColumns()); - processMap.put("GetFunctions", new GetFunctions()); - processMap.put("GetOperationStatus", new GetOperationStatus()); - processMap.put("CancelOperation", new CancelOperation()); - processMap.put("CloseOperation", new CloseOperation()); - processMap.put("GetResultSetMetadata", new GetResultSetMetadata()); - processMap.put("FetchResults", new FetchResults()); - processMap.put("GetDelegationToken", new GetDelegationToken()); - processMap.put("CancelDelegationToken", new CancelDelegationToken()); - processMap.put("RenewDelegationToken", new RenewDelegationToken()); - return processMap; - } - - public static class OpenSession extends org.apache.thrift.AsyncProcessFunction { - public OpenSession() { - super("OpenSession"); - } - - public OpenSession_args getEmptyArgsInstance() { - return new OpenSession_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TOpenSessionResp o) { - OpenSession_result result = new OpenSession_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - OpenSession_result result = new OpenSession_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, OpenSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.OpenSession(args.req,resultHandler); - } - } - - public static class CloseSession extends org.apache.thrift.AsyncProcessFunction { - public CloseSession() { - super("CloseSession"); - } - - public CloseSession_args getEmptyArgsInstance() { - return new CloseSession_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCloseSessionResp o) { - CloseSession_result result = new CloseSession_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - CloseSession_result result = new CloseSession_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, CloseSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CloseSession(args.req,resultHandler); - } - } - - public static class GetInfo extends org.apache.thrift.AsyncProcessFunction { - public GetInfo() { - super("GetInfo"); - } - - public GetInfo_args getEmptyArgsInstance() { - return new GetInfo_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetInfoResp o) { - GetInfo_result result = new GetInfo_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetInfo_result result = new GetInfo_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetInfo(args.req,resultHandler); - } - } - - public static class ExecuteStatement extends org.apache.thrift.AsyncProcessFunction { - public ExecuteStatement() { - super("ExecuteStatement"); - } - - public ExecuteStatement_args getEmptyArgsInstance() { - return new ExecuteStatement_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TExecuteStatementResp o) { - ExecuteStatement_result result = new ExecuteStatement_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - ExecuteStatement_result result = new ExecuteStatement_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, ExecuteStatement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.ExecuteStatement(args.req,resultHandler); - } - } - - public static class GetTypeInfo extends org.apache.thrift.AsyncProcessFunction { - public GetTypeInfo() { - super("GetTypeInfo"); - } - - public GetTypeInfo_args getEmptyArgsInstance() { - return new GetTypeInfo_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTypeInfoResp o) { - GetTypeInfo_result result = new GetTypeInfo_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetTypeInfo_result result = new GetTypeInfo_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetTypeInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTypeInfo(args.req,resultHandler); - } - } - - public static class GetCatalogs extends org.apache.thrift.AsyncProcessFunction { - public GetCatalogs() { - super("GetCatalogs"); - } - - public GetCatalogs_args getEmptyArgsInstance() { - return new GetCatalogs_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetCatalogsResp o) { - GetCatalogs_result result = new GetCatalogs_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetCatalogs_result result = new GetCatalogs_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetCatalogs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetCatalogs(args.req,resultHandler); - } - } - - public static class GetSchemas extends org.apache.thrift.AsyncProcessFunction { - public GetSchemas() { - super("GetSchemas"); - } - - public GetSchemas_args getEmptyArgsInstance() { - return new GetSchemas_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetSchemasResp o) { - GetSchemas_result result = new GetSchemas_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetSchemas_result result = new GetSchemas_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetSchemas_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetSchemas(args.req,resultHandler); - } - } - - public static class GetTables extends org.apache.thrift.AsyncProcessFunction { - public GetTables() { - super("GetTables"); - } - - public GetTables_args getEmptyArgsInstance() { - return new GetTables_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTablesResp o) { - GetTables_result result = new GetTables_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetTables_result result = new GetTables_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetTables_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTables(args.req,resultHandler); - } - } - - public static class GetTableTypes extends org.apache.thrift.AsyncProcessFunction { - public GetTableTypes() { - super("GetTableTypes"); - } - - public GetTableTypes_args getEmptyArgsInstance() { - return new GetTableTypes_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTableTypesResp o) { - GetTableTypes_result result = new GetTableTypes_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetTableTypes_result result = new GetTableTypes_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetTableTypes_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTableTypes(args.req,resultHandler); - } - } - - public static class GetColumns extends org.apache.thrift.AsyncProcessFunction { - public GetColumns() { - super("GetColumns"); - } - - public GetColumns_args getEmptyArgsInstance() { - return new GetColumns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetColumnsResp o) { - GetColumns_result result = new GetColumns_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetColumns_result result = new GetColumns_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetColumns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetColumns(args.req,resultHandler); - } - } - - public static class GetFunctions extends org.apache.thrift.AsyncProcessFunction { - public GetFunctions() { - super("GetFunctions"); - } - - public GetFunctions_args getEmptyArgsInstance() { - return new GetFunctions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetFunctionsResp o) { - GetFunctions_result result = new GetFunctions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetFunctions_result result = new GetFunctions_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetFunctions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetFunctions(args.req,resultHandler); - } - } - - public static class GetOperationStatus extends org.apache.thrift.AsyncProcessFunction { - public GetOperationStatus() { - super("GetOperationStatus"); - } - - public GetOperationStatus_args getEmptyArgsInstance() { - return new GetOperationStatus_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetOperationStatusResp o) { - GetOperationStatus_result result = new GetOperationStatus_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetOperationStatus_result result = new GetOperationStatus_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetOperationStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetOperationStatus(args.req,resultHandler); - } - } - - public static class CancelOperation extends org.apache.thrift.AsyncProcessFunction { - public CancelOperation() { - super("CancelOperation"); - } - - public CancelOperation_args getEmptyArgsInstance() { - return new CancelOperation_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCancelOperationResp o) { - CancelOperation_result result = new CancelOperation_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - CancelOperation_result result = new CancelOperation_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, CancelOperation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CancelOperation(args.req,resultHandler); - } - } - - public static class CloseOperation extends org.apache.thrift.AsyncProcessFunction { - public CloseOperation() { - super("CloseOperation"); - } - - public CloseOperation_args getEmptyArgsInstance() { - return new CloseOperation_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCloseOperationResp o) { - CloseOperation_result result = new CloseOperation_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - CloseOperation_result result = new CloseOperation_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, CloseOperation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CloseOperation(args.req,resultHandler); - } - } - - public static class GetResultSetMetadata extends org.apache.thrift.AsyncProcessFunction { - public GetResultSetMetadata() { - super("GetResultSetMetadata"); - } - - public GetResultSetMetadata_args getEmptyArgsInstance() { - return new GetResultSetMetadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetResultSetMetadataResp o) { - GetResultSetMetadata_result result = new GetResultSetMetadata_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetResultSetMetadata_result result = new GetResultSetMetadata_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetResultSetMetadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetResultSetMetadata(args.req,resultHandler); - } - } - - public static class FetchResults extends org.apache.thrift.AsyncProcessFunction { - public FetchResults() { - super("FetchResults"); - } - - public FetchResults_args getEmptyArgsInstance() { - return new FetchResults_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TFetchResultsResp o) { - FetchResults_result result = new FetchResults_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - FetchResults_result result = new FetchResults_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, FetchResults_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.FetchResults(args.req,resultHandler); - } - } - - public static class GetDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public GetDelegationToken() { - super("GetDelegationToken"); - } - - public GetDelegationToken_args getEmptyArgsInstance() { - return new GetDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetDelegationTokenResp o) { - GetDelegationToken_result result = new GetDelegationToken_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - GetDelegationToken_result result = new GetDelegationToken_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, GetDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetDelegationToken(args.req,resultHandler); - } - } - - public static class CancelDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public CancelDelegationToken() { - super("CancelDelegationToken"); - } - - public CancelDelegationToken_args getEmptyArgsInstance() { - return new CancelDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCancelDelegationTokenResp o) { - CancelDelegationToken_result result = new CancelDelegationToken_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - CancelDelegationToken_result result = new CancelDelegationToken_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, CancelDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CancelDelegationToken(args.req,resultHandler); - } - } - - public static class RenewDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public RenewDelegationToken() { - super("RenewDelegationToken"); - } - - public RenewDelegationToken_args getEmptyArgsInstance() { - return new RenewDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TRenewDelegationTokenResp o) { - RenewDelegationToken_result result = new RenewDelegationToken_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - RenewDelegationToken_result result = new RenewDelegationToken_result(); - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, RenewDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.RenewDelegationToken(args.req,resultHandler); - } - } - - } - - public static class OpenSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class OpenSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -2819,30 +1811,30 @@ public boolean equals(OpenSession_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenSession_args typedOther = (OpenSession_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -2988,7 +1980,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_args str } - public static class OpenSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class OpenSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -3182,30 +2174,30 @@ public boolean equals(OpenSession_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenSession_result typedOther = (OpenSession_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -3351,7 +2343,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_result s } - public static class CloseSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -3545,30 +2537,30 @@ public boolean equals(CloseSession_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseSession_args typedOther = (CloseSession_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -3714,7 +2706,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_args st } - public static class CloseSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -3908,30 +2900,30 @@ public boolean equals(CloseSession_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseSession_result typedOther = (CloseSession_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -4077,7 +3069,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_result } - public static class GetInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -4271,30 +3263,30 @@ public boolean equals(GetInfo_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetInfo_args typedOther = (GetInfo_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -4440,7 +3432,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) } - public static class GetInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -4634,30 +3626,30 @@ public boolean equals(GetInfo_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetInfo_result typedOther = (GetInfo_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -4803,7 +3795,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struc } - public static class ExecuteStatement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class ExecuteStatement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -4997,30 +3989,30 @@ public boolean equals(ExecuteStatement_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ExecuteStatement_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ExecuteStatement_args typedOther = (ExecuteStatement_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -5166,7 +4158,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_arg } - public static class ExecuteStatement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class ExecuteStatement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -5360,30 +4352,30 @@ public boolean equals(ExecuteStatement_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ExecuteStatement_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ExecuteStatement_result typedOther = (ExecuteStatement_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -5529,7 +4521,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_res } - public static class GetTypeInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTypeInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -5723,30 +4715,30 @@ public boolean equals(GetTypeInfo_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTypeInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTypeInfo_args typedOther = (GetTypeInfo_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -5892,7 +4884,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args str } - public static class GetTypeInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTypeInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -6086,30 +5078,30 @@ public boolean equals(GetTypeInfo_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTypeInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTypeInfo_result typedOther = (GetTypeInfo_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -6255,7 +5247,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result s } - public static class GetCatalogs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetCatalogs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -6449,30 +5441,30 @@ public boolean equals(GetCatalogs_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetCatalogs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetCatalogs_args typedOther = (GetCatalogs_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -6618,7 +5610,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args str } - public static class GetCatalogs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetCatalogs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -6812,30 +5804,30 @@ public boolean equals(GetCatalogs_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetCatalogs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetCatalogs_result typedOther = (GetCatalogs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -6981,7 +5973,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result s } - public static class GetSchemas_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetSchemas_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -7175,30 +6167,30 @@ public boolean equals(GetSchemas_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetSchemas_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetSchemas_args typedOther = (GetSchemas_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -7344,7 +6336,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args stru } - public static class GetSchemas_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetSchemas_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -7538,30 +6530,30 @@ public boolean equals(GetSchemas_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetSchemas_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetSchemas_result typedOther = (GetSchemas_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -7707,7 +6699,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result st } - public static class GetTables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -7901,30 +6893,30 @@ public boolean equals(GetTables_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTables_args typedOther = (GetTables_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -8070,7 +7062,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_args struc } - public static class GetTables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -8264,30 +7256,30 @@ public boolean equals(GetTables_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTables_result typedOther = (GetTables_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -8433,7 +7425,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_result str } - public static class GetTableTypes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTableTypes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -8627,30 +7619,30 @@ public boolean equals(GetTableTypes_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTableTypes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTableTypes_args typedOther = (GetTableTypes_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -8796,7 +7788,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args s } - public static class GetTableTypes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTableTypes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -8990,30 +7982,30 @@ public boolean equals(GetTableTypes_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTableTypes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTableTypes_result typedOther = (GetTableTypes_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -9159,7 +8151,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result } - public static class GetColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -9353,30 +8345,30 @@ public boolean equals(GetColumns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetColumns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetColumns_args typedOther = (GetColumns_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -9522,7 +8514,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args stru } - public static class GetColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -9716,30 +8708,30 @@ public boolean equals(GetColumns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetColumns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetColumns_result typedOther = (GetColumns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -9885,7 +8877,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_result st } - public static class GetFunctions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetFunctions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -10079,30 +9071,30 @@ public boolean equals(GetFunctions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFunctions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFunctions_args typedOther = (GetFunctions_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -10248,7 +9240,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args st } - public static class GetFunctions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetFunctions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -10442,30 +9434,30 @@ public boolean equals(GetFunctions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFunctions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFunctions_result typedOther = (GetFunctions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -10611,7 +9603,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result } - public static class GetOperationStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetOperationStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -10805,30 +9797,30 @@ public boolean equals(GetOperationStatus_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOperationStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOperationStatus_args typedOther = (GetOperationStatus_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -10974,7 +9966,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_a } - public static class GetOperationStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetOperationStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -11168,30 +10160,30 @@ public boolean equals(GetOperationStatus_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOperationStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOperationStatus_result typedOther = (GetOperationStatus_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -11337,7 +10329,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_r } - public static class CancelOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -11531,30 +10523,30 @@ public boolean equals(CancelOperation_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelOperation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelOperation_args typedOther = (CancelOperation_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -11700,7 +10692,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args } - public static class CancelOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -11894,30 +10886,30 @@ public boolean equals(CancelOperation_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelOperation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelOperation_result typedOther = (CancelOperation_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -12063,7 +11055,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_resu } - public static class CloseOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12257,30 +11249,30 @@ public boolean equals(CloseOperation_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseOperation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseOperation_args typedOther = (CloseOperation_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -12426,7 +11418,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args } - public static class CloseOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -12620,30 +11612,30 @@ public boolean equals(CloseOperation_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseOperation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseOperation_result typedOther = (CloseOperation_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -12789,7 +11781,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_resul } - public static class GetResultSetMetadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetResultSetMetadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12983,30 +11975,30 @@ public boolean equals(GetResultSetMetadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetResultSetMetadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetResultSetMetadata_args typedOther = (GetResultSetMetadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -13152,7 +12144,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata } - public static class GetResultSetMetadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetResultSetMetadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -13346,30 +12338,30 @@ public boolean equals(GetResultSetMetadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetResultSetMetadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetResultSetMetadata_result typedOther = (GetResultSetMetadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -13515,7 +12507,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata } - public static class FetchResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class FetchResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -13709,30 +12701,30 @@ public boolean equals(FetchResults_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FetchResults_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FetchResults_args typedOther = (FetchResults_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -13878,7 +12870,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_args st } - public static class FetchResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class FetchResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -14072,30 +13064,30 @@ public boolean equals(FetchResults_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FetchResults_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FetchResults_result typedOther = (FetchResults_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14241,7 +13233,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_result } - public static class GetDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -14435,30 +13427,30 @@ public boolean equals(GetDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetDelegationToken_args typedOther = (GetDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -14604,7 +13596,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_a } - public static class GetDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -14798,30 +13790,30 @@ public boolean equals(GetDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetDelegationToken_result typedOther = (GetDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14967,7 +13959,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_r } - public static class CancelDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -15161,30 +14153,30 @@ public boolean equals(CancelDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelDelegationToken_args typedOther = (CancelDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -15330,7 +14322,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToke } - public static class CancelDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -15524,30 +14516,30 @@ public boolean equals(CancelDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelDelegationToken_result typedOther = (CancelDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -15693,7 +14685,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToke } - public static class RenewDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class RenewDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -15887,30 +14879,30 @@ public boolean equals(RenewDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RenewDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RenewDelegationToken_args typedOther = (RenewDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -16056,7 +15048,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken } - public static class RenewDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class RenewDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -16250,30 +15242,30 @@ public boolean equals(RenewDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RenewDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RenewDelegationToken_result typedOther = (RenewDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java index 3f46013..25a38b1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TCLIServiceConstants { public static final Set PRIMITIVE_TYPES = new HashSet(); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java index fde0c47..e23fcdd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCancelDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TCancelDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelDelegationTokenReq typedOther = (TCancelDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java index 65d0551..77c9ee7 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCancelDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelDelegationTokenResp typedOther = (TCancelDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java index f532d09..45eac48 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCancelOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelOperationReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelOperationReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelOperationReq typedOther = (TCancelOperationReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java index f7f8325..2a39414 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCancelOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelOperationResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelOperationResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelOperationResp typedOther = (TCancelOperationResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java index c0c2c2c..0cbb7cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCloseOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseOperationReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseOperationReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseOperationReq typedOther = (TCloseOperationReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java index 83bcd03..7334d67 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCloseOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseOperationResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseOperationResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseOperationResp typedOther = (TCloseOperationResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java index d9c989a..027e829 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCloseSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseSessionReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseSessionReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseSessionReq typedOther = (TCloseSessionReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java index 7c64d4d..168c8fc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TCloseSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseSessionResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseSessionResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseSessionResp typedOther = (TCloseSessionResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java index 082b9b4..bfe50c7 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TColumn extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn"); private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -348,7 +345,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -701,19 +697,19 @@ public int compareTo(TColumn other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java index b01fadb..247db64 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TColumnDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TColumnDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnDesc"); private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("columnName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __POSITION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.COMMENT}; + private _Fields optionals[] = {_Fields.COMMENT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -322,7 +318,7 @@ public Object getFieldValue(_Fields field) { return getTypeDesc(); case POSITION: - return getPosition(); + return Integer.valueOf(getPosition()); case COMMENT: return getComment(); @@ -404,75 +400,75 @@ public boolean equals(TColumnDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); boolean present_typeDesc = true && (isSetTypeDesc()); - list.add(present_typeDesc); + builder.append(present_typeDesc); if (present_typeDesc) - list.add(typeDesc); + builder.append(typeDesc); boolean present_position = true; - list.add(present_position); + builder.append(present_position); if (present_position) - list.add(position); + builder.append(position); boolean present_comment = true && (isSetComment()); - list.add(present_comment); + builder.append(present_comment); if (present_comment) - list.add(comment); + builder.append(comment); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TColumnDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TColumnDesc typedOther = (TColumnDesc)other; - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTypeDesc()).compareTo(other.isSetTypeDesc()); + lastComparison = Boolean.valueOf(isSetTypeDesc()).compareTo(typedOther.isSetTypeDesc()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeDesc, other.typeDesc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeDesc, typedOther.typeDesc); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPosition()).compareTo(other.isSetPosition()); + lastComparison = Boolean.valueOf(isSetPosition()).compareTo(typedOther.isSetPosition()); if (lastComparison != 0) { return lastComparison; } if (isSetPosition()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.position, other.position); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.position, typedOther.position); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); + lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java index 2c2c6bb..44da2cd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TColumnValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue"); private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -321,7 +318,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -640,19 +636,19 @@ public int compareTo(TColumnValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java index dffad80..88926c8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TDoubleColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TDoubleColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TDoubleColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TDoubleColumn( */ public TDoubleColumn(TDoubleColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Double other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TDoubleColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TDoubleColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TDoubleColumn typedOther = (TDoubleColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TDoubleColumn struc { org.apache.thrift.protocol.TList _list94 = iprot.readListBegin(); struct.values = new ArrayList(_list94.size); - double _elem95; - for (int _i96 = 0; _i96 < _list94.size; ++_i96) + for (int _i95 = 0; _i95 < _list94.size; ++_i95) { - _elem95 = iprot.readDouble(); - struct.values.add(_elem95); + double _elem96; // required + _elem96 = iprot.readDouble(); + struct.values.add(_elem96); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TDoubleColumn struct { org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, iprot.readI32()); struct.values = new ArrayList(_list99.size); - double _elem100; - for (int _i101 = 0; _i101 < _list99.size; ++_i101) + for (int _i100 = 0; _i100 < _list99.size; ++_i100) { - _elem100 = iprot.readDouble(); - struct.values.add(_elem100); + double _elem101; // required + _elem101 = iprot.readDouble(); + struct.values.add(_elem101); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java index 6524f93..d215736 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TDoubleValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TDoubleValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.DOUBLE, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return getValue(); + return Double.valueOf(getValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TDoubleValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TDoubleValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TDoubleValue typedOther = (TDoubleValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java index 30cf243..4f157ad 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TExecuteStatementReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TExecuteStatementReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __RUNASYNC_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CONF_OVERLAY,_Fields.RUN_ASYNC}; + private _Fields optionals[] = {_Fields.CONF_OVERLAY,_Fields.RUN_ASYNC}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -168,7 +164,18 @@ public TExecuteStatementReq(TExecuteStatementReq other) { this.statement = other.statement; } if (other.isSetConfOverlay()) { - Map __this__confOverlay = new HashMap(other.confOverlay); + Map __this__confOverlay = new HashMap(); + for (Map.Entry other_element : other.confOverlay.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__confOverlay_copy_key = other_element_key; + + String __this__confOverlay_copy_value = other_element_value; + + __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); + } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; @@ -338,7 +345,7 @@ public Object getFieldValue(_Fields field) { return getConfOverlay(); case RUN_ASYNC: - return isRunAsync(); + return Boolean.valueOf(isRunAsync()); } throw new IllegalStateException(); @@ -417,75 +424,75 @@ public boolean equals(TExecuteStatementReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); - list.add(present_statement); + builder.append(present_statement); if (present_statement) - list.add(statement); + builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); - list.add(present_confOverlay); + builder.append(present_confOverlay); if (present_confOverlay) - list.add(confOverlay); + builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); - list.add(present_runAsync); + builder.append(present_runAsync); if (present_runAsync) - list.add(runAsync); + builder.append(runAsync); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TExecuteStatementReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TExecuteStatementReq typedOther = (TExecuteStatementReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatement()).compareTo(other.isSetStatement()); + lastComparison = Boolean.valueOf(isSetStatement()).compareTo(typedOther.isSetStatement()); if (lastComparison != 0) { return lastComparison; } if (isSetStatement()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statement, other.statement); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statement, typedOther.statement); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfOverlay()).compareTo(other.isSetConfOverlay()); + lastComparison = Boolean.valueOf(isSetConfOverlay()).compareTo(typedOther.isSetConfOverlay()); if (lastComparison != 0) { return lastComparison; } if (isSetConfOverlay()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confOverlay, other.confOverlay); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confOverlay, typedOther.confOverlay); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunAsync()).compareTo(other.isSetRunAsync()); + lastComparison = Boolean.valueOf(isSetRunAsync()).compareTo(typedOther.isSetRunAsync()); if (lastComparison != 0) { return lastComparison; } if (isSetRunAsync()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAsync, other.runAsync); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAsync, typedOther.runAsync); if (lastComparison != 0) { return lastComparison; } @@ -619,13 +626,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TExecuteStatementRe { org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin(); struct.confOverlay = new HashMap(2*_map162.size); - String _key163; - String _val164; - for (int _i165 = 0; _i165 < _map162.size; ++_i165) + for (int _i163 = 0; _i163 < _map162.size; ++_i163) { - _key163 = iprot.readString(); - _val164 = iprot.readString(); - struct.confOverlay.put(_key163, _val164); + String _key164; // required + String _val165; // required + _key164 = iprot.readString(); + _val165 = iprot.readString(); + struct.confOverlay.put(_key164, _val165); } iprot.readMapEnd(); } @@ -740,13 +747,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq { org.apache.thrift.protocol.TMap _map168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.confOverlay = new HashMap(2*_map168.size); - String _key169; - String _val170; - for (int _i171 = 0; _i171 < _map168.size; ++_i171) + for (int _i169 = 0; _i169 < _map168.size; ++_i169) { - _key169 = iprot.readString(); - _val170 = iprot.readString(); - struct.confOverlay.put(_key169, _val170); + String _key170; // required + String _val171; // required + _key170 = iprot.readString(); + _val171 = iprot.readString(); + struct.confOverlay.put(_key170, _val171); } } struct.setConfOverlayIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java index 0b9aa0f..fdde51e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TExecuteStatementResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TExecuteStatementResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TExecuteStatementResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TExecuteStatementResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TExecuteStatementResp typedOther = (TExecuteStatementResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java index d3fd3f0..b2a22ef 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java index 23cfd54..068711f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TFetchResultsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TFetchResultsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { private static final int __MAXROWS_ISSET_ID = 0; private static final int __FETCHTYPE_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.FETCH_TYPE}; + private _Fields optionals[] = {_Fields.FETCH_TYPE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -338,10 +334,10 @@ public Object getFieldValue(_Fields field) { return getOrientation(); case MAX_ROWS: - return getMaxRows(); + return Long.valueOf(getMaxRows()); case FETCH_TYPE: - return getFetchType(); + return Short.valueOf(getFetchType()); } throw new IllegalStateException(); @@ -420,75 +416,75 @@ public boolean equals(TFetchResultsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); boolean present_orientation = true && (isSetOrientation()); - list.add(present_orientation); + builder.append(present_orientation); if (present_orientation) - list.add(orientation.getValue()); + builder.append(orientation.getValue()); boolean present_maxRows = true; - list.add(present_maxRows); + builder.append(present_maxRows); if (present_maxRows) - list.add(maxRows); + builder.append(maxRows); boolean present_fetchType = true && (isSetFetchType()); - list.add(present_fetchType); + builder.append(present_fetchType); if (present_fetchType) - list.add(fetchType); + builder.append(fetchType); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TFetchResultsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TFetchResultsReq typedOther = (TFetchResultsReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrientation()).compareTo(other.isSetOrientation()); + lastComparison = Boolean.valueOf(isSetOrientation()).compareTo(typedOther.isSetOrientation()); if (lastComparison != 0) { return lastComparison; } if (isSetOrientation()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orientation, other.orientation); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orientation, typedOther.orientation); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxRows()).compareTo(other.isSetMaxRows()); + lastComparison = Boolean.valueOf(isSetMaxRows()).compareTo(typedOther.isSetMaxRows()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxRows, other.maxRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxRows, typedOther.maxRows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFetchType()).compareTo(other.isSetFetchType()); + lastComparison = Boolean.valueOf(isSetFetchType()).compareTo(typedOther.isSetFetchType()); if (lastComparison != 0) { return lastComparison; } if (isSetFetchType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchType, other.fetchType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchType, typedOther.fetchType); if (lastComparison != 0) { return lastComparison; } @@ -609,7 +605,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TFetchResultsReq st break; case 2: // ORIENTATION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32()); + struct.orientation = TFetchOrientation.findByValue(iprot.readI32()); struct.setOrientationIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -698,7 +694,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TFetchResultsReq str struct.operationHandle = new TOperationHandle(); struct.operationHandle.read(iprot); struct.setOperationHandleIsSet(true); - struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32()); + struct.orientation = TFetchOrientation.findByValue(iprot.readI32()); struct.setOrientationIsSet(true); struct.maxRows = iprot.readI64(); struct.setMaxRowsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java index 2d325fc..19991f1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TFetchResultsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TFetchResultsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -119,7 +115,7 @@ public String getFieldName() { // isset id assignments private static final int __HASMOREROWS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS}; + private _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -272,7 +268,7 @@ public Object getFieldValue(_Fields field) { return getStatus(); case HAS_MORE_ROWS: - return isHasMoreRows(); + return Boolean.valueOf(isHasMoreRows()); case RESULTS: return getResults(); @@ -343,60 +339,60 @@ public boolean equals(TFetchResultsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_hasMoreRows = true && (isSetHasMoreRows()); - list.add(present_hasMoreRows); + builder.append(present_hasMoreRows); if (present_hasMoreRows) - list.add(hasMoreRows); + builder.append(hasMoreRows); boolean present_results = true && (isSetResults()); - list.add(present_results); + builder.append(present_results); if (present_results) - list.add(results); + builder.append(results); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TFetchResultsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TFetchResultsResp typedOther = (TFetchResultsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(other.isSetHasMoreRows()); + lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(typedOther.isSetHasMoreRows()); if (lastComparison != 0) { return lastComparison; } if (isSetHasMoreRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, other.hasMoreRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, typedOther.hasMoreRows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetResults()).compareTo(other.isSetResults()); + lastComparison = Boolean.valueOf(isSetResults()).compareTo(typedOther.isSetResults()); if (lastComparison != 0) { return lastComparison; } if (isSetResults()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, other.results); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, typedOther.results); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java index 02e5cbc..cfd157f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetCatalogsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetCatalogsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetCatalogsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetCatalogsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetCatalogsReq typedOther = (TGetCatalogsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java index 2372d3a..1c5a354 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetCatalogsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetCatalogsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetCatalogsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetCatalogsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetCatalogsResp typedOther = (TGetCatalogsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java index 60872f4..a2c793b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetColumnsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetColumnsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -454,90 +450,90 @@ public boolean equals(TGetColumnsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetColumnsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetColumnsReq typedOther = (TGetColumnsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java index 7992a24..d6cf1be 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetColumnsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetColumnsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetColumnsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetColumnsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetColumnsResp typedOther = (TGetColumnsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java index 363bf4b..6c6bb00 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -345,60 +341,60 @@ public boolean equals(TGetDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_owner = true && (isSetOwner()); - list.add(present_owner); + builder.append(present_owner); if (present_owner) - list.add(owner); + builder.append(owner); boolean present_renewer = true && (isSetRenewer()); - list.add(present_renewer); + builder.append(present_renewer); if (present_renewer) - list.add(renewer); + builder.append(renewer); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetDelegationTokenReq typedOther = (TGetDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwner()).compareTo(other.isSetOwner()); + lastComparison = Boolean.valueOf(isSetOwner()).compareTo(typedOther.isSetOwner()); if (lastComparison != 0) { return lastComparison; } if (isSetOwner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, other.owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(other.isSetRenewer()); + lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(typedOther.isSetRenewer()); if (lastComparison != 0) { return lastComparison; } if (isSetRenewer()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, other.renewer); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, typedOther.renewer); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java index 5234dcd..d14c5e0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.DELEGATION_TOKEN}; + private _Fields optionals[] = {_Fields.DELEGATION_TOKEN}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetDelegationTokenResp typedOther = (TGetDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java index d366529..ff45ee0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetFunctionsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetFunctionsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -122,7 +118,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -400,75 +396,75 @@ public boolean equals(TGetFunctionsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_functionName = true && (isSetFunctionName()); - list.add(present_functionName); + builder.append(present_functionName); if (present_functionName) - list.add(functionName); + builder.append(functionName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetFunctionsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetFunctionsReq typedOther = (TGetFunctionsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(other.isSetFunctionName()); + lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(typedOther.isSetFunctionName()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java index 6ef2960..3adafda 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetFunctionsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetFunctionsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetFunctionsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetFunctionsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetFunctionsResp typedOther = (TGetFunctionsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java index 80b80c7..0139bf0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -299,45 +295,45 @@ public boolean equals(TGetInfoReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_infoType = true && (isSetInfoType()); - list.add(present_infoType); + builder.append(present_infoType); if (present_infoType) - list.add(infoType.getValue()); + builder.append(infoType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetInfoReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetInfoReq typedOther = (TGetInfoReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(other.isSetInfoType()); + lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(typedOther.isSetInfoType()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, other.infoType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, typedOther.infoType); if (lastComparison != 0) { return lastComparison; } @@ -442,7 +438,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetInfoReq struct) break; case 2: // INFO_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32()); + struct.infoType = TGetInfoType.findByValue(iprot.readI32()); struct.setInfoTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -498,7 +494,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetInfoReq struct) struct.sessionHandle = new TSessionHandle(); struct.sessionHandle.read(iprot); struct.setSessionHandleIsSet(true); - struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32()); + struct.infoType = TGetInfoType.findByValue(iprot.readI32()); struct.setInfoTypeIsSet(true); } } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java index f6a07fc..2faaa92 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TGetInfoResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_infoValue = true && (isSetInfoValue()); - list.add(present_infoValue); + builder.append(present_infoValue); if (present_infoValue) - list.add(infoValue); + builder.append(infoValue); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetInfoResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetInfoResp typedOther = (TGetInfoResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(other.isSetInfoValue()); + lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(typedOther.isSetInfoValue()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, other.infoValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, typedOther.infoValue); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java index 72385a7..d9dd624 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java index 361e39f..4fe59b1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TGetInfoValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoValue"); private static final org.apache.thrift.protocol.TField STRING_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("stringValue", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -288,7 +285,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -562,19 +558,19 @@ public int compareTo(TGetInfoValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java index 183ff6d..b88591e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetOperationStatusReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetOperationStatusReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetOperationStatusReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetOperationStatusReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetOperationStatusReq typedOther = (TGetOperationStatusReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java index 99c2409..94ba6bb 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetOperationStatusResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetOperationStatusResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -133,7 +129,7 @@ public String getFieldName() { // isset id assignments private static final int __ERRORCODE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; + private _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -374,7 +370,7 @@ public Object getFieldValue(_Fields field) { return getSqlState(); case ERROR_CODE: - return getErrorCode(); + return Integer.valueOf(getErrorCode()); case ERROR_MESSAGE: return getErrorMessage(); @@ -467,90 +463,90 @@ public boolean equals(TGetOperationStatusResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationState = true && (isSetOperationState()); - list.add(present_operationState); + builder.append(present_operationState); if (present_operationState) - list.add(operationState.getValue()); + builder.append(operationState.getValue()); boolean present_sqlState = true && (isSetSqlState()); - list.add(present_sqlState); + builder.append(present_sqlState); if (present_sqlState) - list.add(sqlState); + builder.append(sqlState); boolean present_errorCode = true && (isSetErrorCode()); - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_errorMessage = true && (isSetErrorMessage()); - list.add(present_errorMessage); + builder.append(present_errorMessage); if (present_errorMessage) - list.add(errorMessage); + builder.append(errorMessage); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetOperationStatusResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetOperationStatusResp typedOther = (TGetOperationStatusResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(other.isSetOperationState()); + lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(typedOther.isSetOperationState()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, other.operationState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, typedOther.operationState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState()); + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState()); if (lastComparison != 0) { return lastComparison; } if (isSetSqlState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage()); + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage); if (lastComparison != 0) { return lastComparison; } @@ -681,7 +677,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetOperationStatus break; case 2: // OPERATION_STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32()); + struct.operationState = TOperationState.findByValue(iprot.readI32()); struct.setOperationStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -809,7 +805,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetOperationStatusR struct.setStatusIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32()); + struct.operationState = TOperationState.findByValue(iprot.readI32()); struct.setOperationStateIsSet(true); } if (incoming.get(1)) { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java index 626b59f..3bf363c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetResultSetMetadataReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetResultSetMetadataReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetResultSetMetadataReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetResultSetMetadataReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetResultSetMetadataReq typedOther = (TGetResultSetMetadataReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java index 8e2d462..a9bef9f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetResultSetMetadataResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetResultSetMetadataResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SCHEMA}; + private _Fields optionals[] = {_Fields.SCHEMA}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetResultSetMetadataResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_schema = true && (isSetSchema()); - list.add(present_schema); + builder.append(present_schema); if (present_schema) - list.add(schema); + builder.append(schema); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetResultSetMetadataResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetResultSetMetadataResp typedOther = (TGetResultSetMetadataResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema()); + lastComparison = Boolean.valueOf(isSetSchema()).compareTo(typedOther.isSetSchema()); if (lastComparison != 0) { return lastComparison; } if (isSetSchema()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, typedOther.schema); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java index 11988e2..c2aadaa 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetSchemasReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetSchemasReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -117,7 +113,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -342,60 +338,60 @@ public boolean equals(TGetSchemasReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetSchemasReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetSchemasReq typedOther = (TGetSchemasReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java index 27060b7..ac1ea3e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetSchemasResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetSchemasResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetSchemasResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetSchemasResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetSchemasResp typedOther = (TGetSchemasResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java index 8c9106e..6f2c713 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTableTypesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTableTypesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetTableTypesReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTableTypesReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTableTypesReq typedOther = (TGetTableTypesReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java index 440e080..6f33fbc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTableTypesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTableTypesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetTableTypesResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTableTypesResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTableTypesResp typedOther = (TGetTableTypesResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java index 4f22732..d0c3059 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTablesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTablesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -173,7 +169,10 @@ public TGetTablesReq(TGetTablesReq other) { this.tableName = other.tableName; } if (other.isSetTableTypes()) { - List __this__tableTypes = new ArrayList(other.tableTypes); + List __this__tableTypes = new ArrayList(); + for (String other_element : other.tableTypes) { + __this__tableTypes.add(other_element); + } this.tableTypes = __this__tableTypes; } } @@ -471,90 +470,90 @@ public boolean equals(TGetTablesReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_tableTypes = true && (isSetTableTypes()); - list.add(present_tableTypes); + builder.append(present_tableTypes); if (present_tableTypes) - list.add(tableTypes); + builder.append(tableTypes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTablesReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTablesReq typedOther = (TGetTablesReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(other.isSetTableTypes()); + lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(typedOther.isSetTableTypes()); if (lastComparison != 0) { return lastComparison; } if (isSetTableTypes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, other.tableTypes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, typedOther.tableTypes); if (lastComparison != 0) { return lastComparison; } @@ -714,11 +713,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetTablesReq struc { org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); struct.tableTypes = new ArrayList(_list172.size); - String _elem173; - for (int _i174 = 0; _i174 < _list172.size; ++_i174) + for (int _i173 = 0; _i173 < _list172.size; ++_i173) { - _elem173 = iprot.readString(); - struct.tableTypes.add(_elem173); + String _elem174; // required + _elem174 = iprot.readString(); + struct.tableTypes.add(_elem174); } iprot.readListEnd(); } @@ -855,11 +854,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetTablesReq struct { org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tableTypes = new ArrayList(_list177.size); - String _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - _elem178 = iprot.readString(); - struct.tableTypes.add(_elem178); + String _elem179; // required + _elem179 = iprot.readString(); + struct.tableTypes.add(_elem179); } } struct.setTableTypesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java index 4878228..d526f44 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTablesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTablesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetTablesResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTablesResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTablesResp typedOther = (TGetTablesResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java index 3fa8edc..d40115e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTypeInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTypeInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetTypeInfoReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTypeInfoReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTypeInfoReq typedOther = (TGetTypeInfoReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java index c0dd1f8..59be1a3 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TGetTypeInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTypeInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -286,45 +282,45 @@ public boolean equals(TGetTypeInfoResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTypeInfoResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTypeInfoResp typedOther = (TGetTypeInfoResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java index d959456..368273c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class THandleIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class THandleIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THandleIdentifier"); private static final org.apache.thrift.protocol.TField GUID_FIELD_DESC = new org.apache.thrift.protocol.TField("guid", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,8 +127,8 @@ public THandleIdentifier( ByteBuffer secret) { this(); - this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid); - this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret); + this.guid = guid; + this.secret = secret; } /** @@ -141,9 +137,11 @@ public THandleIdentifier( public THandleIdentifier(THandleIdentifier other) { if (other.isSetGuid()) { this.guid = org.apache.thrift.TBaseHelper.copyBinary(other.guid); +; } if (other.isSetSecret()) { this.secret = org.apache.thrift.TBaseHelper.copyBinary(other.secret); +; } } @@ -163,15 +161,15 @@ public void clear() { } public ByteBuffer bufferForGuid() { - return org.apache.thrift.TBaseHelper.copyBinary(guid); + return guid; } public void setGuid(byte[] guid) { - this.guid = guid == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(guid, guid.length)); + setGuid(guid == null ? (ByteBuffer)null : ByteBuffer.wrap(guid)); } public void setGuid(ByteBuffer guid) { - this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid); + this.guid = guid; } public void unsetGuid() { @@ -195,15 +193,15 @@ public void setGuidIsSet(boolean value) { } public ByteBuffer bufferForSecret() { - return org.apache.thrift.TBaseHelper.copyBinary(secret); + return secret; } public void setSecret(byte[] secret) { - this.secret = secret == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(secret, secret.length)); + setSecret(secret == null ? (ByteBuffer)null : ByteBuffer.wrap(secret)); } public void setSecret(ByteBuffer secret) { - this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret); + this.secret = secret; } public void unsetSecret() { @@ -305,45 +303,45 @@ public boolean equals(THandleIdentifier that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_guid = true && (isSetGuid()); - list.add(present_guid); + builder.append(present_guid); if (present_guid) - list.add(guid); + builder.append(guid); boolean present_secret = true && (isSetSecret()); - list.add(present_secret); + builder.append(present_secret); if (present_secret) - list.add(secret); + builder.append(secret); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(THandleIdentifier other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + THandleIdentifier typedOther = (THandleIdentifier)other; - lastComparison = Boolean.valueOf(isSetGuid()).compareTo(other.isSetGuid()); + lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid()); if (lastComparison != 0) { return lastComparison; } if (isSetGuid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, other.guid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, typedOther.guid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSecret()).compareTo(other.isSetSecret()); + lastComparison = Boolean.valueOf(isSetSecret()).compareTo(typedOther.isSetSecret()); if (lastComparison != 0) { return lastComparison; } if (isSetSecret()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, other.secret); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, typedOther.secret); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java index 1a7f13a..e997bd9 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI16Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI16Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI16Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI16Column( */ public TI16Column(TI16Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Short other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI16Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI16Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI16Column typedOther = (TI16Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI16Column struct) { org.apache.thrift.protocol.TList _list70 = iprot.readListBegin(); struct.values = new ArrayList(_list70.size); - short _elem71; - for (int _i72 = 0; _i72 < _list70.size; ++_i72) + for (int _i71 = 0; _i71 < _list70.size; ++_i71) { - _elem71 = iprot.readI16(); - struct.values.add(_elem71); + short _elem72; // required + _elem72 = iprot.readI16(); + struct.values.add(_elem72); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI16Column struct) t { org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I16, iprot.readI32()); struct.values = new ArrayList(_list75.size); - short _elem76; - for (int _i77 = 0; _i77 < _list75.size; ++_i77) + for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - _elem76 = iprot.readI16(); - struct.values.add(_elem76); + short _elem77; // required + _elem77 = iprot.readI16(); + struct.values.add(_elem77); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java index ece0199..bb5ae96 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI16Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI16Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I16, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return getValue(); + return Short.valueOf(getValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TI16Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI16Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI16Value typedOther = (TI16Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java index 78fb651..3cdd2a5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI32Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI32Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI32Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI32Column( */ public TI32Column(TI32Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Integer other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI32Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI32Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI32Column typedOther = (TI32Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI32Column struct) { org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); struct.values = new ArrayList(_list78.size); - int _elem79; - for (int _i80 = 0; _i80 < _list78.size; ++_i80) + for (int _i79 = 0; _i79 < _list78.size; ++_i79) { - _elem79 = iprot.readI32(); - struct.values.add(_elem79); + int _elem80; // required + _elem80 = iprot.readI32(); + struct.values.add(_elem80); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI32Column struct) t { org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.values = new ArrayList(_list83.size); - int _elem84; - for (int _i85 = 0; _i85 < _list83.size; ++_i85) + for (int _i84 = 0; _i84 < _list83.size; ++_i84) { - _elem84 = iprot.readI32(); - struct.values.add(_elem84); + int _elem85; // required + _elem85 = iprot.readI32(); + struct.values.add(_elem85); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java index cf63261..059408b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI32Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI32Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I32, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return getValue(); + return Integer.valueOf(getValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TI32Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI32Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI32Value typedOther = (TI32Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java index 0f649fb..c8fc41f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI64Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI64Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI64Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI64Column( */ public TI64Column(TI64Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Long other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI64Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI64Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI64Column typedOther = (TI64Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI64Column struct) { org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); struct.values = new ArrayList(_list86.size); - long _elem87; - for (int _i88 = 0; _i88 < _list86.size; ++_i88) + for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - _elem87 = iprot.readI64(); - struct.values.add(_elem87); + long _elem88; // required + _elem88 = iprot.readI64(); + struct.values.add(_elem88); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI64Column struct) t { org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.values = new ArrayList(_list91.size); - long _elem92; - for (int _i93 = 0; _i93 < _list91.size; ++_i93) + for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - _elem92 = iprot.readI64(); - struct.values.add(_elem92); + long _elem93; // required + _elem93 = iprot.readI64(); + struct.values.add(_elem93); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java index 75ada87..9a941cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TI64Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI64Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -178,7 +174,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case VALUE: - return getValue(); + return Long.valueOf(getValue()); } throw new IllegalStateException(); @@ -224,30 +220,30 @@ public boolean equals(TI64Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI64Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI64Value typedOther = (TI64Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java index 9777683..425603c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TMapTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TMapTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMapTypeEntry"); private static final org.apache.thrift.protocol.TField KEY_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("keyTypePtr", org.apache.thrift.protocol.TType.I32, (short)1); @@ -229,10 +225,10 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case KEY_TYPE_PTR: - return getKeyTypePtr(); + return Integer.valueOf(getKeyTypePtr()); case VALUE_TYPE_PTR: - return getValueTypePtr(); + return Integer.valueOf(getValueTypePtr()); } throw new IllegalStateException(); @@ -289,45 +285,45 @@ public boolean equals(TMapTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_keyTypePtr = true; - list.add(present_keyTypePtr); + builder.append(present_keyTypePtr); if (present_keyTypePtr) - list.add(keyTypePtr); + builder.append(keyTypePtr); boolean present_valueTypePtr = true; - list.add(present_valueTypePtr); + builder.append(present_valueTypePtr); if (present_valueTypePtr) - list.add(valueTypePtr); + builder.append(valueTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TMapTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TMapTypeEntry typedOther = (TMapTypeEntry)other; - lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(other.isSetKeyTypePtr()); + lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(typedOther.isSetKeyTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetKeyTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, other.keyTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, typedOther.keyTypePtr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(other.isSetValueTypePtr()); + lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(typedOther.isSetValueTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetValueTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, other.valueTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, typedOther.valueTypePtr); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java index a43c1d0..c048161 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TOpenSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOpenSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionReq"); private static final org.apache.thrift.protocol.TField CLIENT_PROTOCOL_FIELD_DESC = new org.apache.thrift.protocol.TField("client_protocol", org.apache.thrift.protocol.TType.I32, (short)1); @@ -126,7 +122,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION}; + private _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -170,7 +166,18 @@ public TOpenSessionReq(TOpenSessionReq other) { this.password = other.password; } if (other.isSetConfiguration()) { - Map __this__configuration = new HashMap(other.configuration); + Map __this__configuration = new HashMap(); + for (Map.Entry other_element : other.configuration.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__configuration_copy_key = other_element_key; + + String __this__configuration_copy_value = other_element_value; + + __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value); + } this.configuration = __this__configuration; } } @@ -427,75 +434,75 @@ public boolean equals(TOpenSessionReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_client_protocol = true && (isSetClient_protocol()); - list.add(present_client_protocol); + builder.append(present_client_protocol); if (present_client_protocol) - list.add(client_protocol.getValue()); + builder.append(client_protocol.getValue()); boolean present_username = true && (isSetUsername()); - list.add(present_username); + builder.append(present_username); if (present_username) - list.add(username); + builder.append(username); boolean present_password = true && (isSetPassword()); - list.add(present_password); + builder.append(present_password); if (present_password) - list.add(password); + builder.append(password); boolean present_configuration = true && (isSetConfiguration()); - list.add(present_configuration); + builder.append(present_configuration); if (present_configuration) - list.add(configuration); + builder.append(configuration); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOpenSessionReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOpenSessionReq typedOther = (TOpenSessionReq)other; - lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(other.isSetClient_protocol()); + lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(typedOther.isSetClient_protocol()); if (lastComparison != 0) { return lastComparison; } if (isSetClient_protocol()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, other.client_protocol); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, typedOther.client_protocol); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword()); if (lastComparison != 0) { return lastComparison; } if (isSetPassword()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration()); + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; } if (isSetConfiguration()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration); if (lastComparison != 0) { return lastComparison; } @@ -606,7 +613,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionReq str switch (schemeField.id) { case 1: // CLIENT_PROTOCOL if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32()); struct.setClient_protocolIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -633,13 +640,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionReq str { org.apache.thrift.protocol.TMap _map142 = iprot.readMapBegin(); struct.configuration = new HashMap(2*_map142.size); - String _key143; - String _val144; - for (int _i145 = 0; _i145 < _map142.size; ++_i145) + for (int _i143 = 0; _i143 < _map142.size; ++_i143) { - _key143 = iprot.readString(); - _val144 = iprot.readString(); - struct.configuration.put(_key143, _val144); + String _key144; // required + String _val145; // required + _key144 = iprot.readString(); + _val145 = iprot.readString(); + struct.configuration.put(_key144, _val145); } iprot.readMapEnd(); } @@ -745,7 +752,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq str @Override public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32()); struct.setClient_protocolIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -760,13 +767,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq stru { org.apache.thrift.protocol.TMap _map148 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.configuration = new HashMap(2*_map148.size); - String _key149; - String _val150; - for (int _i151 = 0; _i151 < _map148.size; ++_i151) + for (int _i149 = 0; _i149 < _map148.size; ++_i149) { - _key149 = iprot.readString(); - _val150 = iprot.readString(); - struct.configuration.put(_key149, _val150); + String _key150; // required + String _val151; // required + _key150 = iprot.readString(); + _val151 = iprot.readString(); + struct.configuration.put(_key150, _val151); } } struct.setConfigurationIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java index 3199ec3..351f78b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TOpenSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOpenSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -126,7 +122,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION}; + private _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -172,7 +168,18 @@ public TOpenSessionResp(TOpenSessionResp other) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetConfiguration()) { - Map __this__configuration = new HashMap(other.configuration); + Map __this__configuration = new HashMap(); + for (Map.Entry other_element : other.configuration.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__configuration_copy_key = other_element_key; + + String __this__configuration_copy_value = other_element_value; + + __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value); + } this.configuration = __this__configuration; } } @@ -429,75 +436,75 @@ public boolean equals(TOpenSessionResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_serverProtocolVersion = true && (isSetServerProtocolVersion()); - list.add(present_serverProtocolVersion); + builder.append(present_serverProtocolVersion); if (present_serverProtocolVersion) - list.add(serverProtocolVersion.getValue()); + builder.append(serverProtocolVersion.getValue()); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_configuration = true && (isSetConfiguration()); - list.add(present_configuration); + builder.append(present_configuration); if (present_configuration) - list.add(configuration); + builder.append(configuration); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOpenSessionResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOpenSessionResp typedOther = (TOpenSessionResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(other.isSetServerProtocolVersion()); + lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(typedOther.isSetServerProtocolVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetServerProtocolVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, other.serverProtocolVersion); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, typedOther.serverProtocolVersion); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration()); + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; } if (isSetConfiguration()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration); if (lastComparison != 0) { return lastComparison; } @@ -625,7 +632,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionResp st break; case 2: // SERVER_PROTOCOL_VERSION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32()); struct.setServerProtocolVersionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -645,13 +652,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionResp st { org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(); struct.configuration = new HashMap(2*_map152.size); - String _key153; - String _val154; - for (int _i155 = 0; _i155 < _map152.size; ++_i155) + for (int _i153 = 0; _i153 < _map152.size; ++_i153) { - _key153 = iprot.readString(); - _val154 = iprot.readString(); - struct.configuration.put(_key153, _val154); + String _key154; // required + String _val155; // required + _key154 = iprot.readString(); + _val155 = iprot.readString(); + struct.configuration.put(_key154, _val155); } iprot.readMapEnd(); } @@ -753,7 +760,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionResp str struct.status = new TStatus(); struct.status.read(iprot); struct.setStatusIsSet(true); - struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32()); struct.setServerProtocolVersionIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -765,13 +772,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionResp str { org.apache.thrift.protocol.TMap _map158 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.configuration = new HashMap(2*_map158.size); - String _key159; - String _val160; - for (int _i161 = 0; _i161 < _map158.size; ++_i161) + for (int _i159 = 0; _i159 < _map158.size; ++_i159) { - _key159 = iprot.readString(); - _val160 = iprot.readString(); - struct.configuration.put(_key159, _val160); + String _key160; // required + String _val161; // required + _key160 = iprot.readString(); + _val161 = iprot.readString(); + struct.configuration.put(_key160, _val161); } } struct.setConfigurationIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java index d1d86fe..8fbd875 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TOperationHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOperationHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOperationHandle"); private static final org.apache.thrift.protocol.TField OPERATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operationId", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { private static final int __HASRESULTSET_ISSET_ID = 0; private static final int __MODIFIEDROWCOUNT_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT}; + private _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -333,10 +329,10 @@ public Object getFieldValue(_Fields field) { return getOperationType(); case HAS_RESULT_SET: - return isHasResultSet(); + return Boolean.valueOf(isHasResultSet()); case MODIFIED_ROW_COUNT: - return getModifiedRowCount(); + return Double.valueOf(getModifiedRowCount()); } throw new IllegalStateException(); @@ -415,75 +411,75 @@ public boolean equals(TOperationHandle that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationId = true && (isSetOperationId()); - list.add(present_operationId); + builder.append(present_operationId); if (present_operationId) - list.add(operationId); + builder.append(operationId); boolean present_operationType = true && (isSetOperationType()); - list.add(present_operationType); + builder.append(present_operationType); if (present_operationType) - list.add(operationType.getValue()); + builder.append(operationType.getValue()); boolean present_hasResultSet = true; - list.add(present_hasResultSet); + builder.append(present_hasResultSet); if (present_hasResultSet) - list.add(hasResultSet); + builder.append(hasResultSet); boolean present_modifiedRowCount = true && (isSetModifiedRowCount()); - list.add(present_modifiedRowCount); + builder.append(present_modifiedRowCount); if (present_modifiedRowCount) - list.add(modifiedRowCount); + builder.append(modifiedRowCount); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOperationHandle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOperationHandle typedOther = (TOperationHandle)other; - lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(other.isSetOperationId()); + lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(typedOther.isSetOperationId()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, other.operationId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, typedOther.operationId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(other.isSetOperationType()); + lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(typedOther.isSetOperationType()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, other.operationType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, typedOther.operationType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(other.isSetHasResultSet()); + lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(typedOther.isSetHasResultSet()); if (lastComparison != 0) { return lastComparison; } if (isSetHasResultSet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, other.hasResultSet); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, typedOther.hasResultSet); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(other.isSetModifiedRowCount()); + lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(typedOther.isSetModifiedRowCount()); if (lastComparison != 0) { return lastComparison; } if (isSetModifiedRowCount()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, other.modifiedRowCount); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, typedOther.modifiedRowCount); if (lastComparison != 0) { return lastComparison; } @@ -604,7 +600,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOperationHandle st break; case 2: // OPERATION_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32()); + struct.operationType = TOperationType.findByValue(iprot.readI32()); struct.setOperationTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -693,7 +689,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOperationHandle str struct.operationId = new THandleIdentifier(); struct.operationId.read(iprot); struct.setOperationIdIsSet(true); - struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32()); + struct.operationType = TOperationType.findByValue(iprot.readI32()); struct.setOperationTypeIsSet(true); struct.hasResultSet = iprot.readBool(); struct.setHasResultSetIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java index fe029ef..2198662 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java index f105259..b6d4b2f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java index 38a5be3..9d2abf2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TPrimitiveTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TPrimitiveTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPrimitiveTypeEntry"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1); @@ -116,7 +112,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TYPE_QUALIFIERS}; + private _Fields optionals[] = {_Fields.TYPE_QUALIFIERS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -298,45 +294,45 @@ public boolean equals(TPrimitiveTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_typeQualifiers = true && (isSetTypeQualifiers()); - list.add(present_typeQualifiers); + builder.append(present_typeQualifiers); if (present_typeQualifiers) - list.add(typeQualifiers); + builder.append(typeQualifiers); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TPrimitiveTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TPrimitiveTypeEntry typedOther = (TPrimitiveTypeEntry)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(other.isSetTypeQualifiers()); + lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(typedOther.isSetTypeQualifiers()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeQualifiers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, other.typeQualifiers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, typedOther.typeQualifiers); if (lastComparison != 0) { return lastComparison; } @@ -430,7 +426,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TPrimitiveTypeEntry switch (schemeField.id) { case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32()); + struct.type = TTypeId.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -501,7 +497,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TPrimitiveTypeEntry @Override public void read(org.apache.thrift.protocol.TProtocol prot, TPrimitiveTypeEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32()); + struct.type = TTypeId.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java index c936ada..a4279d2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java index e74bb29..a3e39c8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TRenewDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRenewDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TRenewDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRenewDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRenewDelegationTokenReq typedOther = (TRenewDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java index 63633e3..5f3eb6c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TRenewDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRenewDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TRenewDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRenewDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRenewDelegationTokenResp typedOther = (TRenewDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java index 28c34cd..8e58aa5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TRow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRow"); private static final org.apache.thrift.protocol.TField COL_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("colVals", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TRow( */ public TRow(TRow other) { if (other.isSetColVals()) { - List __this__colVals = new ArrayList(other.colVals.size()); + List __this__colVals = new ArrayList(); for (TColumnValue other_element : other.colVals) { __this__colVals.add(new TColumnValue(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TRow that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colVals = true && (isSetColVals()); - list.add(present_colVals); + builder.append(present_colVals); if (present_colVals) - list.add(colVals); + builder.append(colVals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRow other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRow typedOther = (TRow)other; - lastComparison = Boolean.valueOf(isSetColVals()).compareTo(other.isSetColVals()); + lastComparison = Boolean.valueOf(isSetColVals()).compareTo(typedOther.isSetColVals()); if (lastComparison != 0) { return lastComparison; } if (isSetColVals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, other.colVals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, typedOther.colVals); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRow struct) throws { org.apache.thrift.protocol.TList _list46 = iprot.readListBegin(); struct.colVals = new ArrayList(_list46.size); - TColumnValue _elem47; - for (int _i48 = 0; _i48 < _list46.size; ++_i48) + for (int _i47 = 0; _i47 < _list46.size; ++_i47) { - _elem47 = new TColumnValue(); - _elem47.read(iprot); - struct.colVals.add(_elem47); + TColumnValue _elem48; // required + _elem48 = new TColumnValue(); + _elem48.read(iprot); + struct.colVals.add(_elem48); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRow struct) throws { org.apache.thrift.protocol.TList _list51 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colVals = new ArrayList(_list51.size); - TColumnValue _elem52; - for (int _i53 = 0; _i53 < _list51.size; ++_i53) + for (int _i52 = 0; _i52 < _list51.size; ++_i52) { - _elem52 = new TColumnValue(); - _elem52.read(iprot); - struct.colVals.add(_elem52); + TColumnValue _elem53; // required + _elem53 = new TColumnValue(); + _elem53.read(iprot); + struct.colVals.add(_elem53); } } struct.setColValsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java index 9b9b2ac..4bb5749 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TRowSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRowSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowSet"); private static final org.apache.thrift.protocol.TField START_ROW_OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("startRowOffset", org.apache.thrift.protocol.TType.I64, (short)1); @@ -119,7 +115,7 @@ public String getFieldName() { // isset id assignments private static final int __STARTROWOFFSET_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.COLUMNS}; + private _Fields optionals[] = {_Fields.COLUMNS}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -155,14 +151,14 @@ public TRowSet(TRowSet other) { __isset_bitfield = other.__isset_bitfield; this.startRowOffset = other.startRowOffset; if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); + List __this__rows = new ArrayList(); for (TRow other_element : other.rows) { __this__rows.add(new TRow(other_element)); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + List __this__columns = new ArrayList(); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -312,7 +308,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case START_ROW_OFFSET: - return getStartRowOffset(); + return Long.valueOf(getStartRowOffset()); case ROWS: return getRows(); @@ -386,60 +382,60 @@ public boolean equals(TRowSet that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_startRowOffset = true; - list.add(present_startRowOffset); + builder.append(present_startRowOffset); if (present_startRowOffset) - list.add(startRowOffset); + builder.append(startRowOffset); boolean present_rows = true && (isSetRows()); - list.add(present_rows); + builder.append(present_rows); if (present_rows) - list.add(rows); + builder.append(rows); boolean present_columns = true && (isSetColumns()); - list.add(present_columns); + builder.append(present_columns); if (present_columns) - list.add(columns); + builder.append(columns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRowSet other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRowSet typedOther = (TRowSet)other; - lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(other.isSetStartRowOffset()); + lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(typedOther.isSetStartRowOffset()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRowOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, other.startRowOffset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, typedOther.startRowOffset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); if (lastComparison != 0) { return lastComparison; } @@ -551,12 +547,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRowSet struct) thr { org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); struct.rows = new ArrayList(_list118.size); - TRow _elem119; - for (int _i120 = 0; _i120 < _list118.size; ++_i120) + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - _elem119 = new TRow(); - _elem119.read(iprot); - struct.rows.add(_elem119); + TRow _elem120; // required + _elem120 = new TRow(); + _elem120.read(iprot); + struct.rows.add(_elem120); } iprot.readListEnd(); } @@ -570,12 +566,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRowSet struct) thr { org.apache.thrift.protocol.TList _list121 = iprot.readListBegin(); struct.columns = new ArrayList(_list121.size); - TColumn _elem122; - for (int _i123 = 0; _i123 < _list121.size; ++_i123) + for (int _i122 = 0; _i122 < _list121.size; ++_i122) { - _elem122 = new TColumn(); - _elem122.read(iprot); - struct.columns.add(_elem122); + TColumn _elem123; // required + _elem123 = new TColumn(); + _elem123.read(iprot); + struct.columns.add(_elem123); } iprot.readListEnd(); } @@ -675,12 +671,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRowSet struct) thro { org.apache.thrift.protocol.TList _list128 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rows = new ArrayList(_list128.size); - TRow _elem129; - for (int _i130 = 0; _i130 < _list128.size; ++_i130) + for (int _i129 = 0; _i129 < _list128.size; ++_i129) { - _elem129 = new TRow(); - _elem129.read(iprot); - struct.rows.add(_elem129); + TRow _elem130; // required + _elem130 = new TRow(); + _elem130.read(iprot); + struct.rows.add(_elem130); } } struct.setRowsIsSet(true); @@ -689,12 +685,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRowSet struct) thro { org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list131.size); - TColumn _elem132; - for (int _i133 = 0; _i133 < _list131.size; ++_i133) + for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - _elem132 = new TColumn(); - _elem132.read(iprot); - struct.columns.add(_elem132); + TColumn _elem133; // required + _elem133 = new TColumn(); + _elem133.read(iprot); + struct.columns.add(_elem133); } } struct.setColumnsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java index aeff2b6..82c00dd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TSessionHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TSessionHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSessionHandle"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TSessionHandle that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); + builder.append(present_sessionId); if (present_sessionId) - list.add(sessionId); + builder.append(sessionId); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TSessionHandle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TSessionHandle typedOther = (TSessionHandle)other; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java index ccf281a..cb5010f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStatus"); private static final org.apache.thrift.protocol.TField STATUS_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("statusCode", org.apache.thrift.protocol.TType.I32, (short)1); @@ -133,7 +129,7 @@ public String getFieldName() { // isset id assignments private static final int __ERRORCODE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; + private _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -171,7 +167,10 @@ public TStatus(TStatus other) { this.statusCode = other.statusCode; } if (other.isSetInfoMessages()) { - List __this__infoMessages = new ArrayList(other.infoMessages); + List __this__infoMessages = new ArrayList(); + for (String other_element : other.infoMessages) { + __this__infoMessages.add(other_element); + } this.infoMessages = __this__infoMessages; } if (other.isSetSqlState()) { @@ -391,7 +390,7 @@ public Object getFieldValue(_Fields field) { return getSqlState(); case ERROR_CODE: - return getErrorCode(); + return Integer.valueOf(getErrorCode()); case ERROR_MESSAGE: return getErrorMessage(); @@ -484,90 +483,90 @@ public boolean equals(TStatus that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_statusCode = true && (isSetStatusCode()); - list.add(present_statusCode); + builder.append(present_statusCode); if (present_statusCode) - list.add(statusCode.getValue()); + builder.append(statusCode.getValue()); boolean present_infoMessages = true && (isSetInfoMessages()); - list.add(present_infoMessages); + builder.append(present_infoMessages); if (present_infoMessages) - list.add(infoMessages); + builder.append(infoMessages); boolean present_sqlState = true && (isSetSqlState()); - list.add(present_sqlState); + builder.append(present_sqlState); if (present_sqlState) - list.add(sqlState); + builder.append(sqlState); boolean present_errorCode = true && (isSetErrorCode()); - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_errorMessage = true && (isSetErrorMessage()); - list.add(present_errorMessage); + builder.append(present_errorMessage); if (present_errorMessage) - list.add(errorMessage); + builder.append(errorMessage); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStatus other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStatus typedOther = (TStatus)other; - lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(other.isSetStatusCode()); + lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(typedOther.isSetStatusCode()); if (lastComparison != 0) { return lastComparison; } if (isSetStatusCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, other.statusCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, typedOther.statusCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(other.isSetInfoMessages()); + lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(typedOther.isSetInfoMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoMessages()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, other.infoMessages); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, typedOther.infoMessages); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState()); + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState()); if (lastComparison != 0) { return lastComparison; } if (isSetSqlState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage()); + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage); if (lastComparison != 0) { return lastComparison; } @@ -686,7 +685,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStatus struct) thr switch (schemeField.id) { case 1: // STATUS_CODE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32()); + struct.statusCode = TStatusCode.findByValue(iprot.readI32()); struct.setStatusCodeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -697,11 +696,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStatus struct) thr { org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); struct.infoMessages = new ArrayList(_list134.size); - String _elem135; - for (int _i136 = 0; _i136 < _list134.size; ++_i136) + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - _elem135 = iprot.readString(); - struct.infoMessages.add(_elem135); + String _elem136; // required + _elem136 = iprot.readString(); + struct.infoMessages.add(_elem136); } iprot.readListEnd(); } @@ -840,18 +839,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TStatus struct) thr @Override public void read(org.apache.thrift.protocol.TProtocol prot, TStatus struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32()); + struct.statusCode = TStatusCode.findByValue(iprot.readI32()); struct.setStatusCodeIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.infoMessages = new ArrayList(_list139.size); - String _elem140; - for (int _i141 = 0; _i141 < _list139.size; ++_i141) + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - _elem140 = iprot.readString(); - struct.infoMessages.add(_elem140); + String _elem141; // required + _elem141 = iprot.readString(); + struct.infoMessages.add(_elem141); } } struct.setInfoMessagesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java index 8900d4c..e7fde45 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java index 7c15ec1..5398056 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TStringColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStringColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TStringColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TStringColumn( */ public TStringColumn(TStringColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TStringColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStringColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStringColumn typedOther = (TStringColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStringColumn struc { org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); struct.values = new ArrayList(_list102.size); - String _elem103; - for (int _i104 = 0; _i104 < _list102.size; ++_i104) + for (int _i103 = 0; _i103 < _list102.size; ++_i103) { - _elem103 = iprot.readString(); - struct.values.add(_elem103); + String _elem104; // required + _elem104 = iprot.readString(); + struct.values.add(_elem104); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TStringColumn struct { org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list107.size); - String _elem108; - for (int _i109 = 0; _i109 < _list107.size; ++_i109) + for (int _i108 = 0; _i108 < _list107.size; ++_i108) { - _elem108 = iprot.readString(); - struct.values.add(_elem108); + String _elem109; // required + _elem109 = iprot.readString(); + struct.values.add(_elem109); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java index 96e9be0..af7a109 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TStringValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStringValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -223,30 +219,30 @@ public boolean equals(TStringValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStringValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStringValue typedOther = (TStringValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java index c90926a..20f5fb6 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TStructTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStructTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStructTypeEntry"); private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TStructTypeEntry( */ public TStructTypeEntry(TStructTypeEntry other) { if (other.isSetNameToTypePtr()) { - Map __this__nameToTypePtr = new HashMap(other.nameToTypePtr.size()); + Map __this__nameToTypePtr = new HashMap(); for (Map.Entry other_element : other.nameToTypePtr.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TStructTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nameToTypePtr = true && (isSetNameToTypePtr()); - list.add(present_nameToTypePtr); + builder.append(present_nameToTypePtr); if (present_nameToTypePtr) - list.add(nameToTypePtr); + builder.append(nameToTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStructTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStructTypeEntry typedOther = (TStructTypeEntry)other; - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr()); + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetNameToTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr); if (lastComparison != 0) { return lastComparison; } @@ -361,13 +357,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStructTypeEntry st { org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin(); struct.nameToTypePtr = new HashMap(2*_map10.size); - String _key11; - int _val12; - for (int _i13 = 0; _i13 < _map10.size; ++_i13) + for (int _i11 = 0; _i11 < _map10.size; ++_i11) { - _key11 = iprot.readString(); - _val12 = iprot.readI32(); - struct.nameToTypePtr.put(_key11, _val12); + String _key12; // required + int _val13; // required + _key12 = iprot.readString(); + _val13 = iprot.readI32(); + struct.nameToTypePtr.put(_key12, _val13); } iprot.readMapEnd(); } @@ -435,13 +431,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TStructTypeEntry str { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.nameToTypePtr = new HashMap(2*_map16.size); - String _key17; - int _val18; - for (int _i19 = 0; _i19 < _map16.size; ++_i19) + for (int _i17 = 0; _i17 < _map16.size; ++_i17) { - _key17 = iprot.readString(); - _val18 = iprot.readI32(); - struct.nameToTypePtr.put(_key17, _val18); + String _key18; // required + int _val19; // required + _key18 = iprot.readString(); + _val19 = iprot.readI32(); + struct.nameToTypePtr.put(_key18, _val19); } } struct.setNameToTypePtrIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java index 7a38e15..e2882c2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TTableSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTableSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableSchema"); private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TTableSchema( */ public TTableSchema(TTableSchema other) { if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + List __this__columns = new ArrayList(); for (TColumnDesc other_element : other.columns) { __this__columns.add(new TColumnDesc(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TTableSchema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_columns = true && (isSetColumns()); - list.add(present_columns); + builder.append(present_columns); if (present_columns) - list.add(columns); + builder.append(columns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTableSchema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTableSchema typedOther = (TTableSchema)other; - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTableSchema struct { org.apache.thrift.protocol.TList _list38 = iprot.readListBegin(); struct.columns = new ArrayList(_list38.size); - TColumnDesc _elem39; - for (int _i40 = 0; _i40 < _list38.size; ++_i40) + for (int _i39 = 0; _i39 < _list38.size; ++_i39) { - _elem39 = new TColumnDesc(); - _elem39.read(iprot); - struct.columns.add(_elem39); + TColumnDesc _elem40; // required + _elem40 = new TColumnDesc(); + _elem40.read(iprot); + struct.columns.add(_elem40); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTableSchema struct) { org.apache.thrift.protocol.TList _list43 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list43.size); - TColumnDesc _elem44; - for (int _i45 = 0; _i45 < _list43.size; ++_i45) + for (int _i44 = 0; _i44 < _list43.size; ++_i44) { - _elem44 = new TColumnDesc(); - _elem44.read(iprot); - struct.columns.add(_elem44); + TColumnDesc _elem45; // required + _elem45 = new TColumnDesc(); + _elem45.read(iprot); + struct.columns.add(_elem45); } } struct.setColumnsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java index e187da2..d6a6d23 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TTypeDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTypeDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeDesc"); private static final org.apache.thrift.protocol.TField TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("types", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TTypeDesc( */ public TTypeDesc(TTypeDesc other) { if (other.isSetTypes()) { - List __this__types = new ArrayList(other.types.size()); + List __this__types = new ArrayList(); for (TTypeEntry other_element : other.types) { __this__types.add(new TTypeEntry(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TTypeDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_types = true && (isSetTypes()); - list.add(present_types); + builder.append(present_types); if (present_types) - list.add(types); + builder.append(types); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTypeDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTypeDesc typedOther = (TTypeDesc)other; - lastComparison = Boolean.valueOf(isSetTypes()).compareTo(other.isSetTypes()); + lastComparison = Boolean.valueOf(isSetTypes()).compareTo(typedOther.isSetTypes()); if (lastComparison != 0) { return lastComparison; } if (isSetTypes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, other.types); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, typedOther.types); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTypeDesc struct) t { org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); struct.types = new ArrayList(_list30.size); - TTypeEntry _elem31; - for (int _i32 = 0; _i32 < _list30.size; ++_i32) + for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - _elem31 = new TTypeEntry(); - _elem31.read(iprot); - struct.types.add(_elem31); + TTypeEntry _elem32; // required + _elem32 = new TTypeEntry(); + _elem32.read(iprot); + struct.types.add(_elem32); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTypeDesc struct) th { org.apache.thrift.protocol.TList _list35 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.types = new ArrayList(_list35.size); - TTypeEntry _elem36; - for (int _i37 = 0; _i37 < _list35.size; ++_i37) + for (int _i36 = 0; _i36 < _list35.size; ++_i36) { - _elem36 = new TTypeEntry(); - _elem36.read(iprot); - struct.types.add(_elem36); + TTypeEntry _elem37; // required + _elem37 = new TTypeEntry(); + _elem37.read(iprot); + struct.types.add(_elem37); } } struct.setTypesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java index a53eaa2..af7c0b4 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TTypeEntry extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeEntry"); private static final org.apache.thrift.protocol.TField PRIMITIVE_ENTRY_FIELD_DESC = new org.apache.thrift.protocol.TField("primitiveEntry", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -294,7 +291,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -579,19 +575,19 @@ public int compareTo(TTypeEntry other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java index 379bc92..40f0589 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java index cc786b2..8c40687 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,11 +28,9 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) public class TTypeQualifierValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifierValue"); private static final org.apache.thrift.protocol.TField I32_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("i32Value", org.apache.thrift.protocol.TType.I32, (short)1); @@ -184,7 +181,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -330,19 +326,19 @@ public int compareTo(TTypeQualifierValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java index ac97b7f..3935555 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TTypeQualifiers implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTypeQualifiers implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifiers"); private static final org.apache.thrift.protocol.TField QUALIFIERS_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifiers", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TTypeQualifiers( */ public TTypeQualifiers(TTypeQualifiers other) { if (other.isSetQualifiers()) { - Map __this__qualifiers = new HashMap(other.qualifiers.size()); + Map __this__qualifiers = new HashMap(); for (Map.Entry other_element : other.qualifiers.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TTypeQualifiers that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_qualifiers = true && (isSetQualifiers()); - list.add(present_qualifiers); + builder.append(present_qualifiers); if (present_qualifiers) - list.add(qualifiers); + builder.append(qualifiers); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTypeQualifiers other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTypeQualifiers typedOther = (TTypeQualifiers)other; - lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(other.isSetQualifiers()); + lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(typedOther.isSetQualifiers()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifiers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, other.qualifiers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, typedOther.qualifiers); if (lastComparison != 0) { return lastComparison; } @@ -361,14 +357,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTypeQualifiers str { org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); struct.qualifiers = new HashMap(2*_map0.size); - String _key1; - TTypeQualifierValue _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + for (int _i1 = 0; _i1 < _map0.size; ++_i1) { - _key1 = iprot.readString(); - _val2 = new TTypeQualifierValue(); - _val2.read(iprot); - struct.qualifiers.put(_key1, _val2); + String _key2; // required + TTypeQualifierValue _val3; // required + _key2 = iprot.readString(); + _val3 = new TTypeQualifierValue(); + _val3.read(iprot); + struct.qualifiers.put(_key2, _val3); } iprot.readMapEnd(); } @@ -436,14 +432,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTypeQualifiers stru { org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.qualifiers = new HashMap(2*_map6.size); - String _key7; - TTypeQualifierValue _val8; - for (int _i9 = 0; _i9 < _map6.size; ++_i9) + for (int _i7 = 0; _i7 < _map6.size; ++_i7) { - _key7 = iprot.readString(); - _val8 = new TTypeQualifierValue(); - _val8.read(iprot); - struct.qualifiers.put(_key7, _val8); + String _key8; // required + TTypeQualifierValue _val9; // required + _key8 = iprot.readString(); + _val9 = new TTypeQualifierValue(); + _val9.read(iprot); + struct.qualifiers.put(_key8, _val9); } } struct.setQualifiersIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java index 0c7120d..73dd45d 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TUnionTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TUnionTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUnionTypeEntry"); private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TUnionTypeEntry( */ public TUnionTypeEntry(TUnionTypeEntry other) { if (other.isSetNameToTypePtr()) { - Map __this__nameToTypePtr = new HashMap(other.nameToTypePtr.size()); + Map __this__nameToTypePtr = new HashMap(); for (Map.Entry other_element : other.nameToTypePtr.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TUnionTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nameToTypePtr = true && (isSetNameToTypePtr()); - list.add(present_nameToTypePtr); + builder.append(present_nameToTypePtr); if (present_nameToTypePtr) - list.add(nameToTypePtr); + builder.append(nameToTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TUnionTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TUnionTypeEntry typedOther = (TUnionTypeEntry)other; - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr()); + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetNameToTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr); if (lastComparison != 0) { return lastComparison; } @@ -361,13 +357,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TUnionTypeEntry str { org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin(); struct.nameToTypePtr = new HashMap(2*_map20.size); - String _key21; - int _val22; - for (int _i23 = 0; _i23 < _map20.size; ++_i23) + for (int _i21 = 0; _i21 < _map20.size; ++_i21) { - _key21 = iprot.readString(); - _val22 = iprot.readI32(); - struct.nameToTypePtr.put(_key21, _val22); + String _key22; // required + int _val23; // required + _key22 = iprot.readString(); + _val23 = iprot.readI32(); + struct.nameToTypePtr.put(_key22, _val23); } iprot.readMapEnd(); } @@ -435,13 +431,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TUnionTypeEntry stru { org.apache.thrift.protocol.TMap _map26 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.nameToTypePtr = new HashMap(2*_map26.size); - String _key27; - int _val28; - for (int _i29 = 0; _i29 < _map26.size; ++_i29) + for (int _i27 = 0; _i27 < _map26.size; ++_i27) { - _key27 = iprot.readString(); - _val28 = iprot.readI32(); - struct.nameToTypePtr.put(_key27, _val28); + String _key28; // required + int _val29; // required + _key28 = iprot.readString(); + _val29 = iprot.readI32(); + struct.nameToTypePtr.put(_key28, _val29); } } struct.setNameToTypePtrIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java index 4ae9505..3a111a2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ import org.apache.thrift.protocol.TProtocolException; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; import java.util.List; import java.util.ArrayList; import java.util.Map; @@ -29,13 +28,10 @@ import java.util.BitSet; import java.nio.ByteBuffer; import java.util.Arrays; -import javax.annotation.Generated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") -public class TUserDefinedTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TUserDefinedTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUserDefinedTypeEntry"); private static final org.apache.thrift.protocol.TField TYPE_CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("typeClassName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TUserDefinedTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_typeClassName = true && (isSetTypeClassName()); - list.add(present_typeClassName); + builder.append(present_typeClassName); if (present_typeClassName) - list.add(typeClassName); + builder.append(typeClassName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TUserDefinedTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TUserDefinedTypeEntry typedOther = (TUserDefinedTypeEntry)other; - lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(other.isSetTypeClassName()); + lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(typedOther.isSetTypeClassName()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeClassName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, other.typeClassName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, typedOther.typeClassName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-php/TCLIService.php b/service/src/gen/thrift/gen-php/TCLIService.php index eba62f1..d246296 100644 --- a/service/src/gen/thrift/gen-php/TCLIService.php +++ b/service/src/gen/thrift/gen-php/TCLIService.php @@ -1,6 +1,7 @@ req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'OpenSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -150,7 +74,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_OpenSession() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_OpenSession_result', $this->input_->isStrictRead()); else { @@ -185,7 +109,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CloseSession_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CloseSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -201,7 +125,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CloseSession() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseSession_result', $this->input_->isStrictRead()); else { @@ -236,7 +160,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetInfo_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -252,7 +176,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetInfo() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetInfo_result', $this->input_->isStrictRead()); else { @@ -287,7 +211,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_ExecuteStatement_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'ExecuteStatement', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -303,7 +227,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_ExecuteStatement() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_ExecuteStatement_result', $this->input_->isStrictRead()); else { @@ -338,7 +262,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTypeInfo_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTypeInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -354,7 +278,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTypeInfo() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTypeInfo_result', $this->input_->isStrictRead()); else { @@ -389,7 +313,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetCatalogs_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetCatalogs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -405,7 +329,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetCatalogs() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetCatalogs_result', $this->input_->isStrictRead()); else { @@ -440,7 +364,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetSchemas_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetSchemas', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -456,7 +380,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetSchemas() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetSchemas_result', $this->input_->isStrictRead()); else { @@ -491,7 +415,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTables_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -507,7 +431,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTables_result', $this->input_->isStrictRead()); else { @@ -542,7 +466,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTableTypes_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTableTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -558,7 +482,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTableTypes() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTableTypes_result', $this->input_->isStrictRead()); else { @@ -593,7 +517,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetColumns_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetColumns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -609,7 +533,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetColumns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetColumns_result', $this->input_->isStrictRead()); else { @@ -644,7 +568,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetFunctions_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetFunctions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -660,7 +584,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetFunctions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetFunctions_result', $this->input_->isStrictRead()); else { @@ -695,7 +619,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetOperationStatus_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetOperationStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -711,7 +635,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetOperationStatus() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetOperationStatus_result', $this->input_->isStrictRead()); else { @@ -746,7 +670,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CancelOperation_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CancelOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -762,7 +686,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CancelOperation() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelOperation_result', $this->input_->isStrictRead()); else { @@ -797,7 +721,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CloseOperation_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CloseOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -813,7 +737,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CloseOperation() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseOperation_result', $this->input_->isStrictRead()); else { @@ -848,7 +772,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetResultSetMetadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetResultSetMetadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -864,7 +788,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetResultSetMetadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetResultSetMetadata_result', $this->input_->isStrictRead()); else { @@ -899,7 +823,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_FetchResults_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'FetchResults', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -915,7 +839,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_FetchResults() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_FetchResults_result', $this->input_->isStrictRead()); else { @@ -950,7 +874,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -966,7 +890,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1001,7 +925,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CancelDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CancelDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1017,7 +941,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CancelDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1052,7 +976,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_RenewDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'RenewDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1068,7 +992,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_RenewDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_RenewDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1100,9 +1024,6 @@ class TCLIServiceClient implements \TCLIServiceIf { class TCLIService_OpenSession_args { static $_TSPEC; - /** - * @var \TOpenSessionReq - */ public $req = null; public function __construct($vals=null) { @@ -1180,9 +1101,6 @@ class TCLIService_OpenSession_args { class TCLIService_OpenSession_result { static $_TSPEC; - /** - * @var \TOpenSessionResp - */ public $success = null; public function __construct($vals=null) { @@ -1260,9 +1178,6 @@ class TCLIService_OpenSession_result { class TCLIService_CloseSession_args { static $_TSPEC; - /** - * @var \TCloseSessionReq - */ public $req = null; public function __construct($vals=null) { @@ -1340,9 +1255,6 @@ class TCLIService_CloseSession_args { class TCLIService_CloseSession_result { static $_TSPEC; - /** - * @var \TCloseSessionResp - */ public $success = null; public function __construct($vals=null) { @@ -1420,9 +1332,6 @@ class TCLIService_CloseSession_result { class TCLIService_GetInfo_args { static $_TSPEC; - /** - * @var \TGetInfoReq - */ public $req = null; public function __construct($vals=null) { @@ -1500,9 +1409,6 @@ class TCLIService_GetInfo_args { class TCLIService_GetInfo_result { static $_TSPEC; - /** - * @var \TGetInfoResp - */ public $success = null; public function __construct($vals=null) { @@ -1580,9 +1486,6 @@ class TCLIService_GetInfo_result { class TCLIService_ExecuteStatement_args { static $_TSPEC; - /** - * @var \TExecuteStatementReq - */ public $req = null; public function __construct($vals=null) { @@ -1660,9 +1563,6 @@ class TCLIService_ExecuteStatement_args { class TCLIService_ExecuteStatement_result { static $_TSPEC; - /** - * @var \TExecuteStatementResp - */ public $success = null; public function __construct($vals=null) { @@ -1740,9 +1640,6 @@ class TCLIService_ExecuteStatement_result { class TCLIService_GetTypeInfo_args { static $_TSPEC; - /** - * @var \TGetTypeInfoReq - */ public $req = null; public function __construct($vals=null) { @@ -1820,9 +1717,6 @@ class TCLIService_GetTypeInfo_args { class TCLIService_GetTypeInfo_result { static $_TSPEC; - /** - * @var \TGetTypeInfoResp - */ public $success = null; public function __construct($vals=null) { @@ -1900,9 +1794,6 @@ class TCLIService_GetTypeInfo_result { class TCLIService_GetCatalogs_args { static $_TSPEC; - /** - * @var \TGetCatalogsReq - */ public $req = null; public function __construct($vals=null) { @@ -1980,9 +1871,6 @@ class TCLIService_GetCatalogs_args { class TCLIService_GetCatalogs_result { static $_TSPEC; - /** - * @var \TGetCatalogsResp - */ public $success = null; public function __construct($vals=null) { @@ -2060,9 +1948,6 @@ class TCLIService_GetCatalogs_result { class TCLIService_GetSchemas_args { static $_TSPEC; - /** - * @var \TGetSchemasReq - */ public $req = null; public function __construct($vals=null) { @@ -2140,9 +2025,6 @@ class TCLIService_GetSchemas_args { class TCLIService_GetSchemas_result { static $_TSPEC; - /** - * @var \TGetSchemasResp - */ public $success = null; public function __construct($vals=null) { @@ -2220,9 +2102,6 @@ class TCLIService_GetSchemas_result { class TCLIService_GetTables_args { static $_TSPEC; - /** - * @var \TGetTablesReq - */ public $req = null; public function __construct($vals=null) { @@ -2300,9 +2179,6 @@ class TCLIService_GetTables_args { class TCLIService_GetTables_result { static $_TSPEC; - /** - * @var \TGetTablesResp - */ public $success = null; public function __construct($vals=null) { @@ -2380,9 +2256,6 @@ class TCLIService_GetTables_result { class TCLIService_GetTableTypes_args { static $_TSPEC; - /** - * @var \TGetTableTypesReq - */ public $req = null; public function __construct($vals=null) { @@ -2460,9 +2333,6 @@ class TCLIService_GetTableTypes_args { class TCLIService_GetTableTypes_result { static $_TSPEC; - /** - * @var \TGetTableTypesResp - */ public $success = null; public function __construct($vals=null) { @@ -2540,9 +2410,6 @@ class TCLIService_GetTableTypes_result { class TCLIService_GetColumns_args { static $_TSPEC; - /** - * @var \TGetColumnsReq - */ public $req = null; public function __construct($vals=null) { @@ -2620,9 +2487,6 @@ class TCLIService_GetColumns_args { class TCLIService_GetColumns_result { static $_TSPEC; - /** - * @var \TGetColumnsResp - */ public $success = null; public function __construct($vals=null) { @@ -2700,9 +2564,6 @@ class TCLIService_GetColumns_result { class TCLIService_GetFunctions_args { static $_TSPEC; - /** - * @var \TGetFunctionsReq - */ public $req = null; public function __construct($vals=null) { @@ -2780,9 +2641,6 @@ class TCLIService_GetFunctions_args { class TCLIService_GetFunctions_result { static $_TSPEC; - /** - * @var \TGetFunctionsResp - */ public $success = null; public function __construct($vals=null) { @@ -2860,9 +2718,6 @@ class TCLIService_GetFunctions_result { class TCLIService_GetOperationStatus_args { static $_TSPEC; - /** - * @var \TGetOperationStatusReq - */ public $req = null; public function __construct($vals=null) { @@ -2940,9 +2795,6 @@ class TCLIService_GetOperationStatus_args { class TCLIService_GetOperationStatus_result { static $_TSPEC; - /** - * @var \TGetOperationStatusResp - */ public $success = null; public function __construct($vals=null) { @@ -3020,9 +2872,6 @@ class TCLIService_GetOperationStatus_result { class TCLIService_CancelOperation_args { static $_TSPEC; - /** - * @var \TCancelOperationReq - */ public $req = null; public function __construct($vals=null) { @@ -3100,9 +2949,6 @@ class TCLIService_CancelOperation_args { class TCLIService_CancelOperation_result { static $_TSPEC; - /** - * @var \TCancelOperationResp - */ public $success = null; public function __construct($vals=null) { @@ -3180,9 +3026,6 @@ class TCLIService_CancelOperation_result { class TCLIService_CloseOperation_args { static $_TSPEC; - /** - * @var \TCloseOperationReq - */ public $req = null; public function __construct($vals=null) { @@ -3260,9 +3103,6 @@ class TCLIService_CloseOperation_args { class TCLIService_CloseOperation_result { static $_TSPEC; - /** - * @var \TCloseOperationResp - */ public $success = null; public function __construct($vals=null) { @@ -3340,9 +3180,6 @@ class TCLIService_CloseOperation_result { class TCLIService_GetResultSetMetadata_args { static $_TSPEC; - /** - * @var \TGetResultSetMetadataReq - */ public $req = null; public function __construct($vals=null) { @@ -3420,9 +3257,6 @@ class TCLIService_GetResultSetMetadata_args { class TCLIService_GetResultSetMetadata_result { static $_TSPEC; - /** - * @var \TGetResultSetMetadataResp - */ public $success = null; public function __construct($vals=null) { @@ -3500,9 +3334,6 @@ class TCLIService_GetResultSetMetadata_result { class TCLIService_FetchResults_args { static $_TSPEC; - /** - * @var \TFetchResultsReq - */ public $req = null; public function __construct($vals=null) { @@ -3580,9 +3411,6 @@ class TCLIService_FetchResults_args { class TCLIService_FetchResults_result { static $_TSPEC; - /** - * @var \TFetchResultsResp - */ public $success = null; public function __construct($vals=null) { @@ -3660,9 +3488,6 @@ class TCLIService_FetchResults_result { class TCLIService_GetDelegationToken_args { static $_TSPEC; - /** - * @var \TGetDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -3740,9 +3565,6 @@ class TCLIService_GetDelegationToken_args { class TCLIService_GetDelegationToken_result { static $_TSPEC; - /** - * @var \TGetDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { @@ -3820,9 +3642,6 @@ class TCLIService_GetDelegationToken_result { class TCLIService_CancelDelegationToken_args { static $_TSPEC; - /** - * @var \TCancelDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -3900,9 +3719,6 @@ class TCLIService_CancelDelegationToken_args { class TCLIService_CancelDelegationToken_result { static $_TSPEC; - /** - * @var \TCancelDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { @@ -3980,9 +3796,6 @@ class TCLIService_CancelDelegationToken_result { class TCLIService_RenewDelegationToken_args { static $_TSPEC; - /** - * @var \TRenewDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -4060,9 +3873,6 @@ class TCLIService_RenewDelegationToken_args { class TCLIService_RenewDelegationToken_result { static $_TSPEC; - /** - * @var \TRenewDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { diff --git a/service/src/gen/thrift/gen-php/ThriftHive.php b/service/src/gen/thrift/gen-php/ThriftHive.php index 23dc8fd..8fc3ff4 100644 --- a/service/src/gen/thrift/gen-php/ThriftHive.php +++ b/service/src/gen/thrift/gen-php/ThriftHive.php @@ -1,6 +1,7 @@ query = $query; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'execute', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -93,7 +58,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_execute() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_execute_result', $this->input_->isStrictRead()); else { @@ -127,7 +92,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_fetchOne() { $args = new \ThriftHive_fetchOne_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchOne', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -143,7 +108,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchOne() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchOne_result', $this->input_->isStrictRead()); else { @@ -181,7 +146,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ { $args = new \ThriftHive_fetchN_args(); $args->numRows = $numRows; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchN', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -197,7 +162,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchN() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchN_result', $this->input_->isStrictRead()); else { @@ -234,7 +199,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_fetchAll() { $args = new \ThriftHive_fetchAll_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchAll', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -250,7 +215,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchAll() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchAll_result', $this->input_->isStrictRead()); else { @@ -287,7 +252,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getSchema() { $args = new \ThriftHive_getSchema_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -303,7 +268,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getSchema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getSchema_result', $this->input_->isStrictRead()); else { @@ -340,7 +305,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getThriftSchema() { $args = new \ThriftHive_getThriftSchema_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getThriftSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -356,7 +321,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getThriftSchema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getThriftSchema_result', $this->input_->isStrictRead()); else { @@ -393,7 +358,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getClusterStatus() { $args = new \ThriftHive_getClusterStatus_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getClusterStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -409,7 +374,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getClusterStatus() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getClusterStatus_result', $this->input_->isStrictRead()); else { @@ -446,7 +411,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getQueryPlan() { $args = new \ThriftHive_getQueryPlan_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getQueryPlan', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -462,7 +427,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getQueryPlan() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getQueryPlan_result', $this->input_->isStrictRead()); else { @@ -499,7 +464,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_clean() { $args = new \ThriftHive_clean_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'clean', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -515,7 +480,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_clean() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_clean_result', $this->input_->isStrictRead()); else { @@ -544,9 +509,6 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ class ThriftHive_execute_args { static $_TSPEC; - /** - * @var string - */ public $query = null; public function __construct($vals=null) { @@ -619,9 +581,6 @@ class ThriftHive_execute_args { class ThriftHive_execute_result { static $_TSPEC; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -746,13 +705,7 @@ class ThriftHive_fetchOne_args { class ThriftHive_fetchOne_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -846,9 +799,6 @@ class ThriftHive_fetchOne_result { class ThriftHive_fetchN_args { static $_TSPEC; - /** - * @var int - */ public $numRows = null; public function __construct($vals=null) { @@ -921,13 +871,7 @@ class ThriftHive_fetchN_args { class ThriftHive_fetchN_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1097,13 +1041,7 @@ class ThriftHive_fetchAll_args { class ThriftHive_fetchAll_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1273,13 +1211,7 @@ class ThriftHive_getSchema_args { class ThriftHive_getSchema_result { static $_TSPEC; - /** - * @var \metastore\Schema - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1428,13 +1360,7 @@ class ThriftHive_getThriftSchema_args { class ThriftHive_getThriftSchema_result { static $_TSPEC; - /** - * @var \metastore\Schema - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1583,13 +1509,7 @@ class ThriftHive_getClusterStatus_args { class ThriftHive_getClusterStatus_result { static $_TSPEC; - /** - * @var \HiveClusterStatus - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1738,13 +1658,7 @@ class ThriftHive_getQueryPlan_args { class ThriftHive_getQueryPlan_result { static $_TSPEC; - /** - * @var \QueryPlan - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { diff --git a/service/src/gen/thrift/gen-php/Types.php b/service/src/gen/thrift/gen-php/Types.php index cbf4c29..f4225ad 100644 --- a/service/src/gen/thrift/gen-php/Types.php +++ b/service/src/gen/thrift/gen-php/Types.php @@ -1,6 +1,8 @@