Package com.linkedin.venice.helix
Class VeniceJsonSerializer<T>
- java.lang.Object
-
- com.linkedin.venice.helix.VeniceJsonSerializer<T>
-
- All Implemented Interfaces:
VeniceSerializer<T>
- Direct Known Subclasses:
MigrationPushStrategyJSONSerializer
,OfflinePushStatusJSONSerializer
,PartitionStatusJSONSerializer
,RouterClusterConfigJSONSerializer
,StoragePersonaJSONSerializer
,StoreConfigJsonSerializer
,StoreJSONSerializer
,StringToLongMapJSONSerializer
,SystemStoreJSONSerializer
public class VeniceJsonSerializer<T> extends java.lang.Object implements VeniceSerializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.jackson.databind.ObjectMapper
OBJECT_MAPPER
-
Constructor Summary
Constructors Constructor Description VeniceJsonSerializer(com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
VeniceJsonSerializer(java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
deserialize(byte[] bytes, java.lang.String path)
byte[]
serialize(T object, java.lang.String path)
-
-
-
Method Detail
-
serialize
public byte[] serialize(T object, java.lang.String path) throws java.io.IOException
- Specified by:
serialize
in interfaceVeniceSerializer<T>
- Throws:
java.io.IOException
-
deserialize
public T deserialize(byte[] bytes, java.lang.String path) throws java.io.IOException
- Specified by:
deserialize
in interfaceVeniceSerializer<T>
- Throws:
java.io.IOException
-
-