Package com.linkedin.venice.helix
Class StoreJSONSerializer
- All Implemented Interfaces:
VeniceSerializer<Store>
Serializer used to convert the data between Store and json.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classMixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the versionstatic classstatic classMixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the store.static classMixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the versionstatic 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[]Methods inherited from class com.linkedin.venice.helix.VeniceJsonSerializer
createObjectMapper, getObjectMapper
-
Constructor Details
-
StoreJSONSerializer
public StoreJSONSerializer()
-
-
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<Store>- Parameters:
mapper- The ObjectMapper to configure
-
serialize
- Specified by:
serializein interfaceVeniceSerializer<Store>- Overrides:
serializein classVeniceJsonSerializer<Store>- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceVeniceSerializer<Store>- Overrides:
deserializein classVeniceJsonSerializer<Store>- Throws:
IOException
-