public boolean equals(TColumnValue that) { if (that == null) return false; boolean this_present_family = true && this.isSetFamily(); boolean that_present_family = true && that.isSetFamily(); if (this_present_family || that_present_family) { if (!(this_present_family && that_present_family)) return false; if (!this.family.equals(that.family)) return false; } boolean this_present_qualifier = true && this.isSetQualifier(); boolean that_present_qualifier = true && that.isSetQualifier(); if (this_present_qualifier || that_present_qualifier) { if (!(this_present_qualifier && that_present_qualifier)) return false; if (!this.qualifier.equals(that.qualifier)) return false; } boolean this_present_value = true && this.isSetValue(); boolean that_present_value = true && that.isSetValue(); if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (!this.value.equals(that.value)) return false; } boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } return true; }
public int compareTo(TColumnValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; TColumnValue typedOther = (TColumnValue) other; lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); if (lastComparison != 0) { return lastComparison; } if (isSetFamily()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(typedOther.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifier()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, typedOther.qualifier); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); if (lastComparison != 0) { return lastComparison; } if (isSetTimestamp()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Performs a deep copy on <i>other</i>. */ public TColumnValue(TColumnValue other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetFamily()) { this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); ; } if (other.isSetQualifier()) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); ; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } this.timestamp = other.timestamp; }