/** 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 TIMESTAMP: return isSetTimestamp(); } throw new java.lang.IllegalStateException(); }
@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 + ((isSetTimestamp()) ? 131071 : 524287); if (isSetTimestamp()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(timestamp); return hashCode; }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TColumn("); 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 (isSetQualifier()) { 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 (isSetTimestamp()) { if (!first) sb.append(", "); sb.append("timestamp:"); sb.append(this.timestamp); first = false; } sb.append(")"); return sb.toString(); }
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) {
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumn 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) { if (struct.isSetQualifier()) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeBinary(struct.family); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetQualifier()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetQualifier()) { oprot.writeBinary(struct.qualifier); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } }
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))
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn 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); } this.timestamp = other.timestamp; }
@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_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); 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_timestamp = true && (isSetTimestamp()); list.add(present_timestamp); if (present_timestamp) list.add(timestamp); 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 TIMESTAMP: return isSetTimestamp(); } 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 IllegalArgumentException(); } switch (field) { case FAMILY: return isSetFamily(); case QUALIFIER: return isSetQualifier(); case TIMESTAMP: return isSetTimestamp(); } throw new IllegalStateException(); }
if (column.isSetQualifier()) { out.addColumn(column.getFamily(), column.getQualifier()); } else {
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumn 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) { if (struct.isSetQualifier()) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TColumn 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) { if (struct.isSetQualifier()) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.family); BitSet optionals = new BitSet(); if (struct.isSetQualifier()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetQualifier()) { oprot.writeBinary(struct.qualifier); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TColumn struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.family); BitSet optionals = new BitSet(); if (struct.isSetQualifier()) { optionals.set(0); } if (struct.isSetTimestamp()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetQualifier()) { oprot.writeBinary(struct.qualifier); } if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } }
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn 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); } this.timestamp = other.timestamp; }
/** * Performs a deep copy on <i>other</i>. */ public TColumn(TColumn 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); } this.timestamp = other.timestamp; }
if (column.isSetQualifier()) { out.addColumn(column.getFamily(), column.getQualifier()); } else {