Package com.linkedin.venice.helix
Class SystemStoreJSONSerializer
java.lang.Object
com.linkedin.venice.helix.VeniceJsonSerializer<SerializableSystemStore>
com.linkedin.venice.helix.SystemStoreJSONSerializer
- All Implemented Interfaces:
VeniceSerializer<SerializableSystemStore>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
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[]serialize(SerializableSystemStore systemStore, String path) Methods inherited from class com.linkedin.venice.helix.VeniceJsonSerializer
createObjectMapper, getObjectMapper
-
Constructor Details
-
SystemStoreJSONSerializer
public SystemStoreJSONSerializer()
-
-
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<SerializableSystemStore>- Parameters:
mapper- The ObjectMapper to configure
-
serialize
- Specified by:
serializein interfaceVeniceSerializer<SerializableSystemStore>- Overrides:
serializein classVeniceJsonSerializer<SerializableSystemStore>- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceVeniceSerializer<SerializableSystemStore>- Overrides:
deserializein classVeniceJsonSerializer<SerializableSystemStore>- Throws:
IOException
-