@Override public int compareTo(put_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPut()).compareTo(other.isSetPut()); if (lastComparison != 0) { return lastComparison; } if (isSetPut()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.put, other.put); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.put = new TPut(); struct.put.read(iprot); struct.setPutIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.tput = new TPut(); struct.tput.read(iprot); struct.setTputIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.table = iprot.readBinary(); struct.setTableIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.tput = new TPut(); struct.tput.read(iprot); struct.setTputIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public int compareTo(put_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; put_args typedOther = (put_args)other; lastComparison = Boolean.valueOf(isSetTable()).compareTo(typedOther.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, typedOther.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPut()).compareTo(typedOther.isSetPut()); if (lastComparison != 0) { return lastComparison; } if (isSetPut()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.put, typedOther.put); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(put_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } if (isSetTput()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, other.tput); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(put_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTable()).compareTo(other.isSetTable()); if (lastComparison != 0) { return lastComparison; } if (isSetTable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTput()).compareTo(other.isSetTput()); if (lastComparison != 0) { return lastComparison; } if (isSetTput()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tput, other.tput); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(put_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_tput = true && this.isSetTput(); boolean that_present_tput = true && that.isSetTput(); if (this_present_tput || that_present_tput) { if (!(this_present_tput && that_present_tput)) return false; if (!this.tput.equals(that.tput)) return false; } return true; }
public boolean equals(put_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_put = true && this.isSetPut(); boolean that_present_put = true && that.isSetPut(); if (this_present_put || that_present_put) { if (!(this_present_put && that_present_put)) return false; if (!this.put.equals(that.put)) return false; } return true; }
public boolean equals(put_args that) { if (that == null) return false; boolean this_present_table = true && this.isSetTable(); boolean that_present_table = true && that.isSetTable(); if (this_present_table || that_present_table) { if (!(this_present_table && that_present_table)) return false; if (!this.table.equals(that.table)) return false; } boolean this_present_tput = true && this.isSetTput(); boolean that_present_tput = true && that.isSetTput(); if (this_present_tput || that_present_tput) { if (!(this_present_tput && that_present_tput)) return false; if (!this.tput.equals(that.tput)) return false; } return true; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case PUT: if (value == null) { unsetPut(); } else { setPut((TPut)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TPUT: if (value == null) { unsetTput(); } else { setTput((TPut)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TPUT: if (value == null) { unsetTput(); } else { setTput((TPut)value); } break; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, put_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } if (struct.tput != null) { oprot.writeFieldBegin(TPUT_FIELD_DESC); struct.tput.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, put_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } if (struct.tput != null) { oprot.writeFieldBegin(TPUT_FIELD_DESC); struct.tput.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, put_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeBinary(struct.table); oprot.writeFieldEnd(); } if (struct.put != null) { oprot.writeFieldBegin(PUT_FIELD_DESC); struct.put.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public put_args getEmptyArgsInstance() { return new put_args(); }
public put_args getEmptyArgsInstance() { return new put_args(); }