Class DecoderResolver

java.lang.Object
org.apache.iceberg.data.avro.DecoderResolver

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

    • 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 IOException
      Throws:
      IOException
    • clearCache

      public static void clearCache()