Class Put
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
com.linkedin.venice.kafka.protocol.Put
- All Implemented Interfaces:
- Externalizable,- Serializable,- Comparable<org.apache.avro.specific.SpecificRecord>,- org.apache.avro.generic.GenericContainer,- org.apache.avro.generic.GenericRecord,- org.apache.avro.generic.IndexedRecord,- org.apache.avro.specific.SpecificRecord
public class Put
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Put payloads contain a record value, and information on how to deserialize it.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe record's value to be persisted in the storage engine.The serialized value of the replication metadata schema.intThe A/A replication metadata schema version ID that will be used to deserialize replicationMetadataPayload.static final org.apache.avro.SchemaintAn identifier used to determine how the PutValue can be deserialized.
- 
Constructor SummaryConstructorsConstructorDescriptionPut()Default constructor.Put(ByteBuffer putValue, Integer schemaId, Integer replicationMetadataVersionId, ByteBuffer replicationMetadataPayload) All-args constructor.
- 
Method SummaryModifier and TypeMethodDescriptionget(int field$) static org.apache.avro.SchemaGets the value of the 'putValue' field.Gets the value of the 'replicationMetadataPayload' field.intGets the value of the 'replicationMetadataVersionId' field.org.apache.avro.SchemaintGets the value of the 'schemaId' field.org.apache.avro.specific.SpecificDatavoidvoidvoidsetPutValue(ByteBuffer value) Sets the value of the 'putValue' field.voidSets the value of the 'replicationMetadataPayload' field.voidsetReplicationMetadataVersionId(int value) Sets the value of the 'replicationMetadataVersionId' field.voidsetSchemaId(int value) Sets the value of the 'schemaId' field.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBasecompareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecordhasField
- 
Field Details- 
SCHEMA$public static final org.apache.avro.Schema SCHEMA$
- 
putValueThe record's value to be persisted in the storage engine.
- 
schemaIdpublic int schemaIdAn identifier used to determine how the PutValue can be deserialized. Also used, in conjunction with the replicationMetadataVersionId, to deserialize the replicationMetadataPayload.
- 
replicationMetadataVersionIdpublic int replicationMetadataVersionIdThe A/A replication metadata schema version ID that will be used to deserialize replicationMetadataPayload.
- 
replicationMetadataPayloadThe serialized value of the replication metadata schema.
 
- 
- 
Constructor Details- 
Putpublic Put()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder().
- 
Putpublic Put(ByteBuffer putValue, Integer schemaId, Integer replicationMetadataVersionId, ByteBuffer replicationMetadataPayload) All-args constructor.- Parameters:
- putValue- The record's value to be persisted in the storage engine.
- schemaId- An identifier used to determine how the PutValue can be deserialized. Also used, in conjunction with the replicationMetadataVersionId, to deserialize the replicationMetadataPayload.
- replicationMetadataVersionId- The A/A replication metadata schema version ID that will be used to deserialize replicationMetadataPayload.
- replicationMetadataPayload- The serialized value of the replication metadata schema.
 
 
- 
- 
Method Details- 
getClassSchemapublic static org.apache.avro.Schema getClassSchema()
- 
getSpecificDatapublic org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
- getSpecificDatain class- org.apache.avro.specific.SpecificRecordBase
 
- 
getSchemapublic org.apache.avro.Schema getSchema()- Specified by:
- getSchemain interface- org.apache.avro.generic.GenericContainer
- Specified by:
- getSchemain class- org.apache.avro.specific.SpecificRecordBase
 
- 
get- Specified by:
- getin interface- org.apache.avro.generic.IndexedRecord
- Specified by:
- getin class- org.apache.avro.specific.SpecificRecordBase
 
- 
put- Specified by:
- putin interface- org.apache.avro.generic.IndexedRecord
- Specified by:
- putin class- org.apache.avro.specific.SpecificRecordBase
 
- 
getPutValueGets the value of the 'putValue' field.- Returns:
- The record's value to be persisted in the storage engine.
 
- 
setPutValueSets the value of the 'putValue' field. The record's value to be persisted in the storage engine.- Parameters:
- value- the value to set.
 
- 
getSchemaIdpublic int getSchemaId()Gets the value of the 'schemaId' field.- Returns:
- An identifier used to determine how the PutValue can be deserialized. Also used, in conjunction with the replicationMetadataVersionId, to deserialize the replicationMetadataPayload.
 
- 
setSchemaIdpublic void setSchemaId(int value) Sets the value of the 'schemaId' field. An identifier used to determine how the PutValue can be deserialized. Also used, in conjunction with the replicationMetadataVersionId, to deserialize the replicationMetadataPayload.- Parameters:
- value- the value to set.
 
- 
getReplicationMetadataVersionIdpublic int getReplicationMetadataVersionId()Gets the value of the 'replicationMetadataVersionId' field.- Returns:
- The A/A replication metadata schema version ID that will be used to deserialize replicationMetadataPayload.
 
- 
setReplicationMetadataVersionIdpublic void setReplicationMetadataVersionId(int value) Sets the value of the 'replicationMetadataVersionId' field. The A/A replication metadata schema version ID that will be used to deserialize replicationMetadataPayload.- Parameters:
- value- the value to set.
 
- 
getReplicationMetadataPayloadGets the value of the 'replicationMetadataPayload' field.- Returns:
- The serialized value of the replication metadata schema.
 
- 
setReplicationMetadataPayloadSets the value of the 'replicationMetadataPayload' field. The serialized value of the replication metadata schema.- Parameters:
- value- the value to set.
 
- 
writeExternal- Specified by:
- writeExternalin interface- Externalizable
- Overrides:
- writeExternalin class- org.apache.avro.specific.SpecificRecordBase
- Throws:
- IOException
 
- 
readExternal- Specified by:
- readExternalin interface- Externalizable
- Overrides:
- readExternalin class- org.apache.avro.specific.SpecificRecordBase
- Throws:
- IOException
 
 
-