Class ApacheKafkaOffsetPositionFactory
java.lang.Object
com.linkedin.venice.pubsub.PubSubPositionFactory
com.linkedin.venice.pubsub.adapter.kafka.common.ApacheKafkaOffsetPositionFactory
A
PubSubPositionFactory
for creating ApacheKafkaOffsetPosition
instances.
This factory handles deserialization of positions backed by Kafka offsets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPositionRawBytes
(ByteBuffer buffer) Deserializes aPubSubPosition
from the given byte buffer.Returns the fully qualified class name of thePubSubPosition
implementation handled by this factory.Methods inherited from class com.linkedin.venice.pubsub.PubSubPositionFactory
fromPositionRawBytes, fromWireFormat, getPositionTypeId
-
Constructor Details
-
ApacheKafkaOffsetPositionFactory
public ApacheKafkaOffsetPositionFactory(int positionTypeId)
-
-
Method Details
-
fromPositionRawBytes
Description copied from class:PubSubPositionFactory
Deserializes aPubSubPosition
from the given byte buffer.- Specified by:
fromPositionRawBytes
in classPubSubPositionFactory
- Parameters:
buffer
- the byte buffer containing the serialized position (does not include type ID)- Returns:
- a new
PubSubPosition
instance
-
getPubSubPositionClassName
Description copied from class:PubSubPositionFactory
Returns the fully qualified class name of thePubSubPosition
implementation handled by this factory.- Specified by:
getPubSubPositionClassName
in classPubSubPositionFactory
- Returns:
- the fully qualified class name of the associated position class
-