@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetNs()) ? 131071 : 524287); if (isSetNs()) hashCode = hashCode * 8191 + ns.hashCode(); hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); if (isSetQualifier()) hashCode = hashCode * 8191 + qualifier.hashCode(); return 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 java.lang.IllegalArgumentException(); } switch (field) { case NS: return isSetNs(); case QUALIFIER: return isSetQualifier(); } throw new java.lang.IllegalStateException(); }
public boolean equals(TTableName that) { if (that == null) return false; if (this == that) return true; boolean this_present_ns = true && this.isSetNs(); boolean that_present_ns = true && that.isSetNs(); if (this_present_ns || that_present_ns) { if (!(this_present_ns && that_present_ns)) return false; if (!this.ns.equals(that.ns)) 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; } return true; }
@Override public int compareTo(TTableName other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetNs()).compareTo(other.isSetNs()); if (lastComparison != 0) { return lastComparison; } if (isSetNs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ns, other.ns); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifier()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public TTableName(TTableName other) { if (other.isSetNs()) { this.ns = org.apache.thrift.TBaseHelper.copyBinary(other.ns); } if (other.isSetQualifier()) { this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); } }