public Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); case DELETE_SINGLE: return getDeleteSingle(); } throw new IllegalStateException(); }
@Override public int compareTo(deleteSingle_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(isSetDeleteSingle()).compareTo(other.isSetDeleteSingle()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteSingle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteSingle, other.deleteSingle); 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.deleteSingle = new TDelete(); struct.deleteSingle.read(iprot); struct.setDeleteSingleIsSet(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.tdelete = new TDelete(); struct.tdelete.read(iprot); struct.setTdeleteIsSet(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.tdelete = new TDelete(); struct.tdelete.read(iprot); struct.setTdeleteIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public int compareTo(deleteSingle_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(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } if (isSetTdelete()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, other.tdelete); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(deleteSingle_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; deleteSingle_args typedOther = (deleteSingle_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(isSetDeleteSingle()).compareTo(typedOther.isSetDeleteSingle()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteSingle()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteSingle, typedOther.deleteSingle); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(deleteSingle_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(isSetTdelete()).compareTo(other.isSetTdelete()); if (lastComparison != 0) { return lastComparison; } if (isSetTdelete()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdelete, other.tdelete); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(deleteSingle_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_tdelete = true && this.isSetTdelete(); boolean that_present_tdelete = true && that.isSetTdelete(); if (this_present_tdelete || that_present_tdelete) { if (!(this_present_tdelete && that_present_tdelete)) return false; if (!this.tdelete.equals(that.tdelete)) return false; } return true; }
public boolean equals(deleteSingle_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_deleteSingle = true && this.isSetDeleteSingle(); boolean that_present_deleteSingle = true && that.isSetDeleteSingle(); if (this_present_deleteSingle || that_present_deleteSingle) { if (!(this_present_deleteSingle && that_present_deleteSingle)) return false; if (!this.deleteSingle.equals(that.deleteSingle)) return false; } return true; }
public boolean equals(deleteSingle_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_tdelete = true && this.isSetTdelete(); boolean that_present_tdelete = true && that.isSetTdelete(); if (this_present_tdelete || that_present_tdelete) { if (!(this_present_tdelete && that_present_tdelete)) return false; if (!this.tdelete.equals(that.tdelete)) 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 DELETE_SINGLE: if (value == null) { unsetDeleteSingle(); } else { setDeleteSingle((TDelete)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TDELETE: if (value == null) { unsetTdelete(); } else { setTdelete((TDelete)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TDELETE: if (value == null) { unsetTdelete(); } else { setTdelete((TDelete)value); } break; } }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_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.deleteSingle != null) { oprot.writeFieldBegin(DELETE_SINGLE_FIELD_DESC); struct.deleteSingle.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_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.tdelete != null) { oprot.writeFieldBegin(TDELETE_FIELD_DESC); struct.tdelete.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteSingle_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.tdelete != null) { oprot.writeFieldBegin(TDELETE_FIELD_DESC); struct.tdelete.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public deleteSingle_args deepCopy() { return new deleteSingle_args(this); }
protected deleteSingle_args getEmptyArgsInstance() { return new deleteSingle_args(); }