public Object getFieldValue(_Fields field) { switch (field) { case TABLE: return getTable(); case DELETES: return getDeletes(); } throw new IllegalStateException(); }
@Override public int compareTo(deleteMultiple_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(isSetDeletes()).compareTo(other.isSetDeletes()); if (lastComparison != 0) { return lastComparison; } if (isSetDeletes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deletes, other.deletes); 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.setTdeletesIsSet(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.setDeletesIsSet(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.setTdeletesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public int compareTo(deleteMultiple_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(isSetTdeletes()).compareTo(other.isSetTdeletes()); if (lastComparison != 0) { return lastComparison; } if (isSetTdeletes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdeletes, other.tdeletes); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(deleteMultiple_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(isSetTdeletes()).compareTo(other.isSetTdeletes()); if (lastComparison != 0) { return lastComparison; } if (isSetTdeletes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tdeletes, other.tdeletes); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(deleteMultiple_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; deleteMultiple_args typedOther = (deleteMultiple_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(isSetDeletes()).compareTo(typedOther.isSetDeletes()); if (lastComparison != 0) { return lastComparison; } if (isSetDeletes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deletes, typedOther.deletes); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_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.deletes != null) { oprot.writeFieldBegin(DELETES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.deletes.size())); for (TDelete _iter75 : struct.deletes) { _iter75.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_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.tdeletes != null) { oprot.writeFieldBegin(TDELETES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tdeletes.size())); for (TDelete _iter159 : struct.tdeletes) { _iter159.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public boolean equals(deleteMultiple_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_tdeletes = true && this.isSetTdeletes(); boolean that_present_tdeletes = true && that.isSetTdeletes(); if (this_present_tdeletes || that_present_tdeletes) { if (!(this_present_tdeletes && that_present_tdeletes)) return false; if (!this.tdeletes.equals(that.tdeletes)) return false; } return true; }
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteMultiple_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.tdeletes != null) { oprot.writeFieldBegin(TDELETES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tdeletes.size())); for (TDelete _iter159 : struct.tdeletes) { _iter159.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public boolean equals(deleteMultiple_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_deletes = true && this.isSetDeletes(); boolean that_present_deletes = true && that.isSetDeletes(); if (this_present_deletes || that_present_deletes) { if (!(this_present_deletes && that_present_deletes)) return false; if (!this.deletes.equals(that.deletes)) return false; } return true; }
public boolean equals(deleteMultiple_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_tdeletes = true && this.isSetTdeletes(); boolean that_present_tdeletes = true && that.isSetTdeletes(); if (this_present_tdeletes || that_present_tdeletes) { if (!(this_present_tdeletes && that_present_tdeletes)) return false; if (!this.tdeletes.equals(that.tdeletes)) return false; } return true; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.tdeletes = new ArrayList<TDelete>(_list161.size); TDelete _elem162; for (int _i163 = 0; _i163 < _list161.size; ++_i163) { _elem162 = new TDelete(); _elem162.read(iprot); struct.tdeletes.add(_elem162); } } struct.setTdeletesIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteMultiple_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.table = iprot.readBinary(); struct.setTableIsSet(true); { org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.deletes = new ArrayList<TDelete>(_list77.size); for (int _i78 = 0; _i78 < _list77.size; ++_i78) { TDelete _elem79; // optional _elem79 = new TDelete(); _elem79.read(iprot); struct.deletes.add(_elem79); } } struct.setDeletesIsSet(true); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TDELETES: if (value == null) { unsetTdeletes(); } else { setTdeletes((List<TDelete>)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case DELETES: if (value == null) { unsetDeletes(); } else { setDeletes((List<TDelete>)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE: if (value == null) { unsetTable(); } else { setTable((ByteBuffer)value); } break; case TDELETES: if (value == null) { unsetTdeletes(); } else { setTdeletes((List<TDelete>)value); } break; } }