@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isDelete) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetColumn()) ? 131071 : 524287); if (isSetColumn()) hashCode = hashCode * 8191 + column.hashCode(); hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); if (isSetValue()) hashCode = hashCode * 8191 + value.hashCode(); hashCode = hashCode * 8191 + ((writeToWAL) ? 131071 : 524287); return hashCode; }
boolean this_present_column = true && this.isSetColumn(); boolean that_present_column = true && that.isSetColumn(); if (this_present_column || that_present_column) { if (!(this_present_column && that_present_column))
/** 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 IS_DELETE: return isSetIsDelete(); case COLUMN: return isSetColumn(); case VALUE: return isSetValue(); case WRITE_TO_WAL: return isSetWriteToWAL(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; if (isSetColumn()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { __isset_bitfield = other.__isset_bitfield; this.isDelete = other.isDelete; if (other.isSetColumn()) { this.column = org.apache.thrift.TBaseHelper.copyBinary(other.column); } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); } this.writeToWAL = other.writeToWAL; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Mutation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIsDelete()) { optionals.set(0); } if (struct.isSetColumn()) { optionals.set(1); } if (struct.isSetValue()) { optionals.set(2); } if (struct.isSetWriteToWAL()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetIsDelete()) { oprot.writeBool(struct.isDelete); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetWriteToWAL()) { oprot.writeBool(struct.writeToWAL); } }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { __isset_bitfield = other.__isset_bitfield; this.isDelete = other.isDelete; if (other.isSetColumn()) { this.column = other.column; } if (other.isSetValue()) { this.value = other.value; } this.writeToWAL = other.writeToWAL; }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { __isset_bitfield = other.__isset_bitfield; this.isDelete = other.isDelete; if (other.isSetColumn()) { this.column = other.column; } if (other.isSetValue()) { this.value = other.value; } this.writeToWAL = other.writeToWAL; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_isDelete = true; list.add(present_isDelete); if (present_isDelete) list.add(isDelete); boolean present_column = true && (isSetColumn()); list.add(present_column); if (present_column) list.add(column); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_writeToWAL = true; list.add(present_writeToWAL); if (present_writeToWAL) list.add(writeToWAL); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_isDelete = true; list.add(present_isDelete); if (present_isDelete) list.add(isDelete); boolean present_column = true && (isSetColumn()); list.add(present_column); if (present_column) list.add(column); boolean present_value = true && (isSetValue()); list.add(present_value); if (present_value) list.add(value); boolean present_writeToWAL = true; list.add(present_writeToWAL); if (present_writeToWAL) list.add(writeToWAL); return list.hashCode(); }
boolean this_present_column = true && this.isSetColumn(); boolean that_present_column = true && that.isSetColumn(); if (this_present_column || that_present_column) { if (!(this_present_column && that_present_column))
boolean this_present_column = true && this.isSetColumn(); boolean that_present_column = true && that.isSetColumn(); if (this_present_column || that_present_column) { if (!(this_present_column && that_present_column))
/** 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 IS_DELETE: return isSetIsDelete(); case COLUMN: return isSetColumn(); case VALUE: return isSetValue(); case WRITE_TO_WAL: return isSetWriteToWAL(); } 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 IS_DELETE: return isSetIsDelete(); case COLUMN: return isSetColumn(); case VALUE: return isSetValue(); case WRITE_TO_WAL: return isSetWriteToWAL(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; if (isSetColumn()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetColumn()).compareTo(other.isSetColumn()); if (lastComparison != 0) { return lastComparison; if (isSetColumn()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, other.column); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Mutation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIsDelete()) { optionals.set(0); } if (struct.isSetColumn()) { optionals.set(1); } if (struct.isSetValue()) { optionals.set(2); } if (struct.isSetWriteToWAL()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetIsDelete()) { oprot.writeBool(struct.isDelete); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetWriteToWAL()) { oprot.writeBool(struct.writeToWAL); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Mutation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIsDelete()) { optionals.set(0); } if (struct.isSetColumn()) { optionals.set(1); } if (struct.isSetValue()) { optionals.set(2); } if (struct.isSetWriteToWAL()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetIsDelete()) { oprot.writeBool(struct.isDelete); } if (struct.isSetColumn()) { oprot.writeBinary(struct.column); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetWriteToWAL()) { oprot.writeBool(struct.writeToWAL); } }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { __isset_bitfield = other.__isset_bitfield; this.isDelete = other.isDelete; if (other.isSetColumn()) { this.column = other.column; } if (other.isSetValue()) { this.value = other.value; } this.writeToWAL = other.writeToWAL; }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.isDelete = other.isDelete; if (other.isSetColumn()) { this.column = other.column; } if (other.isSetValue()) { this.value = other.value; } this.writeToWAL = other.writeToWAL; }