@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_colName = true && (isSetColName()); list.add(present_colName); if (present_colName) list.add(colName); boolean present_colType = true && (isSetColType()); list.add(present_colType); if (present_colType) list.add(colType); boolean present_statsData = true && (isSetStatsData()); list.add(present_statsData); if (present_statsData) list.add(statsData); return list.hashCode(); }
/** 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(); }
lastComparison = Boolean.valueOf(isSetColType()).compareTo(other.isSetColType()); if (lastComparison != 0) { return lastComparison; if (isSetColType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, other.colType); if (lastComparison != 0) {
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; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnStatisticsObj(ColumnStatisticsObj other) { if (other.isSetColName()) { this.colName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.colName); } if (other.isSetColType()) { this.colType = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.colType); } if (other.isSetStatsData()) { this.statsData = new ColumnStatisticsData(other.statsData); } }
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()); } // check for sub-struct validity }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_colName = true && (isSetColName()); list.add(present_colName); if (present_colName) list.add(colName); boolean present_colType = true && (isSetColType()); list.add(present_colType); if (present_colType) list.add(colType); boolean present_statsData = true && (isSetStatsData()); list.add(present_statsData); if (present_statsData) list.add(statsData); return list.hashCode(); }
@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(); }
/** 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(); }
/** 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(); }
/** 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(); }
/** * 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 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; }
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; }
/** * 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); } }
/** * 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 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()); } // check for sub-struct validity }
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()); } // check for sub-struct validity }
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()); } // check for sub-struct validity }
@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(); }