Class 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UTF_8

        public static final java.nio.charset.Charset UTF_8
    • Constructor Detail

      • SimpleStringSerializer

        public SimpleStringSerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(java.lang.String object,
                                java.lang.String path)
                         throws java.io.IOException
        Specified by:
        serialize in interface VeniceSerializer<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 interface VeniceSerializer<java.lang.String>
        Throws:
        java.io.IOException