/** 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 COLUMN_OR_SUPERCOLUMN: return isSetColumn_or_supercolumn(); case DELETION: return isSetDeletion(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_or_supercolumn = true && (isSetColumn_or_supercolumn()); builder.append(present_column_or_supercolumn); if (present_column_or_supercolumn) builder.append(column_or_supercolumn); boolean present_deletion = true && (isSetDeletion()); builder.append(present_deletion); if (present_deletion) builder.append(deletion); return builder.toHashCode(); }
/** 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 COLUMN_OR_SUPERCOLUMN: return isSetColumn_or_supercolumn(); case DELETION: return isSetDeletion(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_or_supercolumn = true && (isSetColumn_or_supercolumn()); builder.append(present_column_or_supercolumn); if (present_column_or_supercolumn) builder.append(column_or_supercolumn); boolean present_deletion = true && (isSetDeletion()); builder.append(present_deletion); if (present_deletion) builder.append(deletion); return builder.toHashCode(); }
/** 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 COLUMN_OR_SUPERCOLUMN: return isSetColumn_or_supercolumn(); case DELETION: return isSetDeletion(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_column_or_supercolumn = true && (isSetColumn_or_supercolumn()); builder.append(present_column_or_supercolumn); if (present_column_or_supercolumn) builder.append(column_or_supercolumn); boolean present_deletion = true && (isSetDeletion()); builder.append(present_deletion); if (present_deletion) builder.append(deletion); return builder.toHashCode(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("Mutation("); boolean first = true; if (isSetColumn_or_supercolumn()) { sb.append("column_or_supercolumn:"); if (this.column_or_supercolumn == null) { sb.append("null"); } else { sb.append(this.column_or_supercolumn); } first = false; } if (isSetDeletion()) { if (!first) sb.append(", "); sb.append("deletion:"); if (this.deletion == null) { sb.append("null"); } else { sb.append(this.deletion); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("Mutation("); boolean first = true; if (isSetColumn_or_supercolumn()) { sb.append("column_or_supercolumn:"); if (this.column_or_supercolumn == null) { sb.append("null"); } else { sb.append(this.column_or_supercolumn); } first = false; } if (isSetDeletion()) { if (!first) sb.append(", "); sb.append("deletion:"); if (this.deletion == null) { sb.append("null"); } else { sb.append(this.deletion); } first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Mutation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.column_or_supercolumn != null) { if (struct.isSetColumn_or_supercolumn()) { oprot.writeFieldBegin(COLUMN_OR_SUPERCOLUMN_FIELD_DESC); struct.column_or_supercolumn.write(oprot); oprot.writeFieldEnd(); } } if (struct.deletion != null) { if (struct.isSetDeletion()) { oprot.writeFieldBegin(DELETION_FIELD_DESC); struct.deletion.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Mutation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.column_or_supercolumn != null) { if (struct.isSetColumn_or_supercolumn()) { oprot.writeFieldBegin(COLUMN_OR_SUPERCOLUMN_FIELD_DESC); struct.column_or_supercolumn.write(oprot); oprot.writeFieldEnd(); } } if (struct.deletion != null) { if (struct.isSetDeletion()) { oprot.writeFieldBegin(DELETION_FIELD_DESC); struct.deletion.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Mutation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.column_or_supercolumn != null) { if (struct.isSetColumn_or_supercolumn()) { oprot.writeFieldBegin(COLUMN_OR_SUPERCOLUMN_FIELD_DESC); struct.column_or_supercolumn.write(oprot); oprot.writeFieldEnd(); } } if (struct.deletion != null) { if (struct.isSetDeletion()) { oprot.writeFieldBegin(DELETION_FIELD_DESC); struct.deletion.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@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.isSetColumn_or_supercolumn()) { optionals.set(0); } if (struct.isSetDeletion()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_or_supercolumn()) { struct.column_or_supercolumn.write(oprot); } if (struct.isSetDeletion()) { struct.deletion.write(oprot); } }
@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.isSetColumn_or_supercolumn()) { optionals.set(0); } if (struct.isSetDeletion()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_or_supercolumn()) { struct.column_or_supercolumn.write(oprot); } if (struct.isSetDeletion()) { struct.deletion.write(oprot); } }
@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.isSetColumn_or_supercolumn()) { optionals.set(0); } if (struct.isSetDeletion()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetColumn_or_supercolumn()) { struct.column_or_supercolumn.write(oprot); } if (struct.isSetDeletion()) { struct.deletion.write(oprot); } }
public boolean equals(Mutation that) { if (that == null) return false; boolean this_present_column_or_supercolumn = true && this.isSetColumn_or_supercolumn(); boolean that_present_column_or_supercolumn = true && that.isSetColumn_or_supercolumn(); if (this_present_column_or_supercolumn || that_present_column_or_supercolumn) { if (!(this_present_column_or_supercolumn && that_present_column_or_supercolumn)) return false; if (!this.column_or_supercolumn.equals(that.column_or_supercolumn)) return false; } boolean this_present_deletion = true && this.isSetDeletion(); boolean that_present_deletion = true && that.isSetDeletion(); if (this_present_deletion || that_present_deletion) { if (!(this_present_deletion && that_present_deletion)) return false; if (!this.deletion.equals(that.deletion)) return false; } return true; }
public boolean equals(Mutation that) { if (that == null) return false; boolean this_present_column_or_supercolumn = true && this.isSetColumn_or_supercolumn(); boolean that_present_column_or_supercolumn = true && that.isSetColumn_or_supercolumn(); if (this_present_column_or_supercolumn || that_present_column_or_supercolumn) { if (!(this_present_column_or_supercolumn && that_present_column_or_supercolumn)) return false; if (!this.column_or_supercolumn.equals(that.column_or_supercolumn)) return false; } boolean this_present_deletion = true && this.isSetDeletion(); boolean that_present_deletion = true && that.isSetDeletion(); if (this_present_deletion || that_present_deletion) { if (!(this_present_deletion && that_present_deletion)) return false; if (!this.deletion.equals(that.deletion)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { if (other.isSetColumn_or_supercolumn()) { this.column_or_supercolumn = new ColumnOrSuperColumn(other.column_or_supercolumn); } if (other.isSetDeletion()) { this.deletion = new Deletion(other.deletion); } }
public boolean equals(Mutation that) { if (that == null) return false; boolean this_present_column_or_supercolumn = true && this.isSetColumn_or_supercolumn(); boolean that_present_column_or_supercolumn = true && that.isSetColumn_or_supercolumn(); if (this_present_column_or_supercolumn || that_present_column_or_supercolumn) { if (!(this_present_column_or_supercolumn && that_present_column_or_supercolumn)) return false; if (!this.column_or_supercolumn.equals(that.column_or_supercolumn)) return false; } boolean this_present_deletion = true && this.isSetDeletion(); boolean that_present_deletion = true && that.isSetDeletion(); if (this_present_deletion || that_present_deletion) { if (!(this_present_deletion && that_present_deletion)) return false; if (!this.deletion.equals(that.deletion)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { if (other.isSetColumn_or_supercolumn()) { this.column_or_supercolumn = new ColumnOrSuperColumn(other.column_or_supercolumn); } if (other.isSetDeletion()) { this.deletion = new Deletion(other.deletion); } }
/** * Performs a deep copy on <i>other</i>. */ public Mutation(Mutation other) { if (other.isSetColumn_or_supercolumn()) { this.column_or_supercolumn = new ColumnOrSuperColumn(other.column_or_supercolumn); } if (other.isSetDeletion()) { this.deletion = new Deletion(other.deletion); } }