/** 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 ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case WRITE_TO_WAL: return isSetWriteToWal(); } throw new IllegalStateException(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TIncrement("); boolean first = true; sb.append("row:"); if (this.row == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.row, sb); } first = false; if (!first) sb.append(", "); sb.append("columns:"); if (this.columns == null) { sb.append("null"); } else { sb.append(this.columns); } first = false; if (isSetWriteToWal()) { if (!first) sb.append(", "); sb.append("writeToWal:"); sb.append(this.writeToWal); first = false; } sb.append(")"); return sb.toString(); }
lastComparison = Boolean.valueOf(isSetWriteToWal()).compareTo(typedOther.isSetWriteToWal()); if (lastComparison != 0) { return lastComparison; if (isSetWriteToWal()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeToWal, typedOther.writeToWal); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TIncrement struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBinary(struct.row); { oprot.writeI32(struct.columns.size()); for (TColumnIncrement _iter36 : struct.columns) { _iter36.write(oprot); } } BitSet optionals = new BitSet(); if (struct.isSetWriteToWal()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetWriteToWal()) { oprot.writeBool(struct.writeToWal); } }
public boolean equals(TIncrement that) { if (that == null) return false; boolean this_present_row = true && this.isSetRow(); boolean that_present_row = true && that.isSetRow(); if (this_present_row || that_present_row) { if (!(this_present_row && that_present_row)) return false; if (!this.row.equals(that.row)) return false; } boolean this_present_columns = true && this.isSetColumns(); boolean that_present_columns = true && that.isSetColumns(); if (this_present_columns || that_present_columns) { if (!(this_present_columns && that_present_columns)) return false; if (!this.columns.equals(that.columns)) return false; } boolean this_present_writeToWal = true && this.isSetWriteToWal(); boolean that_present_writeToWal = true && that.isSetWriteToWal(); if (this_present_writeToWal || that_present_writeToWal) { if (!(this_present_writeToWal && that_present_writeToWal)) return false; if (this.writeToWal != that.writeToWal) return false; } return true; }
public void write(org.apache.thrift.protocol.TProtocol oprot, TIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.row != null) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(struct.row); oprot.writeFieldEnd(); } if (struct.columns != null) { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columns.size())); for (TColumnIncrement _iter35 : struct.columns) { _iter35.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.isSetWriteToWal()) { oprot.writeFieldBegin(WRITE_TO_WAL_FIELD_DESC); oprot.writeBool(struct.writeToWal); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }