Package com.linkedin.venice.helix
Class StoreJSONSerializer
- java.lang.Object
-
- com.linkedin.venice.helix.VeniceJsonSerializer<Store>
-
- com.linkedin.venice.helix.StoreJSONSerializer
-
- All Implemented Interfaces:
VeniceSerializer<Store>
public class StoreJSONSerializer extends VeniceJsonSerializer<Store>
Serializer used to convert the data between Store and json.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StoreJSONSerializer.ETLStoreConfigSerializerMixin
static class
StoreJSONSerializer.HybridStoreConfigSerializerMixin
Mixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the versionstatic class
StoreJSONSerializer.PartitionerConfigSerializerMixin
static class
StoreJSONSerializer.StoreSerializerMixin
Mixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the store.static class
StoreJSONSerializer.VersionSerializerMixin
Mixin used to add the annotation to figure out the constructor used by Jackson lib when deserialize the versionstatic class
StoreJSONSerializer.ViewConfigSerializerMixin
-
Field Summary
-
Fields inherited from class com.linkedin.venice.helix.VeniceJsonSerializer
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description StoreJSONSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Store
deserialize(byte[] bytes, java.lang.String path)
byte[]
serialize(Store object, java.lang.String path)
-
-
-
Method Detail
-
serialize
public byte[] serialize(Store object, java.lang.String path) throws java.io.IOException
- Specified by:
serialize
in interfaceVeniceSerializer<Store>
- Overrides:
serialize
in classVeniceJsonSerializer<Store>
- Throws:
java.io.IOException
-
deserialize
public Store deserialize(byte[] bytes, java.lang.String path) throws java.io.IOException
- Specified by:
deserialize
in interfaceVeniceSerializer<Store>
- Overrides:
deserialize
in classVeniceJsonSerializer<Store>
- Throws:
java.io.IOException
-
-