Package org.apache.iceberg.data.avro
Class DecoderResolver
- java.lang.Object
-
- org.apache.iceberg.data.avro.DecoderResolver
-
public class DecoderResolver extends java.lang.Object
Resolver to resolveDecoder
to aResolvingDecoder
. This class uses aThreadLocal
for cachingResolvingDecoder
.
-
-
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)
-
-
-
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()
-
-