@Override public int compareTo(exists_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(isSetGet()).compareTo(other.isSetGet()); if (lastComparison != 0) { return lastComparison; } if (isSetGet()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.get, other.get); 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.tget = new TGet(); struct.tget.read(iprot); struct.setTgetIsSet(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.tget = new TGet(); struct.tget.read(iprot); struct.setTgetIsSet(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.get = new TGet(); struct.get.read(iprot); struct.setGetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public int compareTo(exists_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(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } if (isSetTget()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, other.tget); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(exists_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(isSetTget()).compareTo(other.isSetTget()); if (lastComparison != 0) { return lastComparison; } if (isSetTget()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tget, other.tget); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(exists_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; exists_args typedOther = (exists_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(isSetGet()).compareTo(typedOther.isSetGet()); if (lastComparison != 0) { return lastComparison; } if (isSetGet()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.get, typedOther.get); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(exists_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_tget = true && this.isSetTget(); boolean that_present_tget = true && that.isSetTget(); if (this_present_tget || that_present_tget) { if (!(this_present_tget && that_present_tget)) return false; if (!this.tget.equals(that.tget)) return false; } return true; }
public boolean equals(exists_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_get = true && this.isSetGet(); boolean that_present_get = true && that.isSetGet(); if (this_present_get || that_present_get) { if (!(this_present_get && that_present_get)) return false; if (!this.get.equals(that.get)) return false; } return true; }
public boolean equals(exists_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_tget = true && this.isSetTget(); boolean that_present_tget = true && that.isSetTget(); if (this_present_tget || that_present_tget) { if (!(this_present_tget && that_present_tget)) return false; if (!this.tget.equals(that.tget)) 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 TGET: if (value == null) { unsetTget(); } else { setTget((TGet)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case GET: if (value == null) { unsetGet(); } else { setGet((TGet)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TGET: if (value == null) { unsetTget(); } else { setTget((TGet)value); } break; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, exists_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.get != null) { oprot.writeFieldBegin(GET_FIELD_DESC); struct.get.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, exists_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.tget != null) { oprot.writeFieldBegin(TGET_FIELD_DESC); struct.tget.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, exists_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.tget != null) { oprot.writeFieldBegin(TGET_FIELD_DESC); struct.tget.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public exists_args deepCopy() { return new exists_args(this); }
public exists_args getEmptyArgsInstance() { return new exists_args(); }