Package com.linkedin.venice.schema.vson
Class VsonAvroSerializer
- java.lang.Object
-
- com.linkedin.venice.schema.vson.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.
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
-