Class VsonAvroSerializer


  • @Deprecated
    public class VsonAvroSerializer
    extends java.lang.Object
    Deprecated.
    VsonAvroSerializer is in charge of de/serializing between Vson binary and Vson object. It's also able to deserialize Vson binary to Avro object. This class was inspired and referred from Voldemort. https://github.com/voldemort/voldemort/blob/master/src/java/voldemort/serialization/json/JsonTypeSerializer.java
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Object bytesToAvro​(byte[] bytes)
      Deprecated.
       
      java.lang.Object bytesToAvro​(byte[] bytes, int offset, int length)
      Deprecated.
       
      boolean equals​(java.lang.Object obj)
      Deprecated.
       
      static VsonAvroSerializer fromSchemaStr​(java.lang.String vsonSchemaStr)
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      byte[] toBytes​(java.lang.Object object)
      Deprecated.
       
      void toBytes​(java.lang.Object object, java.io.DataOutputStream output)
      Deprecated.
       
      java.lang.Object toObject​(byte[] bytes)
      Deprecated.
       
      java.lang.String toString​(java.lang.Object object)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromSchemaStr

        public static VsonAvroSerializer fromSchemaStr​(java.lang.String vsonSchemaStr)
        Deprecated.
      • toString

        public java.lang.String toString​(java.lang.Object object)
        Deprecated.
      • toBytes

        public byte[] toBytes​(java.lang.Object object)
        Deprecated.
      • toBytes

        public void toBytes​(java.lang.Object object,
                            java.io.DataOutputStream output)
                     throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • toObject

        public java.lang.Object toObject​(byte[] bytes)
        Deprecated.
      • bytesToAvro

        public java.lang.Object bytesToAvro​(byte[] bytes)
        Deprecated.
      • bytesToAvro

        public java.lang.Object bytesToAvro​(byte[] bytes,
                                            int offset,
                                            int length)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object