Package com.linkedin.venice.meta
Class SimpleStringSerializer
- java.lang.Object
-
- com.linkedin.venice.meta.SimpleStringSerializer
-
- All Implemented Interfaces:
VeniceSerializer<java.lang.String>
public class SimpleStringSerializer extends java.lang.Object implements VeniceSerializer<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.Charset
UTF_8
-
Constructor Summary
Constructors Constructor Description SimpleStringSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
deserialize(byte[] bytes, java.lang.String path)
byte[]
serialize(java.lang.String object, java.lang.String path)
-
-
-
Method Detail
-
serialize
public byte[] serialize(java.lang.String object, java.lang.String path) throws java.io.IOException
- Specified by:
serialize
in interfaceVeniceSerializer<java.lang.String>
- Throws:
java.io.IOException
-
deserialize
public java.lang.String deserialize(byte[] bytes, java.lang.String path) throws java.io.IOException
- Specified by:
deserialize
in interfaceVeniceSerializer<java.lang.String>
- Throws:
java.io.IOException
-
-