Package org.apache.iceberg.data.avro
Class DecoderResolver
java.lang.Object
org.apache.iceberg.data.avro.DecoderResolver
Resolver to resolve
Decoder
to a ResolvingDecoder
. This class uses a ThreadLocal
for caching ResolvingDecoder
.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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)
-
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()
-