Package org.apache.avro.io
Class FastReaderBuilder.MapReader
java.lang.Object
org.apache.avro.io.FastReaderBuilder.MapReader
- All Implemented Interfaces:
DatumReader<Object>
,FastReaderBuilder.FieldReader
- Enclosing class:
FastReaderBuilder
public static class FastReaderBuilder.MapReader
extends Object
implements FastReaderBuilder.FieldReader
-
Constructor Summary
ConstructorDescriptionMapReader
(FastReaderBuilder.FieldReader keyReader, FastReaderBuilder.FieldReader valueReader) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avro.io.FastReaderBuilder.FieldReader
canReuse, setSchema
-
Constructor Details
-
MapReader
public MapReader(FastReaderBuilder.FieldReader keyReader, FastReaderBuilder.FieldReader valueReader)
-
-
Method Details
-
read
Description copied from interface:DatumReader
Read a datum. Traverse the schema, depth-first, reading all leaf values in the schema into a datum that is returned. If the provided datum is non-null it may be reused and returned.- Specified by:
read
in interfaceDatumReader<Object>
- Specified by:
read
in interfaceFastReaderBuilder.FieldReader
- Throws:
IOException
-