You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by cw...@apache.org on 2012/11/07 05:55:04 UTC

svn commit: r1406465 [5/15] - in /hive/trunk: common/src/java/org/apache/hadoop/hive/conf/ conf/ data/files/ metastore/if/ metastore/src/gen/thrift/gen-cpp/ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen/t...

Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java?rev=1406465&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java Wed Nov  7 04:55:00 2012
@@ -0,0 +1,464 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ColumnStatistics implements org.apache.thrift.TBase<ColumnStatistics, ColumnStatistics._Fields>, 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);
+  private static final org.apache.thrift.protocol.TField STATS_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("statsObj", org.apache.thrift.protocol.TType.LIST, (short)2);
+
+  private ColumnStatisticsDesc statsDesc; // required
+  private List<ColumnStatisticsObj> statsObj; // 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 {
+    STATS_DESC((short)1, "statsDesc"),
+    STATS_OBJ((short)2, "statsObj");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    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: // STATS_DESC
+          return STATS_DESC;
+        case 2: // STATS_OBJ
+          return STATS_OBJ;
+        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.STATS_DESC, new org.apache.thrift.meta_data.FieldMetaData("statsDesc", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatisticsDesc.class)));
+    tmpMap.put(_Fields.STATS_OBJ, new org.apache.thrift.meta_data.FieldMetaData("statsObj", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatisticsObj.class))));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnStatistics.class, metaDataMap);
+  }
+
+  public ColumnStatistics() {
+  }
+
+  public ColumnStatistics(
+    ColumnStatisticsDesc statsDesc,
+    List<ColumnStatisticsObj> statsObj)
+  {
+    this();
+    this.statsDesc = statsDesc;
+    this.statsObj = statsObj;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnStatistics(ColumnStatistics other) {
+    if (other.isSetStatsDesc()) {
+      this.statsDesc = new ColumnStatisticsDesc(other.statsDesc);
+    }
+    if (other.isSetStatsObj()) {
+      List<ColumnStatisticsObj> __this__statsObj = new ArrayList<ColumnStatisticsObj>();
+      for (ColumnStatisticsObj other_element : other.statsObj) {
+        __this__statsObj.add(new ColumnStatisticsObj(other_element));
+      }
+      this.statsObj = __this__statsObj;
+    }
+  }
+
+  public ColumnStatistics deepCopy() {
+    return new ColumnStatistics(this);
+  }
+
+  @Override
+  public void clear() {
+    this.statsDesc = null;
+    this.statsObj = null;
+  }
+
+  public ColumnStatisticsDesc getStatsDesc() {
+    return this.statsDesc;
+  }
+
+  public void setStatsDesc(ColumnStatisticsDesc statsDesc) {
+    this.statsDesc = statsDesc;
+  }
+
+  public void unsetStatsDesc() {
+    this.statsDesc = null;
+  }
+
+  /** Returns true if field statsDesc is set (has been assigned a value) and false otherwise */
+  public boolean isSetStatsDesc() {
+    return this.statsDesc != null;
+  }
+
+  public void setStatsDescIsSet(boolean value) {
+    if (!value) {
+      this.statsDesc = null;
+    }
+  }
+
+  public int getStatsObjSize() {
+    return (this.statsObj == null) ? 0 : this.statsObj.size();
+  }
+
+  public java.util.Iterator<ColumnStatisticsObj> getStatsObjIterator() {
+    return (this.statsObj == null) ? null : this.statsObj.iterator();
+  }
+
+  public void addToStatsObj(ColumnStatisticsObj elem) {
+    if (this.statsObj == null) {
+      this.statsObj = new ArrayList<ColumnStatisticsObj>();
+    }
+    this.statsObj.add(elem);
+  }
+
+  public List<ColumnStatisticsObj> getStatsObj() {
+    return this.statsObj;
+  }
+
+  public void setStatsObj(List<ColumnStatisticsObj> statsObj) {
+    this.statsObj = statsObj;
+  }
+
+  public void unsetStatsObj() {
+    this.statsObj = null;
+  }
+
+  /** Returns true if field statsObj is set (has been assigned a value) and false otherwise */
+  public boolean isSetStatsObj() {
+    return this.statsObj != null;
+  }
+
+  public void setStatsObjIsSet(boolean value) {
+    if (!value) {
+      this.statsObj = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case STATS_DESC:
+      if (value == null) {
+        unsetStatsDesc();
+      } else {
+        setStatsDesc((ColumnStatisticsDesc)value);
+      }
+      break;
+
+    case STATS_OBJ:
+      if (value == null) {
+        unsetStatsObj();
+      } else {
+        setStatsObj((List<ColumnStatisticsObj>)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case STATS_DESC:
+      return getStatsDesc();
+
+    case STATS_OBJ:
+      return getStatsObj();
+
+    }
+    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 STATS_DESC:
+      return isSetStatsDesc();
+    case STATS_OBJ:
+      return isSetStatsObj();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnStatistics)
+      return this.equals((ColumnStatistics)that);
+    return false;
+  }
+
+  public boolean equals(ColumnStatistics that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_statsDesc = true && this.isSetStatsDesc();
+    boolean that_present_statsDesc = true && that.isSetStatsDesc();
+    if (this_present_statsDesc || that_present_statsDesc) {
+      if (!(this_present_statsDesc && that_present_statsDesc))
+        return false;
+      if (!this.statsDesc.equals(that.statsDesc))
+        return false;
+    }
+
+    boolean this_present_statsObj = true && this.isSetStatsObj();
+    boolean that_present_statsObj = true && that.isSetStatsObj();
+    if (this_present_statsObj || that_present_statsObj) {
+      if (!(this_present_statsObj && that_present_statsObj))
+        return false;
+      if (!this.statsObj.equals(that.statsObj))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_statsDesc = true && (isSetStatsDesc());
+    builder.append(present_statsDesc);
+    if (present_statsDesc)
+      builder.append(statsDesc);
+
+    boolean present_statsObj = true && (isSetStatsObj());
+    builder.append(present_statsObj);
+    if (present_statsObj)
+      builder.append(statsObj);
+
+    return builder.toHashCode();
+  }
+
+  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(typedOther.isSetStatsDesc());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetStatsDesc()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsDesc, typedOther.statsDesc);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(typedOther.isSetStatsObj());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetStatsObj()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, typedOther.statsObj);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // STATS_DESC
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.statsDesc = new ColumnStatisticsDesc();
+            this.statsDesc.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // STATS_OBJ
+          if (field.type == org.apache.thrift.protocol.TType.LIST) {
+            {
+              org.apache.thrift.protocol.TList _list110 = iprot.readListBegin();
+              this.statsObj = new ArrayList<ColumnStatisticsObj>(_list110.size);
+              for (int _i111 = 0; _i111 < _list110.size; ++_i111)
+              {
+                ColumnStatisticsObj _elem112; // required
+                _elem112 = new ColumnStatisticsObj();
+                _elem112.read(iprot);
+                this.statsObj.add(_elem112);
+              }
+              iprot.readListEnd();
+            }
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.statsDesc != null) {
+      oprot.writeFieldBegin(STATS_DESC_FIELD_DESC);
+      this.statsDesc.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    if (this.statsObj != null) {
+      oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC);
+      {
+        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.statsObj.size()));
+        for (ColumnStatisticsObj _iter113 : this.statsObj)
+        {
+          _iter113.write(oprot);
+        }
+        oprot.writeListEnd();
+      }
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("ColumnStatistics(");
+    boolean first = true;
+
+    sb.append("statsDesc:");
+    if (this.statsDesc == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.statsDesc);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("statsObj:");
+    if (this.statsObj == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.statsObj);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetStatsDesc()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'statsDesc' is unset! Struct:" + toString());
+    }
+
+    if (!isSetStatsObj()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'statsObj' is unset! Struct:" + toString());
+    }
+
+  }
+
+  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);
+    }
+  }
+
+}
+

