@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_statsDesc = true && (isSetStatsDesc()); list.add(present_statsDesc); if (present_statsDesc) list.add(statsDesc); boolean present_statsObj = true && (isSetStatsObj()); list.add(present_statsObj); if (present_statsObj) list.add(statsObj); boolean present_isStatsCompliant = true && (isSetIsStatsCompliant()); list.add(present_isStatsCompliant); if (present_isStatsCompliant) list.add(isStatsCompliant); 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 STATS_DESC: return isSetStatsDesc(); case STATS_OBJ: return isSetStatsObj(); case IS_STATS_COMPLIANT: return isSetIsStatsCompliant(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public ColumnStatistics(ColumnStatistics other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStatsDesc()) { this.statsDesc = new ColumnStatisticsDesc(other.statsDesc); } if (other.isSetStatsObj()) { List<ColumnStatisticsObj> __this__statsObj = new ArrayList<ColumnStatisticsObj>(other.statsObj.size()); for (ColumnStatisticsObj other_element : other.statsObj) { __this__statsObj.add(new ColumnStatisticsObj(other_element)); } this.statsObj = __this__statsObj; } this.isStatsCompliant = other.isStatsCompliant; }
lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(other.isSetStatsObj()); if (lastComparison != 0) { return lastComparison; if (isSetStatsObj()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, other.statsObj); if (lastComparison != 0) {
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; } boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant(); boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant(); if (this_present_isStatsCompliant || that_present_isStatsCompliant) { if (!(this_present_isStatsCompliant && that_present_isStatsCompliant)) return false; if (this.isStatsCompliant != that.isStatsCompliant) return false; } return true; }
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()); } // check for sub-struct validity if (statsDesc != null) { statsDesc.validate(); } }
/** 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(); }
/** 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 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(); }
/** 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 int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_statsDesc = true && (isSetStatsDesc()); list.add(present_statsDesc); if (present_statsDesc) list.add(statsDesc); boolean present_statsObj = true && (isSetStatsObj()); list.add(present_statsObj); if (present_statsObj) list.add(statsObj); return list.hashCode(); }
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; }
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; }
/** * 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>(other.statsObj.size()); for (ColumnStatisticsObj other_element : other.statsObj) { __this__statsObj.add(new ColumnStatisticsObj(other_element)); } this.statsObj = __this__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; } }
/** * 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 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()); } // check for sub-struct validity if (statsDesc != null) { statsDesc.validate(); } }
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()); } // check for sub-struct validity if (statsDesc != null) { statsDesc.validate(); } }
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()); } // check for sub-struct validity if (statsDesc != null) { statsDesc.validate(); } }
@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(); }