/** 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 FAMILY: return isSetFamily(); case QUALIFIER: return isSetQualifier(); case AMOUNT: return isSetAmount(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAmount()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAmount()) { oprot.writeI64(struct.amount); } }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TColumnIncrement("); boolean first = true; sb.append("family:"); if (this.family == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.family, sb); } first = false; if (!first) sb.append(", "); sb.append("qualifier:"); if (this.qualifier == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); } first = false; if (isSetAmount()) { if (!first) sb.append(", "); sb.append("amount:"); sb.append(this.amount); first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.isSetAmount()) { oprot.writeFieldBegin(AMOUNT_FIELD_DESC); oprot.writeI64(struct.amount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetFamily()) ? 131071 : 524287); if (isSetFamily()) hashCode = hashCode * 8191 + family.hashCode(); hashCode = hashCode * 8191 + ((isSetQualifier()) ? 131071 : 524287); if (isSetQualifier()) hashCode = hashCode * 8191 + qualifier.hashCode(); hashCode = hashCode * 8191 + ((isSetAmount()) ? 131071 : 524287); if (isSetAmount()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(amount); return hashCode; }
lastComparison = java.lang.Boolean.valueOf(isSetAmount()).compareTo(other.isSetAmount()); if (lastComparison != 0) { return lastComparison; if (isSetAmount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, other.amount); if (lastComparison != 0) {
boolean this_present_amount = true && this.isSetAmount(); boolean that_present_amount = true && that.isSetAmount(); if (this_present_amount || that_present_amount) { if (!(this_present_amount && that_present_amount))
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_family = true && (isSetFamily()); list.add(present_family); if (present_family) list.add(family); boolean present_qualifier = true && (isSetQualifier()); list.add(present_qualifier); if (present_qualifier) list.add(qualifier); boolean present_amount = true && (isSetAmount()); list.add(present_amount); if (present_amount) list.add(amount); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_family = true && (isSetFamily()); list.add(present_family); if (present_family) list.add(family); boolean present_qualifier = true && (isSetQualifier()); list.add(present_qualifier); if (present_qualifier) list.add(qualifier); boolean present_amount = true && (isSetAmount()); list.add(present_amount); if (present_amount) list.add(amount); 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 FAMILY: return isSetFamily(); case QUALIFIER: return isSetQualifier(); case AMOUNT: return isSetAmount(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); BitSet optionals = new BitSet(); if (struct.isSetAmount()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAmount()) { oprot.writeI64(struct.amount); } }
/** 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 FAMILY: return isSetFamily(); case QUALIFIER: return isSetQualifier(); case AMOUNT: return isSetAmount(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.family); oprot.writeBinary(struct.qualifier); BitSet optionals = new BitSet(); if (struct.isSetAmount()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAmount()) { oprot.writeI64(struct.amount); } }
@Override public String toString() { StringBuilder sb = new StringBuilder("TColumnIncrement("); boolean first = true; sb.append("family:"); if (this.family == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.family, sb); } first = false; if (!first) sb.append(", "); sb.append("qualifier:"); if (this.qualifier == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); } first = false; if (isSetAmount()) { if (!first) sb.append(", "); sb.append("amount:"); sb.append(this.amount); first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TColumnIncrement("); boolean first = true; sb.append("family:"); if (this.family == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.family, sb); } first = false; if (!first) sb.append(", "); sb.append("qualifier:"); if (this.qualifier == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); } first = false; if (isSetAmount()) { if (!first) sb.append(", "); sb.append("amount:"); sb.append(this.amount); first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.isSetAmount()) { oprot.writeFieldBegin(AMOUNT_FIELD_DESC); oprot.writeI64(struct.amount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.isSetAmount()) { oprot.writeFieldBegin(AMOUNT_FIELD_DESC); oprot.writeI64(struct.amount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(other.isSetAmount()); if (lastComparison != 0) { return lastComparison; if (isSetAmount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, other.amount); if (lastComparison != 0) {
public boolean equals(TColumnIncrement 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_amount = true && this.isSetAmount(); boolean that_present_amount = true && that.isSetAmount(); if (this_present_amount || that_present_amount) { if (!(this_present_amount && that_present_amount)) return false; if (this.amount != that.amount) return false; } return true; }
public boolean equals(TColumnIncrement 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_amount = true && this.isSetAmount(); boolean that_present_amount = true && that.isSetAmount(); if (this_present_amount || that_present_amount) { if (!(this_present_amount && that_present_amount)) return false; if (this.amount != that.amount) return false; } return true; }