Package com.linkedin.venice.helix
Class SchemaEntrySerializer
java.lang.Object
com.linkedin.venice.helix.SchemaEntrySerializer
- All Implemented Interfaces:
VeniceSerializer<SchemaEntry>
This class to use to serialize/deserialize Zookeeper node
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(byte[] bytes, String path) This function will extract schema from file path, and schema content from ZNode data.byte[]
serialize
(SchemaEntry object, String path) This function only serialize schema content, and the caller will be charge of storing schema id as part of file path.
-
Constructor Details
-
SchemaEntrySerializer
public SchemaEntrySerializer()
-
-
Method Details
-
serialize
This function only serialize schema content, and the caller will be charge of storing schema id as part of file path.- Specified by:
serialize
in interfaceVeniceSerializer<SchemaEntry>
- Parameters:
object
-path
-- Returns:
- Throws:
IOException
-
deserialize
This function will extract schema from file path, and schema content from ZNode data.- Specified by:
deserialize
in interfaceVeniceSerializer<SchemaEntry>
- Parameters:
bytes
-path
-- Returns:
- Throws:
IOException
-