Package com.linkedin.venice.helix
Class VersionJSONSerializer
java.lang.Object
com.linkedin.venice.helix.VeniceJsonSerializer<Version>
com.linkedin.venice.helix.VersionJSONSerializer
- All Implemented Interfaces:
VeniceSerializer<Version>
Serializer used to convert a single /Stores//versions/.
Reuses the nested-type mixins declared on
Version to and from JSON for storage in its own ZK znode
at /StoreJSONSerializer so a version znode and the version elements
embedded in a legacy store znode share identical wire format.-
Field Summary
Fields inherited from class com.linkedin.venice.helix.VeniceJsonSerializer
objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Configure the ObjectMapper with custom settings.deserialize(byte[] bytes, String path) byte[]Methods inherited from class com.linkedin.venice.helix.VeniceJsonSerializer
createObjectMapper, getObjectMapper
-
Constructor Details
-
VersionJSONSerializer
public VersionJSONSerializer()
-
-
Method Details
-
configureObjectMapper
protected void configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Description copied from class:VeniceJsonSerializerConfigure the ObjectMapper with custom settings. Subclasses should override this method instead of createObjectMapper().- Overrides:
configureObjectMapperin classVeniceJsonSerializer<Version>- Parameters:
mapper- The ObjectMapper to configure
-
serialize
- Specified by:
serializein interfaceVeniceSerializer<Version>- Overrides:
serializein classVeniceJsonSerializer<Version>- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceVeniceSerializer<Version>- Overrides:
deserializein classVeniceJsonSerializer<Version>- Throws:
IOException
-