Class SchemaEntrySerializer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SchemaEntry deserialize​(byte[] bytes, java.lang.String path)
      This function will extract schema from file path, and schema content from ZNode data.
      byte[] serialize​(SchemaEntry object, java.lang.String path)
      This function only serialize schema content, and the caller will be charge of storing schema id as part of file path.
      • Methods inherited from class java.lang.Object

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

      • SchemaEntrySerializer

        public SchemaEntrySerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(SchemaEntry object,
                                java.lang.String path)
                         throws java.io.IOException
        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 interface VeniceSerializer<SchemaEntry>
        Parameters:
        object -
        path -
        Returns:
        Throws:
        java.io.IOException
      • deserialize

        public SchemaEntry deserialize​(byte[] bytes,
                                       java.lang.String path)
                                throws java.io.IOException
        This function will extract schema from file path, and schema content from ZNode data.
        Specified by:
        deserialize in interface VeniceSerializer<SchemaEntry>
        Parameters:
        bytes -
        path -
        Returns:
        Throws:
        java.io.IOException