public void writeValueAsByteArray(DataOutput out) throws IOException { if (this.serializedValue != null) { DataSerializer.writeByteArray(this.serializedValue, out); } else { getCd().writeValueAsByteArray(out); } } public void fillSerializedValue(BytesAndBitsForCompactor wrapper, byte userBits) {
public void writeValueAsByteArray(DataOutput out) throws IOException { if (this.serializedValue != null) { DataSerializer.writeByteArray(this.serializedValue, out); } else { getCd().writeValueAsByteArray(out); } } public void fillSerializedValue(BytesAndBitsForCompactor wrapper, byte userBits) {
public final void writeAsByteArray(DataOutput out) throws IOException { if (isValueByteArray()) { DataSerializer.writeByteArray((byte[]) this.rawValue, out); } else if (this.rawValue instanceof CachedDeserializable) { ((CachedDeserializable)this.rawValue).writeValueAsByteArray(out); } else if (Token.isInvalid(this.rawValue)) { DataSerializer.writeByteArray(null, out); } else if (this.rawValue == Token.TOMBSTONE) { DataSerializer.writeByteArray(null, out); } else { DataSerializer.writeObjectAsByteArray(this.rawValue, out); } }
public void writeAsByteArray(DataOutput out) throws IOException { if (isValueByteArray()) { DataSerializer.writeByteArray((byte[]) this.rawValue, out); } else if (this.rawValue instanceof CachedDeserializable) { ((CachedDeserializable)this.rawValue).writeValueAsByteArray(out); } else if (Token.isInvalid(this.rawValue)) { DataSerializer.writeByteArray(null, out); } else if (this.rawValue == Token.TOMBSTONE) { DataSerializer.writeByteArray(null, out); } else { DataSerializer.writeObjectAsByteArray(this.rawValue, out); } }