@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); boolean present_predicate = true && (isSetPredicate()); builder.append(present_predicate); if (present_predicate) builder.append(predicate); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); boolean present_predicate = true && (isSetPredicate()); builder.append(present_predicate); if (present_predicate) builder.append(predicate); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_timestamp = true && (isSetTimestamp()); builder.append(present_timestamp); if (present_timestamp) builder.append(timestamp); boolean present_super_column = true && (isSetSuper_column()); builder.append(present_super_column); if (present_super_column) builder.append(super_column); boolean present_predicate = true && (isSetPredicate()); builder.append(present_predicate); if (present_predicate) builder.append(predicate); 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 TIMESTAMP: return isSetTimestamp(); case SUPER_COLUMN: return isSetSuper_column(); case PREDICATE: return isSetPredicate(); } 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 TIMESTAMP: return isSetTimestamp(); case SUPER_COLUMN: return isSetSuper_column(); case PREDICATE: return isSetPredicate(); } 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 TIMESTAMP: return isSetTimestamp(); case SUPER_COLUMN: return isSetSuper_column(); case PREDICATE: return isSetPredicate(); } throw new IllegalStateException(); }
if (isSetPredicate()) { if (!first) sb.append(", "); sb.append("predicate:");
if (isSetPredicate()) { if (!first) sb.append(", "); sb.append("predicate:");
lastComparison = Boolean.valueOf(isSetPredicate()).compareTo(other.isSetPredicate()); if (lastComparison != 0) { return lastComparison; if (isSetPredicate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.predicate, other.predicate); if (lastComparison != 0) {
public void write(org.apache.thrift.protocol.TProtocol oprot, Deletion struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.super_column != null) { if (struct.isSetSuper_column()) { oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC); oprot.writeBinary(struct.super_column); oprot.writeFieldEnd(); } } if (struct.predicate != null) { if (struct.isSetPredicate()) { oprot.writeFieldBegin(PREDICATE_FIELD_DESC); struct.predicate.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Deletion struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.super_column != null) { if (struct.isSetSuper_column()) { oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC); oprot.writeBinary(struct.super_column); oprot.writeFieldEnd(); } } if (struct.predicate != null) { if (struct.isSetPredicate()) { oprot.writeFieldBegin(PREDICATE_FIELD_DESC); struct.predicate.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Deletion struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.super_column != null) { if (struct.isSetSuper_column()) { oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC); oprot.writeBinary(struct.super_column); oprot.writeFieldEnd(); } } if (struct.predicate != null) { if (struct.isSetPredicate()) { oprot.writeFieldBegin(PREDICATE_FIELD_DESC); struct.predicate.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * Performs a deep copy on <i>other</i>. */ public Deletion(Deletion other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } if (other.isSetPredicate()) { this.predicate = new SlicePredicate(other.predicate); } }
/** * Performs a deep copy on <i>other</i>. */ public Deletion(Deletion other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } if (other.isSetPredicate()) { this.predicate = new SlicePredicate(other.predicate); } }
public boolean equals(Deletion that) { if (that == null) return false; boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_super_column = true && this.isSetSuper_column(); boolean that_present_super_column = true && that.isSetSuper_column(); if (this_present_super_column || that_present_super_column) { if (!(this_present_super_column && that_present_super_column)) return false; if (!this.super_column.equals(that.super_column)) return false; } boolean this_present_predicate = true && this.isSetPredicate(); boolean that_present_predicate = true && that.isSetPredicate(); if (this_present_predicate || that_present_predicate) { if (!(this_present_predicate && that_present_predicate)) return false; if (!this.predicate.equals(that.predicate)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Deletion struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetSuper_column()) { optionals.set(1); } if (struct.isSetPredicate()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetPredicate()) { struct.predicate.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public Deletion(Deletion other) { __isset_bitfield = other.__isset_bitfield; this.timestamp = other.timestamp; if (other.isSetSuper_column()) { this.super_column = org.apache.thrift.TBaseHelper.copyBinary(other.super_column); ; } if (other.isSetPredicate()) { this.predicate = new SlicePredicate(other.predicate); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Deletion struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetSuper_column()) { optionals.set(1); } if (struct.isSetPredicate()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetPredicate()) { struct.predicate.write(oprot); } }
public boolean equals(Deletion that) { if (that == null) return false; boolean this_present_timestamp = true && this.isSetTimestamp(); boolean that_present_timestamp = true && that.isSetTimestamp(); if (this_present_timestamp || that_present_timestamp) { if (!(this_present_timestamp && that_present_timestamp)) return false; if (this.timestamp != that.timestamp) return false; } boolean this_present_super_column = true && this.isSetSuper_column(); boolean that_present_super_column = true && that.isSetSuper_column(); if (this_present_super_column || that_present_super_column) { if (!(this_present_super_column && that_present_super_column)) return false; if (!this.super_column.equals(that.super_column)) return false; } boolean this_present_predicate = true && this.isSetPredicate(); boolean that_present_predicate = true && that.isSetPredicate(); if (this_present_predicate || that_present_predicate) { if (!(this_present_predicate && that_present_predicate)) return false; if (!this.predicate.equals(that.predicate)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Deletion struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTimestamp()) { optionals.set(0); } if (struct.isSetSuper_column()) { optionals.set(1); } if (struct.isSetPredicate()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetTimestamp()) { oprot.writeI64(struct.timestamp); } if (struct.isSetSuper_column()) { oprot.writeBinary(struct.super_column); } if (struct.isSetPredicate()) { struct.predicate.write(oprot); } }