Class PartitionConsumptionState.TransientRecord
java.lang.Object
com.linkedin.davinci.kafka.consumer.PartitionConsumptionState.TransientRecord
- Enclosing class:
- PartitionConsumptionState
This immutable class holds a association between a key and value and the source offset of the consumed message.
The value could be either as received in kafka ConsumerRecord or it could be a write computed value.
-
Constructor Summary
ConstructorDescriptionTransientRecord
(byte[] value, int valueOffset, int valueLen, int valueSchemaId, int kafkaClusterId, long kafkaConsumedOffset) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.generic.GenericRecord
byte[]
getValue()
int
int
int
void
setReplicationMetadataRecord
(org.apache.avro.generic.GenericRecord replicationMetadataRecord) void
setRmdManifest
(ChunkedValueManifest rmdManifest) void
setValueManifest
(ChunkedValueManifest valueManifest)
-
Constructor Details
-
TransientRecord
public TransientRecord(byte[] value, int valueOffset, int valueLen, int valueSchemaId, int kafkaClusterId, long kafkaConsumedOffset)
-
-
Method Details
-
getRmdManifest
-
setRmdManifest
-
getValueManifest
-
setValueManifest
-
setReplicationMetadataRecord
public void setReplicationMetadataRecord(org.apache.avro.generic.GenericRecord replicationMetadataRecord) -
getReplicationMetadataRecord
public org.apache.avro.generic.GenericRecord getReplicationMetadataRecord() -
getValue
public byte[] getValue() -
getValueOffset
public int getValueOffset() -
getValueLen
public int getValueLen() -
getValueSchemaId
public int getValueSchemaId()
-