@Override protected short computeCompressedShort(short s) { s = super.computeCompressedShort(s); if (this.posDup) { s |= POS_DUP; } return s; }
@Override protected short computeCompressedShort(short s) { s = super.computeCompressedShort(s); if (this.access) s |= HAS_ACCESS; return s; }
@Override protected short computeCompressedShort(short s) { s = super.computeCompressedShort(s); if (this.estimate) s |= ESTIMATE; return s; }
@Override protected short computeCompressedShort(short s) { s = super.computeCompressedShort(s); if (this.posDup) { s |= POS_DUP; } return s; }
@Override protected short computeCompressedShort(short s) { s = super.computeCompressedShort(s); if (this.access) s |= HAS_ACCESS; return s; }
/** * Send the contents of this instance to the DataOutput Required to be a * {@link com.gemstone.gemfire.DataSerializable}Note: must be symmetric with * {@link #fromData(DataInput)}in what it writes */ @Override public void toData(DataOutput out) throws IOException { super.toData(out); short compressedShort = 0; compressedShort = computeCompressedShort(compressedShort); out.writeShort(compressedShort); if (this.processorId != 0) out.writeInt(this.processorId); if (this.txUniqId != TXManagerImpl.NOTX) out.writeInt(this.txUniqId); if (this.txMemberId != null) DataSerializer.writeObject(this.txMemberId, out); out.writeInt(this.regionId); // extra field post 9.0 if (InternalDataSerializer.getVersionForDataStream(out).compareTo( Version.GFE_90) >= 0) { out.writeBoolean(this.isTransactionDistributed); } }