@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_max = true && (isSetMax()); list.add(present_max); if (present_max) list.add(max); boolean present_min = true && (isSetMin()); list.add(present_min); if (present_min) list.add(min); boolean present_null_count = true && (isSetNull_count()); list.add(present_null_count); if (present_null_count) list.add(null_count); boolean present_distinct_count = true && (isSetDistinct_count()); list.add(present_distinct_count); if (present_distinct_count) list.add(distinct_count); boolean present_max_value = true && (isSetMax_value()); list.add(present_max_value); if (present_max_value) list.add(max_value); boolean present_min_value = true && (isSetMin_value()); list.add(present_min_value); if (present_min_value) list.add(min_value); return list.hashCode(); }
if (isSetMin_value()) { if (!first) sb.append(", "); sb.append("min_value:");
if (isSetMin_value()) { if (!first) sb.append(", "); sb.append("min_value:");
/** 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 MAX: return isSetMax(); case MIN: return isSetMin(); case NULL_COUNT: return isSetNull_count(); case DISTINCT_COUNT: return isSetDistinct_count(); case MAX_VALUE: return isSetMax_value(); case MIN_VALUE: return isSetMin_value(); } 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 java.lang.IllegalArgumentException(); } switch (field) { case MAX: return isSetMax(); case MIN: return isSetMin(); case NULL_COUNT: return isSetNull_count(); case DISTINCT_COUNT: return isSetDistinct_count(); case MAX_VALUE: return isSetMax_value(); case MIN_VALUE: return isSetMin_value(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetMax()) ? 131071 : 524287); if (isSetMax()) hashCode = hashCode * 8191 + max.hashCode(); hashCode = hashCode * 8191 + ((isSetMin()) ? 131071 : 524287); if (isSetMin()) hashCode = hashCode * 8191 + min.hashCode(); hashCode = hashCode * 8191 + ((isSetNull_count()) ? 131071 : 524287); if (isSetNull_count()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(null_count); hashCode = hashCode * 8191 + ((isSetDistinct_count()) ? 131071 : 524287); if (isSetDistinct_count()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(distinct_count); hashCode = hashCode * 8191 + ((isSetMax_value()) ? 131071 : 524287); if (isSetMax_value()) hashCode = hashCode * 8191 + max_value.hashCode(); hashCode = hashCode * 8191 + ((isSetMin_value()) ? 131071 : 524287); if (isSetMin_value()) hashCode = hashCode * 8191 + min_value.hashCode(); return hashCode; }
lastComparison = Boolean.valueOf(isSetMin_value()).compareTo(other.isSetMin_value()); if (lastComparison != 0) { return lastComparison; if (isSetMin_value()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_value, other.min_value); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetMin_value()).compareTo(other.isSetMin_value()); if (lastComparison != 0) { return lastComparison; if (isSetMin_value()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_value, other.min_value); if (lastComparison != 0) {
boolean this_present_min_value = true && this.isSetMin_value(); boolean that_present_min_value = true && that.isSetMin_value(); if (this_present_min_value || that_present_min_value) { if (!(this_present_min_value && that_present_min_value))
boolean this_present_min_value = true && this.isSetMin_value(); boolean that_present_min_value = true && that.isSetMin_value(); if (this_present_min_value || that_present_min_value) { if (!(this_present_min_value && that_present_min_value))
optionals.set(4); if (struct.isSetMin_value()) { optionals.set(5); oprot.writeBinary(struct.max_value); if (struct.isSetMin_value()) { oprot.writeBinary(struct.min_value);
optionals.set(4); if (struct.isSetMin_value()) { optionals.set(5); oprot.writeBinary(struct.max_value); if (struct.isSetMin_value()) { oprot.writeBinary(struct.min_value);
if (formatStats.isSetMin_value() && formatStats.isSetMax_value()) { byte[] min = formatStats.min_value.array(); byte[] max = formatStats.max_value.array();
if (formatStats.isSetMin_value() && formatStats.isSetMax_value()) { byte[] min = formatStats.min_value.array(); byte[] max = formatStats.max_value.array();
/** * Performs a deep copy on <i>other</i>. */ public Statistics(Statistics other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMax()) { this.max = org.apache.thrift.TBaseHelper.copyBinary(other.max); } if (other.isSetMin()) { this.min = org.apache.thrift.TBaseHelper.copyBinary(other.min); } this.null_count = other.null_count; this.distinct_count = other.distinct_count; if (other.isSetMax_value()) { this.max_value = org.apache.thrift.TBaseHelper.copyBinary(other.max_value); } if (other.isSetMin_value()) { this.min_value = org.apache.thrift.TBaseHelper.copyBinary(other.min_value); } }
/** * Performs a deep copy on <i>other</i>. */ public Statistics(Statistics other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetMax()) { this.max = org.apache.thrift.TBaseHelper.copyBinary(other.max); } if (other.isSetMin()) { this.min = org.apache.thrift.TBaseHelper.copyBinary(other.min); } this.null_count = other.null_count; this.distinct_count = other.distinct_count; if (other.isSetMax_value()) { this.max_value = org.apache.thrift.TBaseHelper.copyBinary(other.max_value); } if (other.isSetMin_value()) { this.min_value = org.apache.thrift.TBaseHelper.copyBinary(other.min_value); } }
if (struct.isSetMin_value()) { oprot.writeFieldBegin(MIN_VALUE_FIELD_DESC); oprot.writeBinary(struct.min_value);
if (struct.isSetMin_value()) { oprot.writeFieldBegin(MIN_VALUE_FIELD_DESC); oprot.writeBinary(struct.min_value);