Class VeniceJsonSerializer<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER  
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • OBJECT_MAPPER

        protected static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
    • Constructor Detail

      • VeniceJsonSerializer

        public VeniceJsonSerializer​(java.lang.Class<T> type)
      • VeniceJsonSerializer

        public VeniceJsonSerializer​(com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
    • Method Detail

      • serialize

        public byte[] serialize​(T object,
                                java.lang.String path)
                         throws java.io.IOException
        Specified by:
        serialize in interface VeniceSerializer<T>
        Throws:
        java.io.IOException
      • deserialize

        public T deserialize​(byte[] bytes,
                             java.lang.String path)
                      throws java.io.IOException
        Specified by:
        deserialize in interface VeniceSerializer<T>
        Throws:
        java.io.IOException