Package com.linkedin.davinci.consumer
Class VeniceChangeCoordinate
java.lang.Object
com.linkedin.davinci.consumer.VeniceChangeCoordinate
- All Implemented Interfaces:
Externalizable
,Serializable
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
VeniceChangeCoordinate
(String topic, PubSubPosition pubSubPosition, Integer partition) -
Method Summary
Modifier and TypeMethodDescriptionint
static String
convertVeniceChangeCoordinateToStringAndEncode
(VeniceChangeCoordinate veniceChangeCoordinate) static VeniceChangeCoordinate
decodeStringAndConvertToVeniceChangeCoordinate
(String offsetString) protected PubSubPosition
protected String
getTopic()
void
void
-
Constructor Details
-
VeniceChangeCoordinate
public VeniceChangeCoordinate() -
VeniceChangeCoordinate
-
-
Method Details
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
getPartition
-
getStoreName
-
comparePosition
- Parameters:
other
- the other position to compare to- Returns:
- returns 0 if the positions are equal, -1 if this position is less than the other position, and 1 if this position is greater than the other position
-
getTopic
-
getPosition
-
convertVeniceChangeCoordinateToStringAndEncode
public static String convertVeniceChangeCoordinateToStringAndEncode(VeniceChangeCoordinate veniceChangeCoordinate) throws IOException - Throws:
IOException
-
decodeStringAndConvertToVeniceChangeCoordinate
public static VeniceChangeCoordinate decodeStringAndConvertToVeniceChangeCoordinate(String offsetString) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-