Class AvroEncoderUtil


  • public class AvroEncoderUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T decode​(byte[] data)  
      static <T> byte[] encode​(T datum, org.apache.avro.Schema avroSchema)  
      • Methods inherited from class java.lang.Object

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

      • encode

        public static <T> byte[] encode​(T datum,
                                        org.apache.avro.Schema avroSchema)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • decode

        public static <T> T decode​(byte[] data)
                            throws java.io.IOException
        Throws:
        java.io.IOException