@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_partStats = true && (isSetPartStats()); list.add(present_partStats); if (present_partStats) list.add(partStats); 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 PART_STATS: return isSetPartStats(); case IS_STATS_COMPLIANT: return isSetIsStatsCompliant(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsResult(PartitionsStatsResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPartStats()) { Map<String,List<ColumnStatisticsObj>> __this__partStats = new HashMap<String,List<ColumnStatisticsObj>>(other.partStats.size()); for (Map.Entry<String, List<ColumnStatisticsObj>> other_element : other.partStats.entrySet()) { String other_element_key = other_element.getKey(); List<ColumnStatisticsObj> other_element_value = other_element.getValue(); String __this__partStats_copy_key = other_element_key; List<ColumnStatisticsObj> __this__partStats_copy_value = new ArrayList<ColumnStatisticsObj>(other_element_value.size()); for (ColumnStatisticsObj other_element_value_element : other_element_value) { __this__partStats_copy_value.add(new ColumnStatisticsObj(other_element_value_element)); } __this__partStats.put(__this__partStats_copy_key, __this__partStats_copy_value); } this.partStats = __this__partStats; } this.isStatsCompliant = other.isStatsCompliant; }
public boolean equals(PartitionsStatsResult that) { if (that == null) return false; boolean this_present_partStats = true && this.isSetPartStats(); boolean that_present_partStats = true && that.isSetPartStats(); if (this_present_partStats || that_present_partStats) { if (!(this_present_partStats && that_present_partStats)) return false; if (!this.partStats.equals(that.partStats)) 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; }
@Override public int compareTo(PartitionsStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(other.isSetPartStats()); if (lastComparison != 0) { return lastComparison; } if (isSetPartStats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, other.partStats); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetIsStatsCompliant()).compareTo(other.isSetIsStatsCompliant()); if (lastComparison != 0) { return lastComparison; } if (isSetIsStatsCompliant()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isStatsCompliant, other.isStatsCompliant); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPartStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public boolean equals(PartitionsStatsResult that) { if (that == null) return false; boolean this_present_partStats = true && this.isSetPartStats(); boolean that_present_partStats = true && that.isSetPartStats(); if (this_present_partStats || that_present_partStats) { if (!(this_present_partStats && that_present_partStats)) return false; if (!this.partStats.equals(that.partStats)) return false; } return true; }
public boolean equals(PartitionsStatsResult that) { if (that == null) return false; boolean this_present_partStats = true && this.isSetPartStats(); boolean that_present_partStats = true && that.isSetPartStats(); if (this_present_partStats || that_present_partStats) { if (!(this_present_partStats && that_present_partStats)) return false; if (!this.partStats.equals(that.partStats)) return false; } return true; }
public boolean equals(PartitionsStatsResult that) { if (that == null) return false; boolean this_present_partStats = true && this.isSetPartStats(); boolean that_present_partStats = true && that.isSetPartStats(); if (this_present_partStats || that_present_partStats) { if (!(this_present_partStats && that_present_partStats)) return false; if (!this.partStats.equals(that.partStats)) return false; } return true; }
/** 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 PART_STATS: return isSetPartStats(); } 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 PART_STATS: return isSetPartStats(); } 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 PART_STATS: return isSetPartStats(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_partStats = true && (isSetPartStats()); list.add(present_partStats); if (present_partStats) list.add(partStats); return list.hashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partStats = true && (isSetPartStats()); builder.append(present_partStats); if (present_partStats) builder.append(partStats); return builder.toHashCode(); }
public int compareTo(PartitionsStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; PartitionsStatsResult typedOther = (PartitionsStatsResult)other; lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(typedOther.isSetPartStats()); if (lastComparison != 0) { return lastComparison; } if (isSetPartStats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, typedOther.partStats); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public PartitionsStatsResult(PartitionsStatsResult other) { if (other.isSetPartStats()) { Map<String,List<ColumnStatisticsObj>> __this__partStats = new HashMap<String,List<ColumnStatisticsObj>>(); for (Map.Entry<String, List<ColumnStatisticsObj>> other_element : other.partStats.entrySet()) { String other_element_key = other_element.getKey(); List<ColumnStatisticsObj> other_element_value = other_element.getValue(); String __this__partStats_copy_key = other_element_key; List<ColumnStatisticsObj> __this__partStats_copy_value = new ArrayList<ColumnStatisticsObj>(); for (ColumnStatisticsObj other_element_value_element : other_element_value) { __this__partStats_copy_value.add(new ColumnStatisticsObj(other_element_value_element)); } __this__partStats.put(__this__partStats_copy_key, __this__partStats_copy_value); } this.partStats = __this__partStats; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPartStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPartStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPartStats()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partStats' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partStats = true && (isSetPartStats()); builder.append(present_partStats); if (present_partStats) builder.append(partStats); return builder.toHashCode(); }