Class DecoderResolver


  • public class DecoderResolver
    extends java.lang.Object
    Resolver to resolve Decoder to a ResolvingDecoder. This class uses a ThreadLocal for caching ResolvingDecoder.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clearCache()  
      static <T> T resolveAndRead​(org.apache.avro.io.Decoder decoder, org.apache.avro.Schema readSchema, org.apache.avro.Schema fileSchema, ValueReader<T> reader, T reuse)  
      • Methods inherited from class java.lang.Object

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

      • resolveAndRead

        public static <T> T resolveAndRead​(org.apache.avro.io.Decoder decoder,
                                           org.apache.avro.Schema readSchema,
                                           org.apache.avro.Schema fileSchema,
                                           ValueReader<T> reader,
                                           T reuse)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • clearCache

        public static void clearCache()