Package com.linkedin.venice.samza
Class SerializedRecord
java.lang.Object
com.linkedin.venice.samza.SerializedRecord
A value object holding the Avro-serialized key and value bytes along with the resolved schema IDs
and logical timestamp needed to write a record to Venice. Obtain an instance via
VeniceSystemProducer.prepareRecord(Object, Object).
This class does not defensively copy byte arrays for performance.
Callers must treat the provided key/value byte arrays as immutable for the lifetime of the async send operation.-
Constructor Summary
ConstructorsConstructorDescriptionSerializedRecord(byte[] serializedKey, byte[] serializedValue, int valueSchemaId, int derivedSchemaId, long logicalTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionintlongbyte[]byte[]Returns the serialized value bytes, ornullif this record represents a delete.int
-
Constructor Details
-
SerializedRecord
public SerializedRecord(byte[] serializedKey, byte[] serializedValue, int valueSchemaId, int derivedSchemaId, long logicalTimestamp)
-
-
Method Details
-
getSerializedKey
public byte[] getSerializedKey() -
getSerializedValue
public byte[] getSerializedValue()Returns the serialized value bytes, ornullif this record represents a delete. -
getValueSchemaId
public int getValueSchemaId() -
getDerivedSchemaId
public int getDerivedSchemaId() -
getLogicalTimestamp
public long getLogicalTimestamp()
-