Package org.apache.avro.io
Class FastReaderBuilder.RecordReader
java.lang.Object
org.apache.avro.io.FastReaderBuilder.RecordReader
- All Implemented Interfaces:
DatumReader<Object>
,FastReaderBuilder.FieldReader
- Enclosing class:
FastReaderBuilder
public static class FastReaderBuilder.RecordReader
extends Object
implements FastReaderBuilder.FieldReader
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canReuse()
void
finishInitialization
(FastReaderBuilder.ExecutionStep[] readSteps, Schema schema, GenericData.InstanceSupplier supp) Read a datum.void
reset()
void
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
setSchema
-
Constructor Details
-
RecordReader
public RecordReader()
-
-
Method Details
-
getInitializationStage
-
reset
public void reset() -
startInitialization
public void startInitialization() -
finishInitialization
public void finishInitialization(FastReaderBuilder.ExecutionStep[] readSteps, Schema schema, GenericData.InstanceSupplier supp) -
canReuse
public boolean canReuse()- Specified by:
canReuse
in interfaceFastReaderBuilder.FieldReader
-
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
-