Propchange: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java?rev=1406465&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java Wed Nov  7 04:55:00 2012
@@ -0,0 +1,474 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ColumnStatisticsData extends org.apache.thrift.TUnion<ColumnStatisticsData, ColumnStatisticsData._Fields> {
+  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);
+  private static final org.apache.thrift.protocol.TField LONG_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("longStats", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+  private static final org.apache.thrift.protocol.TField DOUBLE_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("doubleStats", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+  private static final org.apache.thrift.protocol.TField STRING_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("stringStats", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+  private static final org.apache.thrift.protocol.TField BINARY_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("binaryStats", org.apache.thrift.protocol.TType.STRUCT, (short)5);
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    BOOLEAN_STATS((short)1, "booleanStats"),
+    LONG_STATS((short)2, "longStats"),
+    DOUBLE_STATS((short)3, "doubleStats"),
+    STRING_STATS((short)4, "stringStats"),
+    BINARY_STATS((short)5, "binaryStats");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    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: // BOOLEAN_STATS
+          return BOOLEAN_STATS;
+        case 2: // LONG_STATS
+          return LONG_STATS;
+        case 3: // DOUBLE_STATS
+          return DOUBLE_STATS;
+        case 4: // STRING_STATS
+          return STRING_STATS;
+        case 5: // BINARY_STATS
+          return BINARY_STATS;
+        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);
+    tmpMap.put(_Fields.BOOLEAN_STATS, new org.apache.thrift.meta_data.FieldMetaData("booleanStats", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BooleanColumnStatsData.class)));
+    tmpMap.put(_Fields.LONG_STATS, new org.apache.thrift.meta_data.FieldMetaData("longStats", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LongColumnStatsData.class)));
+    tmpMap.put(_Fields.DOUBLE_STATS, new org.apache.thrift.meta_data.FieldMetaData("doubleStats", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DoubleColumnStatsData.class)));
+    tmpMap.put(_Fields.STRING_STATS, new org.apache.thrift.meta_data.FieldMetaData("stringStats", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StringColumnStatsData.class)));
+    tmpMap.put(_Fields.BINARY_STATS, new org.apache.thrift.meta_data.FieldMetaData("binaryStats", org.apache.thrift.TFieldRequirementType.DEFAULT, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BinaryColumnStatsData.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnStatisticsData.class, metaDataMap);
+  }
+
+  public ColumnStatisticsData() {
+    super();
+  }
+
+  public ColumnStatisticsData(_Fields setField, Object value) {
+    super(setField, value);
+  }
+
+  public ColumnStatisticsData(ColumnStatisticsData other) {
+    super(other);
+  }
+  public ColumnStatisticsData deepCopy() {
+    return new ColumnStatisticsData(this);
+  }
+
+  public static ColumnStatisticsData booleanStats(BooleanColumnStatsData value) {
+    ColumnStatisticsData x = new ColumnStatisticsData();
+    x.setBooleanStats(value);
+    return x;
+  }
+
+  public static ColumnStatisticsData longStats(LongColumnStatsData value) {
+    ColumnStatisticsData x = new ColumnStatisticsData();
+    x.setLongStats(value);
+    return x;
+  }
+
+  public static ColumnStatisticsData doubleStats(DoubleColumnStatsData value) {
+    ColumnStatisticsData x = new ColumnStatisticsData();
+    x.setDoubleStats(value);
+    return x;
+  }
+
+  public static ColumnStatisticsData stringStats(StringColumnStatsData value) {
+    ColumnStatisticsData x = new ColumnStatisticsData();
+    x.setStringStats(value);
+    return x;
+  }
+
+  public static ColumnStatisticsData binaryStats(BinaryColumnStatsData value) {
+    ColumnStatisticsData x = new ColumnStatisticsData();
+    x.setBinaryStats(value);
+    return x;
+  }
+
+
+  @Override
+  protected void checkType(_Fields setField, Object value) throws ClassCastException {
+    switch (setField) {
+      case BOOLEAN_STATS:
+        if (value instanceof BooleanColumnStatsData) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type BooleanColumnStatsData for field 'booleanStats', but got " + value.getClass().getSimpleName());
+      case LONG_STATS:
+        if (value instanceof LongColumnStatsData) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type LongColumnStatsData for field 'longStats', but got " + value.getClass().getSimpleName());
+      case DOUBLE_STATS:
+        if (value instanceof DoubleColumnStatsData) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type DoubleColumnStatsData for field 'doubleStats', but got " + value.getClass().getSimpleName());
+      case STRING_STATS:
+        if (value instanceof StringColumnStatsData) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type StringColumnStatsData for field 'stringStats', but got " + value.getClass().getSimpleName());
+      case BINARY_STATS:
+        if (value instanceof BinaryColumnStatsData) {
+          break;
+        }
+        throw new ClassCastException("Was expecting value of type BinaryColumnStatsData for field 'binaryStats', but got " + value.getClass().getSimpleName());
+      default:
+        throw new IllegalArgumentException("Unknown field id " + setField);
+    }
+  }
+
+  @Override
+  protected Object readValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException {
+    _Fields setField = _Fields.findByThriftId(field.id);
+    if (setField != null) {
+      switch (setField) {
+        case BOOLEAN_STATS:
+          if (field.type == BOOLEAN_STATS_FIELD_DESC.type) {
+            BooleanColumnStatsData booleanStats;
+            booleanStats = new BooleanColumnStatsData();
+            booleanStats.read(iprot);
+            return booleanStats;
+          } else {
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case LONG_STATS:
+          if (field.type == LONG_STATS_FIELD_DESC.type) {
+            LongColumnStatsData longStats;
+            longStats = new LongColumnStatsData();
+            longStats.read(iprot);
+            return longStats;
+          } else {
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case DOUBLE_STATS:
+          if (field.type == DOUBLE_STATS_FIELD_DESC.type) {
+            DoubleColumnStatsData doubleStats;
+            doubleStats = new DoubleColumnStatsData();
+            doubleStats.read(iprot);
+            return doubleStats;
+          } else {
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case STRING_STATS:
+          if (field.type == STRING_STATS_FIELD_DESC.type) {
+            StringColumnStatsData stringStats;
+            stringStats = new StringColumnStatsData();
+            stringStats.read(iprot);
+            return stringStats;
+          } else {
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        case BINARY_STATS:
+          if (field.type == BINARY_STATS_FIELD_DESC.type) {
+            BinaryColumnStatsData binaryStats;
+            binaryStats = new BinaryColumnStatsData();
+            binaryStats.read(iprot);
+            return binaryStats;
+          } else {
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+            return null;
+          }
+        default:
+          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;
+    }
+  }
+
+  @Override
+  protected void writeValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    switch (setField_) {
+      case BOOLEAN_STATS:
+        BooleanColumnStatsData booleanStats = (BooleanColumnStatsData)value_;
+        booleanStats.write(oprot);
+        return;
+      case LONG_STATS:
+        LongColumnStatsData longStats = (LongColumnStatsData)value_;
+        longStats.write(oprot);
+        return;
+      case DOUBLE_STATS:
+        DoubleColumnStatsData doubleStats = (DoubleColumnStatsData)value_;
+        doubleStats.write(oprot);
+        return;
+      case STRING_STATS:
+        StringColumnStatsData stringStats = (StringColumnStatsData)value_;
+        stringStats.write(oprot);
+        return;
+      case BINARY_STATS:
+        BinaryColumnStatsData binaryStats = (BinaryColumnStatsData)value_;
+        binaryStats.write(oprot);
+        return;
+      default:
+        throw new IllegalStateException("Cannot write union with unknown field " + setField_);
+    }
+  }
+
+  @Override
+  protected org.apache.thrift.protocol.TField getFieldDesc(_Fields setField) {
+    switch (setField) {
+      case BOOLEAN_STATS:
+        return BOOLEAN_STATS_FIELD_DESC;
+      case LONG_STATS:
+        return LONG_STATS_FIELD_DESC;
+      case DOUBLE_STATS:
+        return DOUBLE_STATS_FIELD_DESC;
+      case STRING_STATS:
+        return STRING_STATS_FIELD_DESC;
+      case BINARY_STATS:
+        return BINARY_STATS_FIELD_DESC;
+      default:
+        throw new IllegalArgumentException("Unknown field id " + setField);
+    }
+  }
+
+  @Override
+  protected org.apache.thrift.protocol.TStruct getStructDesc() {
+    return STRUCT_DESC;
+  }
+
+  @Override
+  protected _Fields enumForId(short id) {
+    return _Fields.findByThriftIdOrThrow(id);
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+
+  public BooleanColumnStatsData getBooleanStats() {
+    if (getSetField() == _Fields.BOOLEAN_STATS) {
+      return (BooleanColumnStatsData)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'booleanStats' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setBooleanStats(BooleanColumnStatsData value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.BOOLEAN_STATS;
+    value_ = value;
+  }
+
+  public LongColumnStatsData getLongStats() {
+    if (getSetField() == _Fields.LONG_STATS) {
+      return (LongColumnStatsData)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'longStats' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setLongStats(LongColumnStatsData value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.LONG_STATS;
+    value_ = value;
+  }
+
+  public DoubleColumnStatsData getDoubleStats() {
+    if (getSetField() == _Fields.DOUBLE_STATS) {
+      return (DoubleColumnStatsData)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'doubleStats' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setDoubleStats(DoubleColumnStatsData value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.DOUBLE_STATS;
+    value_ = value;
+  }
+
+  public StringColumnStatsData getStringStats() {
+    if (getSetField() == _Fields.STRING_STATS) {
+      return (StringColumnStatsData)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'stringStats' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setStringStats(StringColumnStatsData value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.STRING_STATS;
+    value_ = value;
+  }
+
+  public BinaryColumnStatsData getBinaryStats() {
+    if (getSetField() == _Fields.BINARY_STATS) {
+      return (BinaryColumnStatsData)getFieldValue();
+    } else {
+      throw new RuntimeException("Cannot get field 'binaryStats' because union is currently set to " + getFieldDesc(getSetField()).name);
+    }
+  }
+
+  public void setBinaryStats(BinaryColumnStatsData value) {
+    if (value == null) throw new NullPointerException();
+    setField_ = _Fields.BINARY_STATS;
+    value_ = value;
+  }
+
+  public boolean isSetBooleanStats() {
+    return setField_ == _Fields.BOOLEAN_STATS;
+  }
+
+
+  public boolean isSetLongStats() {
+    return setField_ == _Fields.LONG_STATS;
+  }
+
+
+  public boolean isSetDoubleStats() {
+    return setField_ == _Fields.DOUBLE_STATS;
+  }
+
+
+  public boolean isSetStringStats() {
+    return setField_ == _Fields.STRING_STATS;
+  }
+
+
+  public boolean isSetBinaryStats() {
+    return setField_ == _Fields.BINARY_STATS;
+  }
+
+
+  public boolean equals(Object other) {
+    if (other instanceof ColumnStatisticsData) {
+      return equals((ColumnStatisticsData)other);
+    } else {
+      return false;
+    }
+  }
+
+  public boolean equals(ColumnStatisticsData other) {
+    return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
+  }
+
+  @Override
+  public int compareTo(ColumnStatisticsData other) {
+    int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField());
+    if (lastComparison == 0) {
+      return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
+    }
+    return lastComparison;
+  }
+
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder hcb = new HashCodeBuilder();
+    hcb.append(this.getClass().getName());
+    org.apache.thrift.TFieldIdEnum setField = getSetField();
+    if (setField != null) {
+      hcb.append(setField.getThriftFieldId());
+      Object value = getFieldValue();
+      if (value instanceof org.apache.thrift.TEnum) {
+        hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue());
+      } else {
+        hcb.append(value);
+      }
+    }
+    return hcb.toHashCode();
+  }
+  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);
+    }
+  }
+
+
+}

Propchange: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java?rev=1406465&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java Wed Nov  7 04:55:00 2012
@@ -0,0 +1,706 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ColumnStatisticsDesc implements org.apache.thrift.TBase<ColumnStatisticsDesc, ColumnStatisticsDesc._Fields>, 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);
+  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)2);
+  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)3);
+  private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("partName", org.apache.thrift.protocol.TType.STRING, (short)4);
+  private static final org.apache.thrift.protocol.TField LAST_ANALYZED_FIELD_DESC = new org.apache.thrift.protocol.TField("lastAnalyzed", org.apache.thrift.protocol.TType.I64, (short)5);
+
+  private boolean isTblLevel; // required
+  private String dbName; // required
+  private String tableName; // required
+  private String partName; // required
+  private long lastAnalyzed; // 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 {
+    IS_TBL_LEVEL((short)1, "isTblLevel"),
+    DB_NAME((short)2, "dbName"),
+    TABLE_NAME((short)3, "tableName"),
+    PART_NAME((short)4, "partName"),
+    LAST_ANALYZED((short)5, "lastAnalyzed");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    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: // IS_TBL_LEVEL
+          return IS_TBL_LEVEL;
+        case 2: // DB_NAME
+          return DB_NAME;
+        case 3: // TABLE_NAME
+          return TABLE_NAME;
+        case 4: // PART_NAME
+          return PART_NAME;
+        case 5: // LAST_ANALYZED
+          return LAST_ANALYZED;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private static final int __ISTBLLEVEL_ISSET_ID = 0;
+  private static final int __LASTANALYZED_ISSET_ID = 1;
+  private BitSet __isset_bit_vector = new BitSet(2);
+
+  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.IS_TBL_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("isTblLevel", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+    tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("partName", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.LAST_ANALYZED, new org.apache.thrift.meta_data.FieldMetaData("lastAnalyzed", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnStatisticsDesc.class, metaDataMap);
+  }
+
+  public ColumnStatisticsDesc() {
+  }
+
+  public ColumnStatisticsDesc(
+    boolean isTblLevel,
+    String dbName,
+    String tableName)
+  {
+    this();
+    this.isTblLevel = isTblLevel;
+    setIsTblLevelIsSet(true);
+    this.dbName = dbName;
+    this.tableName = tableName;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnStatisticsDesc(ColumnStatisticsDesc other) {
+    __isset_bit_vector.clear();
+    __isset_bit_vector.or(other.__isset_bit_vector);
+    this.isTblLevel = other.isTblLevel;
+    if (other.isSetDbName()) {
+      this.dbName = other.dbName;
+    }
+    if (other.isSetTableName()) {
+      this.tableName = other.tableName;
+    }
+    if (other.isSetPartName()) {
+      this.partName = other.partName;
+    }
+    this.lastAnalyzed = other.lastAnalyzed;
+  }
+
+  public ColumnStatisticsDesc deepCopy() {
+    return new ColumnStatisticsDesc(this);
+  }
+
+  @Override
+  public void clear() {
+    setIsTblLevelIsSet(false);
+    this.isTblLevel = false;
+    this.dbName = null;
+    this.tableName = null;
+    this.partName = null;
+    setLastAnalyzedIsSet(false);
+    this.lastAnalyzed = 0;
+  }
+
+  public boolean isIsTblLevel() {
+    return this.isTblLevel;
+  }
+
+  public void setIsTblLevel(boolean isTblLevel) {
+    this.isTblLevel = isTblLevel;
+    setIsTblLevelIsSet(true);
+  }
+
+  public void unsetIsTblLevel() {
+    __isset_bit_vector.clear(__ISTBLLEVEL_ISSET_ID);
+  }
+
+  /** Returns true if field isTblLevel is set (has been assigned a value) and false otherwise */
+  public boolean isSetIsTblLevel() {
+    return __isset_bit_vector.get(__ISTBLLEVEL_ISSET_ID);
+  }
+
+  public void setIsTblLevelIsSet(boolean value) {
+    __isset_bit_vector.set(__ISTBLLEVEL_ISSET_ID, value);
+  }
+
+  public String getDbName() {
+    return this.dbName;
+  }
+
+  public void setDbName(String dbName) {
+    this.dbName = dbName;
+  }
+
+  public void unsetDbName() {
+    this.dbName = null;
+  }
+
+  /** Returns true if field dbName is set (has been assigned a value) and false otherwise */
+  public boolean isSetDbName() {
+    return this.dbName != null;
+  }
+
+  public void setDbNameIsSet(boolean value) {
+    if (!value) {
+      this.dbName = null;
+    }
+  }
+
+  public String getTableName() {
+    return this.tableName;
+  }
+
+  public void setTableName(String tableName) {
+    this.tableName = tableName;
+  }
+
+  public void unsetTableName() {
+    this.tableName = null;
+  }
+
+  /** Returns true if field tableName is set (has been assigned a value) and false otherwise */
+  public boolean isSetTableName() {
+    return this.tableName != null;
+  }
+
+  public void setTableNameIsSet(boolean value) {
+    if (!value) {
+      this.tableName = null;
+    }
+  }
+
+  public String getPartName() {
+    return this.partName;
+  }
+
+  public void setPartName(String partName) {
+    this.partName = partName;
+  }
+
+  public void unsetPartName() {
+    this.partName = null;
+  }
+
+  /** Returns true if field partName is set (has been assigned a value) and false otherwise */
+  public boolean isSetPartName() {
+    return this.partName != null;
+  }
+
+  public void setPartNameIsSet(boolean value) {
+    if (!value) {
+      this.partName = null;
+    }
+  }
+
+  public long getLastAnalyzed() {
+    return this.lastAnalyzed;
+  }
+
+  public void setLastAnalyzed(long lastAnalyzed) {
+    this.lastAnalyzed = lastAnalyzed;
+    setLastAnalyzedIsSet(true);
+  }
+
+  public void unsetLastAnalyzed() {
+    __isset_bit_vector.clear(__LASTANALYZED_ISSET_ID);
+  }
+
+  /** Returns true if field lastAnalyzed is set (has been assigned a value) and false otherwise */
+  public boolean isSetLastAnalyzed() {
+    return __isset_bit_vector.get(__LASTANALYZED_ISSET_ID);
+  }
+
+  public void setLastAnalyzedIsSet(boolean value) {
+    __isset_bit_vector.set(__LASTANALYZED_ISSET_ID, value);
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case IS_TBL_LEVEL:
+      if (value == null) {
+        unsetIsTblLevel();
+      } else {
+        setIsTblLevel((Boolean)value);
+      }
+      break;
+
+    case DB_NAME:
+      if (value == null) {
+        unsetDbName();
+      } else {
+        setDbName((String)value);
+      }
+      break;
+
+    case TABLE_NAME:
+      if (value == null) {
+        unsetTableName();
+      } else {
+        setTableName((String)value);
+      }
+      break;
+
+    case PART_NAME:
+      if (value == null) {
+        unsetPartName();
+      } else {
+        setPartName((String)value);
+      }
+      break;
+
+    case LAST_ANALYZED:
+      if (value == null) {
+        unsetLastAnalyzed();
+      } else {
+        setLastAnalyzed((Long)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case IS_TBL_LEVEL:
+      return Boolean.valueOf(isIsTblLevel());
+
+    case DB_NAME:
+      return getDbName();
+
+    case TABLE_NAME:
+      return getTableName();
+
+    case PART_NAME:
+      return getPartName();
+
+    case LAST_ANALYZED:
+      return Long.valueOf(getLastAnalyzed());
+
+    }
+    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 IS_TBL_LEVEL:
+      return isSetIsTblLevel();
+    case DB_NAME:
+      return isSetDbName();
+    case TABLE_NAME:
+      return isSetTableName();
+    case PART_NAME:
+      return isSetPartName();
+    case LAST_ANALYZED:
+      return isSetLastAnalyzed();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnStatisticsDesc)
+      return this.equals((ColumnStatisticsDesc)that);
+    return false;
+  }
+
+  public boolean equals(ColumnStatisticsDesc that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_isTblLevel = true;
+    boolean that_present_isTblLevel = true;
+    if (this_present_isTblLevel || that_present_isTblLevel) {
+      if (!(this_present_isTblLevel && that_present_isTblLevel))
+        return false;
+      if (this.isTblLevel != that.isTblLevel)
+        return false;
+    }
+
+    boolean this_present_dbName = true && this.isSetDbName();
+    boolean that_present_dbName = true && that.isSetDbName();
+    if (this_present_dbName || that_present_dbName) {
+      if (!(this_present_dbName && that_present_dbName))
+        return false;
+      if (!this.dbName.equals(that.dbName))
+        return false;
+    }
+
+    boolean this_present_tableName = true && this.isSetTableName();
+    boolean that_present_tableName = true && that.isSetTableName();
+    if (this_present_tableName || that_present_tableName) {
+      if (!(this_present_tableName && that_present_tableName))
+        return false;
+      if (!this.tableName.equals(that.tableName))
+        return false;
+    }
+
+    boolean this_present_partName = true && this.isSetPartName();
+    boolean that_present_partName = true && that.isSetPartName();
+    if (this_present_partName || that_present_partName) {
+      if (!(this_present_partName && that_present_partName))
+        return false;
+      if (!this.partName.equals(that.partName))
+        return false;
+    }
+
+    boolean this_present_lastAnalyzed = true && this.isSetLastAnalyzed();
+    boolean that_present_lastAnalyzed = true && that.isSetLastAnalyzed();
+    if (this_present_lastAnalyzed || that_present_lastAnalyzed) {
+      if (!(this_present_lastAnalyzed && that_present_lastAnalyzed))
+        return false;
+      if (this.lastAnalyzed != that.lastAnalyzed)
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_isTblLevel = true;
+    builder.append(present_isTblLevel);
+    if (present_isTblLevel)
+      builder.append(isTblLevel);
+
+    boolean present_dbName = true && (isSetDbName());
+    builder.append(present_dbName);
+    if (present_dbName)
+      builder.append(dbName);
+
+    boolean present_tableName = true && (isSetTableName());
+    builder.append(present_tableName);
+    if (present_tableName)
+      builder.append(tableName);
+
+    boolean present_partName = true && (isSetPartName());
+    builder.append(present_partName);
+    if (present_partName)
+      builder.append(partName);
+
+    boolean present_lastAnalyzed = true && (isSetLastAnalyzed());
+    builder.append(present_lastAnalyzed);
+    if (present_lastAnalyzed)
+      builder.append(lastAnalyzed);
+
+    return builder.toHashCode();
+  }
+
+  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(typedOther.isSetIsTblLevel());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetIsTblLevel()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTblLevel, typedOther.isTblLevel);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDbName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetTableName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetPartName()).compareTo(typedOther.isSetPartName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPartName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, typedOther.partName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(typedOther.isSetLastAnalyzed());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLastAnalyzed()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, typedOther.lastAnalyzed);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // IS_TBL_LEVEL
+          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
+            this.isTblLevel = iprot.readBool();
+            setIsTblLevelIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // DB_NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.dbName = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // TABLE_NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.tableName = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 4: // PART_NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.partName = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 5: // LAST_ANALYZED
+          if (field.type == org.apache.thrift.protocol.TType.I64) {
+            this.lastAnalyzed = iprot.readI64();
+            setLastAnalyzedIsSet(true);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    oprot.writeFieldBegin(IS_TBL_LEVEL_FIELD_DESC);
+    oprot.writeBool(this.isTblLevel);
+    oprot.writeFieldEnd();
+    if (this.dbName != null) {
+      oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
+      oprot.writeString(this.dbName);
+      oprot.writeFieldEnd();
+    }
+    if (this.tableName != null) {
+      oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
+      oprot.writeString(this.tableName);
+      oprot.writeFieldEnd();
+    }
+    if (this.partName != null) {
+      if (isSetPartName()) {
+        oprot.writeFieldBegin(PART_NAME_FIELD_DESC);
+        oprot.writeString(this.partName);
+        oprot.writeFieldEnd();
+      }
+    }
+    if (isSetLastAnalyzed()) {
+      oprot.writeFieldBegin(LAST_ANALYZED_FIELD_DESC);
+      oprot.writeI64(this.lastAnalyzed);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("ColumnStatisticsDesc(");
+    boolean first = true;
+
+    sb.append("isTblLevel:");
+    sb.append(this.isTblLevel);
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("dbName:");
+    if (this.dbName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.dbName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("tableName:");
+    if (this.tableName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.tableName);
+    }
+    first = false;
+    if (isSetPartName()) {
+      if (!first) sb.append(", ");
+      sb.append("partName:");
+      if (this.partName == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.partName);
+      }
+      first = false;
+    }
+    if (isSetLastAnalyzed()) {
+      if (!first) sb.append(", ");
+      sb.append("lastAnalyzed:");
+      sb.append(this.lastAnalyzed);
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetIsTblLevel()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'isTblLevel' is unset! Struct:" + toString());
+    }
+
+    if (!isSetDbName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString());
+    }
+
+    if (!isSetTableName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'tableName' is unset! Struct:" + toString());
+    }
+
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+      __isset_bit_vector = new BitSet(1);
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+}
+

Propchange: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java?rev=1406465&view=auto
==============================================================================
--- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java (added)
+++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java Wed Nov  7 04:55:00 2012
@@ -0,0 +1,523 @@
+/**
+ * Autogenerated by Thrift Compiler (0.7.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ */
+package org.apache.hadoop.hive.metastore.api;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class ColumnStatisticsObj implements org.apache.thrift.TBase<ColumnStatisticsObj, ColumnStatisticsObj._Fields>, 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);
+  private static final org.apache.thrift.protocol.TField COL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("colType", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField STATS_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("statsData", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+
+  private String colName; // required
+  private String colType; // required
+  private ColumnStatisticsData statsData; // 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 {
+    COL_NAME((short)1, "colName"),
+    COL_TYPE((short)2, "colType"),
+    STATS_DATA((short)3, "statsData");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    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: // COL_NAME
+          return COL_NAME;
+        case 2: // COL_TYPE
+          return COL_TYPE;
+        case 3: // STATS_DATA
+          return STATS_DATA;
+        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.COL_NAME, new org.apache.thrift.meta_data.FieldMetaData("colName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.COL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("colType", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.STATS_DATA, new org.apache.thrift.meta_data.FieldMetaData("statsData", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatisticsData.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnStatisticsObj.class, metaDataMap);
+  }
+
+  public ColumnStatisticsObj() {
+  }
+
+  public ColumnStatisticsObj(
+    String colName,
+    String colType,
+    ColumnStatisticsData statsData)
+  {
+    this();
+    this.colName = colName;
+    this.colType = colType;
+    this.statsData = statsData;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public ColumnStatisticsObj(ColumnStatisticsObj other) {
+    if (other.isSetColName()) {
+      this.colName = other.colName;
+    }
+    if (other.isSetColType()) {
+      this.colType = other.colType;
+    }
+    if (other.isSetStatsData()) {
+      this.statsData = new ColumnStatisticsData(other.statsData);
+    }
+  }
+
+  public ColumnStatisticsObj deepCopy() {
+    return new ColumnStatisticsObj(this);
+  }
+
+  @Override
+  public void clear() {
+    this.colName = null;
+    this.colType = null;
+    this.statsData = null;
+  }
+
+  public String getColName() {
+    return this.colName;
+  }
+
+  public void setColName(String colName) {
+    this.colName = colName;
+  }
+
+  public void unsetColName() {
+    this.colName = null;
+  }
+
+  /** Returns true if field colName is set (has been assigned a value) and false otherwise */
+  public boolean isSetColName() {
+    return this.colName != null;
+  }
+
+  public void setColNameIsSet(boolean value) {
+    if (!value) {
+      this.colName = null;
+    }
+  }
+
+  public String getColType() {
+    return this.colType;
+  }
+
+  public void setColType(String colType) {
+    this.colType = colType;
+  }
+
+  public void unsetColType() {
+    this.colType = null;
+  }
+
+  /** Returns true if field colType is set (has been assigned a value) and false otherwise */
+  public boolean isSetColType() {
+    return this.colType != null;
+  }
+
+  public void setColTypeIsSet(boolean value) {
+    if (!value) {
+      this.colType = null;
+    }
+  }
+
+  public ColumnStatisticsData getStatsData() {
+    return this.statsData;
+  }
+
+  public void setStatsData(ColumnStatisticsData statsData) {
+    this.statsData = statsData;
+  }
+
+  public void unsetStatsData() {
+    this.statsData = null;
+  }
+
+  /** Returns true if field statsData is set (has been assigned a value) and false otherwise */
+  public boolean isSetStatsData() {
+    return this.statsData != null;
+  }
+
+  public void setStatsDataIsSet(boolean value) {
+    if (!value) {
+      this.statsData = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case COL_NAME:
+      if (value == null) {
+        unsetColName();
+      } else {
+        setColName((String)value);
+      }
+      break;
+
+    case COL_TYPE:
+      if (value == null) {
+        unsetColType();
+      } else {
+        setColType((String)value);
+      }
+      break;
+
+    case STATS_DATA:
+      if (value == null) {
+        unsetStatsData();
+      } else {
+        setStatsData((ColumnStatisticsData)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case COL_NAME:
+      return getColName();
+
+    case COL_TYPE:
+      return getColType();
+
+    case STATS_DATA:
+      return getStatsData();
+
+    }
+    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 COL_NAME:
+      return isSetColName();
+    case COL_TYPE:
+      return isSetColType();
+    case STATS_DATA:
+      return isSetStatsData();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof ColumnStatisticsObj)
+      return this.equals((ColumnStatisticsObj)that);
+    return false;
+  }
+
+  public boolean equals(ColumnStatisticsObj that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_colName = true && this.isSetColName();
+    boolean that_present_colName = true && that.isSetColName();
+    if (this_present_colName || that_present_colName) {
+      if (!(this_present_colName && that_present_colName))
+        return false;
+      if (!this.colName.equals(that.colName))
+        return false;
+    }
+
+    boolean this_present_colType = true && this.isSetColType();
+    boolean that_present_colType = true && that.isSetColType();
+    if (this_present_colType || that_present_colType) {
+      if (!(this_present_colType && that_present_colType))
+        return false;
+      if (!this.colType.equals(that.colType))
+        return false;
+    }
+
+    boolean this_present_statsData = true && this.isSetStatsData();
+    boolean that_present_statsData = true && that.isSetStatsData();
+    if (this_present_statsData || that_present_statsData) {
+      if (!(this_present_statsData && that_present_statsData))
+        return false;
+      if (!this.statsData.equals(that.statsData))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    HashCodeBuilder builder = new HashCodeBuilder();
+
+    boolean present_colName = true && (isSetColName());
+    builder.append(present_colName);
+    if (present_colName)
+      builder.append(colName);
+
+    boolean present_colType = true && (isSetColType());
+    builder.append(present_colType);
+    if (present_colType)
+      builder.append(colType);
+
+    boolean present_statsData = true && (isSetStatsData());
+    builder.append(present_statsData);
+    if (present_statsData)
+      builder.append(statsData);
+
+    return builder.toHashCode();
+  }
+
+  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(typedOther.isSetColName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colName, typedOther.colName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetColType()).compareTo(typedOther.isSetColType());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetColType()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, typedOther.colType);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetStatsData()).compareTo(typedOther.isSetStatsData());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetStatsData()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsData, typedOther.statsData);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    org.apache.thrift.protocol.TField field;
+    iprot.readStructBegin();
+    while (true)
+    {
+      field = iprot.readFieldBegin();
+      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
+        break;
+      }
+      switch (field.id) {
+        case 1: // COL_NAME
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.colName = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 2: // COL_TYPE
+          if (field.type == org.apache.thrift.protocol.TType.STRING) {
+            this.colType = iprot.readString();
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        case 3: // STATS_DATA
+          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
+            this.statsData = new ColumnStatisticsData();
+            this.statsData.read(iprot);
+          } else { 
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+          }
+          break;
+        default:
+          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
+      }
+      iprot.readFieldEnd();
+    }
+    iprot.readStructEnd();
+    validate();
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    validate();
+
+    oprot.writeStructBegin(STRUCT_DESC);
+    if (this.colName != null) {
+      oprot.writeFieldBegin(COL_NAME_FIELD_DESC);
+      oprot.writeString(this.colName);
+      oprot.writeFieldEnd();
+    }
+    if (this.colType != null) {
+      oprot.writeFieldBegin(COL_TYPE_FIELD_DESC);
+      oprot.writeString(this.colType);
+      oprot.writeFieldEnd();
+    }
+    if (this.statsData != null) {
+      oprot.writeFieldBegin(STATS_DATA_FIELD_DESC);
+      this.statsData.write(oprot);
+      oprot.writeFieldEnd();
+    }
+    oprot.writeFieldStop();
+    oprot.writeStructEnd();
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("ColumnStatisticsObj(");
+    boolean first = true;
+
+    sb.append("colName:");
+    if (this.colName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.colName);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("colType:");
+    if (this.colType == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.colType);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("statsData:");
+    if (this.statsData == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.statsData);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (!isSetColName()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'colName' is unset! Struct:" + toString());
+    }
+
+    if (!isSetColType()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'colType' is unset! Struct:" + toString());
+    }
+
+    if (!isSetStatsData()) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'statsData' is unset! Struct:" + toString());
+    }
+
+  }
+
+  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);
+    }
+  }
+
+}
+

Propchange: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java
------------------------------------------------------------------------------
    svn:eol-style = native