/** 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(); }
@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(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("PartitionsStatsResult("); boolean first = true; sb.append("partStats:"); if (this.partStats == null) { sb.append("null"); } else { sb.append(this.partStats); } first = false; if (isSetIsStatsCompliant()) { if (!first) sb.append(", "); sb.append("isStatsCompliant:"); sb.append(this.isStatsCompliant); first = false; } sb.append(")"); return sb.toString(); }
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; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partStats.size()); for (Map.Entry<String, List<ColumnStatisticsObj>> _iter449 : struct.partStats.entrySet()) { oprot.writeString(_iter449.getKey()); { oprot.writeI32(_iter449.getValue().size()); for (ColumnStatisticsObj _iter450 : _iter449.getValue()) { _iter450.write(oprot); } } } } BitSet optionals = new BitSet(); if (struct.isSetIsStatsCompliant()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetIsStatsCompliant()) { oprot.writeBool(struct.isStatsCompliant); } }
if (struct.isSetIsStatsCompliant()) { oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC); oprot.writeBool(struct.isStatsCompliant);