Package com.linkedin.venice.helix
Class AbstractSchemaEntrySerializer<T extends GeneratedSchemaEntry>
- java.lang.Object
-
- com.linkedin.venice.helix.AbstractSchemaEntrySerializer<T>
-
- All Implemented Interfaces:
VeniceSerializer<T>
- Direct Known Subclasses:
DerivedSchemaEntrySerializer
,ReplicationMetadataSchemaEntrySerializer
public abstract class AbstractSchemaEntrySerializer<T extends GeneratedSchemaEntry> extends java.lang.Object implements VeniceSerializer<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractSchemaEntrySerializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
deserialize(byte[] bytes, java.lang.String path)
protected abstract T
getInstance(int schemaVersion, int protocolVersion, byte[] schemaBytes)
byte[]
serialize(T object, java.lang.String path)
-
-
-
Method Detail
-
getInstance
protected abstract T getInstance(int schemaVersion, int protocolVersion, byte[] schemaBytes)
-
serialize
public byte[] serialize(T object, java.lang.String path)
- Specified by:
serialize
in interfaceVeniceSerializer<T extends GeneratedSchemaEntry>
-
deserialize
public T deserialize(byte[] bytes, java.lang.String path)
- Specified by:
deserialize
in interfaceVeniceSerializer<T extends GeneratedSchemaEntry>
-
-